@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.
@@ -142,27 +142,6 @@
142
142
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
143
143
  --color-sidebar-border: var(--sidebar-border);
144
144
  --color-sidebar-ring: var(--sidebar-ring);
145
-
146
- /* Override Tailwind's default fontSize scale to match design system */
147
- --text-xs: 0.625rem; /* 10px - Microcopy */
148
- --text-sm: 0.8125rem; /* 13px - Details */
149
- --text-base: 0.9375rem; /* 15px - Body */
150
- --text-lg: 1.0625rem; /* 17px - Paragraph Lead, Blog Body */
151
- --text-xl: 1.25rem; /* 20px - Headings */
152
- --text-2xl: 1.375rem; /* 22px - Paragraph Lead, Blog Body */
153
- --text-3xl: 2.25rem; /* 36px - Headline */
154
- --text-4xl: 2.8125rem; /* 45px - Section Title */
155
- --text-5xl: 3.5rem; /* 56px - Page Title */
156
- --text-6xl: 4.5rem; /* 72px - Display Title */
157
- --text-7xl: 5.625rem; /* 90px - Hero Title */
158
- /* --text-8xl: 6.75rem; */
159
- /* --text-9xl: 8.25rem; */
160
-
161
- /* --leading-tight: 1.1; */
162
- --leading-snug: 1.1;
163
- --leading-normal: 1.2;
164
- --leading-relaxed: 1.4;
165
- --leading-loose: 1.5;
166
145
  }
167
146
 
