@limetry/ui 1.2.86 → 1.2.93
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/components/badge.d.ts +33 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/button.d.ts +47 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/card.d.ts +55 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/drawer-menu.d.ts +20 -0
- package/dist/components/drawer-menu.d.ts.map +1 -0
- package/dist/components/drawer-menu.types.d.ts +100 -0
- package/dist/components/drawer-menu.types.d.ts.map +1 -0
- package/dist/components/drawer-menu.web.d.ts +20 -0
- package/dist/components/drawer-menu.web.d.ts.map +1 -0
- package/dist/components/icons.d.ts +81 -0
- package/dist/components/icons.d.ts.map +1 -0
- package/dist/components/icons.web.d.ts +81 -0
- package/dist/components/icons.web.d.ts.map +1 -0
- package/dist/components/input.d.ts +75 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/logo.d.ts +18 -0
- package/dist/components/logo.d.ts.map +1 -0
- package/dist/components/logo.web.d.ts +17 -0
- package/dist/components/logo.web.d.ts.map +1 -0
- package/dist/components/page-header.d.ts +78 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/site-footer.d.ts +5 -0
- package/dist/components/site-footer.d.ts.map +1 -0
- package/dist/components/site-footer.types.d.ts +19 -0
- package/dist/components/site-footer.types.d.ts.map +1 -0
- package/dist/components/site-footer.web.d.ts +7 -0
- package/dist/components/site-footer.web.d.ts.map +1 -0
- package/dist/components/site-header.d.ts +13 -0
- package/dist/components/site-header.d.ts.map +1 -0
- package/dist/components/site-header.types.d.ts +50 -0
- package/dist/components/site-header.types.d.ts.map +1 -0
- package/dist/components/site-header.web.d.ts +14 -0
- package/dist/components/site-header.web.d.ts.map +1 -0
- package/dist/components/stat-card.d.ts +42 -0
- package/dist/components/stat-card.d.ts.map +1 -0
- package/dist/components/theme-toggle.d.ts +12 -0
- package/dist/components/theme-toggle.d.ts.map +1 -0
- package/dist/components/theme-toggle.web.d.ts +24 -0
- package/dist/components/theme-toggle.web.d.ts.map +1 -0
- package/dist/index.cjs +121 -19
- package/dist/index.d.ts +20 -503
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +120 -20
- package/dist/lib/cn.d.ts +12 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/site-footer-links.d.ts +67 -0
- package/dist/lib/site-footer-links.d.ts.map +1 -0
- package/dist/navigation/types.d.ts +87 -0
- package/dist/navigation/types.d.ts.map +1 -0
- package/package.json +23 -9
- package/src/components/logo.tsx +59 -0
- package/src/components/logo.web.tsx +61 -0
- package/src/components/site-footer.tsx +92 -0
- package/src/components/site-footer.types.ts +21 -0
- package/src/components/site-footer.web.tsx +101 -0
- package/src/components/site-header.web.tsx +2 -2
- package/src/index.ts +2 -0
- package/src/lib/site-footer-links.test.ts +1 -0
- package/src/lib/site-footer-links.ts +1 -0
- package/tailwind.config.ts +2 -2
- package/dist/index.d.cts +0 -504
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact status pill for labels such as success, warning, and error.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Color treatment for {@link Badge}.
|
|
6
|
+
*/
|
|
7
|
+
type BadgeVariant = "default" | "success" | "warning" | "error" | "outline";
|
|
8
|
+
/**
|
|
9
|
+
* Props for {@link Badge}.
|
|
10
|
+
*/
|
|
11
|
+
type BadgeProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Badge label text.
|
|
14
|
+
*/
|
|
15
|
+
children: string;
|
|
16
|
+
/**
|
|
17
|
+
* Visual variant; defaults to `"default"`.
|
|
18
|
+
*/
|
|
19
|
+
variant?: BadgeVariant;
|
|
20
|
+
/**
|
|
21
|
+
* Extra classes on the badge container.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Self-start rounded label chip.
|
|
27
|
+
*
|
|
28
|
+
* @param props - Label text, variant, and className.
|
|
29
|
+
* @returns A styled badge `View`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function Badge({ children, variant, className, }: BadgeProps): React.JSX.Element;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAMH;;GAEG;AACH,KAAK,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAE3E;;GAEG;AACH,KAAK,UAAU,GAAG;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAkBD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,OAAmB,EACnB,SAAS,GACV,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQhC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pressable button with variant and size presets for NativeWind surfaces.
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
import { type PressableProps } from "react-native";
|
|
6
|
+
/**
|
|
7
|
+
* Visual treatment for {@link Button}.
|
|
8
|
+
*/
|
|
9
|
+
type ButtonVariant = "primary" | "secondary" | "ghost" | "destructive" | "outline";
|
|
10
|
+
/**
|
|
11
|
+
* Padding and type scale for {@link Button}.
|
|
12
|
+
*/
|
|
13
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
14
|
+
/**
|
|
15
|
+
* Props for {@link Button}, extending React Native `PressableProps`.
|
|
16
|
+
*/
|
|
17
|
+
type ButtonProps = PressableProps & {
|
|
18
|
+
/**
|
|
19
|
+
* Button label string or custom children.
|
|
20
|
+
*/
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Color / border treatment; defaults to `"primary"`.
|
|
24
|
+
*/
|
|
25
|
+
variant?: ButtonVariant;
|
|
26
|
+
/**
|
|
27
|
+
* Padding and text size; defaults to `"md"`.
|
|
28
|
+
*/
|
|
29
|
+
size?: ButtonSize;
|
|
30
|
+
/**
|
|
31
|
+
* Extra classes merged onto the pressable root.
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Extra classes merged onto the string-label `Text` child.
|
|
36
|
+
*/
|
|
37
|
+
textClassName?: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Accessible pressable button that wraps string children in styled `Text`.
|
|
41
|
+
*
|
|
42
|
+
* @param props - Variant, size, class names, and Pressable props.
|
|
43
|
+
* @returns A `Pressable` root with optional styled label text.
|
|
44
|
+
*/
|
|
45
|
+
export declare function Button({ children, variant, size, className, textClassName, disabled, ...props }: ButtonProps): React.JSX.Element;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAa,KAAK,cAAc,EAAO,MAAM,cAAc,CAAA;AAIlE;;GAEG;AACH,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAA;AAElF;;GAEG;AACH,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEpC;;GAEG;AACH,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAwDD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,OAAmB,EACnB,IAAW,EACX,SAAS,EACT,aAAa,EACb,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+BjC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bordered content card and title/description header for dashboard layouts.
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
import { type ViewProps } from "react-native";
|
|
6
|
+
/**
|
|
7
|
+
* Props for {@link Card}.
|
|
8
|
+
*/
|
|
9
|
+
type CardProps = ViewProps & {
|
|
10
|
+
/**
|
|
11
|
+
* Card body content.
|
|
12
|
+
*/
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Extra classes merged onto the card surface.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Elevated surface container with border and padding.
|
|
21
|
+
*
|
|
22
|
+
* @param props - Children, className, and View props.
|
|
23
|
+
* @returns A styled card `View`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Card({ children, className, ...props }: CardProps): React.JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Props for {@link CardHeader}.
|
|
28
|
+
*/
|
|
29
|
+
type CardHeaderProps = {
|
|
30
|
+
/**
|
|
31
|
+
* Primary card title.
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional supporting description under the title.
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional action slot aligned to the trailing edge.
|
|
40
|
+
*/
|
|
41
|
+
action?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Extra classes on the header row.
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Title row for use inside {@link Card}, with optional description and action.
|
|
49
|
+
*
|
|
50
|
+
* @param props - Title, description, action, and className.
|
|
51
|
+
* @returns A header row suitable for card tops.
|
|
52
|
+
*/
|
|
53
|
+
export declare function CardHeader({ title, description, action, className, }: CardHeaderProps): React.JSX.Element;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAIzD;;GAEG;AACH,KAAK,SAAS,GAAG,SAAS,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAYpF;AAED;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,GACV,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAYrC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native drawer panel for Expo / mobile consumers.
|
|
3
|
+
*
|
|
4
|
+
* Presented as a modal so menu presses are not lost under the page overlay.
|
|
5
|
+
* Re-exports navigation helpers used by host apps.
|
|
6
|
+
*/
|
|
7
|
+
import type { DrawerMenuProps } from "./drawer-menu.types";
|
|
8
|
+
export { findActiveNavHref, isHighlightedNavItem, isItemHighlighted, isNavItemActive, isNavItemOrChildActive, } from "../navigation/types";
|
|
9
|
+
export type { DrawerLinkProps, DrawerMenuProps, NavItem } from "./drawer-menu.types";
|
|
10
|
+
/**
|
|
11
|
+
* React Native drawer panel for Expo / mobile consumers.
|
|
12
|
+
*
|
|
13
|
+
* The panel is a modal so its rows are not covered by the page overlay, and the
|
|
14
|
+
* host header is rendered inside that modal so logo, profile, and close stay pressable.
|
|
15
|
+
*
|
|
16
|
+
* @param props - Open state, nav items, pathname, and injected link/icon renderers.
|
|
17
|
+
* @returns The drawer modal when open, otherwise `null`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function DrawerMenu({ open, onOpenChange, items, pathname, LinkComponent, renderIcon, footer, topOffset, className, header, }: DrawerMenuProps): React.JSX.Element | null;
|
|
20
|
+
//# sourceMappingURL=drawer-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-menu.d.ts","sourceRoot":"","sources":["../../src/components/drawer-menu.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,OAAO,KAAK,EAAE,eAAe,EAAW,MAAM,qBAAqB,CAAA;AAEnE,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAgKpF;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,MAAM,EACN,SAAa,EACb,SAAS,EACT,MAAM,GACP,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAsD5C"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared prop contracts for platform-specific drawer menu implementations.
|
|
3
|
+
*
|
|
4
|
+
* Link and icon rendering are injected so `\@limetry/ui` never imports
|
|
5
|
+
* `next/link` or `expo-router`.
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentType, ReactNode } from "react";
|
|
8
|
+
import type { NavItem } from "../navigation/types";
|
|
9
|
+
export type { NavItem };
|
|
10
|
+
export { isNavItemActive } from "../navigation/types";
|
|
11
|
+
/**
|
|
12
|
+
* Props accepted by the injected drawer link component.
|
|
13
|
+
*/
|
|
14
|
+
export type DrawerLinkProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Destination href passed through to the host router link.
|
|
17
|
+
*/
|
|
18
|
+
href: string;
|
|
19
|
+
/**
|
|
20
|
+
* Web-style click handler (Next / DOM drawer).
|
|
21
|
+
*/
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Native press handler (React Native drawer).
|
|
25
|
+
*/
|
|
26
|
+
onPress?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Link contents (typically a row of icon + label).
|
|
29
|
+
*/
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Optional Tailwind / NativeWind class names for the link root.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional browser target for header links.
|
|
37
|
+
*/
|
|
38
|
+
target?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Optional browser relationship for header links.
|
|
41
|
+
*/
|
|
42
|
+
rel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional current-page marker for header links.
|
|
45
|
+
*/
|
|
46
|
+
ariaCurrent?: "page";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Props for {@link DrawerMenu} on web and native.
|
|
50
|
+
*/
|
|
51
|
+
export type DrawerMenuProps = {
|
|
52
|
+
/**
|
|
53
|
+
* Whether the drawer panel is visible / interactive.
|
|
54
|
+
*/
|
|
55
|
+
open: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Called when the drawer should open or close.
|
|
58
|
+
*
|
|
59
|
+
* @param open - Desired open state.
|
|
60
|
+
*/
|
|
61
|
+
onOpenChange: (open: boolean) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Hierarchical nav items rendered in the drawer.
|
|
64
|
+
*/
|
|
65
|
+
items: NavItem[];
|
|
66
|
+
/**
|
|
67
|
+
* Current location pathname used for active highlighting.
|
|
68
|
+
*/
|
|
69
|
+
pathname: string;
|
|
70
|
+
/**
|
|
71
|
+
* Injected so the UI package never imports next/link or expo-router.
|
|
72
|
+
*/
|
|
73
|
+
LinkComponent: ComponentType<DrawerLinkProps>;
|
|
74
|
+
/**
|
|
75
|
+
* Maps an icon id from NavItem.icon to a rendered node.
|
|
76
|
+
*
|
|
77
|
+
* @param icon - Icon id from the nav item.
|
|
78
|
+
* @param active - Whether the row is the highlighted active leaf.
|
|
79
|
+
* @returns Node to render beside the label, or nothing when omitted.
|
|
80
|
+
*/
|
|
81
|
+
renderIcon?: (icon: string, active: boolean) => ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Optional footer content pinned below the nav list.
|
|
84
|
+
*/
|
|
85
|
+
footer?: ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Offset in pixels below a sticky header. Web default is 64.
|
|
88
|
+
*/
|
|
89
|
+
topOffset?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Extra class names applied to the drawer panel surface.
|
|
92
|
+
*/
|
|
93
|
+
className?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Native modal header rendered above the panel so header controls stay pressable.
|
|
96
|
+
* Web drawers ignore this and keep their own sticky header.
|
|
97
|
+
*/
|
|
98
|
+
header?: ReactNode;
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=drawer-menu.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-menu.types.d.ts","sourceRoot":"","sources":["../../src/components/drawer-menu.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,YAAY,EAAE,OAAO,EAAE,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAA;IACb;;;;OAIG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC7C;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,SAAS,CAAA;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM drawer panel for Next.js / browser consumers.
|
|
3
|
+
*
|
|
4
|
+
* Renders below a sticky header; the header owns the open/close control.
|
|
5
|
+
* Marked `"use client"` for Next App Router. Re-exports navigation helpers
|
|
6
|
+
* used by host apps.
|
|
7
|
+
*/
|
|
8
|
+
import type { JSX } from "react";
|
|
9
|
+
import type { DrawerMenuProps } from "./drawer-menu.types";
|
|
10
|
+
export { findActiveNavHref, isHighlightedNavItem, isItemHighlighted, isNavItemActive, isNavItemOrChildActive, } from "../navigation/types";
|
|
11
|
+
export type { DrawerLinkProps, DrawerMenuProps, NavItem } from "./drawer-menu.types";
|
|
12
|
+
/**
|
|
13
|
+
* DOM drawer panel for Next.js / browser consumers.
|
|
14
|
+
* Renders below a sticky header; the header owns the open/close control.
|
|
15
|
+
*
|
|
16
|
+
* @param props - Open state, nav items, pathname, and injected link/icon renderers.
|
|
17
|
+
* @returns A fixed mobile drawer that slides in from the trailing edge.
|
|
18
|
+
*/
|
|
19
|
+
export declare function DrawerMenu({ open, onOpenChange, items, pathname, LinkComponent, renderIcon, footer, topOffset, className, }: DrawerMenuProps): JSX.Element;
|
|
20
|
+
//# sourceMappingURL=drawer-menu.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-menu.web.d.ts","sourceRoot":"","sources":["../../src/components/drawer-menu.web.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAShC,OAAO,KAAK,EAAE,eAAe,EAAW,MAAM,qBAAqB,CAAA;AAEnE,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAqOpF;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,MAAM,EACN,SAA8B,EAC9B,SAAS,GACV,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAyE/B"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lucide icon wrappers for React Native / NativeWind consumers.
|
|
3
|
+
*
|
|
4
|
+
* Resolves stroke color from Tailwind text classes via the active color scheme
|
|
5
|
+
* because `lucide-react-native` expects a `color` prop rather than CSS classes.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
/**
|
|
9
|
+
* Shared props for exported icon components.
|
|
10
|
+
*/
|
|
11
|
+
type IconProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Tailwind / NativeWind classes that may encode text color for stroke resolution.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Shield / security icon for native surfaces.
|
|
19
|
+
*
|
|
20
|
+
* @param props - Optional className for layout and color hints.
|
|
21
|
+
* @returns Native shield icon.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ShieldIcon({ className }: IconProps): React.JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Key / credentials icon for native surfaces.
|
|
26
|
+
*
|
|
27
|
+
* @param props - Optional className for layout and color hints.
|
|
28
|
+
* @returns Native key icon.
|
|
29
|
+
*/
|
|
30
|
+
export declare function KeyIcon({ className }: IconProps): React.JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* Rules / policy icon (Zap) for native surfaces.
|
|
33
|
+
*
|
|
34
|
+
* @param props - Optional className for layout and color hints.
|
|
35
|
+
* @returns Native rules icon.
|
|
36
|
+
*/
|
|
37
|
+
export declare function RulesIcon({ className }: IconProps): React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Chart / analytics icon for native surfaces.
|
|
40
|
+
*
|
|
41
|
+
* @param props - Optional className for layout and color hints.
|
|
42
|
+
* @returns Native chart icon.
|
|
43
|
+
*/
|
|
44
|
+
export declare function ChartIcon({ className }: IconProps): React.JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* User / account icon for native surfaces.
|
|
47
|
+
*
|
|
48
|
+
* @param props - Optional className for layout and color hints.
|
|
49
|
+
* @returns Native user icon.
|
|
50
|
+
*/
|
|
51
|
+
export declare function UserIcon({ className }: IconProps): React.JSX.Element;
|
|
52
|
+
/**
|
|
53
|
+
* Home / dashboard icon for native surfaces.
|
|
54
|
+
*
|
|
55
|
+
* @param props - Optional className for layout and color hints.
|
|
56
|
+
* @returns Native home icon.
|
|
57
|
+
*/
|
|
58
|
+
export declare function HomeIcon({ className }: IconProps): React.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* Terminal / CLI icon for native surfaces.
|
|
61
|
+
*
|
|
62
|
+
* @param props - Optional className for layout and color hints.
|
|
63
|
+
* @returns Native terminal icon.
|
|
64
|
+
*/
|
|
65
|
+
export declare function TerminalIcon({ className }: IconProps): React.JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* Hamburger menu icon for native surfaces.
|
|
68
|
+
*
|
|
69
|
+
* @param props - Optional className for layout and color hints.
|
|
70
|
+
* @returns Native menu icon.
|
|
71
|
+
*/
|
|
72
|
+
export declare function MenuIcon({ className }: IconProps): React.JSX.Element;
|
|
73
|
+
/**
|
|
74
|
+
* Close / dismiss icon for native surfaces.
|
|
75
|
+
*
|
|
76
|
+
* @param props - Optional className for layout and color hints.
|
|
77
|
+
* @returns Native close icon.
|
|
78
|
+
*/
|
|
79
|
+
export declare function XIcon({ className }: IconProps): React.JSX.Element;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/components/icons.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB;;GAEG;AACH,KAAK,SAAS,GAAG;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AA2CD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEjE"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lucide icon wrappers for web / CSS class consumers.
|
|
3
|
+
*
|
|
4
|
+
* Uses `lucide-react` so stroke color follows Tailwind `className` utilities
|
|
5
|
+
* without manual hex mapping.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
/**
|
|
9
|
+
* Shared props for exported icon components.
|
|
10
|
+
*/
|
|
11
|
+
type IconProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Tailwind classes applied to the wrapper and inherited by the SVG.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Shield / security icon for web surfaces.
|
|
19
|
+
*
|
|
20
|
+
* @param props - Optional className for layout and color.
|
|
21
|
+
* @returns Web shield icon.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ShieldIcon({ className }: IconProps): React.JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Key / credentials icon for web surfaces.
|
|
26
|
+
*
|
|
27
|
+
* @param props - Optional className for layout and color.
|
|
28
|
+
* @returns Web key icon.
|
|
29
|
+
*/
|
|
30
|
+
export declare function KeyIcon({ className }: IconProps): React.JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* Rules / policy icon (Zap) for web surfaces.
|
|
33
|
+
*
|
|
34
|
+
* @param props - Optional className for layout and color.
|
|
35
|
+
* @returns Web rules icon.
|
|
36
|
+
*/
|
|
37
|
+
export declare function RulesIcon({ className }: IconProps): React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Chart / analytics icon for web surfaces.
|
|
40
|
+
*
|
|
41
|
+
* @param props - Optional className for layout and color.
|
|
42
|
+
* @returns Web chart icon.
|
|
43
|
+
*/
|
|
44
|
+
export declare function ChartIcon({ className }: IconProps): React.JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* User / account icon for web surfaces.
|
|
47
|
+
*
|
|
48
|
+
* @param props - Optional className for layout and color.
|
|
49
|
+
* @returns Web user icon.
|
|
50
|
+
*/
|
|
51
|
+
export declare function UserIcon({ className }: IconProps): React.JSX.Element;
|
|
52
|
+
/**
|
|
53
|
+
* Home / dashboard icon for web surfaces.
|
|
54
|
+
*
|
|
55
|
+
* @param props - Optional className for layout and color.
|
|
56
|
+
* @returns Web home icon.
|
|
57
|
+
*/
|
|
58
|
+
export declare function HomeIcon({ className }: IconProps): React.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* Terminal / CLI icon for web surfaces.
|
|
61
|
+
*
|
|
62
|
+
* @param props - Optional className for layout and color.
|
|
63
|
+
* @returns Web terminal icon.
|
|
64
|
+
*/
|
|
65
|
+
export declare function TerminalIcon({ className }: IconProps): React.JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* Hamburger menu icon for web surfaces.
|
|
68
|
+
*
|
|
69
|
+
* @param props - Optional className for layout and color.
|
|
70
|
+
* @returns Web menu icon.
|
|
71
|
+
*/
|
|
72
|
+
export declare function MenuIcon({ className }: IconProps): React.JSX.Element;
|
|
73
|
+
/**
|
|
74
|
+
* Close / dismiss icon for web surfaces.
|
|
75
|
+
*
|
|
76
|
+
* @param props - Optional className for layout and color.
|
|
77
|
+
* @returns Web close icon.
|
|
78
|
+
*/
|
|
79
|
+
export declare function XIcon({ className }: IconProps): React.JSX.Element;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=icons.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.web.d.ts","sourceRoot":"","sources":["../../src/components/icons.web.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB;;GAEG;AACH,KAAK,SAAS,GAAG;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAqBD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEjE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Labeled text fields and form section headings for NativeWind forms.
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
import { type TextInputProps } from "react-native";
|
|
6
|
+
/**
|
|
7
|
+
* Props for {@link Input}, extending React Native `TextInputProps`.
|
|
8
|
+
*/
|
|
9
|
+
type InputProps = TextInputProps & {
|
|
10
|
+
/**
|
|
11
|
+
* Optional field label rendered above the control.
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Helper text shown when `error` is absent.
|
|
16
|
+
*/
|
|
17
|
+
hint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Validation message; when set, overrides `hint` and styles the border red.
|
|
20
|
+
*/
|
|
21
|
+
error?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Extra classes on the outer field wrapper.
|
|
24
|
+
*/
|
|
25
|
+
containerClassName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Extra classes on the `TextInput`.
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Single-line (or host-controlled) text input with label, hint, and error.
|
|
33
|
+
*
|
|
34
|
+
* @param props - Label/hint/error, container classes, and TextInput props.
|
|
35
|
+
* @returns A labeled field column.
|
|
36
|
+
*/
|
|
37
|
+
export declare function Input({ label, hint, error, containerClassName, className, editable, ...props }: InputProps): React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Props for {@link TextArea}.
|
|
40
|
+
*/
|
|
41
|
+
type TextAreaProps = InputProps & {
|
|
42
|
+
/**
|
|
43
|
+
* Approximate visible line count (`numberOfLines`); defaults to `4`.
|
|
44
|
+
*/
|
|
45
|
+
rows?: number;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Multiline text field built on {@link Input} with mono-friendly styling.
|
|
49
|
+
*
|
|
50
|
+
* @param props - Input props plus optional `rows`.
|
|
51
|
+
* @returns A multiline labeled field.
|
|
52
|
+
*/
|
|
53
|
+
export declare function TextArea({ label, hint, error, containerClassName, className, rows, ...props }: TextAreaProps): React.JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* Props for {@link FormSection}.
|
|
56
|
+
*/
|
|
57
|
+
type FormSectionProps = {
|
|
58
|
+
/**
|
|
59
|
+
* Section heading above the child fields.
|
|
60
|
+
*/
|
|
61
|
+
title: string;
|
|
62
|
+
/**
|
|
63
|
+
* Field controls rendered under the title.
|
|
64
|
+
*/
|
|
65
|
+
children: ReactNode;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Groups related form controls under a section title.
|
|
69
|
+
*
|
|
70
|
+
* @param props - Title and child fields.
|
|
71
|
+
* @returns A titled form block.
|
|
72
|
+
*/
|
|
73
|
+
export declare function FormSection({ title, children }: FormSectionProps): React.JSX.Element;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAmB,KAAK,cAAc,EAAO,MAAM,cAAc,CAAA;AAIxE;;GAEG;AACH,KAAK,UAAU,GAAG,cAAc,GAAG;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,kBAAkB,EAClB,SAAS,EACT,QAAe,EACf,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwBhC;AAED;;GAEG;AACH,KAAK,aAAa,GAAG,UAAU,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,kBAAkB,EAClB,SAAS,EACT,IAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAcnC;AAED;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAOpF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ImageSourcePropType } from "react-native";
|
|
2
|
+
import type { LogoVariant } from "./logo.web";
|
|
3
|
+
export type { LogoVariant };
|
|
4
|
+
export type LogoProps = {
|
|
5
|
+
/** Native image source for the icon mark. */
|
|
6
|
+
iconSource?: ImageSourcePropType;
|
|
7
|
+
/** Native image source for the full product logo. */
|
|
8
|
+
productSource?: ImageSourcePropType;
|
|
9
|
+
/** Render only the icon mark. */
|
|
10
|
+
variant?: LogoVariant;
|
|
11
|
+
/** NativeWind classes applied to the outer logo. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Accessible label for the mark. */
|
|
14
|
+
label?: string;
|
|
15
|
+
};
|
|
16
|
+
/** Shared Limetry native logo. */
|
|
17
|
+
export declare function Logo({ iconSource, productSource, variant, className, label, }: LogoProps): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=logo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,mBAAmB,EAAc,MAAM,cAAc,CAAA;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,YAAY,EAAE,WAAW,EAAE,CAAA;AAE3B,MAAM,MAAM,SAAS,GAAG;IACtB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,qDAAqD;IACrD,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,iCAAiC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,kCAAkC;AAClC,wBAAgB,IAAI,CAAC,EACnB,UAAU,EACV,aAAa,EACb,OAAoB,EACpB,SAAS,EACT,KAAiB,GAClB,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgC/B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
export type LogoVariant = "wordmark" | "mark" | "product";
|
|
3
|
+
export type LogoProps = {
|
|
4
|
+
/** Public icon URL. */
|
|
5
|
+
iconSrc?: string;
|
|
6
|
+
/** Optional full white product logo used by operator chrome. */
|
|
7
|
+
productSrc?: string;
|
|
8
|
+
/** Render only the icon mark. */
|
|
9
|
+
variant?: LogoVariant;
|
|
10
|
+
/** Tailwind classes applied to the outer logo. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Accessible label for the mark. */
|
|
13
|
+
label?: string;
|
|
14
|
+
};
|
|
15
|
+
/** Shared Limetry web logo with a self-contained gradient wordmark. */
|
|
16
|
+
export declare function Logo({ iconSrc, productSrc, variant, className, label, }: LogoProps): JSX.Element;
|
|
17
|
+
//# sourceMappingURL=logo.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo.web.d.ts","sourceRoot":"","sources":["../../src/components/logo.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,SAAS,GAAG;IACtB,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,uEAAuE;AACvE,wBAAgB,IAAI,CAAC,EACnB,OAA6B,EAC7B,UAAsC,EACtC,OAAoB,EACpB,SAAS,EACT,KAAiB,GAClB,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAkCzB"}
|