laif-ds 0.2.43 → 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.
Files changed (98) hide show
  1. package/dist/_virtual/index6.js +2 -2
  2. package/dist/_virtual/index7.js +2 -2
  3. package/dist/agent-docs/components/Accordion.md +157 -0
  4. package/dist/agent-docs/components/Alert.md +95 -0
  5. package/dist/agent-docs/components/AlertDialog.md +126 -0
  6. package/dist/agent-docs/components/AppEditor.md +90 -0
  7. package/dist/agent-docs/components/AppForm.md +242 -0
  8. package/dist/agent-docs/components/AppMultipleSelectDropdown.md +38 -0
  9. package/dist/agent-docs/components/AppRadioGroup.md +223 -0
  10. package/dist/agent-docs/components/AppSelect.md +427 -0
  11. package/dist/agent-docs/components/AppSidebar.md +122 -0
  12. package/dist/agent-docs/components/AppStepper.md +77 -0
  13. package/dist/agent-docs/components/AspectRatio.md +87 -0
  14. package/dist/agent-docs/components/AsyncSelect.md +127 -0
  15. package/dist/agent-docs/components/AudioVisualizer.md +41 -0
  16. package/dist/agent-docs/components/Avatar.md +113 -0
  17. package/dist/agent-docs/components/Badge.md +118 -0
  18. package/dist/agent-docs/components/Breadcrumb.md +78 -0
  19. package/dist/agent-docs/components/Button.md +129 -0
  20. package/dist/agent-docs/components/Calendar.md +222 -0
  21. package/dist/agent-docs/components/Card.md +147 -0
  22. package/dist/agent-docs/components/Carousel.md +129 -0
  23. package/dist/agent-docs/components/Chart.md +75 -0
  24. package/dist/agent-docs/components/Chat.md +109 -0
  25. package/dist/agent-docs/components/ChatMessage.md +61 -0
  26. package/dist/agent-docs/components/Checkbox.md +135 -0
  27. package/dist/agent-docs/components/CircularProgress.md +49 -0
  28. package/dist/agent-docs/components/CodeHighlighter.md +31 -0
  29. package/dist/agent-docs/components/Collapsible.md +95 -0
  30. package/dist/agent-docs/components/Command.md +142 -0
  31. package/dist/agent-docs/components/Confirmer.md +175 -0
  32. package/dist/agent-docs/components/ContextMenu.md +191 -0
  33. package/dist/agent-docs/components/CopyButton.md +26 -0
  34. package/dist/agent-docs/components/DataCrossTable.md +94 -0
  35. package/dist/agent-docs/components/DataTable.md +254 -0
  36. package/dist/agent-docs/components/DatePicker.md +109 -0
  37. package/dist/agent-docs/components/Dialog.md +125 -0
  38. package/dist/agent-docs/components/Drawer.md +127 -0
  39. package/dist/agent-docs/components/DropdownMenu.md +57 -0
  40. package/dist/agent-docs/components/FilePreview.md +99 -0
  41. package/dist/agent-docs/components/FilePreviewer.md +139 -0
  42. package/dist/agent-docs/components/FileUploader.md +129 -0
  43. package/dist/agent-docs/components/Form.md +62 -0
  44. package/dist/agent-docs/components/FormComposer.md +137 -0
  45. package/dist/agent-docs/components/GanttChart.md +122 -0
  46. package/dist/agent-docs/components/HoverCard.md +37 -0
  47. package/dist/agent-docs/components/Icon.md +99 -0
  48. package/dist/agent-docs/components/Input.md +138 -0
  49. package/dist/agent-docs/components/InputOtp.md +40 -0
  50. package/dist/agent-docs/components/InputSelector.md +97 -0
  51. package/dist/agent-docs/components/InterruptPrompt.md +32 -0
  52. package/dist/agent-docs/components/Label.md +28 -0
  53. package/dist/agent-docs/components/MarkdownRenderer.md +36 -0
  54. package/dist/agent-docs/components/Menubar.md +164 -0
  55. package/dist/agent-docs/components/MessageInput.md +131 -0
  56. package/dist/agent-docs/components/MessageList.md +96 -0
  57. package/dist/agent-docs/components/MultipleSelector.md +146 -0
  58. package/dist/agent-docs/components/NavigationMenu.md +51 -0
  59. package/dist/agent-docs/components/Pagination.md +55 -0
  60. package/dist/agent-docs/components/Popover.md +103 -0
  61. package/dist/agent-docs/components/Progress.md +30 -0
  62. package/dist/agent-docs/components/PromptSuggestions.md +33 -0
  63. package/dist/agent-docs/components/RadioGroup.md +90 -0
  64. package/dist/agent-docs/components/Resizable.md +35 -0
  65. package/dist/agent-docs/components/ResizePrompt.md +13 -0
  66. package/dist/agent-docs/components/ScrollArea.md +49 -0
  67. package/dist/agent-docs/components/SecurePdfViewer.md +38 -0
  68. package/dist/agent-docs/components/Select.md +132 -0
  69. package/dist/agent-docs/components/Separator.md +32 -0
  70. package/dist/agent-docs/components/Sheet.md +40 -0
  71. package/dist/agent-docs/components/ShikiHighlighter.md +31 -0
  72. package/dist/agent-docs/components/Sidebar.md +85 -0
  73. package/dist/agent-docs/components/Skeleton.md +29 -0
  74. package/dist/agent-docs/components/Slider.md +58 -0
  75. package/dist/agent-docs/components/Sonner.md +21 -0
  76. package/dist/agent-docs/components/Spinner.md +139 -0
  77. package/dist/agent-docs/components/Stepper.md +67 -0
  78. package/dist/agent-docs/components/Switch.md +42 -0
  79. package/dist/agent-docs/components/Table.md +63 -0
  80. package/dist/agent-docs/components/TableSkeleton.md +46 -0
  81. package/dist/agent-docs/components/Tabs.md +86 -0
  82. package/dist/agent-docs/components/TextArea.md +52 -0
  83. package/dist/agent-docs/components/ThemeSwitcher.md +69 -0
  84. package/dist/agent-docs/components/Toaster.md +23 -0
  85. package/dist/agent-docs/components/Toggle.md +31 -0
  86. package/dist/agent-docs/components/ToggleGroup.md +30 -0
  87. package/dist/agent-docs/components/Tooltip.md +91 -0
  88. package/dist/agent-docs/components/TypingIndicator.md +21 -0
  89. package/dist/agent-docs/components/Typo.md +65 -0
  90. package/dist/agent-docs/components/WeeklyCalendar.md +64 -0
  91. package/dist/agent-docs/components-list.md +144 -0
  92. package/dist/components/ui/spinner.js +67 -0
  93. package/dist/index.d.ts +11 -0
  94. package/dist/index.js +363 -361
  95. package/dist/node_modules/eventemitter3/index2.js +1 -1
  96. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  97. package/dist/styles.v3.css +1 -1
  98. 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.
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
+ import { cn as i } from "../../lib/utils.js";
4
+ import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ const l = {
6
+ xxs: 12,
7
+ xs: 14,
8
+ sm: 16,
9
+ md: 20,
10
+ lg: 24,
11
+ xl: 28,
12
+ xxl: 36
13
+ }, d = c("animate-spin", {
14
+ variants: {
15
+ variant: {
16
+ default: "text-d-foreground",
17
+ destructive: "text-d-destructive",
18
+ primary: "text-d-primary",
19
+ secondary: "text-d-secondary"
20
+ }
21
+ }
22
+ });
23
+ function u({
24
+ size: t = "md",
25
+ variant: s = "default",
26
+ className: n,
27
+ ...o
28
+ }) {
29
+ const r = typeof t == "number" ? t : l[t];
30
+ return /* @__PURE__ */ a(
31
+ "svg",
32
+ {
33
+ "data-slot": "spinner",
34
+ className: i(d({ variant: s, className: n })),
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ fill: "none",
37
+ viewBox: "0 0 24 24",
38
+ width: r,
39
+ height: r,
40
+ ...o,
41
+ children: [
42
+ /* @__PURE__ */ e(
43
+ "circle",
44
+ {
45
+ className: "opacity-25",
46
+ cx: "12",
47
+ cy: "12",
48
+ r: "10",
49
+ stroke: "currentColor",
50
+ strokeWidth: "4"
51
+ }
52
+ ),
53
+ /* @__PURE__ */ e(
54
+ "path",
55
+ {
56
+ className: "opacity-75",
57
+ fill: "currentColor",
58
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
59
+ }
60
+ )
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ export {
66
+ u as Spinner
67
+ };
package/dist/index.d.ts CHANGED
@@ -2385,6 +2385,17 @@ declare interface SourcePart {
2385
2385
  type: "source";
2386
2386
  }
2387
2387
 
2388
+ export declare function Spinner({ size, variant, className, ...props }: SpinnerProps): JSX.Element;
2389
+
2390
+ export declare interface SpinnerProps extends React_2.ComponentProps<"svg"> {
2391
+ size?: SpinnerSize | number;
2392
+ variant?: SpinnerVariant;
2393
+ }
2394
+
2395
+ export declare type SpinnerSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
2396
+
2397
+ export declare type SpinnerVariant = "default" | "destructive" | "primary" | "secondary";
2398
+
2388
2399
  declare type StepIndicators = {
2389
2400
  active?: React_2.ReactNode;
2390
2401
  completed?: React_2.ReactNode;