@noemaru1011/ui 1.0.1 → 1.0.2
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/layouts/Cluster/Cluster.d.ts +6 -1
- package/dist/components/layouts/Grid/Grid.d.ts +9 -0
- package/dist/components/layouts/index.d.ts +1 -0
- package/dist/i18n/resources.d.ts +527 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6802 -7677
- package/dist/style.css +1 -1
- package/llms-full.txt +507 -0
- package/llms.txt +56 -0
- package/package.json +32 -30
package/llms-full.txt
ADDED
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
# my-ui-catalog — Full AI Context
|
|
2
|
+
|
|
3
|
+
## 1. Overview
|
|
4
|
+
|
|
5
|
+
`@noemaru1011/ui` is a reusable UI component library built with React and TypeScript.
|
|
6
|
+
|
|
7
|
+
It provides components for application interfaces, layout composition, common interactions, and low-level UI primitives.
|
|
8
|
+
|
|
9
|
+
Repository:
|
|
10
|
+
|
|
11
|
+
- https://github.com/noemaru1011/my-ui-catalog
|
|
12
|
+
|
|
13
|
+
Storybook:
|
|
14
|
+
|
|
15
|
+
- https://noemaru1011.github.io/my-ui-catalog/
|
|
16
|
+
|
|
17
|
+
npm package:
|
|
18
|
+
|
|
19
|
+
- `@noemaru1011/ui`
|
|
20
|
+
|
|
21
|
+
## 2. Technology Stack
|
|
22
|
+
|
|
23
|
+
The project uses the following technologies:
|
|
24
|
+
|
|
25
|
+
- React 19
|
|
26
|
+
- TypeScript
|
|
27
|
+
- Vite
|
|
28
|
+
- Tailwind CSS 4
|
|
29
|
+
- Base UI
|
|
30
|
+
- class-variance-authority
|
|
31
|
+
- i18next
|
|
32
|
+
- react-i18next
|
|
33
|
+
- Storybook
|
|
34
|
+
|
|
35
|
+
Use the package's published peer dependency requirements as the source of truth for compatibility.
|
|
36
|
+
|
|
37
|
+
## 3. Installation
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install @noemaru1011/ui
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Import the stylesheet in the application entry point:
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
import '@noemaru1011/ui/style.css';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The stylesheet provides the library's Tailwind CSS output, theme variables, and component styles.
|
|
50
|
+
|
|
51
|
+
## 4. Public API
|
|
52
|
+
|
|
53
|
+
The package entry point is `src/index.ts`.
|
|
54
|
+
|
|
55
|
+
### 4.1 Elements
|
|
56
|
+
|
|
57
|
+
The Elements collection provides higher-level, reusable interface components.
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
import {
|
|
61
|
+
Accordion,
|
|
62
|
+
Blockquote,
|
|
63
|
+
Checkbox,
|
|
64
|
+
Combobox,
|
|
65
|
+
ComboboxMultiple,
|
|
66
|
+
DatePicker,
|
|
67
|
+
DateRange,
|
|
68
|
+
DescriptionList,
|
|
69
|
+
Disclosure,
|
|
70
|
+
FileUpload,
|
|
71
|
+
FileUploadButton,
|
|
72
|
+
HamburgerMenu,
|
|
73
|
+
Heading,
|
|
74
|
+
Image,
|
|
75
|
+
Input,
|
|
76
|
+
PasswordInput,
|
|
77
|
+
Link,
|
|
78
|
+
List,
|
|
79
|
+
Loading,
|
|
80
|
+
Radio,
|
|
81
|
+
LanguageSelect,
|
|
82
|
+
Select,
|
|
83
|
+
Switch,
|
|
84
|
+
ThemeSwitch,
|
|
85
|
+
Text,
|
|
86
|
+
Textarea,
|
|
87
|
+
} from '@noemaru1011/ui';
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Available components:
|
|
91
|
+
|
|
92
|
+
- Accordion
|
|
93
|
+
- Blockquote
|
|
94
|
+
- Checkbox
|
|
95
|
+
- Combobox
|
|
96
|
+
- ComboboxMultiple
|
|
97
|
+
- DatePicker
|
|
98
|
+
- DateRange
|
|
99
|
+
- DescriptionList
|
|
100
|
+
- Disclosure
|
|
101
|
+
- FileUpload
|
|
102
|
+
- FileUploadButton
|
|
103
|
+
- HamburgerMenu
|
|
104
|
+
- Heading
|
|
105
|
+
- Image
|
|
106
|
+
- Input
|
|
107
|
+
- PasswordInput
|
|
108
|
+
- Link
|
|
109
|
+
- List
|
|
110
|
+
- Loading
|
|
111
|
+
- Radio
|
|
112
|
+
- LanguageSelect
|
|
113
|
+
- Select
|
|
114
|
+
- Switch
|
|
115
|
+
- ThemeSwitch
|
|
116
|
+
- Text
|
|
117
|
+
- Textarea
|
|
118
|
+
|
|
119
|
+
### 4.2 Layouts
|
|
120
|
+
|
|
121
|
+
The Layouts collection provides components for composing page and application structures.
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
import {
|
|
125
|
+
AppLayout,
|
|
126
|
+
Center,
|
|
127
|
+
Cluster,
|
|
128
|
+
Container,
|
|
129
|
+
Forbidden,
|
|
130
|
+
InternalServerError,
|
|
131
|
+
NotFound,
|
|
132
|
+
Grid,
|
|
133
|
+
Stack,
|
|
134
|
+
} from '@noemaru1011/ui';
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Available components:
|
|
138
|
+
|
|
139
|
+
- AppLayout
|
|
140
|
+
- Center
|
|
141
|
+
- Cluster
|
|
142
|
+
- Container
|
|
143
|
+
- Forbidden
|
|
144
|
+
- InternalServerError
|
|
145
|
+
- NotFound
|
|
146
|
+
- Grid
|
|
147
|
+
- Stack
|
|
148
|
+
|
|
149
|
+
### 4.3 UI Components
|
|
150
|
+
|
|
151
|
+
The package also exports commonly used UI components directly.
|
|
152
|
+
|
|
153
|
+
```tsx
|
|
154
|
+
import {
|
|
155
|
+
Alert,
|
|
156
|
+
AlertDialog,
|
|
157
|
+
Badge,
|
|
158
|
+
Breadcrumb,
|
|
159
|
+
Button,
|
|
160
|
+
Card,
|
|
161
|
+
Carousel,
|
|
162
|
+
Dialog,
|
|
163
|
+
Drawer,
|
|
164
|
+
Field,
|
|
165
|
+
InputGroup,
|
|
166
|
+
Label,
|
|
167
|
+
Pagination,
|
|
168
|
+
Popover,
|
|
169
|
+
RadioGroup,
|
|
170
|
+
Separator,
|
|
171
|
+
Spinner,
|
|
172
|
+
Table,
|
|
173
|
+
Tabs,
|
|
174
|
+
Toast,
|
|
175
|
+
Tooltip,
|
|
176
|
+
} from '@noemaru1011/ui';
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Available components:
|
|
180
|
+
|
|
181
|
+
- Alert
|
|
182
|
+
- AlertDialog
|
|
183
|
+
- Badge
|
|
184
|
+
- Breadcrumb
|
|
185
|
+
- Button
|
|
186
|
+
- Card
|
|
187
|
+
- Carousel
|
|
188
|
+
- Dialog
|
|
189
|
+
- Drawer
|
|
190
|
+
- Field
|
|
191
|
+
- InputGroup
|
|
192
|
+
- Label
|
|
193
|
+
- Pagination
|
|
194
|
+
- Popover
|
|
195
|
+
- RadioGroup
|
|
196
|
+
- Separator
|
|
197
|
+
- Spinner
|
|
198
|
+
- Table
|
|
199
|
+
- Tabs
|
|
200
|
+
- Toast
|
|
201
|
+
- Tooltip
|
|
202
|
+
|
|
203
|
+
### 4.4 Primitive Components
|
|
204
|
+
|
|
205
|
+
Low-level UI primitives are available through the `primitives` namespace.
|
|
206
|
+
|
|
207
|
+
```tsx
|
|
208
|
+
import { primitives } from '@noemaru1011/ui';
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
The namespace exposes the components exported from `src/components/ui`.
|
|
212
|
+
|
|
213
|
+
These include:
|
|
214
|
+
|
|
215
|
+
- accordion
|
|
216
|
+
- alert
|
|
217
|
+
- alert-dialog
|
|
218
|
+
- badge
|
|
219
|
+
- breadcrumb
|
|
220
|
+
- button
|
|
221
|
+
- calendar
|
|
222
|
+
- card
|
|
223
|
+
- carousel
|
|
224
|
+
- checkbox
|
|
225
|
+
- combobox
|
|
226
|
+
- dialog
|
|
227
|
+
- drawer
|
|
228
|
+
- field
|
|
229
|
+
- input-group
|
|
230
|
+
- input
|
|
231
|
+
- label
|
|
232
|
+
- pagination
|
|
233
|
+
- popover
|
|
234
|
+
- radio-group
|
|
235
|
+
- select
|
|
236
|
+
- separator
|
|
237
|
+
- spinner
|
|
238
|
+
- switch
|
|
239
|
+
- table
|
|
240
|
+
- tabs
|
|
241
|
+
- textarea
|
|
242
|
+
- toast
|
|
243
|
+
- tooltip
|
|
244
|
+
|
|
245
|
+
Use the higher-level Elements and Layouts exports when they satisfy the use case. Use primitives when lower-level control is needed.
|
|
246
|
+
|
|
247
|
+
### 4.5 Other Exports
|
|
248
|
+
|
|
249
|
+
The package entry point also exports:
|
|
250
|
+
|
|
251
|
+
- Theme Provider
|
|
252
|
+
- i18n configuration
|
|
253
|
+
- data-table-features
|
|
254
|
+
- utility functions
|
|
255
|
+
|
|
256
|
+
Refer to `src/index.ts` and the corresponding source files for exact export names and signatures.
|
|
257
|
+
|
|
258
|
+
## 5. Button
|
|
259
|
+
|
|
260
|
+
The Button component is based on Base UI and uses class-variance-authority for variant and size styling.
|
|
261
|
+
|
|
262
|
+
### Variants
|
|
263
|
+
|
|
264
|
+
- `default`
|
|
265
|
+
- `outline`
|
|
266
|
+
- `secondary`
|
|
267
|
+
- `ghost`
|
|
268
|
+
- `destructive`
|
|
269
|
+
- `link`
|
|
270
|
+
|
|
271
|
+
### Sizes
|
|
272
|
+
|
|
273
|
+
- `default`
|
|
274
|
+
- `xs`
|
|
275
|
+
- `sm`
|
|
276
|
+
- `lg`
|
|
277
|
+
- `icon`
|
|
278
|
+
- `icon-xs`
|
|
279
|
+
- `icon-sm`
|
|
280
|
+
- `icon-lg`
|
|
281
|
+
|
|
282
|
+
### Loading State
|
|
283
|
+
|
|
284
|
+
The Button supports a `loading` property.
|
|
285
|
+
|
|
286
|
+
When loading is enabled:
|
|
287
|
+
|
|
288
|
+
- The button is disabled.
|
|
289
|
+
- `aria-busy` is set.
|
|
290
|
+
- A Spinner is displayed.
|
|
291
|
+
|
|
292
|
+
Example:
|
|
293
|
+
|
|
294
|
+
```tsx
|
|
295
|
+
import { Button } from '@noemaru1011/ui';
|
|
296
|
+
|
|
297
|
+
export function SaveButton() {
|
|
298
|
+
return (
|
|
299
|
+
<Button loading>
|
|
300
|
+
Saving...
|
|
301
|
+
</Button>
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
The exact TypeScript interface should be checked in the published type definitions.
|
|
307
|
+
|
|
308
|
+
## 6. Styling and Theme
|
|
309
|
+
|
|
310
|
+
The library stylesheet is defined in:
|
|
311
|
+
|
|
312
|
+
- `src/index.css`
|
|
313
|
+
|
|
314
|
+
The project uses Tailwind CSS 4 and semantic CSS variables.
|
|
315
|
+
|
|
316
|
+
### Theme
|
|
317
|
+
|
|
318
|
+
The stylesheet defines:
|
|
319
|
+
|
|
320
|
+
- Light theme variables on `:root`
|
|
321
|
+
- Dark theme variables on `.dark`
|
|
322
|
+
|
|
323
|
+
The library supports semantic design tokens for colors and UI styling.
|
|
324
|
+
|
|
325
|
+
Use the provided theme variables rather than hardcoding colors when extending the design system.
|
|
326
|
+
|
|
327
|
+
### Typography
|
|
328
|
+
|
|
329
|
+
The stylesheet includes Noto Sans JP Variable as a Japanese font resource.
|
|
330
|
+
|
|
331
|
+
### Border Radius
|
|
332
|
+
|
|
333
|
+
The base radius is:
|
|
334
|
+
|
|
335
|
+
```css
|
|
336
|
+
--radius: 0.625rem;
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
This corresponds to 10px when the root font size is 16px.
|
|
340
|
+
|
|
341
|
+
The design system generally uses the standard radius scale. Documented exceptions include:
|
|
342
|
+
|
|
343
|
+
- `rounded-full`
|
|
344
|
+
- `rounded-none`
|
|
345
|
+
- `rounded-[inherit]`
|
|
346
|
+
- `rounded-[2px]`
|
|
347
|
+
|
|
348
|
+
### Z-index
|
|
349
|
+
|
|
350
|
+
The stylesheet defines semantic z-index utility classes:
|
|
351
|
+
|
|
352
|
+
- `z-base`
|
|
353
|
+
- `z-local`
|
|
354
|
+
- `z-sticky`
|
|
355
|
+
- `z-popover`
|
|
356
|
+
- `z-overlay`
|
|
357
|
+
- `z-modal`
|
|
358
|
+
- `z-toast`
|
|
359
|
+
- `z-tooltip`
|
|
360
|
+
|
|
361
|
+
Prefer these semantic layers when implementing overlays, dialogs, popovers, notifications, and tooltips.
|
|
362
|
+
|
|
363
|
+
## 7. Internationalization (i18n)
|
|
364
|
+
|
|
365
|
+
The i18n configuration is defined in:
|
|
366
|
+
|
|
367
|
+
- `src/i18n/index.ts`
|
|
368
|
+
|
|
369
|
+
The library uses:
|
|
370
|
+
|
|
371
|
+
- i18next
|
|
372
|
+
- i18next-browser-languagedetector
|
|
373
|
+
- react-i18next
|
|
374
|
+
|
|
375
|
+
Configuration:
|
|
376
|
+
|
|
377
|
+
- Default language: Japanese (`ja`)
|
|
378
|
+
- Fallback language: Japanese (`ja`)
|
|
379
|
+
- Default namespace: `common`
|
|
380
|
+
- Namespaces:
|
|
381
|
+
- `common`
|
|
382
|
+
- `error`
|
|
383
|
+
- `example`
|
|
384
|
+
|
|
385
|
+
Language detection:
|
|
386
|
+
|
|
387
|
+
- localStorage
|
|
388
|
+
- Browser navigator
|
|
389
|
+
|
|
390
|
+
Detected language settings are cached in localStorage.
|
|
391
|
+
|
|
392
|
+
Refer to the i18n source and exported API for the exact initialization and integration procedure.
|
|
393
|
+
|
|
394
|
+
## 8. Basic Usage
|
|
395
|
+
|
|
396
|
+
```tsx
|
|
397
|
+
import '@noemaru1011/ui/style.css';
|
|
398
|
+
|
|
399
|
+
import {
|
|
400
|
+
Button,
|
|
401
|
+
Card,
|
|
402
|
+
Heading,
|
|
403
|
+
Stack,
|
|
404
|
+
Text,
|
|
405
|
+
} from '@noemaru1011/ui';
|
|
406
|
+
|
|
407
|
+
export function SamplePage() {
|
|
408
|
+
return (
|
|
409
|
+
<Stack>
|
|
410
|
+
<Card>
|
|
411
|
+
<Heading>Welcome</Heading>
|
|
412
|
+
<Text>This is a sample page.</Text>
|
|
413
|
+
<Button>Continue</Button>
|
|
414
|
+
</Card>
|
|
415
|
+
</Stack>
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
This example illustrates the import pattern. Check the published type definitions for the exact props supported by each component.
|
|
421
|
+
|
|
422
|
+
## 9. Build and Source Structure
|
|
423
|
+
|
|
424
|
+
The library build configuration is:
|
|
425
|
+
|
|
426
|
+
- `vite.lib.config.ts`
|
|
427
|
+
|
|
428
|
+
The build entry point is:
|
|
429
|
+
|
|
430
|
+
- `src/index.ts`
|
|
431
|
+
|
|
432
|
+
The build output directory is:
|
|
433
|
+
|
|
434
|
+
- `dist`
|
|
435
|
+
|
|
436
|
+
The library build also generates TypeScript declaration files.
|
|
437
|
+
|
|
438
|
+
Important source locations:
|
|
439
|
+
|
|
440
|
+
| Path | Purpose |
|
|
441
|
+
|---|---|
|
|
442
|
+
| `src/index.ts` | Public package entry point |
|
|
443
|
+
| `src/components/elements/` | Higher-level reusable components |
|
|
444
|
+
| `src/components/layouts/` | Layout components |
|
|
445
|
+
| `src/components/ui/` | Low-level UI primitives |
|
|
446
|
+
| `src/components/providers/theme-provider/` | Theme provider |
|
|
447
|
+
| `src/i18n/` | Internationalization |
|
|
448
|
+
| `src/index.css` | Global styles and design tokens |
|
|
449
|
+
| `src/stories/` | Storybook documentation and examples |
|
|
450
|
+
| `.storybook/` | Storybook configuration |
|
|
451
|
+
|
|
452
|
+
## 10. Storybook
|
|
453
|
+
|
|
454
|
+
Storybook is used to document and demonstrate components.
|
|
455
|
+
|
|
456
|
+
Public Storybook:
|
|
457
|
+
|
|
458
|
+
https://noemaru1011.github.io/my-ui-catalog/
|
|
459
|
+
|
|
460
|
+
The project configures Storybook to load MDX and component stories from `src`.
|
|
461
|
+
|
|
462
|
+
Use Storybook to inspect component appearance and examples. For exact TypeScript APIs, use the source code or published declaration files.
|
|
463
|
+
|
|
464
|
+
## 11. Guidelines for AI Agents
|
|
465
|
+
|
|
466
|
+
When generating code using this library, follow these rules:
|
|
467
|
+
|
|
468
|
+
1. Import components from `@noemaru1011/ui` unless there is a clear reason to use another entry point.
|
|
469
|
+
2. Import `@noemaru1011/ui/style.css` in the application.
|
|
470
|
+
3. Prefer Elements and Layouts for common application UI.
|
|
471
|
+
4. Use `primitives` for low-level UI composition.
|
|
472
|
+
5. Do not invent component names, props, variants, or event handlers.
|
|
473
|
+
6. Verify exact component interfaces against the published TypeScript declaration files.
|
|
474
|
+
7. Do not assume every primitive has the same API as its higher-level counterpart.
|
|
475
|
+
8. Reuse the library's theme tokens and semantic styles.
|
|
476
|
+
9. Prefer the existing i18n configuration for translated text.
|
|
477
|
+
10. Use Storybook as a visual reference, not as a replacement for TypeScript API definitions.
|
|
478
|
+
|
|
479
|
+
## 12. Source of Truth
|
|
480
|
+
|
|
481
|
+
When information conflicts, use this priority order:
|
|
482
|
+
|
|
483
|
+
1. Published TypeScript declaration files
|
|
484
|
+
2. Current source code
|
|
485
|
+
3. Package metadata
|
|
486
|
+
4. Storybook examples
|
|
487
|
+
5. README and other documentation
|
|
488
|
+
6. This AI context document
|
|
489
|
+
|
|
490
|
+
This document is intended to help AI systems understand the package structure and usage. It is not a replacement for the actual API definitions.
|
|
491
|
+
|
|
492
|
+
## 13. Maintenance
|
|
493
|
+
|
|
494
|
+
When the library changes, update this document alongside the relevant source changes.
|
|
495
|
+
|
|
496
|
+
In particular, review:
|
|
497
|
+
|
|
498
|
+
- Public exports
|
|
499
|
+
- Component names
|
|
500
|
+
- Component props and types
|
|
501
|
+
- Dependencies and peer dependencies
|
|
502
|
+
- Styling and theme tokens
|
|
503
|
+
- i18n configuration
|
|
504
|
+
- Installation instructions
|
|
505
|
+
- Storybook examples
|
|
506
|
+
|
|
507
|
+
Keep `llms.txt` concise and use `llms-full.txt` for detailed documentation.
|
package/llms.txt
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# my-ui-catalog
|
|
2
|
+
|
|
3
|
+
> React 19 / TypeScript 向けの再利用可能な UI コンポーネントライブラリです。Elements、Layouts、UI Primitives、Theme Provider などを提供します。
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
- [Full AI Context](./llms-full.txt): AI エージェント向けの詳細な利用ガイド
|
|
8
|
+
- [README](./README.md): インストール・基本的な利用方法
|
|
9
|
+
- [Storybook](https://noemaru1011.github.io/my-ui-catalog/): コンポーネントの表示・動作確認
|
|
10
|
+
- [package.json](./package.json): パッケージ情報・依存関係・公開設定
|
|
11
|
+
- [Source Entry](./src/index.ts): 公開 API のエントリーポイント
|
|
12
|
+
- [Styles](./src/index.css): Tailwind CSS・テーマ・デザイントークン
|
|
13
|
+
|
|
14
|
+
## Package
|
|
15
|
+
|
|
16
|
+
- npm package: `@noemaru1011/ui`
|
|
17
|
+
- Repository: https://github.com/noemaru1011/my-ui-catalog
|
|
18
|
+
|
|
19
|
+
## Main Features
|
|
20
|
+
|
|
21
|
+
- React 19 対応の UI コンポーネント
|
|
22
|
+
- TypeScript による型定義
|
|
23
|
+
- Elements: 汎用的な UI コンポーネント
|
|
24
|
+
- Layouts: レイアウト構築用コンポーネント
|
|
25
|
+
- UI Primitives: 基本 UI コンポーネント
|
|
26
|
+
- Theme Provider: ライト・ダークテーマ対応
|
|
27
|
+
- i18n: 日本語をデフォルトとした多言語対応
|
|
28
|
+
|
|
29
|
+
## Instructions for AI Agents
|
|
30
|
+
|
|
31
|
+
1. コンポーネントの利用方法を回答する前に、必要に応じて `llms-full.txt` を参照してください。
|
|
32
|
+
2. 実際の Props や型定義は、公開されている TypeScript 定義またはソースコードを正としてください。
|
|
33
|
+
3. README や Storybook に記載のない Props・挙動を推測で作らないでください。
|
|
34
|
+
4. 基本的には `@noemaru1011/ui` からコンポーネントを import してください。
|
|
35
|
+
5. スタイルを利用する場合は `@noemaru1011/ui/style.css` を読み込んでください。
|
|
36
|
+
6. `primitives` 名前空間は低レベルの UI コンポーネントを利用する場合に使用してください。
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import '@noemaru1011/ui/style.css';
|
|
42
|
+
|
|
43
|
+
import { Button, Card } from '@noemaru1011/ui';
|
|
44
|
+
|
|
45
|
+
export function Example() {
|
|
46
|
+
return (
|
|
47
|
+
<Card>
|
|
48
|
+
<Button>Click me</Button>
|
|
49
|
+
</Card>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Detailed Context
|
|
55
|
+
|
|
56
|
+
See [llms-full.txt](./llms-full.txt) for the full component catalog, exports, styling conventions, theme configuration, and usage guidance.
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noemaru1011/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.22.2"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
-
"
|
|
11
|
+
"llms.txt",
|
|
12
|
+
"llms-full.txt"
|
|
12
13
|
],
|
|
13
14
|
"main": "./dist/index.js",
|
|
14
15
|
"module": "./dist/index.js",
|
|
@@ -25,7 +26,9 @@
|
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
28
|
"react": "^19.0.8",
|
|
28
|
-
"react-dom": "^19.0.0"
|
|
29
|
+
"react-dom": "^19.0.0",
|
|
30
|
+
"i18next": "^27.0.1",
|
|
31
|
+
"react-i18next": "^18.0.0"
|
|
29
32
|
},
|
|
30
33
|
"repository": {
|
|
31
34
|
"type": "git",
|
|
@@ -53,61 +56,60 @@
|
|
|
53
56
|
"dependencies": {
|
|
54
57
|
"@base-ui/react": "^1.8.0",
|
|
55
58
|
"@fontsource-variable/noto-sans-jp": "^5.3.1",
|
|
56
|
-
"@hookform/resolvers": "^7.0.3",
|
|
57
|
-
"@tailwindcss/vite": "^4.3.5",
|
|
58
|
-
"@tanstack/react-query": "^5.107.1",
|
|
59
59
|
"@tanstack/react-table": "^9.3.1",
|
|
60
60
|
"class-variance-authority": "^0.7.1",
|
|
61
61
|
"cn": "^0.5.2",
|
|
62
62
|
"date-fns": "^4.4.0",
|
|
63
63
|
"embla-carousel-react": "^8.6.0",
|
|
64
|
-
"
|
|
65
|
-
"i18next-browser-languagedetector": "^8.3.0",
|
|
66
|
-
"lucide-react": "^1.49.0",
|
|
67
|
-
"react": "^19.0.8",
|
|
64
|
+
"lucide-react": "^1.73.0",
|
|
68
65
|
"react-day-picker": "^10.0.2",
|
|
69
|
-
"react-dom": "^19.0.0",
|
|
70
|
-
"react-hook-form": "^7.89.0",
|
|
71
|
-
"react-i18next": "^18.0.0",
|
|
72
66
|
"react-router-dom": "^7.18.4",
|
|
73
|
-
"
|
|
74
|
-
"tailwindcss": "^4.3.3",
|
|
75
|
-
"tw-animate-css": "^1.4.0",
|
|
76
|
-
"zod": "^4.6.5"
|
|
67
|
+
"tw-animate-css": "^1.4.0"
|
|
77
68
|
},
|
|
78
69
|
"devDependencies": {
|
|
79
|
-
"@
|
|
70
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
71
|
+
"tailwindcss": "^4.3.3",
|
|
72
|
+
"@biomejs/biome": "^2.6.8",
|
|
73
|
+
"@tanstack/react-query": "^5.107.1",
|
|
80
74
|
"@chromatic-com/storybook": "5.6.0",
|
|
81
|
-
"@
|
|
82
|
-
"@storybook/addon-
|
|
83
|
-
"@storybook/addon-
|
|
75
|
+
"@hookform/resolvers": "^7.0.7",
|
|
76
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
77
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
78
|
+
"remark-gfm": "^4.0.1",
|
|
79
|
+
"@storybook/addon-mcp": "^10.6.7",
|
|
84
80
|
"@storybook/addon-vitest": "^10.6.6",
|
|
85
|
-
"@storybook/react-vite": "^10.6.
|
|
81
|
+
"@storybook/react-vite": "^10.6.7",
|
|
86
82
|
"@testing-library/jest-dom": "^7.0.1",
|
|
87
83
|
"@testing-library/react": "^16.3.3",
|
|
88
|
-
"@testing-library/user-event": "^14.6.
|
|
84
|
+
"@testing-library/user-event": "^14.6.12",
|
|
89
85
|
"@types/node": "^25.9.9",
|
|
90
86
|
"@types/react": "^19.2.18",
|
|
91
87
|
"@types/react-dom": "^19.2.7",
|
|
92
88
|
"@typescript/typescript6": "^6.0.2",
|
|
93
|
-
"@vitejs/plugin-react": "^6.
|
|
89
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
94
90
|
"@vitest/browser": "^5.0.5",
|
|
95
91
|
"@vitest/browser-playwright": "^5.0.5",
|
|
96
92
|
"@vitest/coverage-v8": "^5.0.5",
|
|
97
93
|
"@vitest/ui": "^5.0.5",
|
|
98
|
-
"chromatic": "^18.14.
|
|
99
|
-
"i18next
|
|
100
|
-
"
|
|
101
|
-
"
|
|
94
|
+
"chromatic": "^18.14.4",
|
|
95
|
+
"i18next": "^27.1.3",
|
|
96
|
+
"i18next-browser-languagedetector": "^8.3.0",
|
|
97
|
+
"i18next-cli": "^1.88.1",
|
|
98
|
+
"jsdom": "^31.0.1",
|
|
99
|
+
"playwright": "^1.65.1",
|
|
100
|
+
"react-hook-form": "^7.92.0",
|
|
101
|
+
"react-i18next": "^18.0.2",
|
|
102
102
|
"shadcn": "^4.23.0",
|
|
103
103
|
"storybook": "^10.6.6",
|
|
104
104
|
"typescript": "~7.0.2",
|
|
105
105
|
"vite": "^8.3.6",
|
|
106
106
|
"vite-plugin-dts": "^5.1.2",
|
|
107
|
-
"vitest": "^5.0.5"
|
|
107
|
+
"vitest": "^5.0.5",
|
|
108
|
+
"zod": "^4.6.7"
|
|
108
109
|
},
|
|
109
110
|
"allowScripts": {
|
|
110
|
-
"esbuild@0.28.2": true
|
|
111
|
+
"esbuild@0.28.2": true,
|
|
112
|
+
"@swc/core@1.16.22": true
|
|
111
113
|
},
|
|
112
114
|
"overrides": {
|
|
113
115
|
"@joshwooding/vite-plugin-react-docgen-typescript": {
|