168
147
  @layer base {
package/.llm/a.llm.md DELETED
@@ -1,131 +0,0 @@
1
- # A
2
-
3
- **Type**: component
4
-
5
- A - Anchor component for interactive text links Semantic anchor element for links with built-in hover states and accessibility features. Uses "body" variant with underline and smooth color transitions.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { A } from '@neynar/ui';
11
-
12
- <A
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
- href="value"
26
- className="value"
27
- >
28
- {/* Your content here */}
29
- </A>
30
- ```
31
-
32
- ## Component Props
33
-
34
- ### variant
35
- - **Type**: `TypographyVariant`
36
- - **Required**: No
37
- - **Description**: No description available
38
-
39
- ### color
40
- - **Type**: `TypographyColor`
41
- - **Required**: No
42
- - **Description**: No description available
43
-
44
- ### align
45
- - **Type**: `"left" | "center" | "right" | "justify"`
46
- - **Required**: No
47
- - **Description**: No description available
48
-
49
- ### transform
50
- - **Type**: `"uppercase" | "lowercase" | "capitalize"`
51
- - **Required**: No
52
- - **Description**: No description available
53
-
54
- ### weight
55
- - **Type**: `"normal" | "medium" | "semibold" | "bold"`
56
- - **Required**: No
57
- - **Description**: No description available
58
-
59
- ### htmlFor
60
- - **Type**: `string`
61
- - **Required**: No
62
- - **Description**: No description available
63
-
64
- ### asChild
65
- - **Type**: `boolean`
66
- - **Required**: No
67
- - **Description**: No description available
68
-
69
- ### italic
70
- - **Type**: `boolean`
71
- - **Required**: No
72
- - **Description**: No description available
73
-
74
- ### underline
75
- - **Type**: `boolean`
76
- - **Required**: No
77
- - **Description**: No description available
78
-
79
- ### strikethrough
80
- - **Type**: `boolean`
81
- - **Required**: No
82
- - **Description**: No description available
83
-
84
- ### truncate
85
- - **Type**: `boolean`
86
- - **Required**: No
87
- - **Description**: No description available
88
-
89
- ### srOnly
90
- - **Type**: `boolean`
91
- - **Required**: No
92
- - **Description**: No description available
93
-
94
- ### href
95
- - **Type**: `string`
96
- - **Required**: No
97
- - **Description**: No description available
98
-
99
- ### className
100
- - **Type**: `string`
101
- - **Required**: No
102
- - **Description**: No description available
103
-
104
- ### children
105
- - **Type**: `React.ReactNode`
106
- - **Required**: No
107
- - **Description**: No description available
108
-
109
- ## Examples
110
-
111
- ```tsx
112
- // External link
113
- <A href="https://neynar.com" target="_blank" rel="noopener noreferrer">
114
- Visit Neynar Website
115
- </A>
116
- // Internal navigation
117
- <A href="/dashboard" color="accent">
118
- Go to Dashboard
119
- </A>
120
- // Composition with Next.js Link
121
- <A asChild>
122
- <Link href="/about">
123
- Learn More About Us
124
- </Link>
125
- </A>
126
- // In paragraph text
127
- <P>
128
- For more information, <A href="/docs">check our documentation</A> or
129
- contact support.
130
- </P>
131
- ```
package/.llm/h1.llm.md DELETED
@@ -1,108 +0,0 @@
1
- # H1
2
-
3
- **Type**: component
4
-
5
- H1 - Primary page heading component The main heading for a page or major section. Uses the "displayTitle" variant with h1 semantic element. Should be used once per page for proper document outline and SEO.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H1 } from '@neynar/ui';
11
-
12
- <H1
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
- </H1>
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
- // Page title
101
- <H1>Welcome to Neynar Platform</H1>
102
- // With color variant
103
- <H1 color="muted">Draft: Article Title</H1>
104
- // With custom styling
105
- <H1 align="center" className="mb-8">
106
- Centered Page Heading
107
- </H1>
108
- ```
package/.llm/h2.llm.md DELETED
@@ -1,108 +0,0 @@
1
- # H2
2
-
3
- **Type**: component
4
-
5
- H2 - Secondary section heading component Section headings that divide page content into logical groups. Uses the "sectionTitle" variant with h2 semantic element. Essential for creating proper document hierarchy.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H2 } from '@neynar/ui';
11
-
12
- <H2
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
- </H2>
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
- // Section heading
101
- <H2>Getting Started</H2>
102
- // With accent color
103
- <H2 color="accent">Featured Content</H2>
104
- // With additional styling
105
- <H2 weight="bold" className="border-b pb-2">
106
- Section with Border
107
- </H2>
108
- ```
package/.llm/h3.llm.md DELETED
@@ -1,106 +0,0 @@
1
- # H3
2
-
3
- **Type**: component
4
-
5
- H3 - Tertiary subsection heading component Subsection headings for further content division. Uses the "headline" variant with h3 semantic element for consistent visual hierarchy.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H3 } from '@neynar/ui';
11
-
12
- <H3
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
- </H3>
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
- // Subsection heading
101
- <H3>Installation Guide</H3>
102
- // In a card or content block
103
- <H3 color="muted" className="mb-3">
104
- Optional Configuration
105
- </H3>
106
- ```
package/.llm/h4.llm.md DELETED
@@ -1,104 +0,0 @@
1
- # H4
2
-
3
- **Type**: component
4
-
5
- H4 - Minor heading component for detailed sections Minor headings for detailed content organization. Uses "subHeadline" variant with h4 semantic element for subtle but distinct hierarchy.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H4 } from '@neynar/ui';
11
-
12
- <H4
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
- </H4>
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
- // Minor section heading
101
- <H4>Configuration Options</H4>
102
- // In detailed documentation
103
- <H4 color="muted">Advanced Settings</H4>
104
- ```
package/.llm/h5.llm.md DELETED
@@ -1,105 +0,0 @@
1
- # H5
2
-
3
- **Type**: component
4
-
5
- H5 - Small heading component for micro-sections Small headings for very specific content divisions. Uses "eyebrow" variant with h5 semantic element.
6
-
7
- ## JSX Usage
8
-
9
- ```jsx
10
- import { H5 } from '@neynar/ui';
11
-
12
- <H5
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
- </H5>
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
- // Small section heading
101
- <H5>Error Codes</H5>
102
- // In lists or detailed breakdowns
103
- <H5 weight="semibold">Step 1: Setup</H5>
104
- ```
105
- /