@flikk/ui 1.0.0-beta.11 → 1.0.0-beta.13
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/ai/ApprovalCard/ApprovalCard.js +1 -1
- package/dist/components/ai/MessageHistory/MessageHistory.js +1 -0
- package/dist/components/ai/PromptInput/PromptInput.js +7 -125
- package/dist/components/ai/PromptInput/VoiceRecorder.js +0 -77
- package/dist/components/ai/StreamingResponse/StreamingResponse.js +1 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.types.d.ts +7 -7
- package/dist/components/ai/index.js +1 -0
- package/dist/components/core/Accordion/Accordion.d.ts +1 -1
- package/dist/components/core/Accordion/Accordion.js +2 -2
- package/dist/components/core/Accordion/Accordion.theme.d.ts +2 -2
- package/dist/components/core/Accordion/Accordion.theme.js +4 -4
- package/dist/components/core/Accordion/Accordion.types.d.ts +19 -20
- package/dist/components/core/Accordion/AccordionBody.d.ts +3 -0
- package/dist/components/core/Accordion/{AccordionContent.js → AccordionBody.js} +4 -4
- package/dist/components/core/Accordion/AccordionItem.js +1 -1
- package/dist/components/core/Accordion/AccordionTrigger.js +14 -7
- package/dist/components/core/Accordion/index.d.ts +2 -2
- package/dist/components/core/Alert/Alert.js +5 -1
- package/dist/components/core/Alert/Alert.types.d.ts +4 -4
- package/dist/components/core/Avatar/Avatar.js +22 -18
- package/dist/components/core/Avatar/Avatar.theme.js +1 -1
- package/dist/components/core/Avatar/Avatar.types.d.ts +9 -8
- package/dist/components/core/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/components/core/Badge/Badge.js +7 -5
- package/dist/components/core/Badge/Badge.theme.js +11 -4
- package/dist/components/core/Badge/Badge.types.d.ts +2 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.js +7 -3
- package/dist/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/components/core/Button/Button.js +2 -8
- package/dist/components/core/Button/Button.theme.js +7 -7
- package/dist/components/core/Calendar/Calendar.js +3 -3
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.types.d.ts +5 -6
- package/dist/components/core/Card/Card.d.ts +2 -2
- package/dist/components/core/Card/Card.js +3 -3
- package/dist/components/core/Card/Card.theme.js +3 -3
- package/dist/components/core/Card/Card.types.d.ts +4 -4
- package/dist/components/core/Card/CardBody.d.ts +3 -0
- package/dist/components/core/Card/CardBody.js +11 -0
- package/dist/components/core/Card/index.d.ts +2 -2
- package/dist/components/core/Carousel/Carousel.js +4 -4
- package/dist/components/core/Carousel/Carousel.types.d.ts +4 -4
- package/dist/components/core/Carousel/CarouselBody.d.ts +4 -0
- package/dist/components/core/Carousel/{CarouselContent.js → CarouselBody.js} +3 -3
- package/dist/components/core/Carousel/index.d.ts +2 -1
- package/dist/components/core/ContextMenu/ContextMenu.d.ts +2 -2
- package/dist/components/core/ContextMenu/ContextMenu.js +6 -6
- package/dist/components/core/ContextMenu/ContextMenu.types.d.ts +2 -2
- package/dist/components/core/ContextMenu/ContextMenuBody.d.ts +6 -0
- package/dist/components/core/ContextMenu/{ContextMenuContent.js → ContextMenuBody.js} +4 -4
- package/dist/components/core/ContextMenu/ContextMenuSubBody.d.ts +6 -0
- package/dist/components/core/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubBody.js} +4 -4
- package/dist/components/core/ContextMenu/index.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/Drawer.js +28 -9
- package/dist/components/core/Drawer/Drawer.theme.js +1 -1
- package/dist/components/core/Drawer/Drawer.types.d.ts +8 -6
- package/dist/components/core/Drawer/DrawerBody.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerBody.js +11 -0
- package/dist/components/core/Drawer/index.d.ts +2 -1
- package/dist/components/core/Dropdown/Dropdown.types.d.ts +3 -3
- package/dist/components/core/Dropdown/DropdownSection.js +3 -1
- package/dist/components/core/FileTypeIcon/FileTypeIcon.d.ts +3 -0
- package/dist/components/core/FileTypeIcon/FileTypeIcon.js +33 -0
- package/dist/components/core/FileTypeIcon/FileTypeIcon.theme.d.ts +2 -0
- package/dist/components/core/FileTypeIcon/FileTypeIcon.theme.js +12 -0
- package/dist/components/core/FileTypeIcon/FileTypeIcon.types.d.ts +19 -0
- package/dist/components/core/FileTypeIcon/fileTypes.d.ts +7 -0
- package/dist/components/core/FileTypeIcon/fileTypes.js +30 -0
- package/dist/components/core/FileTypeIcon/index.d.ts +2 -0
- package/dist/components/core/MenuItem/MenuItem.js +3 -1
- package/dist/components/core/MenuItem/MenuItem.theme.js +1 -1
- package/dist/components/core/MenuItem/MenuItem.types.d.ts +1 -1
- package/dist/components/core/Message/Message.d.ts +1 -1
- package/dist/components/core/Message/Message.js +3 -3
- package/dist/components/core/Message/Message.theme.js +2 -2
- package/dist/components/core/Message/Message.types.d.ts +7 -7
- package/dist/components/core/Message/MessageAvatar.d.ts +2 -2
- package/dist/components/core/Message/MessageAvatar.js +3 -3
- package/dist/components/core/Message/MessageBody.d.ts +8 -0
- package/dist/components/core/Message/{MessageContent.js → MessageBody.js} +3 -3
- package/dist/components/core/Message/index.d.ts +2 -0
- package/dist/components/core/Modal/Modal.js +5 -1
- package/dist/components/core/Modal/Modal.theme.js +1 -1
- package/dist/components/core/Modal/Modal.types.d.ts +5 -2
- package/dist/components/core/ModalStack/ModalStackModal.js +1 -0
- package/dist/components/core/PageHeading/PageHeading.types.d.ts +1 -1
- package/dist/components/core/PageHeading/PageHeadingBackButton.js +3 -1
- package/dist/components/core/Popover/Popover.d.ts +1 -1
- package/dist/components/core/Popover/Popover.js +4 -4
- package/dist/components/core/Popover/Popover.theme.d.ts +1 -1
- package/dist/components/core/Popover/Popover.theme.js +2 -2
- package/dist/components/core/Popover/Popover.types.d.ts +3 -3
- package/dist/components/core/Popover/PopoverBody.d.ts +7 -0
- package/dist/components/core/Popover/{PopoverContent.js → PopoverBody.js} +24 -13
- package/dist/components/core/Popover/index.d.ts +4 -3
- package/dist/components/core/Tabs/Tabs.animations.d.ts +2 -2
- package/dist/components/core/Tabs/Tabs.animations.js +3 -3
- package/dist/components/core/Tabs/Tabs.d.ts +1 -1
- package/dist/components/core/Tabs/Tabs.js +3 -3
- package/dist/components/core/Tabs/Tabs.theme.d.ts +1 -1
- package/dist/components/core/Tabs/Tabs.theme.js +2 -2
- package/dist/components/core/Tabs/Tabs.types.d.ts +9 -9
- package/dist/components/core/Tabs/TabsBody.d.ts +6 -0
- package/dist/components/core/Tabs/{TabsContent.js → TabsBody.js} +8 -8
- package/dist/components/core/Tabs/index.d.ts +2 -2
- package/dist/components/core/Tag/Tag.d.ts +1 -1
- package/dist/components/core/Tag/Tag.js +2 -2
- package/dist/components/core/Tag/Tag.types.d.ts +1 -1
- package/dist/components/core/Toast/Toast.js +5 -1
- package/dist/components/core/Toast/Toast.types.d.ts +9 -9
- package/dist/components/core/index.d.ts +1 -1
- package/dist/components/core/index.js +7 -3
- package/dist/components/data-display/Feed/Feed.animations.d.ts +40 -0
- package/dist/components/data-display/Feed/Feed.animations.js +26 -0
- package/dist/components/data-display/Feed/Feed.d.ts +5 -1
- package/dist/components/data-display/Feed/Feed.js +87 -52
- package/dist/components/data-display/Feed/Feed.theme.js +11 -13
- package/dist/components/data-display/Feed/Feed.types.d.ts +35 -34
- package/dist/components/data-display/Feed/index.d.ts +1 -1
- package/dist/components/data-display/GanttChart/GanttTaskBar.js +11 -9
- package/dist/components/data-display/GanttChart/GanttTaskContextMenu.js +1 -1
- package/dist/components/data-display/KPI/KPI.js +2 -2
- package/dist/components/data-display/KPI/KPI.types.d.ts +3 -3
- package/dist/components/data-display/Metric/Metric.js +2 -2
- package/dist/components/data-display/Metric/Metric.types.d.ts +3 -3
- package/dist/components/data-display/Table/TableColumnManager.js +2 -1
- package/dist/components/data-display/Table/TableFilter.js +2 -1
- package/dist/components/data-display/Timeline/TimelineMarker.js +2 -2
- package/dist/components/effects/3d/index.d.ts +1 -1
- package/dist/components/effects/AIOrb/AIOrb.d.ts +1 -0
- package/dist/components/effects/AIOrb/AIOrb.js +3 -2
- package/dist/components/effects/AIOrb/AIOrb.types.d.ts +1 -0
- package/dist/components/effects/AIOrb/hooks/index.d.ts +2 -0
- package/dist/components/effects/AIOrb/hooks/useOrbState.d.ts +20 -0
- package/dist/components/effects/AIOrb/hooks/useOrbState.js +27 -0
- package/dist/components/effects/AIOrb/index.d.ts +2 -2
- package/dist/components/effects/AIOrb/variants/Aura/Aura.d.ts +3 -0
- package/dist/components/effects/AIOrb/variants/Aura/Aura.js +75 -0
- package/dist/components/effects/AIOrb/variants/Aura/Aura.shaders.d.ts +28 -0
- package/dist/components/effects/AIOrb/variants/Aura/Aura.shaders.js +191 -0
- package/dist/components/effects/AIOrb/variants/Aura/Aura.types.d.ts +53 -0
- package/dist/components/effects/AIOrb/variants/Aura/ShaderCanvas.d.ts +17 -0
- package/dist/components/effects/AIOrb/variants/Aura/ShaderCanvas.js +149 -0
- package/dist/components/effects/AIOrb/variants/Aura/index.d.ts +2 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.js +38 -7
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.types.d.ts +6 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.js +34 -8
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.types.d.ts +6 -0
- package/dist/components/effects/AIOrb/variants/index.d.ts +2 -0
- package/dist/components/effects/CustomCursor/CustomCursor.d.ts +2 -2
- package/dist/components/effects/CustomCursor/CustomCursor.js +50 -47
- package/dist/components/effects/GlassSurface/GlassSurface.js +24 -12
- package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +8 -0
- package/dist/components/forms/Checkbox/Checkbox.js +1 -1
- package/dist/components/forms/Checkbox/Checkbox.types.d.ts +5 -5
- package/dist/components/forms/Checkbox/CheckboxGroup.js +2 -2
- package/dist/components/forms/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/forms/ColorPicker/ColorPicker.js +2 -2
- package/dist/components/forms/ColorPicker/ColorPicker.types.d.ts +2 -2
- package/dist/components/forms/ColorPicker/ColorPickerBody.d.ts +7 -0
- package/dist/components/forms/ColorPicker/{ColorPickerContent.js → ColorPickerBody.js} +5 -5
- package/dist/components/forms/ColorPicker/index.d.ts +2 -2
- package/dist/components/forms/DatePicker/DatePicker.d.ts +7 -3
- package/dist/components/forms/DatePicker/DatePicker.js +6 -5
- package/dist/components/forms/DatePicker/DatePicker.theme.js +3 -3
- package/dist/components/forms/DatePicker/DatePicker.types.d.ts +9 -4
- package/dist/components/forms/DatePicker/DatePickerBody.d.ts +7 -0
- package/dist/components/forms/DatePicker/{DatePickerContent.js → DatePickerBody.js} +10 -9
- package/dist/components/forms/DatePicker/index.d.ts +2 -2
- package/dist/components/forms/FileUpload/FileUpload.js +0 -78
- package/dist/components/forms/Input/Input.js +2 -2
- package/dist/components/forms/Input/Input.types.d.ts +4 -4
- package/dist/components/forms/Mention/Mention.js +2 -2
- package/dist/components/forms/Radio/Radio.js +1 -1
- package/dist/components/forms/Radio/Radio.types.d.ts +5 -5
- package/dist/components/forms/Radio/RadioGroup.js +1 -1
- package/dist/components/forms/Select/Select.js +2 -2
- package/dist/components/forms/Select/Select.types.d.ts +4 -4
- package/dist/components/forms/Switch/Switch.js +1 -1
- package/dist/components/forms/Switch/Switch.types.d.ts +4 -4
- package/dist/components/forms/Textarea/Textarea.js +2 -2
- package/dist/components/forms/Textarea/Textarea.types.d.ts +4 -4
- package/dist/components/forms/TimePicker/TimePickerContent.js +1 -78
- package/dist/components/forms/index.d.ts +2 -2
- package/dist/components/forms/index.js +2 -80
- package/dist/components/layout/FormLayout/FormLayout.d.ts +0 -2
- package/dist/components/layout/FormLayout/FormLayout.js +12 -6
- package/dist/components/layout/FormLayout/FormLayout.theme.js +2 -5
- package/dist/components/layout/FormLayout/FormLayout.types.d.ts +8 -26
- package/dist/components/layout/FormLayout/FormLayoutSection.js +3 -2
- package/dist/components/layout/FormLayout/index.d.ts +1 -1
- package/dist/index.js +197 -199
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/paletteGenerator.d.ts +46 -0
- package/package.json +1 -1
- package/src/styles/theme.css +2 -6
- package/dist/components/core/Accordion/AccordionContent.d.ts +0 -3
- package/dist/components/core/Card/CardContent.d.ts +0 -3
- package/dist/components/core/Card/CardContent.js +0 -11
- package/dist/components/core/Carousel/CarouselContent.d.ts +0 -4
- package/dist/components/core/ContextMenu/ContextMenuContent.d.ts +0 -6
- package/dist/components/core/ContextMenu/ContextMenuSubContent.d.ts +0 -6
- package/dist/components/core/Drawer/DrawerContent.d.ts +0 -5
- package/dist/components/core/Drawer/DrawerContent.js +0 -11
- package/dist/components/core/Loader/Loader.d.ts +0 -24
- package/dist/components/core/Loader/Loader.js +0 -57
- package/dist/components/core/Loader/Loader.theme.d.ts +0 -27
- package/dist/components/core/Loader/Loader.theme.js +0 -60
- package/dist/components/core/Loader/Loader.types.d.ts +0 -71
- package/dist/components/core/Loader/index.d.ts +0 -2
- package/dist/components/core/Message/MessageContent.d.ts +0 -8
- package/dist/components/core/Popover/PopoverContent.d.ts +0 -7
- package/dist/components/core/Tabs/TabsContent.d.ts +0 -6
- package/dist/components/forms/ColorPicker/ColorPickerContent.d.ts +0 -7
- package/dist/components/forms/DatePicker/DatePickerContent.d.ts +0 -7
- package/dist/components/layout/FormLayout/FormLayoutBody.d.ts +0 -3
- package/dist/components/layout/FormLayout/FormLayoutBody.js +0 -91
- package/dist/components/layout/FormLayout/FormLayoutHeader.d.ts +0 -3
- package/dist/components/layout/FormLayout/FormLayoutHeader.js +0 -12
package/dist/utils/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export * from "./formValidation";
|
|
|
14
14
|
export { calculateVelocity, clampScroll, detectScrollDirection, isReducedMotion, lerp, calculateScrollProgress, normalizeWheelDelta, isScrollable, getMaxScroll, throttle, } from './smoothScrollUtils';
|
|
15
15
|
export { PerformanceMonitor, usePerformanceMonitor } from './performanceMonitor';
|
|
16
16
|
export { type SemanticColor, semanticBgColors, semanticTextColors, semanticSpinnerColors, } from './colorUtils';
|
|
17
|
+
export { generatePalette, generateThemeCSS, type PaletteStep, type GeneratedPalette, type GeneratePaletteOptions, } from './paletteGenerator';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Palette Generator Utility
|
|
3
|
+
*
|
|
4
|
+
* Converts a hex color to an 11-step OKLCH palette using
|
|
5
|
+
* Tailwind-matched lightness/chroma curves. The hue is extracted
|
|
6
|
+
* from the input color and applied across all steps.
|
|
7
|
+
*/
|
|
8
|
+
export interface PaletteStep {
|
|
9
|
+
/** Tailwind step number: 50, 100, 200 ... 950 */
|
|
10
|
+
step: number;
|
|
11
|
+
/** OKLCH CSS string, e.g. "oklch(0.9778 0.0108 270)" */
|
|
12
|
+
oklch: string;
|
|
13
|
+
/** Approximate sRGB hex for preview swatches */
|
|
14
|
+
hex: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GeneratedPalette {
|
|
17
|
+
/** Semantic name, e.g. "primary" */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Extracted OKLCH hue (degrees) */
|
|
20
|
+
hue: number;
|
|
21
|
+
/** 11 palette steps from 50 to 950 */
|
|
22
|
+
steps: PaletteStep[];
|
|
23
|
+
/** Auto-calculated contrast color (hex) for text on the base step */
|
|
24
|
+
contrast: 'light' | 'dark';
|
|
25
|
+
}
|
|
26
|
+
export interface GeneratePaletteOptions {
|
|
27
|
+
/** Scales chroma up/down. Default 1.0 */
|
|
28
|
+
vibrancy?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Generate an 11-step OKLCH palette from a single hex color.
|
|
32
|
+
* Extracts the hue from the input and applies Tailwind-matched
|
|
33
|
+
* lightness and chroma curves.
|
|
34
|
+
*/
|
|
35
|
+
export declare function generatePalette(hex: string, name?: string, options?: GeneratePaletteOptions): GeneratedPalette | null;
|
|
36
|
+
/**
|
|
37
|
+
* Generate a complete CSS variable block for all semantic colors.
|
|
38
|
+
*
|
|
39
|
+
* @param palettes - Map of semantic name → hex color
|
|
40
|
+
* @param options - Generation options (vibrancy)
|
|
41
|
+
* @returns Object with `theme` (for @theme block) and `root` (for :root block) CSS strings
|
|
42
|
+
*/
|
|
43
|
+
export declare function generateThemeCSS(palettes: Record<string, string>, options?: GeneratePaletteOptions): {
|
|
44
|
+
theme: string;
|
|
45
|
+
root: string;
|
|
46
|
+
} | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flikk/ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "A modern React component library built with TypeScript, Tailwind CSS v4, and Framer Motion. Follows the shadcn philosophy with complete className override support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/src/styles/theme.css
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
/* text color */
|
|
83
83
|
--color-text-primary: var(--color-neutral-950);
|
|
84
|
-
--color-text-secondary: var(--color-neutral-
|
|
84
|
+
--color-text-secondary: var(--color-neutral-700);
|
|
85
85
|
--color-text-placeholder: var(--color-neutral-400);
|
|
86
86
|
--color-text-muted: var(--color-neutral-500);
|
|
87
87
|
--color-text-disabled: var(--color-neutral-400);
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
--color-neutral-950: oklch(14.5% 0 0);
|
|
113
113
|
|
|
114
114
|
/* Font family variables */
|
|
115
|
-
--font-family-base:
|
|
115
|
+
--font-family-base: var(--font-sans);
|
|
116
116
|
--font-cursive: "Birthstone", cursive;
|
|
117
117
|
--font-weight-light: 300;
|
|
118
118
|
--font-weight-normal: 400;
|
|
@@ -136,7 +136,6 @@
|
|
|
136
136
|
--form-py-md: 0.625rem; /* 0.625rem 10px = py-2 in Tailwind */
|
|
137
137
|
--form-py-lg: 0.75rem; /* 0.75rem 12px = py-3 in Tailwind */
|
|
138
138
|
|
|
139
|
-
|
|
140
139
|
/* ============================================
|
|
141
140
|
BORDER RADIUS SYSTEM
|
|
142
141
|
Change --radius-base to adjust the entire UI.
|
|
@@ -200,7 +199,6 @@
|
|
|
200
199
|
--button-icon-size-md: var(--form-min-h-md);
|
|
201
200
|
--button-icon-size-lg: var(--form-min-h-lg);
|
|
202
201
|
|
|
203
|
-
|
|
204
202
|
/* Badge variables */
|
|
205
203
|
--badge-radius: var(--form-radius);
|
|
206
204
|
|
|
@@ -218,7 +216,6 @@
|
|
|
218
216
|
--segmented-py-md: var(--form-py-md);
|
|
219
217
|
--segmented-py-lg: var(--form-py-lg);
|
|
220
218
|
|
|
221
|
-
|
|
222
219
|
/* Segmented sliding background */
|
|
223
220
|
--segmented-active-bg: #ffffff;
|
|
224
221
|
--segmented-active-shadow:
|
|
@@ -254,7 +251,6 @@
|
|
|
254
251
|
--avatar-size-lg: 3rem; /* 48px = size-12 in Tailwind */
|
|
255
252
|
--avatar-size-xl: 4rem; /* 64px = size-16 in Tailwind */
|
|
256
253
|
|
|
257
|
-
|
|
258
254
|
/* Avatar radius - now defined in radius system above */
|
|
259
255
|
|
|
260
256
|
/* Carousel Variables */
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { cn } from '../../../utils/cn.js';
|
|
4
|
-
import { cardTheme } from './Card.theme.js';
|
|
5
|
-
|
|
6
|
-
const CardContent = React__default.forwardRef(({ children, className, ...props }, ref) => {
|
|
7
|
-
return (jsx("div", { ref: ref, className: cn(cardTheme.contentStyle, className), ...props, children: children }));
|
|
8
|
-
});
|
|
9
|
-
CardContent.displayName = 'CardContent';
|
|
10
|
-
|
|
11
|
-
export { CardContent };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ContextMenuContentProps } from "./ContextMenu.types";
|
|
3
|
-
/**
|
|
4
|
-
* ContextMenuContent - Renders the menu at cursor position with keyboard navigation
|
|
5
|
-
*/
|
|
6
|
-
export declare const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ContextMenuSubContentProps } from "./ContextMenu.types";
|
|
3
|
-
/**
|
|
4
|
-
* ContextMenuSubContent - Submenu content positioned to the right of trigger
|
|
5
|
-
*/
|
|
6
|
-
export declare const ContextMenuSubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { cn } from '../../../utils/cn.js';
|
|
3
|
-
import { useDrawerContext } from './Drawer.js';
|
|
4
|
-
|
|
5
|
-
const DrawerContent = ({ children, className, ...props }) => {
|
|
6
|
-
const { theme } = useDrawerContext();
|
|
7
|
-
return (jsx("div", { className: cn(theme.content, className), ...props, children: children }));
|
|
8
|
-
};
|
|
9
|
-
DrawerContent.displayName = "Drawer.Content";
|
|
10
|
-
|
|
11
|
-
export { DrawerContent };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LoaderProps } from './Loader.types';
|
|
3
|
-
/**
|
|
4
|
-
* Loader component - Supports both circular (spinner) and linear (progress bar) variants
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Circular variant: Spinning loader for indeterminate loading
|
|
8
|
-
* - Linear variant: Progress bar with determinate (value) or indeterminate modes
|
|
9
|
-
* - Multiple sizes and semantic colors
|
|
10
|
-
* - Optional percentage/label display for linear variant
|
|
11
|
-
* - Full theme customization
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // Circular loader
|
|
15
|
-
* <Loader variant="circular" size="md" />
|
|
16
|
-
*
|
|
17
|
-
* // Linear progress bar (determinate)
|
|
18
|
-
* <Loader variant="linear" value={60} showLabel />
|
|
19
|
-
*
|
|
20
|
-
* // Linear loading bar (indeterminate)
|
|
21
|
-
* <Loader variant="linear" />
|
|
22
|
-
*/
|
|
23
|
-
declare const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export { Loader };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import React__default, { useMemo } from 'react';
|
|
3
|
-
import { loaderTheme } from './Loader.theme.js';
|
|
4
|
-
import { cn } from '../../../utils/cn.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Loader component - Supports both circular (spinner) and linear (progress bar) variants
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Circular variant: Spinning loader for indeterminate loading
|
|
11
|
-
* - Linear variant: Progress bar with determinate (value) or indeterminate modes
|
|
12
|
-
* - Multiple sizes and semantic colors
|
|
13
|
-
* - Optional percentage/label display for linear variant
|
|
14
|
-
* - Full theme customization
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* // Circular loader
|
|
18
|
-
* <Loader variant="circular" size="md" />
|
|
19
|
-
*
|
|
20
|
-
* // Linear progress bar (determinate)
|
|
21
|
-
* <Loader variant="linear" value={60} showLabel />
|
|
22
|
-
*
|
|
23
|
-
* // Linear loading bar (indeterminate)
|
|
24
|
-
* <Loader variant="linear" />
|
|
25
|
-
*/
|
|
26
|
-
const Loader = React__default.forwardRef(({ variant = 'circular', size = 'md', color = 'primary', value, max = 100, showLabel = false, label, className, theme: customTheme, ...props }, ref) => {
|
|
27
|
-
var _a, _b;
|
|
28
|
-
// Merge custom theme with default theme
|
|
29
|
-
const theme = useMemo(() => customTheme ? { ...loaderTheme, ...customTheme } : loaderTheme, [customTheme]);
|
|
30
|
-
// Calculate percentage for linear variant
|
|
31
|
-
const percentage = useMemo(() => {
|
|
32
|
-
if (value === undefined || value === null)
|
|
33
|
-
return 0;
|
|
34
|
-
const pct = Math.min(Math.max((value / max) * 100, 0), 100);
|
|
35
|
-
return Math.round(pct);
|
|
36
|
-
}, [value, max]);
|
|
37
|
-
// Determine if this is indeterminate mode (no value provided)
|
|
38
|
-
const isIndeterminate = value === undefined || value === null;
|
|
39
|
-
// Get theme values for current size and color
|
|
40
|
-
const sizeStyles = ((_a = theme.sizes) === null || _a === void 0 ? void 0 : _a[size]) || theme.sizes['md'];
|
|
41
|
-
const colorStyles = ((_b = theme.colors) === null || _b === void 0 ? void 0 : _b[color]) || theme.colors['primary'];
|
|
42
|
-
// Render circular variant (spinner)
|
|
43
|
-
if (variant === 'circular') {
|
|
44
|
-
return (jsx("div", { ref: ref, className: cn(theme.baseStyle, className), role: "status", "aria-label": "loading", ...props, children: jsx("div", { className: cn(theme.circularStyle, theme.animation, sizeStyles === null || sizeStyles === void 0 ? void 0 : sizeStyles.circular, colorStyles === null || colorStyles === void 0 ? void 0 : colorStyles.circular) }) }));
|
|
45
|
-
}
|
|
46
|
-
// Render linear variant (progress bar)
|
|
47
|
-
return (jsxs("div", { ref: ref, className: cn(theme.linearContainerStyle, className), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": max, "aria-valuenow": isIndeterminate ? undefined : value, "aria-label": isIndeterminate ? "loading" : `${percentage}% complete`, ...props, children: [jsx("div", { className: cn(theme.linearTrackStyle, sizeStyles === null || sizeStyles === void 0 ? void 0 : sizeStyles.linear), children: isIndeterminate ? (
|
|
48
|
-
// Indeterminate loading animation
|
|
49
|
-
jsx("div", { className: cn(theme.linearBarStyle, colorStyles === null || colorStyles === void 0 ? void 0 : colorStyles.linear, "w-1/3 animate-[shimmer_2s_ease-in-out_infinite]"), style: {
|
|
50
|
-
backgroundImage: `linear-gradient(90deg, transparent, currentColor, transparent)`,
|
|
51
|
-
} })) : (
|
|
52
|
-
// Determinate progress bar
|
|
53
|
-
jsx("div", { className: cn(theme.linearBarStyle, colorStyles === null || colorStyles === void 0 ? void 0 : colorStyles.linear), style: { width: `${percentage}%` } })) }), showLabel && !isIndeterminate && (jsx("span", { className: theme.linearLabelStyle, children: label || `${percentage}%` }))] }));
|
|
54
|
-
});
|
|
55
|
-
Loader.displayName = 'Loader';
|
|
56
|
-
|
|
57
|
-
export { Loader };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { LoaderSize, LoaderColor } from "./Loader.types";
|
|
2
|
-
/**
|
|
3
|
-
* Internal theme structure for the Loader component
|
|
4
|
-
*/
|
|
5
|
-
interface LoaderTheme {
|
|
6
|
-
baseStyle: string;
|
|
7
|
-
circularStyle: string;
|
|
8
|
-
linearContainerStyle: string;
|
|
9
|
-
linearTrackStyle: string;
|
|
10
|
-
linearBarStyle: string;
|
|
11
|
-
linearLabelStyle: string;
|
|
12
|
-
sizes: Record<LoaderSize, {
|
|
13
|
-
circular: string;
|
|
14
|
-
linear: string;
|
|
15
|
-
}>;
|
|
16
|
-
colors: Record<LoaderColor, {
|
|
17
|
-
circular: string;
|
|
18
|
-
linear: string;
|
|
19
|
-
}>;
|
|
20
|
-
animation: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Default theme for the Loader component
|
|
24
|
-
* Uses production-ready CSS variables from global.scss
|
|
25
|
-
*/
|
|
26
|
-
export declare const loaderTheme: LoaderTheme;
|
|
27
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default theme for the Loader component
|
|
3
|
-
* Uses production-ready CSS variables from global.scss
|
|
4
|
-
*/
|
|
5
|
-
const loaderTheme = {
|
|
6
|
-
// Base styles for the loader container
|
|
7
|
-
baseStyle: "inline-flex items-center justify-center",
|
|
8
|
-
// Circular variant (spinner) styles
|
|
9
|
-
circularStyle: "rounded-full",
|
|
10
|
-
// Linear variant container
|
|
11
|
-
linearContainerStyle: "w-full flex items-center gap-3",
|
|
12
|
-
// Linear track (background)
|
|
13
|
-
linearTrackStyle: "flex-1 h-2 rounded-full bg-[var(--color-background-tertiary)] overflow-hidden",
|
|
14
|
-
// Linear bar (foreground)
|
|
15
|
-
linearBarStyle: "h-full rounded-full transition-all duration-300 ease-out",
|
|
16
|
-
// Label text for linear variant
|
|
17
|
-
linearLabelStyle: "text-base font-medium text-[var(--color-text-secondary)] min-w-[3ch] tabular-nums",
|
|
18
|
-
// Size variants for both circular and linear
|
|
19
|
-
sizes: {
|
|
20
|
-
sm: {
|
|
21
|
-
circular: "size-4 border-2",
|
|
22
|
-
linear: "h-1.5",
|
|
23
|
-
},
|
|
24
|
-
md: {
|
|
25
|
-
circular: "size-5 border-[3px]",
|
|
26
|
-
linear: "h-2",
|
|
27
|
-
},
|
|
28
|
-
lg: {
|
|
29
|
-
circular: "size-6 border-[3px]",
|
|
30
|
-
linear: "h-3",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
// Color variants using correct CSS variables
|
|
34
|
-
colors: {
|
|
35
|
-
primary: {
|
|
36
|
-
circular: "border-[var(--color-primary)] border-t-transparent",
|
|
37
|
-
linear: "bg-[var(--color-primary)]",
|
|
38
|
-
},
|
|
39
|
-
success: {
|
|
40
|
-
circular: "border-[var(--color-success)] border-t-transparent",
|
|
41
|
-
linear: "bg-[var(--color-success)]",
|
|
42
|
-
},
|
|
43
|
-
warning: {
|
|
44
|
-
circular: "border-[var(--color-warning)] border-t-transparent",
|
|
45
|
-
linear: "bg-[var(--color-warning)]",
|
|
46
|
-
},
|
|
47
|
-
danger: {
|
|
48
|
-
circular: "border-[var(--color-danger)] border-t-transparent",
|
|
49
|
-
linear: "bg-[var(--color-danger)]",
|
|
50
|
-
},
|
|
51
|
-
muted: {
|
|
52
|
-
circular: "border-[var(--color-text-muted)] border-t-transparent",
|
|
53
|
-
linear: "bg-[var(--color-text-muted)]",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
// Animation class for circular spinner
|
|
57
|
-
animation: "animate-[spin_1s_linear_infinite]",
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export { loaderTheme };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loader component props
|
|
3
|
-
* Supports both circular (spinner) and linear (progress bar) variants
|
|
4
|
-
*/
|
|
5
|
-
export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* The variant of the loader
|
|
8
|
-
* @default "circular"
|
|
9
|
-
*/
|
|
10
|
-
variant?: LoaderVariant;
|
|
11
|
-
/**
|
|
12
|
-
* The size of the loader
|
|
13
|
-
* @default "md"
|
|
14
|
-
*/
|
|
15
|
-
size?: LoaderSize;
|
|
16
|
-
/**
|
|
17
|
-
* The color of the loader
|
|
18
|
-
* @default "primary"
|
|
19
|
-
*/
|
|
20
|
-
color?: LoaderColor;
|
|
21
|
-
/**
|
|
22
|
-
* Current progress value (0-100)
|
|
23
|
-
* Only applies to linear variant
|
|
24
|
-
* If not provided, shows indeterminate loading animation
|
|
25
|
-
*/
|
|
26
|
-
value?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Maximum value for progress
|
|
29
|
-
* @default 100
|
|
30
|
-
*/
|
|
31
|
-
max?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Show percentage label
|
|
34
|
-
* Only applies to linear variant with value prop
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
showLabel?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Custom label text (overrides percentage)
|
|
40
|
-
* Only applies to linear variant
|
|
41
|
-
*/
|
|
42
|
-
label?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Custom CSS class to apply to the loader
|
|
45
|
-
*/
|
|
46
|
-
className?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Theme overrides for the loader
|
|
49
|
-
*/
|
|
50
|
-
theme?: LoaderThemeOverrides;
|
|
51
|
-
}
|
|
52
|
-
export type LoaderVariant = "circular" | "linear";
|
|
53
|
-
export type LoaderSize = "sm" | "md" | "lg";
|
|
54
|
-
export type LoaderColor = "primary" | "success" | "warning" | "danger" | "muted";
|
|
55
|
-
export interface LoaderThemeOverrides {
|
|
56
|
-
baseStyle?: string;
|
|
57
|
-
circularStyle?: string;
|
|
58
|
-
linearContainerStyle?: string;
|
|
59
|
-
linearTrackStyle?: string;
|
|
60
|
-
linearBarStyle?: string;
|
|
61
|
-
linearLabelStyle?: string;
|
|
62
|
-
sizes?: Partial<Record<LoaderSize, {
|
|
63
|
-
circular: string;
|
|
64
|
-
linear: string;
|
|
65
|
-
}>>;
|
|
66
|
-
colors?: Partial<Record<LoaderColor, {
|
|
67
|
-
circular: string;
|
|
68
|
-
linear: string;
|
|
69
|
-
}>>;
|
|
70
|
-
animation?: string;
|
|
71
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MessageContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/**
|
|
4
|
-
* The message content
|
|
5
|
-
*/
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const MessageContent: React.ForwardRefExoticComponent<MessageContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PopoverContentProps } from "./Popover.types";
|
|
3
|
-
/**
|
|
4
|
-
* PopoverContent component displays the content of the popover
|
|
5
|
-
*/
|
|
6
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { PopoverContent };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TabsContentProps } from "./Tabs.types";
|
|
3
|
-
/**
|
|
4
|
-
* TabsContent component displays content panels for tabs with directional fade animations
|
|
5
|
-
*/
|
|
6
|
-
export declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ColorPickerContentProps } from './ColorPicker.types';
|
|
3
|
-
/**
|
|
4
|
-
* ColorPickerContent - Popover content wrapper following Dropdown/Select patterns
|
|
5
|
-
* Uses portal rendering and useSelectPortal for positioning
|
|
6
|
-
*/
|
|
7
|
-
export declare const ColorPickerContent: React.FC<ColorPickerContentProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DatePickerContentProps } from "./DatePicker.types";
|
|
3
|
-
/**
|
|
4
|
-
* DatePicker Content Component - contains the Calendar and optional Presets
|
|
5
|
-
* Uses portal positioning like Select component
|
|
6
|
-
*/
|
|
7
|
-
export declare const DatePickerContent: React.FC<DatePickerContentProps>;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { cn } from '../../../utils/cn.js';
|
|
4
|
-
import '../../core/Accordion/Accordion.js';
|
|
5
|
-
import '../../core/AlertDialog/AlertDialog.js';
|
|
6
|
-
import '../../core/AspectRatio/AspectRatio.js';
|
|
7
|
-
import '../../core/Avatar/Avatar.js';
|
|
8
|
-
import '../../core/AvatarGroup/AvatarGroup.js';
|
|
9
|
-
import '../../core/Badge/Badge.js';
|
|
10
|
-
import '../../core/Breadcrumbs/Breadcrumbs.js';
|
|
11
|
-
import '../../core/Breadcrumbs/Breadcrumbs.theme.js';
|
|
12
|
-
import '../../core/Button/Button.js';
|
|
13
|
-
import '../../core/ButtonGroup/ButtonGroup.js';
|
|
14
|
-
import '../../core/ButtonGroup/ButtonGroupSeparator.js';
|
|
15
|
-
import '../../core/ButtonGroup/ButtonGroupText.js';
|
|
16
|
-
import '../../core/Calendar/Calendar.js';
|
|
17
|
-
import '../../core/Calendar/CalendarMini/CalendarMini.js';
|
|
18
|
-
import '../../core/Card/Card.js';
|
|
19
|
-
import '../../core/CardStack/CardStack.js';
|
|
20
|
-
import '../../core/Carousel/Carousel.js';
|
|
21
|
-
import '../../core/CommandPalette/CommandPalette.js';
|
|
22
|
-
import { Separator } from '../../core/Separator/Separator.js';
|
|
23
|
-
import '../../core/Drawer/Drawer.js';
|
|
24
|
-
import '../../core/Dropdown/Dropdown.js';
|
|
25
|
-
import '../../core/Dropdown/DropdownTrigger.js';
|
|
26
|
-
import '../../core/Dropdown/DropdownMenu.js';
|
|
27
|
-
import '../../core/Dropdown/DropdownItem.js';
|
|
28
|
-
import '../../core/Dropdown/DropdownSection.js';
|
|
29
|
-
import '../../core/Dropdown/DropdownSeparator.js';
|
|
30
|
-
import '../../core/Dropdown/Dropdown.theme.js';
|
|
31
|
-
import '../../core/Kbd/Kbd.js';
|
|
32
|
-
import '../../core/MenuItem/MenuItem.js';
|
|
33
|
-
import '../../core/Link/Link.js';
|
|
34
|
-
import '../../core/Loader/Loader.js';
|
|
35
|
-
import '../../core/Modal/Modal.js';
|
|
36
|
-
import '../../core/ModalStack/ModalStack.js';
|
|
37
|
-
import '../../core/PageHeading/PageHeading.js';
|
|
38
|
-
import '../../core/Pagination/Pagination.js';
|
|
39
|
-
import '../../core/Popover/Popover.js';
|
|
40
|
-
import '../../core/Popover/PopoverContext.js';
|
|
41
|
-
import '../../core/Progress/Progress.js';
|
|
42
|
-
import '../../core/Rating/Rating.js';
|
|
43
|
-
import '../../core/ScrollArea/ScrollArea.js';
|
|
44
|
-
import '../../core/ScrollArea/smooth/SmoothScrollEngine.js';
|
|
45
|
-
import '../../core/Segmented/Segmented.js';
|
|
46
|
-
import '../../core/Skeleton/Skeleton.js';
|
|
47
|
-
import '../../core/SlidingNumber/SlidingNumber.js';
|
|
48
|
-
import '../../core/Tabs/Tabs.js';
|
|
49
|
-
import '../../core/Tabs/TabsList.js';
|
|
50
|
-
import '../../core/Tabs/TabsTrigger.js';
|
|
51
|
-
import '../../core/Tabs/TabsContent.js';
|
|
52
|
-
import '../../core/Tabs/TabsContext.js';
|
|
53
|
-
import '../../core/Tooltip/Tooltip.js';
|
|
54
|
-
import '../../core/Tooltip/Tooltip.animations.js';
|
|
55
|
-
import '../../core/Tree/Tree.js';
|
|
56
|
-
import '../../core/Tag/Tag.js';
|
|
57
|
-
import '../../core/Alert/Alert.js';
|
|
58
|
-
import '../../core/Toast/Toast.js';
|
|
59
|
-
import '../../core/Toast/ToastProvider.js';
|
|
60
|
-
import '@heroicons/react/24/solid';
|
|
61
|
-
import '../../core/Spinner/Spinner.js';
|
|
62
|
-
import '../../core/Message/Message.js';
|
|
63
|
-
import '../../core/Message/TypeWriter.js';
|
|
64
|
-
import '../../core/Empty/Empty.js';
|
|
65
|
-
import '../../core/Masonry/Masonry.js';
|
|
66
|
-
import '../../core/DragDrop/DragDrop.js';
|
|
67
|
-
import '../../core/Sortable/Sortable.js';
|
|
68
|
-
import '../../core/NavItem/NavItem.js';
|
|
69
|
-
import '../../core/Sidebar/Sidebar.js';
|
|
70
|
-
import '../../core/Sidebar/SidebarHeader.js';
|
|
71
|
-
import '../../core/Sidebar/SidebarContent.js';
|
|
72
|
-
import '../../core/Sidebar/SidebarFooter.js';
|
|
73
|
-
import '../../core/Sidebar/SidebarNav.js';
|
|
74
|
-
import '../../core/Sidebar/SidebarNavGroup.js';
|
|
75
|
-
import 'motion/react';
|
|
76
|
-
import '../../core/Sidebar/SidebarToggle.js';
|
|
77
|
-
import '../../core/Sidebar/SidebarContext.js';
|
|
78
|
-
import '../../core/OfflineIndicator/OfflineIndicator.js';
|
|
79
|
-
import '../../core/ContextMenu/ContextMenu.js';
|
|
80
|
-
import '../../core/ContextMenu/ContextMenu.theme.js';
|
|
81
|
-
import '../../core/Pill/Pill.js';
|
|
82
|
-
import '../../core/SocialIcon/SocialIcon.js';
|
|
83
|
-
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
84
|
-
|
|
85
|
-
const FormLayoutBody = React__default.forwardRef(({ className, children, ...props }, ref) => {
|
|
86
|
-
const childArray = React__default.Children.toArray(children).filter(Boolean);
|
|
87
|
-
return (jsx("div", { ref: ref, className: cn(formLayoutTheme.body, className), ...props, children: childArray.map((child, index) => (jsxs(React__default.Fragment, { children: [child, index < childArray.length - 1 && jsx(Separator, {})] }, index))) }));
|
|
88
|
-
});
|
|
89
|
-
FormLayoutBody.displayName = "FormLayout.Body";
|
|
90
|
-
|
|
91
|
-
export { FormLayoutBody };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { cn } from '../../../utils/cn.js';
|
|
4
|
-
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
-
|
|
6
|
-
const FormLayoutHeader = React__default.forwardRef(({ title, subtitle, action, className, theme: customTheme, ...props }, ref) => {
|
|
7
|
-
const theme = { ...formLayoutTheme, ...customTheme };
|
|
8
|
-
return (jsx("div", { ref: ref, className: cn(theme.header, className), ...props, children: jsxs("div", { className: "flex items-start justify-between", children: [jsxs("div", { children: [jsx("div", { className: theme.headerTitle, children: title }), subtitle && jsx("div", { className: theme.headerSubtitle, children: subtitle })] }), action && jsx("div", { children: action })] }) }));
|
|
9
|
-
});
|
|
10
|
-
FormLayoutHeader.displayName = "FormLayout.Header";
|
|
11
|
-
|
|
12
|
-
export { FormLayoutHeader };
|