laif-ds 0.2.44 → 0.2.45
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/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/agent-docs/components/Accordion.md +157 -0
- package/dist/agent-docs/components/Alert.md +95 -0
- package/dist/agent-docs/components/AlertDialog.md +126 -0
- package/dist/agent-docs/components/AppEditor.md +90 -0
- package/dist/agent-docs/components/AppForm.md +242 -0
- package/dist/agent-docs/components/AppMultipleSelectDropdown.md +38 -0
- package/dist/agent-docs/components/AppRadioGroup.md +223 -0
- package/dist/agent-docs/components/AppSelect.md +427 -0
- package/dist/agent-docs/components/AppSidebar.md +122 -0
- package/dist/agent-docs/components/AppStepper.md +77 -0
- package/dist/agent-docs/components/AspectRatio.md +87 -0
- package/dist/agent-docs/components/AsyncSelect.md +127 -0
- package/dist/agent-docs/components/AudioVisualizer.md +41 -0
- package/dist/agent-docs/components/Avatar.md +113 -0
- package/dist/agent-docs/components/Badge.md +118 -0
- package/dist/agent-docs/components/Breadcrumb.md +78 -0
- package/dist/agent-docs/components/Button.md +129 -0
- package/dist/agent-docs/components/Calendar.md +222 -0
- package/dist/agent-docs/components/Card.md +147 -0
- package/dist/agent-docs/components/Carousel.md +129 -0
- package/dist/agent-docs/components/Chart.md +75 -0
- package/dist/agent-docs/components/Chat.md +109 -0
- package/dist/agent-docs/components/ChatMessage.md +61 -0
- package/dist/agent-docs/components/Checkbox.md +135 -0
- package/dist/agent-docs/components/CircularProgress.md +49 -0
- package/dist/agent-docs/components/CodeHighlighter.md +31 -0
- package/dist/agent-docs/components/Collapsible.md +95 -0
- package/dist/agent-docs/components/Command.md +142 -0
- package/dist/agent-docs/components/Confirmer.md +175 -0
- package/dist/agent-docs/components/ContextMenu.md +191 -0
- package/dist/agent-docs/components/CopyButton.md +26 -0
- package/dist/agent-docs/components/DataCrossTable.md +94 -0
- package/dist/agent-docs/components/DataTable.md +254 -0
- package/dist/agent-docs/components/DatePicker.md +109 -0
- package/dist/agent-docs/components/Dialog.md +125 -0
- package/dist/agent-docs/components/Drawer.md +127 -0
- package/dist/agent-docs/components/DropdownMenu.md +57 -0
- package/dist/agent-docs/components/FilePreview.md +99 -0
- package/dist/agent-docs/components/FilePreviewer.md +139 -0
- package/dist/agent-docs/components/FileUploader.md +129 -0
- package/dist/agent-docs/components/Form.md +62 -0
- package/dist/agent-docs/components/FormComposer.md +137 -0
- package/dist/agent-docs/components/GanttChart.md +122 -0
- package/dist/agent-docs/components/HoverCard.md +37 -0
- package/dist/agent-docs/components/Icon.md +99 -0
- package/dist/agent-docs/components/Input.md +138 -0
- package/dist/agent-docs/components/InputOtp.md +40 -0
- package/dist/agent-docs/components/InputSelector.md +97 -0
- package/dist/agent-docs/components/InterruptPrompt.md +32 -0
- package/dist/agent-docs/components/Label.md +28 -0
- package/dist/agent-docs/components/MarkdownRenderer.md +36 -0
- package/dist/agent-docs/components/Menubar.md +164 -0
- package/dist/agent-docs/components/MessageInput.md +131 -0
- package/dist/agent-docs/components/MessageList.md +96 -0
- package/dist/agent-docs/components/MultipleSelector.md +146 -0
- package/dist/agent-docs/components/NavigationMenu.md +51 -0
- package/dist/agent-docs/components/Pagination.md +55 -0
- package/dist/agent-docs/components/Popover.md +103 -0
- package/dist/agent-docs/components/Progress.md +30 -0
- package/dist/agent-docs/components/PromptSuggestions.md +33 -0
- package/dist/agent-docs/components/RadioGroup.md +90 -0
- package/dist/agent-docs/components/Resizable.md +35 -0
- package/dist/agent-docs/components/ResizePrompt.md +13 -0
- package/dist/agent-docs/components/ScrollArea.md +49 -0
- package/dist/agent-docs/components/SecurePdfViewer.md +38 -0
- package/dist/agent-docs/components/Select.md +132 -0
- package/dist/agent-docs/components/Separator.md +32 -0
- package/dist/agent-docs/components/Sheet.md +40 -0
- package/dist/agent-docs/components/ShikiHighlighter.md +31 -0
- package/dist/agent-docs/components/Sidebar.md +85 -0
- package/dist/agent-docs/components/Skeleton.md +29 -0
- package/dist/agent-docs/components/Slider.md +58 -0
- package/dist/agent-docs/components/Sonner.md +21 -0
- package/dist/agent-docs/components/Spinner.md +139 -0
- package/dist/agent-docs/components/Stepper.md +67 -0
- package/dist/agent-docs/components/Switch.md +42 -0
- package/dist/agent-docs/components/Table.md +63 -0
- package/dist/agent-docs/components/TableSkeleton.md +46 -0
- package/dist/agent-docs/components/Tabs.md +86 -0
- package/dist/agent-docs/components/TextArea.md +52 -0
- package/dist/agent-docs/components/ThemeSwitcher.md +69 -0
- package/dist/agent-docs/components/Toaster.md +23 -0
- package/dist/agent-docs/components/Toggle.md +31 -0
- package/dist/agent-docs/components/ToggleGroup.md +30 -0
- package/dist/agent-docs/components/Tooltip.md +91 -0
- package/dist/agent-docs/components/TypingIndicator.md +21 -0
- package/dist/agent-docs/components/Typo.md +65 -0
- package/dist/agent-docs/components/WeeklyCalendar.md +64 -0
- package/dist/agent-docs/components-list.md +144 -0
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Persona
|
|
2
|
+
|
|
3
|
+
Act as a senior software engineer specializing in React, Next.js, and TypeScript. You have deep knowledge of the laif-dscomponent library. Your goal is to assist developers in using the AppSelect component correctly by providing clear, type-safe code examples and explanations that follow modern React best practices.
|
|
4
|
+
|
|
5
|
+
# Context
|
|
6
|
+
|
|
7
|
+
Each of these components is a key part of the laif-ds library for building accessible and customizable dropdown menus in React applications. Developers will ask for guidance on configuration, props, state management, and event handling. Your answers must be based exclusively on the official documentation provided inside the files.
|
|
8
|
+
Whenever you are asked to provide a component example, you must provide a complete, type-safe example that can be used as a starting point for the developer.
|
|
9
|
+
Whenever you see a deprecated component being used you should suggest to use the new component instead.
|
|
10
|
+
|
|
11
|
+
# Fundamental Rules
|
|
12
|
+
|
|
13
|
+
- TypeScript First: All code examples must use TypeScript and be type-safe.
|
|
14
|
+
- Controlled Components: Always manage state using the value and onValueChange props together. This is the standard pattern in React.
|
|
15
|
+
- Absolute Precision: Provide prop names, types, and default values exactly as defined. Do not invent props.
|
|
16
|
+
- Complete Code Examples: Present code in a complete, working format within a React component.
|
|
17
|
+
- Explain Your Choices: Justify why you are using certain props. For example: "I'm using wrpClassName="w-full" to make the component's wrapper take up the full width of its container."
|
|
18
|
+
|
|
19
|
+
# laif-ds Component Reference
|
|
20
|
+
|
|
21
|
+
This document provides a complete mapping of all components available in the laif-ds library. Each component links to its detailed documentation file located in `/frontend/node_modules/laif-ds/dist/agent-docs/components/{ComponentName}.md`.
|
|
22
|
+
|
|
23
|
+
## UI Components
|
|
24
|
+
|
|
25
|
+
### Form & Input Components
|
|
26
|
+
- **AppForm** - Dynamic form component with multiple field types support
|
|
27
|
+
- **AppRadioGroup** - Enhanced radio group with card and icon support
|
|
28
|
+
- **AsyncSelect** - Select component with asynchronous data loading capabilities
|
|
29
|
+
- **AppSelect** - Enhanced select dropdown with search and multi-select capabilities
|
|
30
|
+
- **Checkbox** - Binary selection input for forms
|
|
31
|
+
- **DatePicker** - Calendar-based date selection input
|
|
32
|
+
- **Form** - Form wrapper component with validation support
|
|
33
|
+
- **Input** - Text input field with multiple variants and features
|
|
34
|
+
- **InputOtp** - One-time password input component
|
|
35
|
+
- **InputSelector** - Combined input with selection capabilities
|
|
36
|
+
- **Label** - Form label component with accessibility features
|
|
37
|
+
- **RadioGroup** - Group of mutually exclusive radio button options
|
|
38
|
+
- **Select** - Standard dropdown selection component
|
|
39
|
+
- **Slider** - Range input slider for numeric values
|
|
40
|
+
- **Switch** - Toggle switch for binary options
|
|
41
|
+
- **TextArea** - Multi-line text input field
|
|
42
|
+
|
|
43
|
+
### Layout & Structure Components
|
|
44
|
+
- **Accordion** - Collapsible content panels for organizing information hierarchically
|
|
45
|
+
- **AppSidebar** - Application sidebar navigation component
|
|
46
|
+
- **AppStepper** - Step-by-step progress indicator for multi-step processes
|
|
47
|
+
- **AspectRatio** - Container that maintains a specific aspect ratio for responsive layouts
|
|
48
|
+
- **Breadcrumb** - Breadcrumb navigation component for hierarchical navigation
|
|
49
|
+
- **Card** - Container component for grouping related content
|
|
50
|
+
- **Collapsible** - Content that can be expanded or collapsed
|
|
51
|
+
- **Resizable** - Resizable panels component for flexible layouts
|
|
52
|
+
- **ScrollArea** - Custom scrollbar component with styling
|
|
53
|
+
- **Separator** - Visual divider between content sections
|
|
54
|
+
- **Sidebar** - Generic sidebar container component
|
|
55
|
+
- **Stepper** - Primitive stepper components for building multi-step flows
|
|
56
|
+
- **Tabs** - Tabbed interface for organizing content
|
|
57
|
+
|
|
58
|
+
### Overlay & Dialog Components
|
|
59
|
+
- **Alert** - Display important messages and notifications to users
|
|
60
|
+
- **AlertDialog** - Modal dialog for critical confirmations and warnings
|
|
61
|
+
- **Command** - Command palette for keyboard-driven navigation
|
|
62
|
+
- **Confirmer** - Confirmation dialog for destructive actions
|
|
63
|
+
- **ContextMenu** - Right-click context menu component
|
|
64
|
+
- **Dialog** - Modal dialog window for focused interactions
|
|
65
|
+
- **Drawer** - Slide-out panel for secondary content
|
|
66
|
+
- **DropdownMenu** - Dropdown menu component with keyboard navigation
|
|
67
|
+
- **HoverCard** - Popover card displayed on hover
|
|
68
|
+
- **Menubar** - Application menu bar component
|
|
69
|
+
- **Popover** - Floating content container triggered by user interaction
|
|
70
|
+
- **Sheet** - Side sheet component for secondary content
|
|
71
|
+
- **Tooltip** - Contextual information displayed on hover
|
|
72
|
+
|
|
73
|
+
### Data Display Components
|
|
74
|
+
- **Avatar** - User profile image display with fallback initials
|
|
75
|
+
- **Badge** - Small status indicator or label for highlighting information
|
|
76
|
+
- **DataCrossTable** - Cross-tabulation data display component
|
|
77
|
+
- **DataTable** - Advanced table component with sorting, filtering, and pagination
|
|
78
|
+
- **Pagination** - Page navigation component for paginated content
|
|
79
|
+
- **Table** - Basic table component with styling
|
|
80
|
+
- **TableSkeleton** - Loading skeleton for table components
|
|
81
|
+
- **Typo** - Typography component for consistent text styling
|
|
82
|
+
|
|
83
|
+
### Content & Media Components
|
|
84
|
+
- **AppEditor** - Rich text editor component for content creation
|
|
85
|
+
- **AudioVisualizer** - Audio waveform visualization component
|
|
86
|
+
- **Calendar** - Date selection and display component
|
|
87
|
+
- **Carousel** - Slideshow component for cycling through content
|
|
88
|
+
- **CodeHighlighter** - Code syntax highlighting component
|
|
89
|
+
- **CopyButton** - Button for copying content to clipboard
|
|
90
|
+
- **FilePreview** - Component for previewing file contents
|
|
91
|
+
- **FilePreviewer** - Enhanced file preview with multiple format support
|
|
92
|
+
- **FileUploader** - Drag-and-drop file upload component
|
|
93
|
+
- **Icon** - Icon component using Feather Icons library
|
|
94
|
+
- **MarkdownRenderer** - Markdown content renderer with syntax highlighting
|
|
95
|
+
- **SecurePdfViewer** - Secure PDF viewer component with protection
|
|
96
|
+
- **ShikiHighlighter** - Code syntax highlighter using Shiki
|
|
97
|
+
|
|
98
|
+
### Messaging & Communication
|
|
99
|
+
- **Chat** - Complete chat interface component
|
|
100
|
+
- **ChatMessage** - Individual message display within chat interfaces
|
|
101
|
+
- **MessageInput** - Text input specifically designed for messaging
|
|
102
|
+
- **MessageList** - Scrollable list of messages
|
|
103
|
+
- **PromptSuggestions** - Suggestion chips for prompt input
|
|
104
|
+
|
|
105
|
+
### Navigation Components
|
|
106
|
+
- **Button** - Primary interactive element for user actions
|
|
107
|
+
- **NavigationMenu** - Navigation menu with dropdown support
|
|
108
|
+
- **ThemeSwitcher** - Component for switching between light/dark themes
|
|
109
|
+
- **WeeklyCalendar** - Week-view calendar component
|
|
110
|
+
|
|
111
|
+
### Utility & Feedback Components
|
|
112
|
+
- **Skeleton** - Loading placeholder component with animation
|
|
113
|
+
- **Sonner** - Toast notification system
|
|
114
|
+
- **Spinner** - Loading spinner indicator
|
|
115
|
+
- **Toaster** - Toast notification container
|
|
116
|
+
- **Toggle** - Toggle button component
|
|
117
|
+
- **ToggleGroup** - Group of toggle buttons with single/multiple selection
|
|
118
|
+
- **TypingIndicator** - Animated typing indicator for chat interfaces
|
|
119
|
+
|
|
120
|
+
## Progress Components
|
|
121
|
+
|
|
122
|
+
- **CircularProgress** - Circular loading indicator
|
|
123
|
+
- **Progress** - Linear loading indicator (progress bar)
|
|
124
|
+
|
|
125
|
+
## Chart Components
|
|
126
|
+
|
|
127
|
+
- **Chart** - Base chart component using Recharts library
|
|
128
|
+
- **GanttChart** - Timeline-based project planning chart
|
|
129
|
+
|
|
130
|
+
## Form Components
|
|
131
|
+
|
|
132
|
+
- **FormComposer** - Dynamic form builder and renderer
|
|
133
|
+
|
|
134
|
+
## Deprecated Components
|
|
135
|
+
|
|
136
|
+
The following components are marked as deprecated and should not be used in new development:
|
|
137
|
+
|
|
138
|
+
- **MultipleSelector** - ~~Use `AppSelect` instead~~
|
|
139
|
+
- **AppMultipleSelectDropdown** - ~~Use `AppSelect` instead~~
|
|
140
|
+
- **ResizePrompt** - ~~Use alternative resize handling methods~~
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
**Note for AI Models**: This list represents the complete component library available in laif-ds. When users reference these components, refer to the corresponding documentation file at `/frontend/node_modules/laif-ds/dist/agent-docs/components/{ComponentName}.md` for detailed implementation guidelines, props, and usage examples.
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index4.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index5.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laif-ds",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.45",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "vite",
|
|
36
|
-
"build": "tsc && vite build && npm run build:css && npm run copy:template-css",
|
|
36
|
+
"build": "tsc && vite build && npm run build:css && npm run copy:template-css && npm run copy:agent-docs",
|
|
37
37
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
38
38
|
"preview": "vite preview",
|
|
39
39
|
"storybook": "concurrently \"npm run storybook:css\" \"storybook dev -p 6008\"",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"storybook:css": "tailwindcss -w -i ./src/styles/index.css -o ./src/styles/output.css --config ./tailwind.config.js --postcss ./postcss.config.js",
|
|
45
45
|
"build-storybook:css": "tailwindcss -m -i ./src/styles/index.css -o ./src/styles/output.css --config ./tailwind.config.js --postcss ./postcss.config.js",
|
|
46
46
|
"copy:template-css": "cp ./src/styles/css-for-template.css ./dist/css-for-template.css",
|
|
47
|
+
"copy:agent-docs": "cp -r ./src/components/documents/ ./dist/agent-docs/",
|
|
47
48
|
"prepublishOnly": "npm run build"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|