@neynar/ui 0.3.1 → 0.4.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/.llm/h6.llm.md DELETED
@@ -1,105 +0,0 @@
1
- # H6
2
-
3
- **Type**: component
4
-
5
- H6 - Smallest heading component for minimal emphasis The smallest semantic heading level. Uses "details" variant with h6 element for minimal but semantic emphasis.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H6 } from '@neynar/ui';
11
-
12
- <H6
13
- color={value}
14
- align={value}
15
- transform={value}
16
- weight={value}
17
- htmlFor="value"
18
- asChild={true}
19
- italic={true}
20
- underline={true}
21
- strikethrough={true}
22
- truncate={true}
23
- srOnly={true}
24
- className="value"
25
- >
26
- {/* Your content here */}
27
- </H6>
28
- ```
29
-
30
- ## Component Props
31
-
32
- ### color
33
- - **Type**: `TypographyColor`
34
- - **Required**: No
35
- - **Description**: No description available
36
-
37
- ### align
38
- - **Type**: `"left" | "center" | "right" | "justify"`
39
- - **Required**: No
40
- - **Description**: No description available
41
-
42
- ### transform
43
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
44
- - **Required**: No
45
- - **Description**: No description available
46
-
47
- ### weight
48
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
49
- - **Required**: No
50
- - **Description**: No description available
51
-
52
- ### htmlFor
53
- - **Type**: `string`
54
- - **Required**: No
55
- - **Description**: No description available
56
-
57
- ### asChild
58
- - **Type**: `boolean`
59
- - **Required**: No
60
- - **Description**: No description available
61
-
62
- ### italic
63
- - **Type**: `boolean`
64
- - **Required**: No
65
- - **Description**: No description available
66
-
67
- ### underline
68
- - **Type**: `boolean`
69
- - **Required**: No
70
- - **Description**: No description available
71
-
72
- ### strikethrough
73
- - **Type**: `boolean`
74
- - **Required**: No
75
- - **Description**: No description available
76
-
77
- ### truncate
78
- - **Type**: `boolean`
79
- - **Required**: No
80
- - **Description**: No description available
81
-
82
- ### srOnly
83
- - **Type**: `boolean`
84
- - **Required**: No
85
- - **Description**: No description available
86
-
87
- ### className
88
- - **Type**: `string`
89
- - **Required**: No
90
- - **Description**: No description available
91
-
92
- ### children
93
- - **Type**: `React.ReactNode`
94
- - **Required**: No
95
- - **Description**: No description available
96
-
97
- ## Examples
98
-
99
- ```tsx
100
- // Smallest heading
101
- <H6>Notes and Disclaimers</H6>
102
- // In deeply nested content
103
- <H6 color="muted">Technical Details</H6>
104
- ```
105
- /
package/.llm/lead.llm.md DELETED
@@ -1,114 +0,0 @@
1
- # Lead
2
-
3
- **Type**: component
4
-
5
- Lead - Introductory paragraph component for article openings Lead paragraph for article introductions, page descriptions, and summary content. Uses "subheading" variant with muted color for visual hierarchy.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { Lead } from '@neynar/ui';
11
-
12
- <Lead
13
- color={value}
14
- align={value}
15
- transform={value}
16
- weight={value}
17
- htmlFor="value"
18
- asChild={true}
19
- italic={true}
20
- underline={true}
21
- strikethrough={true}
22
- truncate={true}
23
- srOnly={true}
24
- className="value"
25
- >
26
- {/* Your content here */}
27
- </Lead>
28
- ```
29
-
30
- ## Component Props
31
-
32
- ### color
33
- - **Type**: `TypographyColor`
34
- - **Required**: No
35
- - **Description**: No description available
36
-
37
- ### align
38
- - **Type**: `"left" | "center" | "right" | "justify"`
39
- - **Required**: No
40
- - **Description**: No description available
41
-
42
- ### transform
43
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
44
- - **Required**: No
45
- - **Description**: No description available
46
-
47
- ### weight
48
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
49
- - **Required**: No
50
- - **Description**: No description available
51
-
52
- ### htmlFor
53
- - **Type**: `string`
54
- - **Required**: No
55
- - **Description**: No description available
56
-
57
- ### asChild
58
- - **Type**: `boolean`
59
- - **Required**: No
60
- - **Description**: No description available
61
-
62
- ### italic
63
- - **Type**: `boolean`
64
- - **Required**: No
65
- - **Description**: No description available
66
-
67
- ### underline
68
- - **Type**: `boolean`
69
- - **Required**: No
70
- - **Description**: No description available
71
-
72
- ### strikethrough
73
- - **Type**: `boolean`
74
- - **Required**: No
75
- - **Description**: No description available
76
-
77
- ### truncate
78
- - **Type**: `boolean`
79
- - **Required**: No
80
- - **Description**: No description available
81
-
82
- ### srOnly
83
- - **Type**: `boolean`
84
- - **Required**: No
85
- - **Description**: No description available
86
-
87
- ### className
88
- - **Type**: `string`
89
- - **Required**: No
90
- - **Description**: No description available
91
-
92
- ### children
93
- - **Type**: `React.ReactNode`
94
- - **Required**: No
95
- - **Description**: No description available
96
-
97
- ## Examples
98
-
99
- ```tsx
100
- // Article introduction
101
- <Lead>
102
- This comprehensive guide covers everything you need to know about
103
- building modern web applications with React and TypeScript.
104
- </Lead>
105
- // Page description
106
- <Lead className="mb-8">
107
- Discover powerful APIs and tools to build the next generation
108
- of social applications on Farcaster.
109
- </Lead>
110
- // With custom color
111
- <Lead color="default">
112
- This lead paragraph uses the default text color for more prominence.
113
- </Lead>
114
- ```
package/.llm/p.llm.md DELETED
@@ -1,110 +0,0 @@
1
- # P
2
-
3
- **Type**: component
4
-
5
- P - Paragraph component for body text content Standard paragraph element for readable body text. Uses "body" variant with p semantic element. Optimized for readability with appropriate line height and font size.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { P } from '@neynar/ui';
11
-
12
- <P
13
- color={value}
14
- align={value}
15
- transform={value}
16
- weight={value}
17
- htmlFor="value"
18
- asChild={true}
19
- italic={true}
20
- underline={true}
21
- strikethrough={true}
22
- truncate={true}
23
- srOnly={true}
24
- className="value"
25
- >
26
- {/* Your content here */}
27
- </P>
28
- ```
29
-
30
- ## Component Props
31
-
32
- ### color
33
- - **Type**: `TypographyColor`
34
- - **Required**: No
35
- - **Description**: No description available
36
-
37
- ### align
38
- - **Type**: `"left" | "center" | "right" | "justify"`
39
- - **Required**: No
40
- - **Description**: No description available
41
-
42
- ### transform
43
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
44
- - **Required**: No
45
- - **Description**: No description available
46
-
47
- ### weight
48
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
49
- - **Required**: No
50
- - **Description**: No description available
51
-
52
- ### htmlFor
53
- - **Type**: `string`
54
- - **Required**: No
55
- - **Description**: No description available
56
-
57
- ### asChild
58
- - **Type**: `boolean`
59
- - **Required**: No
60
- - **Description**: No description available
61
-
62
- ### italic
63
- - **Type**: `boolean`
64
- - **Required**: No
65
- - **Description**: No description available
66
-
67
- ### underline
68
- - **Type**: `boolean`
69
- - **Required**: No
70
- - **Description**: No description available
71
-
72
- ### strikethrough
73
- - **Type**: `boolean`
74
- - **Required**: No
75
- - **Description**: No description available
76
-
77
- ### truncate
78
- - **Type**: `boolean`
79
- - **Required**: No
80
- - **Description**: No description available
81
-
82
- ### srOnly
83
- - **Type**: `boolean`
84
- - **Required**: No
85
- - **Description**: No description available
86
-
87
- ### className
88
- - **Type**: `string`
89
- - **Required**: No
90
- - **Description**: No description available
91
-
92
- ### children
93
- - **Type**: `React.ReactNode`
94
- - **Required**: No
95
- - **Description**: No description available
96
-
97
- ## Examples
98
-
99
- ```tsx
100
- // Standard paragraph
101
- <P>This is standard body text that provides information to the user.</P>
102
- // With color variants
103
- <P color="muted">Secondary information with reduced visual prominence.</P>
104
- // With custom spacing
105
- <P className="mb-6">Paragraph with custom bottom margin for layout control.</P>
106
- // Truncated paragraph
107
- <P truncate className="max-w-md">
108
- Long paragraph content that will be truncated with ellipsis
109
- </P>
110
- ```
package/.llm/small.llm.md DELETED
@@ -1,110 +0,0 @@
1
- # Small
2
-
3
- **Type**: component
4
-
5
- Small - Fine print component for supplementary information Semantic small element for fine print, disclaimers, timestamps, and supplementary information. Uses "microcopy" variant for reduced visual prominence while maintaining readability.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { Small } from '@neynar/ui';
11
-
12
- <Small
13
- color={value}
14
- align={value}
15
- transform={value}
16
- weight={value}
17
- htmlFor="value"
18
- asChild={true}
19
- italic={true}
20
- underline={true}
21
- strikethrough={true}
22
- truncate={true}
23
- srOnly={true}
24
- className="value"
25
- >
26
- {/* Your content here */}
27
- </Small>
28
- ```
29
-
30
- ## Component Props
31
-
32
- ### color
33
- - **Type**: `TypographyColor`
34
- - **Required**: No
35
- - **Description**: No description available
36
-
37
- ### align
38
- - **Type**: `"left" | "center" | "right" | "justify"`
39
- - **Required**: No
40
- - **Description**: No description available
41
-
42
- ### transform
43
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
44
- - **Required**: No
45
- - **Description**: No description available
46
-
47
- ### weight
48
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
49
- - **Required**: No
50
- - **Description**: No description available
51
-
52
- ### htmlFor
53
- - **Type**: `string`
54
- - **Required**: No
55
- - **Description**: No description available
56
-
57
- ### asChild
58
- - **Type**: `boolean`
59
- - **Required**: No
60
- - **Description**: No description available
61
-
62
- ### italic
63
- - **Type**: `boolean`
64
- - **Required**: No
65
- - **Description**: No description available
66
-
67
- ### underline
68
- - **Type**: `boolean`
69
- - **Required**: No
70
- - **Description**: No description available
71
-
72
- ### strikethrough
73
- - **Type**: `boolean`
74
- - **Required**: No
75
- - **Description**: No description available
76
-
77
- ### truncate
78
- - **Type**: `boolean`
79
- - **Required**: No
80
- - **Description**: No description available
81
-
82
- ### srOnly
83
- - **Type**: `boolean`
84
- - **Required**: No
85
- - **Description**: No description available
86
-
87
- ### className
88
- - **Type**: `string`
89
- - **Required**: No
90
- - **Description**: No description available
91
-
92
- ### children
93
- - **Type**: `React.ReactNode`
94
- - **Required**: No
95
- - **Description**: No description available
96
-
97
- ## Examples
98
-
99
- ```tsx
100
- // Legal disclaimer
101
- <Small>Terms and conditions apply. See details for more information.</Small>
102
- // Timestamp or metadata
103
- <Small color="muted">Last updated 2 minutes ago</Small>
104
- // Copyright notice
105
- <Small className="text-center">
106
- © 2024 Neynar. All rights reserved.
107
- </Small>
108
- // Form help text
109
- <Small color="muted">Password must be at least 8 characters long.</Small>
110
- ```
package/.llm/span.llm.md DELETED
@@ -1,118 +0,0 @@
1
- # Span
2
-
3
- **Type**: component
4
-
5
- Span - Inline text component for text fragments and styling Generic inline element for styling text fragments within other content. Supports all typography variants while maintaining inline display behavior.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { Span } from '@neynar/ui';
11
-
12
- <Span
13
- variant={value}
14
- color={value}
15
- align={value}
16
- transform={value}
17
- weight={value}
18
- htmlFor="value"
19
- asChild={true}
20
- italic={true}
21
- underline={true}
22
- strikethrough={true}
23
- truncate={true}
24
- srOnly={true}
25
- className="value"
26
- >
27
- {/* Your content here */}
28
- </Span>
29
- ```
30
-
31
- ## Component Props
32
-
33
- ### variant
34
- - **Type**: `TypographyVariant`
35
- - **Required**: No
36
- - **Description**: No description available
37
-
38
- ### color
39
- - **Type**: `TypographyColor`
40
- - **Required**: No
41
- - **Description**: No description available
42
-
43
- ### align
44
- - **Type**: `"left" | "center" | "right" | "justify"`
45
- - **Required**: No
46
- - **Description**: No description available
47
-
48
- ### transform
49
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
50
- - **Required**: No
51
- - **Description**: No description available
52
-
53
- ### weight
54
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
55
- - **Required**: No
56
- - **Description**: No description available
57
-
58
- ### htmlFor
59
- - **Type**: `string`
60
- - **Required**: No
61
- - **Description**: No description available
62
-
63
- ### asChild
64
- - **Type**: `boolean`
65
- - **Required**: No
66
- - **Description**: No description available
67
-
68
- ### italic
69
- - **Type**: `boolean`
70
- - **Required**: No
71
- - **Description**: No description available
72
-
73
- ### underline
74
- - **Type**: `boolean`
75
- - **Required**: No
76
- - **Description**: No description available
77
-
78
- ### strikethrough
79
- - **Type**: `boolean`
80
- - **Required**: No
81
- - **Description**: No description available
82
-
83
- ### truncate
84
- - **Type**: `boolean`
85
- - **Required**: No
86
- - **Description**: No description available
87
-
88
- ### srOnly
89
- - **Type**: `boolean`
90
- - **Required**: No
91
- - **Description**: No description available
92
-
93
- ### className
94
- - **Type**: `string`
95
- - **Required**: No
96
- - **Description**: No description available
97
-
98
- ### children
99
- - **Type**: `React.ReactNode`
100
- - **Required**: No
101
- - **Description**: No description available
102
-
103
- ## Examples
104
-
105
- ```tsx
106
- // Inline text styling
107
- <p>
108
- Regular text with <Span color="accent" weight="semibold">highlighted</Span> content
109
- </p>
110
- // Small inline details
111
- <Span variant="details" color="muted">
112
- Updated 5 minutes ago
113
- </Span>
114
- // Inline code reference
115
- <Span variant="code" className="bg-muted px-1 rounded">
116
- onClick
117
- </Span>
118
- ```
@@ -1,110 +0,0 @@
1
- # Strong
2
-
3
- **Type**: component
4
-
5
- Strong - Emphasized text component for important content Semantic strong element for text that needs strong emphasis or importance. Uses "bodyEmphasized" variant with strong semantic meaning.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { Strong } from '@neynar/ui';
11
-
12
- <Strong
13
- color={value}
14
- align={value}
15
- transform={value}
16
- weight={value}
17
- htmlFor="value"
18
- asChild={true}
19
- italic={true}
20
- underline={true}
21
- strikethrough={true}
22
- truncate={true}
23
- srOnly={true}
24
- className="value"
25
- >
26
- {/* Your content here */}
27
- </Strong>
28
- ```
29
-
30
- ## Component Props
31
-
32
- ### color
33
- - **Type**: `TypographyColor`
34
- - **Required**: No
35
- - **Description**: No description available
36
-
37
- ### align
38
- - **Type**: `"left" | "center" | "right" | "justify"`
39
- - **Required**: No
40
- - **Description**: No description available
41
-
42
- ### transform
43
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
44
- - **Required**: No
45
- - **Description**: No description available
46
-
47
- ### weight
48
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
49
- - **Required**: No
50
- - **Description**: No description available
51
-
52
- ### htmlFor
53
- - **Type**: `string`
54
- - **Required**: No
55
- - **Description**: No description available
56
-
57
- ### asChild
58
- - **Type**: `boolean`
59
- - **Required**: No
60
- - **Description**: No description available
61
-
62
- ### italic
63
- - **Type**: `boolean`
64
- - **Required**: No
65
- - **Description**: No description available
66
-
67
- ### underline
68
- - **Type**: `boolean`
69
- - **Required**: No
70
- - **Description**: No description available
71
-
72
- ### strikethrough
73
- - **Type**: `boolean`
74
- - **Required**: No
75
- - **Description**: No description available
76
-
77
- ### truncate
78
- - **Type**: `boolean`
79
- - **Required**: No
80
- - **Description**: No description available
81
-
82
- ### srOnly
83
- - **Type**: `boolean`
84
- - **Required**: No
85
- - **Description**: No description available
86
-
87
- ### className
88
- - **Type**: `string`
89
- - **Required**: No
90
- - **Description**: No description available
91
-
92
- ### children
93
- - **Type**: `React.ReactNode`
94
- - **Required**: No
95
- - **Description**: No description available
96
-
97
- ## Examples
98
-
99
- ```tsx
100
- // Important information
101
- <Strong>Important: This action cannot be undone.</Strong>
102
- // Critical warning
103
- <Strong color="destructive">Error: Invalid credentials provided.</Strong>
104
- // In body text
105
- <p>
106
- Make sure to <Strong>save your changes</Strong> before leaving the page.
107
- </p>
108
- // Success message
109
- <Strong color="success">Account created successfully!</Strong>
110
- ```
package/.llm/toast.llm.md DELETED
@@ -1,32 +0,0 @@
1
- # toast
2
-
3
- **Type**: function
4
-
5
- toast function
6
-
7
- ## API Surface
8
-
9
- ```typescript
10
- import { toast } from '@neynar/ui';
11
-
12
- export const toast: ((message: titleT, data?: ExternalToast) => string | number) & {
13
- success: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
14
- info: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
15
- warning: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
16
- error: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
17
- custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
18
- message: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
19
- promise: <ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) => (string & {
20
- unwrap: () => Promise<ToastData>;
21
- }) | (number & {
22
- unwrap: () => Promise<ToastData>;
23
- }) | {
24
- unwrap: () => Promise<ToastData>;
25
- };
26
- dismiss: (id?: number | string) => string | number;
27
- loading: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
28
- } & {
29
- getHistory: () => (ToastT | ToastToDismiss)[];
30
- getToasts: () => (ToastT | ToastToDismiss)[];
31
- }
32
- ```