@gomeniucivan/ui 1.0.40 → 1.0.42

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/index.d.mts CHANGED
@@ -1,12 +1,11 @@
1
1
  import * as react from 'react';
2
- import react__default, { AnchorHTMLAttributes, HTMLAttributes, FC, Ref, ElementType, ReactNode, CSSProperties, DOMAttributes, Key, ReactElement, ComponentPropsWithRef, RefAttributes, Context, MouseEvent, ComponentProps, ComponentType, KeyboardEvent } from 'react';
2
+ import react__default, { AnchorHTMLAttributes, HTMLAttributes, FC, Ref, ElementType, CSSProperties, ReactNode, Key, ReactElement, ComponentPropsWithRef, RefAttributes, Context, MouseEvent, ComponentProps, ChangeEvent, FocusEvent, FormEvent, FormHTMLAttributes, KeyboardEvent, ComponentType } from 'react';
3
+ import { FlexProps as FlexProps$1, MenuProps as MenuProps$1, MenuRef, AlertProps as AlertProps$1, AutoCompleteProps as AutoCompleteProps$1, AvatarProps as AvatarProps$1, DrawerProps as DrawerProps$1, ButtonProps as ButtonProps$1, CollapseProps as CollapseProps$1, DatePickerProps as DatePickerProps$1, InputProps as InputProps$1, InputRef, InputNumberProps as InputNumberProps$1, ModalProps as ModalProps$1, ImageProps as ImageProps$2, SelectProps as SelectProps$1, TagProps as TagProps$1, TabsProps as TabsProps$1, AnchorProps, SegmentedProps as SegmentedProps$1, SliderSingleProps } from 'antd';
3
4
  import { LucideProps, LucideIcon } from 'lucide-react';
4
5
  import { TooltipPopupProps, TooltipPortalProps as TooltipPortalProps$1, TooltipPositionerProps as TooltipPositionerProps$1, Tooltip as Tooltip$1, TooltipTriggerProps } from '@base-ui/react/tooltip';
5
6
  import { Placement as Placement$1 } from '@floating-ui/react';
6
7
  import * as _base_ui_react_menu from '@base-ui/react/menu';
7
8
  import { MenuRootProps, MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuTriggerProps, Menu as Menu$1 } from '@base-ui/react/menu';
8
- import { MenuProps as MenuProps$1, MenuRef, AlertProps as AlertProps$1, AutoCompleteProps as AutoCompleteProps$1, AvatarProps as AvatarProps$1, DrawerProps as DrawerProps$1, ButtonProps as ButtonProps$1, CollapseProps as CollapseProps$1, DatePickerProps as DatePickerProps$1, InputProps as InputProps$1, InputRef, InputNumberProps as InputNumberProps$1, TagProps as TagProps$1, FormProps as FormProps$1, FormInstance, Form as Form$1, ModalProps as ModalProps$1, ImageProps as ImageProps$2, SelectProps as SelectProps$1, TabsProps as TabsProps$1, AnchorProps, SegmentedProps as SegmentedProps$1, RefSelectProps, SliderSingleProps } from 'antd';
9
- export { FormInstance } from 'antd';
10
9
  import { MenuItemType as MenuItemType$1, SubMenuType as SubMenuType$1, MenuItemGroupType as MenuItemGroupType$1, MenuDividerType as MenuDividerType$1, MenuInfo } from 'rc-menu/es/interface';
11
10
  export { MenuInfo } from 'rc-menu/es/interface';
12
11
  import { AlertRef } from 'antd/lib/alert/Alert';
@@ -16,32 +15,34 @@ import * as motion_react from 'motion/react';
16
15
  import { HTMLMotionProps, Transition, TargetAndTransition } from 'motion/react';
17
16
  import * as m from 'motion/react-m';
18
17
  import * as react_jsx_runtime from 'react/jsx-runtime';
19
- import { Size, NumberSize } from 're-resizable';
20
- import { Props as Props$1 } from 'react-rnd';
21
- import { DropdownProps as DropdownProps$1 } from 'antd/es';
18
+ import { ConfigType } from 'dayjs';
22
19
  import { OTPProps, OTPRef } from 'antd/es/input/OTP';
23
20
  import { PasswordProps } from 'antd/es/input/Password';
24
21
  import { TextAreaProps as TextAreaProps$2, TextAreaRef } from 'antd/es/input/TextArea';
22
+ import Inputmask from 'inputmask';
25
23
  import { InputNumberRef } from 'rc-input-number';
24
+ import { Size, NumberSize } from 're-resizable';
25
+ import { Props as Props$1 } from 'react-rnd';
26
+ import { DropdownProps as DropdownProps$1 } from 'antd/es';
26
27
  import * as _base_ui_react_autocomplete from '@base-ui/react/autocomplete';
27
28
  import { Autocomplete, AutocompleteRootChangeEventDetails, AutocompleteRootProps } from '@base-ui/react/autocomplete';
28
29
  import * as _base_ui_react_popover from '@base-ui/react/popover';
29
30
  import { PopoverBackdropProps as PopoverBackdropProps$1, PopoverPopupProps as PopoverPopupProps$1, PopoverPortalProps as PopoverPortalProps$1, PopoverPositionerProps as PopoverPositionerProps$1, Popover as Popover$1, PopoverTriggerProps } from '@base-ui/react/popover';
30
31
  import { FooterProps as FooterProps$1 } from 'rc-footer';
31
- import { FormItemProps as FormItemProps$1 } from 'antd/es/form/FormItem';
32
+ import { Switch as Switch$1 } from '@base-ui/react/switch';
32
33
  import { BuiltinTheme } from 'shiki';
33
34
  import { PreviewConfig } from 'antd/es/image';
34
35
  import { GroupPreviewConfig } from 'antd/es/image/PreviewGroup';
35
36
  import * as node_modules__base_ui_react_esm_separator_Separator from 'node_modules/@base-ui/react/esm/separator/Separator';
36
37
  import * as _base_ui_react_select from '@base-ui/react/select';
37
38
  import { Select as Select$1 } from '@base-ui/react/select';
38
- import { Switch } from '@base-ui/react/switch';
39
39
  import { Components, Options } from 'react-markdown';
40
40
  import { Pluggable } from 'unified';
41
41
  import { MermaidConfig } from 'mermaid';
42
42
  import { Node } from 'unist';
43
43
  import { Root } from 'hast';
44
44
  import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
45
+ import { TableProps as TableProps$1 } from 'antd/es/table';
45
46
  import { GetCustomStylish, GetCustomToken, ThemeProviderProps as ThemeProviderProps$1, CustomStylishParams, CustomTokenParams, ThemeMode } from 'antd-style';
46
47
  import { AliasToken } from 'antd/es/theme/interface';
47
48
  import { Toast } from '@base-ui/react/toast';
@@ -98,7 +99,7 @@ interface LobeCustomToken extends ColorPalettes, ColorPalettesAlpha, ColorToken,
98
99
  */
99
100
  type Trigger = 'hover' | 'click' | 'both' | ('hover' | 'click')[];
100
101
 
101
- type DivProps$1 = HTMLAttributes<HTMLDivElement>;
102
+ type DivProps = HTMLAttributes<HTMLDivElement>;
102
103
  type VideoProps$2 = HTMLAttributes<HTMLVideoElement>;
103
104
  type SvgProps = HTMLAttributes<SVGSVGElement>;
104
105
  type ImgProps = HTMLAttributes<HTMLImageElement>;
@@ -110,123 +111,25 @@ declare const A: FC<AProps & {
110
111
  ref?: Ref<HTMLAnchorElement>;
111
112
  }>;
112
113
 
113
- type ContentPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'start' | 'stretch' | 'baseline';
114
114
  type FlexDirection = 'vertical' | 'vertical-reverse' | 'horizontal' | 'horizontal-reverse';
115
- type DivProps = DOMAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>;
116
- type CommonSpaceNumber = 2 | 4 | 8 | 12 | 16 | 24;
117
- /**
118
- * Flexbox 布局组件的接口
119
- */
120
- interface IFlexbox {
121
- /**
122
- * 交叉轴对齐方式
123
- * @default "stretch"
124
- */
125
- align?: ContentPosition;
126
- /**
127
- * 允许在 flex 布局中正常收缩(通过将根节点的 min-width 设为 0 实现)
128
- *
129
- * 在 Flex 容器(或作为 flex item)中,启用该选项可避免内容导致的溢出,
130
- * 让元素可以正常 shrink(常见于文本省略、滚动容器等场景)。
131
- * @default false
132
- */
133
- allowShrink?: boolean;
134
- /**
135
- * 渲染的 HTML 元素类型
136
- * @default "div"
137
- */
115
+ interface FlexProps extends FlexProps$1 {
138
116
  as?: ElementType;
139
- /**
140
- * 子元素
141
- */
142
- children?: ReactNode;
143
- /**
144
- * 自定义类名
145
- */
146
- className?: string;
147
- /**
148
- * 主轴方向
149
- * @default "horizontal"
150
- */
151
117
  direction?: FlexDirection;
152
- /**
153
- * 内容分布
154
- */
155
118
  distribution?: CSSProperties['justifyContent'];
156
- /**
157
- * flex 值
158
- * @default "0 1 auto"
159
- */
160
- flex?: number | string;
161
- /**
162
- * 主轴方向上的间距
163
- * @default 0
164
- */
165
- gap?: CommonSpaceNumber | number | string;
166
- /**
167
- * 高度
168
- * @default "auto"
169
- */
170
- height?: number | string;
171
- /**
172
- * 是否横向
173
- * @default false
174
- */
175
119
  horizontal?: boolean;
176
- /**
177
- * 主轴对齐方式
178
- */
179
- justify?: CSSProperties['justifyContent'];
180
- /**
181
- * 内边距
182
- * @default 0
183
- */
184
- padding?: string | number | CommonSpaceNumber;
185
- /**
186
- * 块内边距
187
- */
188
- paddingBlock?: string | number;
189
- /**
190
- * 内联内边距
191
- */
192
- paddingInline?: string | number;
193
- /**
194
- * 类名前缀
195
- */
196
- prefixCls?: string;
197
- /**
198
- * ref 引用
199
- */
200
- ref?: Ref<HTMLElement>;
201
- /**
202
- * 自定义样式
203
- */
204
- style?: CSSProperties;
205
- /**
206
- * 是否显示
207
- * @default true
208
- */
209
- visible?: boolean;
210
- /**
211
- * 宽度
212
- * @default "auto"
213
- */
120
+ vertical?: boolean;
121
+ padding?: number | string;
122
+ paddingBlock?: number | string;
123
+ paddingInline?: number | string;
214
124
  width?: number | string;
215
- /**
216
- * 换行方式
217
- */
218
- wrap?: CSSProperties['flexWrap'];
219
- }
220
- interface FlexBasicProps extends IFlexbox, DivProps {
125
+ height?: number | string;
126
+ allowShrink?: boolean;
127
+ visible?: boolean;
128
+ ref?: Ref<HTMLElement>;
221
129
  }
222
- type FlexboxProps = FlexBasicProps;
223
- type CenterProps = Omit<FlexBasicProps, 'distribution' | 'direction' | 'align'>;
130
+ declare const Flex: react.ForwardRefExoticComponent<Omit<FlexProps, "ref"> & react.RefAttributes<HTMLElement>>;
224
131
 
225
- declare const Center: FC<CenterProps>;
226
-
227
- declare const _default$9: react.NamedExoticComponent<FlexBasicProps>;
228
-
229
- interface BlockProps extends FlexboxProps {
132
+ interface BlockProps extends FlexProps {
230
133
  clickable?: boolean;
231
134
  glass?: boolean;
232
135
  ref?: Ref<HTMLDivElement>;
@@ -446,7 +349,7 @@ declare const KeyMapEnum: {
446
349
  readonly Up: "up";
447
350
  };
448
351
 
449
- interface HotkeyProps extends Omit<FlexboxProps, 'children'> {
352
+ interface HotkeyProps extends Omit<FlexProps, 'children'> {
450
353
  classNames?: {
451
354
  kbdClassName?: string;
452
355
  };
@@ -669,7 +572,7 @@ interface ActionIconSizeConfig extends IconSizeConfig {
669
572
  borderRadius?: number | string;
670
573
  }
671
574
  type ActionIconSize = number | IconSizeType | ActionIconSizeConfig;
672
- interface ActionIconProps extends Partial<LucideIconProps>, Omit<CenterProps, 'title' | 'children'> {
575
+ interface ActionIconProps extends Partial<LucideIconProps>, Omit<FlexProps, 'title' | 'children'> {
673
576
  active?: boolean;
674
577
  danger?: boolean;
675
578
  disabled?: boolean;
@@ -917,7 +820,7 @@ declare const DropdownMenuSubmenuArrow: {
917
820
  declare const DropdownMenu: react.NamedExoticComponent<DropdownMenuProps<unknown>>;
918
821
 
919
822
  type ActionIconGroupEvent = Pick<MenuInfo, 'key' | 'keyPath' | 'domEvent'>;
920
- interface ActionIconGroupProps extends Omit<CenterProps, 'children'> {
823
+ interface ActionIconGroupProps extends Omit<FlexProps, 'children'> {
921
824
  actionIconProps?: Partial<Omit<ActionIconProps, 'icon' | 'size' | 'ref'>>;
922
825
  disabled?: boolean;
923
826
  glass?: boolean;
@@ -987,7 +890,7 @@ interface AvatarProps extends AvatarProps$1 {
987
890
  interface AvatarGroupItemType extends Pick<AvatarProps, 'avatar' | 'title' | 'alt' | 'onClick' | 'style' | 'className' | 'loading'> {
988
891
  key: string;
989
892
  }
990
- interface AvatarGroupProps extends Pick<AvatarProps, 'variant' | 'bordered' | 'shadow' | 'size' | 'background' | 'animation' | 'draggable' | 'shape'>, Omit<FlexboxProps, 'children' | 'onClick'> {
893
+ interface AvatarGroupProps extends Pick<AvatarProps, 'variant' | 'bordered' | 'shadow' | 'size' | 'background' | 'animation' | 'draggable' | 'shape'>, Omit<FlexProps, 'children' | 'onClick'> {
991
894
  classNames?: {
992
895
  avatar?: string;
993
896
  count?: string;
@@ -1045,7 +948,7 @@ interface ButtonProps extends Omit<ButtonProps$1, 'icon'> {
1045
948
 
1046
949
  declare const Button: FC<ButtonProps>;
1047
950
 
1048
- interface TextProps extends DivProps$1 {
951
+ interface TextProps extends DivProps {
1049
952
  align?: 'left' | 'center' | 'right';
1050
953
  as?: ElementType;
1051
954
  code?: boolean;
@@ -1086,7 +989,7 @@ interface TextProps extends DivProps$1 {
1086
989
 
1087
990
  declare const Text: FC<TextProps>;
1088
991
 
1089
- interface CheckboxProps extends Omit<DivProps$1, 'onChange'> {
992
+ interface CheckboxProps extends Omit<DivProps, 'onChange'> {
1090
993
  backgroundColor?: string;
1091
994
  checked?: boolean;
1092
995
  classNames?: {
@@ -1112,7 +1015,7 @@ interface CheckboxGroupOption {
1112
1015
  label: ReactNode;
1113
1016
  value: string;
1114
1017
  }
1115
- interface CheckboxGroupProps extends Omit<FlexboxProps, 'defaultValue' | 'onChange'> {
1018
+ interface CheckboxGroupProps extends Omit<FlexProps, 'defaultValue' | 'onChange'> {
1116
1019
  defaultValue?: string[];
1117
1020
  disabled?: boolean;
1118
1021
  onChange?: (value: string[]) => void;
@@ -1132,7 +1035,7 @@ interface ICheckbox {
1132
1035
  declare const Checkbox: ICheckbox;
1133
1036
 
1134
1037
  type DiffViewMode = 'split' | 'unified';
1135
- interface CodeDiffProps extends Omit<FlexboxProps, 'children'> {
1038
+ interface CodeDiffProps extends Omit<FlexProps, 'children'> {
1136
1039
  /**
1137
1040
  * Actions to render in the header
1138
1041
  */
@@ -1191,7 +1094,7 @@ interface CodeDiffProps extends Omit<FlexboxProps, 'children'> {
1191
1094
  */
1192
1095
  viewMode?: DiffViewMode;
1193
1096
  }
1194
- interface PatchDiffProps extends Omit<FlexboxProps, 'children'> {
1097
+ interface PatchDiffProps extends Omit<FlexProps, 'children'> {
1195
1098
  /**
1196
1099
  * Actions to render in the header
1197
1100
  */
@@ -1250,7 +1153,7 @@ declare const CodeDiff: react.NamedExoticComponent<CodeDiffProps>;
1250
1153
 
1251
1154
  declare const PatchDiff: react.NamedExoticComponent<PatchDiffProps>;
1252
1155
 
1253
- interface CodeEditorProps extends TextAreaProps$1, Pick<FlexboxProps, 'width' | 'height' | 'flex'> {
1156
+ interface CodeEditorProps extends TextAreaProps$1, Pick<FlexProps, 'width' | 'height' | 'flex'> {
1254
1157
  classNames?: {
1255
1158
  highlight?: string;
1256
1159
  textarea?: string;
@@ -1304,7 +1207,7 @@ interface ColorSwatchesItemType {
1304
1207
  key?: Key;
1305
1208
  title?: ReactNode;
1306
1209
  }
1307
- interface ColorSwatchesProps extends Omit<FlexboxProps, 'onChange'> {
1210
+ interface ColorSwatchesProps extends Omit<FlexProps, 'onChange'> {
1308
1211
  colors: ColorSwatchesItemType[];
1309
1212
  defaultValue?: string;
1310
1213
  enableColorPicker?: boolean;
@@ -1481,6 +1384,22 @@ declare const CopyButton: react.NamedExoticComponent<CopyButtonProps>;
1481
1384
 
1482
1385
  interface DatePickerProps extends DatePickerProps$1 {
1483
1386
  shadow?: boolean;
1387
+ /**
1388
+ * Force mobile drawer / wheel UI when true; otherwise uses ThemeProvider context.
1389
+ */
1390
+ isMobile?: boolean;
1391
+ /**
1392
+ * Lower bound for selectable dates (inclusive).
1393
+ */
1394
+ min?: ConfigType;
1395
+ /**
1396
+ * Upper bound for selectable dates (inclusive).
1397
+ */
1398
+ max?: ConfigType;
1399
+ /**
1400
+ * Show years in ascending order instead of the default descending order.
1401
+ */
1402
+ revertYear?: boolean;
1484
1403
  }
1485
1404
 
1486
1405
  declare const DatePicker: react.NamedExoticComponent<DatePickerProps>;
@@ -1493,16 +1412,201 @@ interface DownloadButtonProps extends ActionIconProps {
1493
1412
 
1494
1413
  declare const DownloadButton: react__default.NamedExoticComponent<DownloadButtonProps>;
1495
1414
 
1496
- type DraggablePanelBodyProps = DivProps$1;
1497
- declare const DraggablePanelBody: react.NamedExoticComponent<DivProps$1>;
1415
+ interface InputProps extends InputProps$1 {
1416
+ ref?: Ref<InputRef>;
1417
+ shadow?: boolean;
1418
+ }
1419
+ interface TextAreaProps extends TextAreaProps$2 {
1420
+ ref?: Ref<TextAreaRef>;
1421
+ resize?: boolean;
1422
+ shadow?: boolean;
1423
+ }
1424
+ interface InputNumberProps extends InputNumberProps$1 {
1425
+ ref?: Ref<InputNumberRef>;
1426
+ shadow?: boolean;
1427
+ }
1428
+ interface InputPasswordProps extends PasswordProps {
1429
+ ref?: Ref<InputRef>;
1430
+ shadow?: boolean;
1431
+ }
1432
+ interface InputOPTProps extends OTPProps {
1433
+ ref?: Ref<OTPRef>;
1434
+ shadow?: boolean;
1435
+ }
1436
+ interface InputMaskProps extends InputProps$1 {
1437
+ ref?: Ref<InputRef>;
1438
+ shadow?: boolean;
1439
+ mask: NonNullable<Inputmask.Options['mask']>;
1440
+ maskChar?: string | null;
1441
+ maskPlaceholder?: string | null;
1442
+ alwaysShowMask?: boolean;
1443
+ }
1444
+
1445
+ type SelectSize = 'large' | 'middle' | 'small';
1446
+ type SelectVariant = 'borderless' | 'filled' | 'outlined';
1447
+ type SelectBehaviorVariant = 'default' | 'item-aligned';
1448
+ /**
1449
+ * Variant for how selected items are indicated in the popup.
1450
+ * - `check`: Display a checkmark icon next to selected items (default)
1451
+ * - `bold`: Display selected items with bold text, no checkmark
1452
+ */
1453
+ type SelectIndicatorVariant = 'check' | 'bold';
1454
+ interface SelectOption<Value = string> {
1455
+ className?: string;
1456
+ disabled?: boolean;
1457
+ label: ReactNode;
1458
+ style?: CSSProperties;
1459
+ title?: string;
1460
+ value: Value;
1461
+ }
1462
+ interface SelectOptionGroup<Value = string> {
1463
+ disabled?: boolean;
1464
+ label: ReactNode;
1465
+ options: SelectOption<Value>[];
1466
+ }
1467
+ type SelectOptions<Value = string> = Array<SelectOption<Value> | SelectOptionGroup<Value>>;
1468
+ interface SelectClassNames {
1469
+ clear?: string;
1470
+ dropdown?: string;
1471
+ empty?: string;
1472
+ group?: string;
1473
+ groupLabel?: string;
1474
+ icon?: string;
1475
+ item?: string;
1476
+ itemIndicator?: string;
1477
+ itemText?: string;
1478
+ list?: string;
1479
+ mobileClose?: string;
1480
+ mobileContent?: string;
1481
+ mobileGroupLabel?: string;
1482
+ mobileHeader?: string;
1483
+ mobileList?: string;
1484
+ mobileOverlay?: string;
1485
+ mobileOption?: string;
1486
+ mobileOptionCheck?: string;
1487
+ mobileOptionLabel?: string;
1488
+ mobileOptionSelected?: string;
1489
+ mobileSheet?: string;
1490
+ mobileTitle?: string;
1491
+ option?: string;
1492
+ popup?: string;
1493
+ prefix?: string;
1494
+ root?: string;
1495
+ search?: string;
1496
+ suffix?: string;
1497
+ trigger?: string;
1498
+ value?: string;
1499
+ }
1500
+ interface SelectProps<Value = string> {
1501
+ allowClear?: boolean;
1502
+ autoFocus?: boolean;
1503
+ /**
1504
+ * Behavior variant for Base UI Select.
1505
+ *
1506
+ * - `default`: regular dropdown positioning (alignItemWithTrigger=false, modal=false)
1507
+ * - `item-aligned`: aligns the selected item with trigger and uses modal=true
1508
+ * @default 'default'
1509
+ */
1510
+ behaviorVariant?: SelectBehaviorVariant;
1511
+ className?: string;
1512
+ classNames?: SelectClassNames;
1513
+ defaultOpen?: boolean;
1514
+ defaultValue?: Value | Value[] | null;
1515
+ disabled?: boolean;
1516
+ id?: string;
1517
+ /**
1518
+ * When true, uses a mobile drawer picker (recommended for touch devices).
1519
+ * @default false
1520
+ */
1521
+ isMobile?: boolean;
1522
+ labelRender?: (option: SelectOption<Value>) => ReactNode;
1523
+ /**
1524
+ * 设置弹窗滚动高度
1525
+ * @default 256
1526
+ */
1527
+ listHeight?: number;
1528
+ listItemHeight?: number;
1529
+ loading?: boolean;
1530
+ mode?: 'multiple' | 'tags';
1531
+ name?: string;
1532
+ onChange?: (value: Value | Value[] | null, option?: SelectOption<Value> | SelectOption<Value>[]) => void;
1533
+ onOpenChange?: (open: boolean) => void;
1534
+ onSelect?: (value: Value, option?: SelectOption<Value>) => void;
1535
+ open?: boolean;
1536
+ optionRender?: (option: SelectOption<Value>, info: {
1537
+ index: number;
1538
+ }) => ReactNode;
1539
+ options?: SelectOptions<Value>;
1540
+ placeholder?: ReactNode;
1541
+ popupClassName?: string;
1542
+ popupMatchSelectWidth?: boolean | number;
1543
+ prefix?: ReactNode | IconProps$1['icon'];
1544
+ readOnly?: boolean;
1545
+ required?: boolean;
1546
+ /**
1547
+ * Variant for how selected items are indicated in the popup.
1548
+ * - `check`: Display a checkmark icon next to selected items (default)
1549
+ * - `bold`: Display selected items with bold text, no checkmark
1550
+ * @default 'check'
1551
+ */
1552
+ selectedIndicatorVariant?: SelectIndicatorVariant;
1553
+ shadow?: boolean;
1554
+ showSearch?: boolean;
1555
+ size?: SelectSize;
1556
+ style?: CSSProperties;
1557
+ styles?: {
1558
+ popup?: {
1559
+ root?: CSSProperties;
1560
+ };
1561
+ };
1562
+ suffixIcon?: IconProps$1['icon'] | ReactNode;
1563
+ suffixIconProps?: Omit<IconProps$1, 'icon'>;
1564
+ tokenSeparators?: string[];
1565
+ value?: Value | Value[] | null;
1566
+ variant?: SelectVariant;
1567
+ virtual?: boolean;
1568
+ }
1569
+
1570
+ type Meridiem = 'AM' | 'PM';
1571
+ type TimeValue = {
1572
+ hour: number;
1573
+ minute: number;
1574
+ };
1575
+ interface TimePickerProps extends Omit<InputProps, 'defaultValue' | 'onChange' | 'type' | 'value' | 'size' | 'status' | 'addonAfter' | 'addonBefore' | 'suffix'> {
1576
+ allowClear?: boolean;
1577
+ className?: string;
1578
+ defaultOpen?: boolean;
1579
+ defaultValue?: string | null;
1580
+ format?: string | ((value: TimeValue | null) => string);
1581
+ hourStep?: number;
1582
+ /**
1583
+ * Force mobile drawer / wheel UI when true; otherwise uses ThemeProvider context.
1584
+ */
1585
+ isMobile?: boolean;
1586
+ inputReadOnly?: boolean;
1587
+ minuteStep?: number;
1588
+ onChange?: (value: string | null, formatted: string) => void;
1589
+ onOpenChange?: (open: boolean) => void;
1590
+ open?: boolean;
1591
+ placeholder?: string;
1592
+ size?: SelectSize;
1593
+ style?: CSSProperties;
1594
+ use12Hours?: boolean;
1595
+ value?: string | null;
1596
+ }
1597
+
1598
+ declare const TimePicker: react.NamedExoticComponent<TimePickerProps>;
1599
+
1600
+ type DraggablePanelBodyProps = DivProps;
1601
+ declare const DraggablePanelBody: react.NamedExoticComponent<DivProps>;
1498
1602
 
1499
- type DraggablePanelContainerProps = DivProps$1;
1500
- declare const DraggablePanelContainer: react.NamedExoticComponent<DivProps$1>;
1603
+ type DraggablePanelContainerProps = DivProps;
1604
+ declare const DraggablePanelContainer: react.NamedExoticComponent<DivProps>;
1501
1605
 
1502
- type DraggablePanelFooterProps = DivProps$1;
1503
- declare const DraggablePanelFooter: react.NamedExoticComponent<DivProps$1>;
1606
+ type DraggablePanelFooterProps = DivProps;
1607
+ declare const DraggablePanelFooter: react.NamedExoticComponent<DivProps>;
1504
1608
 
1505
- interface DraggablePanelHeaderProps extends Omit<DivProps$1, 'children'> {
1609
+ interface DraggablePanelHeaderProps extends Omit<DivProps, 'children'> {
1506
1610
  pin?: boolean;
1507
1611
  position?: 'left' | 'right';
1508
1612
  setExpand?: (expand: boolean) => void;
@@ -1512,7 +1616,7 @@ interface DraggablePanelHeaderProps extends Omit<DivProps$1, 'children'> {
1512
1616
  declare const DraggablePanelHeader: react.NamedExoticComponent<DraggablePanelHeaderProps>;
1513
1617
 
1514
1618
  type PlacementType = 'right' | 'left' | 'top' | 'bottom';
1515
- interface DraggablePanelProps extends DivProps$1 {
1619
+ interface DraggablePanelProps extends DivProps {
1516
1620
  backgroundColor?: string;
1517
1621
  classNames?: {
1518
1622
  content?: string;
@@ -1560,7 +1664,7 @@ interface IDraggablePanel {
1560
1664
  }
1561
1665
  declare const DraggablePanel: IDraggablePanel;
1562
1666
 
1563
- interface DraggableSideNavProps extends Omit<DivProps$1, 'children' | 'onSelect'> {
1667
+ interface DraggableSideNavProps extends Omit<DivProps, 'children' | 'onSelect'> {
1564
1668
  backgroundColor?: string;
1565
1669
  /**
1566
1670
  * Body content (main content area)
@@ -1717,30 +1821,10 @@ interface DropdownProps extends Omit<DropdownProps$1, 'menu'> {
1717
1821
  */
1718
1822
  declare const Dropdown: react.NamedExoticComponent<DropdownProps>;
1719
1823
 
1720
- interface InputProps extends InputProps$1 {
1721
- ref?: Ref<InputRef>;
1722
- shadow?: boolean;
1723
- }
1724
- interface TextAreaProps extends TextAreaProps$2 {
1725
- ref?: Ref<TextAreaRef>;
1726
- resize?: boolean;
1727
- shadow?: boolean;
1728
- }
1729
- interface InputNumberProps extends InputNumberProps$1 {
1730
- ref?: Ref<InputNumberRef>;
1731
- shadow?: boolean;
1732
- }
1733
- interface InputPasswordProps extends PasswordProps {
1734
- ref?: Ref<InputRef>;
1735
- shadow?: boolean;
1736
- }
1737
- interface InputOPTProps extends OTPProps {
1738
- ref?: Ref<OTPRef>;
1739
- shadow?: boolean;
1740
- }
1741
-
1742
1824
  declare const Input: react.NamedExoticComponent<InputProps>;
1743
1825
 
1826
+ declare const InputMask: react.NamedExoticComponent<InputMaskProps>;
1827
+
1744
1828
  declare const InputNumber: react.NamedExoticComponent<InputNumberProps>;
1745
1829
 
1746
1830
  declare const InputOPT: react.NamedExoticComponent<InputOPTProps>;
@@ -1761,7 +1845,7 @@ interface ControlInputProps extends Omit<InputProps, 'onChange' | 'value' | 'onA
1761
1845
  value?: string;
1762
1846
  }
1763
1847
 
1764
- interface EditableTextProps extends Omit<FlexboxProps, 'onChange' | 'onBlur' | 'onFocus'>, Pick<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'variant' | 'onBlur' | 'onFocus' | 'size'> {
1848
+ interface EditableTextProps extends Omit<FlexProps, 'onChange' | 'onBlur' | 'onFocus'>, Pick<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'variant' | 'onBlur' | 'onFocus' | 'size'> {
1765
1849
  className?: string;
1766
1850
  classNames?: {
1767
1851
  container?: string;
@@ -2147,7 +2231,7 @@ interface EmojiPickerProps extends Omit<AvatarProps, 'onChange' | 'avatar'> {
2147
2231
  enableEmoji?: boolean;
2148
2232
  };
2149
2233
  compressSize?: number;
2150
- contentProps?: Omit<FlexboxProps, 'className' | 'ref' | 'style'>;
2234
+ contentProps?: Omit<FlexProps, 'className' | 'ref' | 'style'>;
2151
2235
  customEmojis?: EmojiPickerCustomEmoji[];
2152
2236
  customRender?: (avatar: string) => ReactNode;
2153
2237
  customTabs?: EmojiPickerCustomTab[];
@@ -2174,9 +2258,9 @@ interface EmojiPickerProps extends Omit<AvatarProps, 'onChange' | 'avatar'> {
2174
2258
 
2175
2259
  declare const EmojiPicker: react.NamedExoticComponent<EmojiPickerProps>;
2176
2260
 
2177
- interface EmptyProps extends Omit<FlexboxProps, 'title'> {
2261
+ interface EmptyProps extends Omit<FlexProps, 'title'> {
2178
2262
  action?: ReactNode;
2179
- actionProps?: Omit<FlexboxProps, 'children'>;
2263
+ actionProps?: Omit<FlexProps, 'children'>;
2180
2264
  description?: ReactNode;
2181
2265
  descriptionProps?: Omit<TextProps, 'children'>;
2182
2266
  emoji?: string;
@@ -2192,7 +2276,7 @@ interface EmptyProps extends Omit<FlexboxProps, 'title'> {
2192
2276
 
2193
2277
  declare const Empty: FC<EmptyProps>;
2194
2278
 
2195
- type IconProps = SvgProps & DivProps$1;
2279
+ type IconProps = SvgProps & DivProps;
2196
2280
  interface FileTypeIconProps extends IconProps {
2197
2281
  color?: string;
2198
2282
  filetype?: string;
@@ -2207,7 +2291,7 @@ declare const FileTypeIcon: FC<FileTypeIconProps>;
2207
2291
 
2208
2292
  type EmojiType = 'anim' | 'flat' | 'modern' | 'mono' | 'raw' | '3d';
2209
2293
 
2210
- interface FluentEmojiProps extends DivProps$1 {
2294
+ interface FluentEmojiProps extends DivProps {
2211
2295
  emoji: string;
2212
2296
  ref?: Ref<HTMLImageElement>;
2213
2297
  size?: number;
@@ -2222,7 +2306,7 @@ interface FontLoaderProps {
2222
2306
  }
2223
2307
  declare const FontLoader: react.NamedExoticComponent<FontLoaderProps>;
2224
2308
 
2225
- interface FooterProps extends FlexboxProps {
2309
+ interface FooterProps extends FlexProps {
2226
2310
  bottom?: ReactNode;
2227
2311
  columns: FooterProps$1['columns'];
2228
2312
  contentMaxWidth?: number;
@@ -2231,127 +2315,391 @@ interface FooterProps extends FlexboxProps {
2231
2315
 
2232
2316
  declare const Footer: react.NamedExoticComponent<FooterProps>;
2233
2317
 
2234
- interface TagProps extends Omit<TagProps$1, 'color' | 'variant'> {
2235
- color?: TagProps$1['color'] | 'info';
2236
- ref?: Ref<HTMLDivElement>;
2237
- size?: 'small' | 'middle' | 'large';
2238
- variant?: 'filled' | 'outlined' | 'borderless';
2239
- }
2240
-
2241
- declare const Tag: FC<TagProps>;
2242
-
2243
- type FormVariant = 'filled' | 'outlined' | 'borderless';
2244
- type ItemsType = 'group' | 'flat';
2245
- interface FormProps extends Omit<FormProps$1, 'variant'> {
2246
- activeKey?: (string | number)[];
2247
- children?: ReactNode;
2248
- classNames?: FormGroupProps['classNames'] & {
2249
- group?: string;
2250
- item?: string;
2251
- };
2252
- collapsible?: boolean;
2253
- defaultActiveKey?: (string | number)[];
2254
- footer?: ReactNode;
2255
- gap?: number | string;
2256
- itemMinWidth?: FormItemProps['minWidth'];
2257
- itemVariant?: FormProps$1['variant'];
2258
- items?: FormGroupItemType[] | FormItemProps[];
2259
- itemsType?: ItemsType;
2260
- onCollapse?: (key: (string | number)[]) => void;
2261
- ref?: Ref<FormInstance>;
2262
- styles?: FormGroupProps['styles'] & {
2263
- group?: CSSProperties;
2264
- item?: CSSProperties;
2318
+ interface FormConfig<T extends Record<string, any>> {
2319
+ initialValues: T;
2320
+ onSubmit: (values: T) => void | Promise<void>;
2321
+ validate?: (values: T) => Partial<Record<keyof T, string>>;
2322
+ }
2323
+ interface FormState<T extends Record<string, any>> {
2324
+ values: T;
2325
+ errors: Partial<Record<keyof T, string>>;
2326
+ fieldErrors: Partial<Record<keyof T, string>>;
2327
+ touched: Partial<Record<keyof T, boolean>>;
2328
+ isSubmitting: boolean;
2329
+ isValid: boolean;
2330
+ validationSequence: number;
2331
+ }
2332
+ declare function useForm<T extends Record<string, any>>(config: FormConfig<T>): {
2333
+ readonly form: {
2334
+ readonly values: T;
2335
+ readonly errors: Partial<Record<keyof T, string>>;
2336
+ readonly fieldErrors: Partial<Record<keyof T, string>>;
2337
+ readonly touched: Partial<Record<keyof T, boolean>>;
2338
+ readonly validationSequence: number;
2339
+ readonly setFieldValue: (field: PropertyKey, value: unknown) => void;
2340
+ readonly setFieldError: (field: PropertyKey, error?: string) => void;
2341
+ readonly setFieldTouched: (field: PropertyKey, touched?: boolean) => void;
2342
+ readonly handleChange: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
2343
+ readonly handleBlur: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
2344
+ readonly handleSubmit: (e?: FormEvent) => Promise<void>;
2345
+ readonly resetForm: () => void;
2346
+ readonly validateForm: () => boolean;
2347
+ readonly triggerValidation: () => void;
2348
+ readonly isSubmitting: boolean;
2349
+ readonly isValid: boolean;
2265
2350
  };
2351
+ readonly setFieldValue: (field: keyof T, value: any) => void;
2352
+ readonly setFieldTouched: (field: keyof T, touched?: boolean) => void;
2353
+ readonly setFieldError: (field: keyof T, error?: string) => void;
2354
+ readonly handleChange: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
2355
+ readonly handleBlur: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
2356
+ readonly handleSubmit: (e?: FormEvent) => void;
2357
+ readonly resetForm: () => void;
2358
+ readonly validateForm: () => boolean;
2359
+ readonly triggerValidation: () => void;
2360
+ readonly values: T;
2361
+ readonly errors: Partial<Record<keyof T, string>>;
2362
+ readonly fieldErrors: Partial<Record<keyof T, string>>;
2363
+ readonly touched: Partial<Record<keyof T, boolean>>;
2364
+ readonly isSubmitting: boolean;
2365
+ readonly isValid: boolean;
2366
+ readonly validationSequence: number;
2367
+ };
2368
+ type UseFormReturn<T extends Record<string, any>> = ReturnType<typeof useForm<T>>;
2369
+
2370
+ type FormVariant = 'borderless' | 'filled' | 'outlined';
2371
+ interface FormProps<T extends Record<string, any>> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> {
2372
+ children: ReactNode;
2373
+ onSubmit?: (values: T) => void | Promise<void>;
2374
+ form?: UseFormReturn<T>;
2375
+ initialValues?: T;
2376
+ validate?: (values: T) => Partial<Record<keyof T, string>>;
2377
+ className?: string;
2378
+ /**
2379
+ * Layout of form fields.
2380
+ * - `vertical`: label/description stacked above control (default)
2381
+ * - `horizontal`: label/description on the left, control on the right
2382
+ */
2383
+ layout?: 'vertical' | 'horizontal';
2384
+ /**
2385
+ * When `layout="horizontal"`, sets the width of the label/description column.
2386
+ * Accepts any CSS width value (e.g., `180px`, `12rem`, `30%`).
2387
+ * @default '200px'
2388
+ */
2389
+ labelWidth?: string | number;
2390
+ fieldMinWidth?: string | number;
2391
+ /**
2392
+ * Shared visual style for form wrappers and field components.
2393
+ * @default 'borderless'
2394
+ */
2266
2395
  variant?: FormVariant;
2267
2396
  }
2268
- interface FormGroupItemType {
2269
- children: FormItemProps[] | ReactNode;
2270
- collapsible?: boolean;
2271
- defaultActive?: boolean;
2272
- desc?: ReactNode;
2397
+ interface FormGroupProps {
2398
+ /** Group title */
2399
+ title?: ReactNode;
2400
+ /** Group description */
2401
+ description?: ReactNode;
2402
+ /** Group icon (component or element) */
2403
+ icon?: any;
2404
+ /** Extra content on the right side of the header */
2273
2405
  extra?: ReactNode;
2274
- icon?: IconProps$1['icon'];
2275
- key?: string;
2276
- title: ReactNode;
2277
- variant?: FormVariant;
2278
- }
2279
- interface FormGroupProps extends Omit<CollapseProps, 'collapsible' | 'items' | 'defaultActiveKey' | 'activeKey' | 'variant'> {
2280
- active?: boolean;
2281
- children: ReactNode;
2406
+ /** Group children */
2407
+ children?: ReactNode;
2408
+ /** Additional CSS class */
2409
+ className?: string;
2410
+ /** Style object */
2411
+ style?: CSSProperties;
2412
+ /** Whether the group is collapsible */
2282
2413
  collapsible?: boolean;
2283
- defaultActive?: boolean;
2284
- desc?: ReactNode;
2285
- extra?: ReactNode;
2286
- icon?: IconProps$1['icon'];
2287
- keyValue?: string | number;
2288
- onCollapse?: (active: boolean) => void;
2289
- title?: ReactNode;
2414
+ /** Whether the group is collapsed by default */
2415
+ defaultCollapsed?: boolean;
2416
+ /** Variant style for the group container */
2290
2417
  variant?: FormVariant;
2291
2418
  }
2292
- interface FormItemProps extends FormItemProps$1 {
2293
- avatar?: FormTitleProps['avatar'];
2294
- desc?: FormTitleProps['desc'];
2295
- divider?: boolean;
2296
- hidden?: boolean;
2297
- minWidth?: string | number;
2298
- tag?: FormTitleProps['tag'];
2299
- variant?: FormVariant;
2419
+
2420
+ declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
2421
+ declare namespace Form {
2422
+ var displayName: string;
2300
2423
  }
2301
- interface FormSubmitFooterProps extends Omit<FlexboxProps, 'onReset'> {
2302
- buttonProps?: Omit<ButtonProps, 'children'>;
2303
- children?: ReactNode;
2304
- enableReset?: boolean;
2305
- enableUnsavedWarning?: boolean;
2306
- float?: boolean;
2307
- onReset?: (value: any, preValue: any) => void;
2308
- resetButtonProps?: Omit<ButtonProps, 'children'>;
2309
- saveButtonProps?: Omit<ButtonProps, 'children'>;
2310
- texts?: {
2311
- reset?: string;
2312
- submit?: string;
2313
- unSaved?: string;
2314
- unSavedWarning?: string;
2424
+
2425
+ type FormErrorProps = {
2426
+ message?: string;
2427
+ className?: string;
2428
+ style?: react__default.CSSProperties;
2429
+ };
2430
+ declare const FormError: {
2431
+ ({ message, className, style }: FormErrorProps): react_jsx_runtime.JSX.Element | null;
2432
+ displayName: string;
2433
+ };
2434
+
2435
+ type FormInputProps<T extends Record<string, any>> = Omit<InputProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
2436
+ name: keyof T & string;
2437
+ label?: string;
2438
+ description?: react__default.ReactNode;
2439
+ form?: UseFormReturn<T>;
2440
+ required?: boolean;
2441
+ helperText?: react__default.ReactNode;
2442
+ onChange?: InputProps['onChange'];
2443
+ onBlur?: InputProps['onBlur'];
2444
+ rules?: FormFieldRules<T>;
2445
+ };
2446
+ type FormFieldRules<T extends Record<string, any>> = {
2447
+ required?: boolean | string | {
2448
+ message: string;
2315
2449
  };
2316
- }
2317
- interface FormTitleProps extends Omit<FlexboxProps, 'title'> {
2318
- avatar?: ReactNode;
2319
- classNames?: {
2320
- content?: string;
2321
- desc?: string;
2322
- tag?: string;
2323
- title?: string;
2450
+ pattern?: {
2451
+ value: RegExp;
2452
+ message: string;
2324
2453
  };
2325
- desc?: ReactNode;
2326
- styles?: {
2327
- content?: CSSProperties;
2328
- desc?: CSSProperties;
2329
- tag?: CSSProperties;
2330
- title?: CSSProperties;
2454
+ minLength?: {
2455
+ value: number;
2456
+ message: string;
2331
2457
  };
2332
- tag?: string;
2333
- tagProps?: Omit<TagProps, 'children'>;
2334
- title: ReactNode;
2458
+ maxLength?: {
2459
+ value: number;
2460
+ message: string;
2461
+ };
2462
+ validate?: (value: any, values: T) => string | boolean | void;
2463
+ } | string;
2464
+ declare const runRules: <T extends Record<string, any>>(rules: FormFieldRules<T> | undefined, value: any, values: T) => string | undefined;
2465
+ declare const FormInput: {
2466
+ <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputProps<T>): react_jsx_runtime.JSX.Element;
2467
+ displayName: string;
2468
+ };
2469
+
2470
+ type FormLabelProps = {
2471
+ htmlFor?: string;
2472
+ children: react__default.ReactNode;
2473
+ className?: string;
2474
+ description?: react__default.ReactNode;
2475
+ required?: boolean;
2476
+ };
2477
+ declare const FormLabel: {
2478
+ ({ htmlFor, children, className, description, required }: FormLabelProps): react_jsx_runtime.JSX.Element;
2479
+ displayName: string;
2480
+ };
2481
+
2482
+ type FormTimePickerProps<T extends Record<string, any>> = Omit<TimePickerProps, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2483
+ name: keyof T & string;
2484
+ label?: string;
2485
+ description?: react__default.ReactNode;
2486
+ form?: UseFormReturn<T>;
2487
+ required?: boolean;
2488
+ onValueChange?: (value: string | null, formatted: string) => void;
2489
+ rules?: FormFieldRules<T>;
2490
+ };
2491
+ declare const FormTimePicker: {
2492
+ <T extends Record<string, any>>({ name, label, description, form, required, className, variant: timeVariant, onValueChange, rules, ...pickerProps }: FormTimePickerProps<T>): react_jsx_runtime.JSX.Element;
2493
+ displayName: string;
2494
+ };
2495
+
2496
+ type FormCheckboxProps<T extends Record<string, any>> = Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'onChange'> & {
2497
+ name: keyof T & string;
2498
+ label?: react__default.ReactNode;
2499
+ description?: react__default.ReactNode;
2500
+ form?: UseFormReturn<T>;
2501
+ rules?: FormFieldRules<T>;
2502
+ onChange?: (checked: boolean) => void;
2503
+ };
2504
+ declare const FormCheckbox: {
2505
+ <T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
2506
+ displayName: string;
2507
+ };
2508
+
2509
+ type SwitchSize = 'default' | 'small';
2510
+ type SwitchChangeEventHandler = (checked: boolean, event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
2511
+ type SwitchClickEventHandler = SwitchChangeEventHandler;
2512
+ interface SwitchClassNames {
2513
+ content?: string;
2514
+ root?: string;
2515
+ thumb?: string;
2516
+ }
2517
+ interface SwitchStyles {
2518
+ content?: CSSProperties;
2519
+ root?: CSSProperties;
2520
+ thumb?: CSSProperties;
2521
+ }
2522
+ interface SwitchContextType {
2523
+ isChecked: boolean;
2524
+ isPressed: boolean;
2525
+ setIsChecked: (checked: boolean) => void;
2526
+ setIsPressed: (pressed: boolean) => void;
2527
+ }
2528
+ type SwitchRootProps = Omit<ComponentProps<typeof Switch$1.Root>, 'render'> & HTMLMotionProps<'button'> & {
2529
+ size?: SwitchSize;
2530
+ };
2531
+ type SwitchThumbProps = Omit<ComponentProps<typeof Switch$1.Thumb>, 'render'> & HTMLMotionProps<'span'> & {
2532
+ pressedAnimation?: TargetAndTransition | boolean;
2533
+ size?: SwitchSize;
2534
+ transition?: Transition;
2535
+ };
2536
+ type SwitchIconPosition = 'left' | 'right' | 'thumb';
2537
+ type SwitchIconProps = HTMLMotionProps<'span'> & {
2538
+ position: SwitchIconPosition;
2539
+ transition?: Transition;
2540
+ };
2541
+ interface SwitchProps {
2542
+ /**
2543
+ * Whether to set focus automatically when mounted
2544
+ */
2545
+ autoFocus?: boolean;
2546
+ /**
2547
+ * Whether the switch is checked
2548
+ */
2549
+ checked?: boolean;
2550
+ /**
2551
+ * Icon to show when checked (left position)
2552
+ */
2553
+ checkedChildren?: ReactNode;
2554
+ /**
2555
+ * Custom class name
2556
+ */
2557
+ className?: string;
2558
+ /**
2559
+ * Custom class names for each part
2560
+ */
2561
+ classNames?: SwitchClassNames;
2562
+ /**
2563
+ * Initial checked state (uncontrolled)
2564
+ */
2565
+ defaultChecked?: boolean;
2566
+ /**
2567
+ * Alias for `defaultChecked`
2568
+ */
2569
+ defaultValue?: boolean;
2570
+ /**
2571
+ * Whether the switch is disabled
2572
+ */
2573
+ disabled?: boolean;
2574
+ /**
2575
+ * Element id
2576
+ */
2577
+ id?: string;
2578
+ /**
2579
+ * Show loading indicator
2580
+ */
2581
+ loading?: boolean;
2582
+ /**
2583
+ * Name attribute for form submission
2584
+ */
2585
+ name?: string;
2586
+ /**
2587
+ * Callback when the switch state changes
2588
+ */
2589
+ onChange?: SwitchChangeEventHandler;
2590
+ /**
2591
+ * Callback when clicking the switch
2592
+ */
2593
+ onClick?: SwitchClickEventHandler;
2594
+ /**
2595
+ * Reference to the root element
2596
+ */
2597
+ ref?: Ref<HTMLButtonElement>;
2598
+ /**
2599
+ * Additional class name for root element
2600
+ */
2601
+ rootClassName?: string;
2602
+ /**
2603
+ * Size of the switch
2604
+ * @default 'default'
2605
+ */
2606
+ size?: SwitchSize;
2607
+ /**
2608
+ * Custom inline style
2609
+ */
2610
+ style?: CSSProperties;
2611
+ /**
2612
+ * Custom styles for each part
2613
+ */
2614
+ styles?: SwitchStyles;
2615
+ /**
2616
+ * Tab index for keyboard navigation
2617
+ */
2618
+ tabIndex?: number;
2619
+ /**
2620
+ * Native title attribute
2621
+ */
2622
+ title?: string;
2623
+ /**
2624
+ * Icon to show when unchecked (right position)
2625
+ */
2626
+ unCheckedChildren?: ReactNode;
2627
+ /**
2628
+ * Alias for `checked`
2629
+ */
2630
+ value?: boolean;
2335
2631
  }
2336
2632
 
2337
- declare const FormGroup: react.NamedExoticComponent<FormGroupProps>;
2633
+ type FormSwitchProps<T extends Record<string, any>> = Omit<SwitchProps, 'checked' | 'defaultChecked' | 'onChange' | 'value'> & {
2634
+ name: keyof T & string;
2635
+ label?: string;
2636
+ description?: react__default.ReactNode;
2637
+ form?: UseFormReturn<T>;
2638
+ rules?: FormFieldRules<T>;
2639
+ onChange?: (checked: boolean) => void;
2640
+ };
2641
+ declare const FormSwitch: {
2642
+ <T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
2643
+ displayName: string;
2644
+ };
2338
2645
 
2339
- declare const FormItem: react.NamedExoticComponent<FormItemProps>;
2646
+ type FormDatePickerProps<T extends Record<string, any>> = Omit<DatePickerProps, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2647
+ name: keyof T & string;
2648
+ label?: string;
2649
+ description?: react__default.ReactNode;
2650
+ form?: UseFormReturn<T>;
2651
+ rules?: FormFieldRules<T>;
2652
+ };
2653
+ declare const FormDatePicker: {
2654
+ <T extends Record<string, any>>({ name, label, description, form, className, variant: dateVariant, rules, ...rest }: FormDatePickerProps<T>): react_jsx_runtime.JSX.Element;
2655
+ displayName: string;
2656
+ };
2340
2657
 
2341
- declare const FormSubmitFooter: react.NamedExoticComponent<FormSubmitFooterProps>;
2658
+ type FormSelectProps<T extends Record<string, any>, Value = string> = Omit<SelectProps<Value>, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2659
+ name: keyof T & string;
2660
+ label?: string;
2661
+ description?: react__default.ReactNode;
2662
+ form?: UseFormReturn<T>;
2663
+ rules?: FormFieldRules<T>;
2664
+ options?: SelectOption<Value>[];
2665
+ };
2666
+ declare const FormSelect: {
2667
+ <T extends Record<string, any>, Value = string>({ name, label, description, form, className, variant: selectVariant, rules, ...rest }: FormSelectProps<T, Value>): react_jsx_runtime.JSX.Element;
2668
+ displayName: string;
2669
+ };
2342
2670
 
2343
- declare const FormTitle: FC<FormTitleProps>;
2671
+ type FormSegmentProps = {
2672
+ title?: react__default.ReactNode;
2673
+ description?: react__default.ReactNode;
2674
+ children?: react__default.ReactNode;
2675
+ className?: string;
2676
+ collapsible?: boolean;
2677
+ defaultCollapsed?: boolean;
2678
+ };
2679
+ declare const FormSegment: {
2680
+ ({ title, description, children, className, collapsible, defaultCollapsed, }: FormSegmentProps): react_jsx_runtime.JSX.Element;
2681
+ displayName: string;
2682
+ };
2344
2683
 
2345
- interface IForm {
2346
- (props: FormProps & RefAttributes<FormInstance>): ReactNode;
2684
+ declare const FormGroup: {
2685
+ ({ title, description, icon, extra, children, className, style, collapsible, defaultCollapsed, variant: groupVariant, }: FormGroupProps): react_jsx_runtime.JSX.Element;
2686
+ displayName: string;
2687
+ };
2688
+
2689
+ type FormComponent = <T extends Record<string, any>>(props: FormProps<T> & RefAttributes<HTMLFormElement>) => ReturnType<typeof Form>;
2690
+ type FormCompound = FormComponent & {
2691
+ Input: typeof FormInput;
2692
+ Label: typeof FormLabel;
2693
+ Error: typeof FormError;
2694
+ TimePicker: typeof FormTimePicker;
2695
+ Checkbox: typeof FormCheckbox;
2696
+ Switch: typeof FormSwitch;
2697
+ DatePicker: typeof FormDatePicker;
2698
+ Select: typeof FormSelect;
2699
+ Segment: typeof FormSegment;
2347
2700
  Group: typeof FormGroup;
2348
- Item: typeof FormItem;
2349
- Provider: typeof Form$1.Provider;
2350
- SubmitFooter: typeof FormSubmitFooter;
2351
- Title: typeof FormTitle;
2352
- useForm: typeof Form$1.useForm;
2353
- }
2354
- declare const Form: IForm;
2701
+ };
2702
+ declare const FormComponentImpl: FormCompound;
2355
2703
 
2356
2704
  type ModalProps = Omit<ModalProps$1, 'okType' | 'wrapClassName'> & {
2357
2705
  allowFullscreen?: boolean;
@@ -2406,25 +2754,24 @@ declare const ModalProvider: react.NamedExoticComponent<{
2406
2754
  }>;
2407
2755
  declare const useModalContext: () => ModalContextValue;
2408
2756
 
2409
- type PickModalProps = Pick<ModalProps, 'style' | 'className' | 'allowFullscreen' | 'title' | 'width' | 'onCancel' | 'open' | 'centered' | 'destroyOnHidden' | 'paddings' | 'height' | 'enableResponsive' | 'afterClose' | 'afterOpenChange' | 'zIndex' | 'mask' | 'getContainer' | 'keyboard' | 'forceRender' | 'focusTriggerAfterClose' | 'closable' | 'loading' | 'closeIcon'>;
2410
- type PickFormProps = Omit<FormProps, 'className' | 'style' | 'title' | 'styles' | 'classNames'>;
2411
- interface FormModalProps extends PickModalProps, PickFormProps {
2412
- classNames?: ModalProps['classNames'] & {
2413
- form?: FormProps['className'];
2414
- };
2415
- onSubmit?: ModalProps['onOk'];
2416
- ref?: Ref<FormInstance>;
2417
- styles?: ModalProps['styles'] & {
2418
- form?: FormProps['style'];
2419
- };
2757
+ interface FormModalProps<T extends Record<string, any>> extends Omit<ModalProps, 'footer' | 'onOk' | 'children' | 'title'> {
2758
+ children: ReactNode;
2759
+ form?: UseFormReturn<T>;
2760
+ initialValues?: T;
2761
+ onSubmit?: FormProps<T>['onSubmit'];
2420
2762
  submitButtonProps?: ButtonProps;
2421
- submitLoading?: ModalProps['confirmLoading'];
2422
- submitText?: ModalProps['okText'];
2763
+ submitText?: string;
2764
+ title?: ReactNode;
2765
+ validate?: FormProps<T>['validate'];
2766
+ loading?: boolean;
2423
2767
  }
2424
2768
 
2425
- declare const FormModal: react.NamedExoticComponent<FormModalProps>;
2769
+ declare const FormModal: {
2770
+ <T extends Record<string, any>>({ children, form, initialValues, onSubmit, validate, submitText, submitButtonProps, loading, ...modalProps }: FormModalProps<T>): react_jsx_runtime.JSX.Element;
2771
+ displayName: string;
2772
+ };
2426
2773
 
2427
- interface GridProps extends Omit<FlexboxProps, 'gap'> {
2774
+ interface GridProps extends Omit<FlexProps, 'gap'> {
2428
2775
  gap?: string | number;
2429
2776
  maxItemWidth?: string | number;
2430
2777
  ref?: Ref<HTMLDivElement>;
@@ -2457,7 +2804,7 @@ interface GroupAvatarProps extends Omit<BlockProps, 'width' | 'height' | 'varian
2457
2804
 
2458
2805
  declare const GroupAvatar: FC<GroupAvatarProps>;
2459
2806
 
2460
- interface GuideCardProps extends Omit<FlexboxProps, 'title'> {
2807
+ interface GuideCardProps extends Omit<FlexProps, 'title'> {
2461
2808
  afterClose?: () => void;
2462
2809
  alt?: string;
2463
2810
  classNames?: {
@@ -2486,7 +2833,7 @@ interface GuideCardProps extends Omit<FlexboxProps, 'title'> {
2486
2833
 
2487
2834
  declare const GuideCard: react.NamedExoticComponent<GuideCardProps>;
2488
2835
 
2489
- interface HeaderProps extends FlexboxProps {
2836
+ interface HeaderProps extends FlexProps {
2490
2837
  actions?: ReactNode;
2491
2838
  actionsClassName?: string;
2492
2839
  actionsStyle?: CSSProperties;
@@ -2507,7 +2854,7 @@ interface HighlighterThemeItem {
2507
2854
  }
2508
2855
  declare const highlighterThemes: HighlighterThemeItem[];
2509
2856
 
2510
- interface SyntaxHighlighterProps extends DivProps$1 {
2857
+ interface SyntaxHighlighterProps extends DivProps {
2511
2858
  animated?: boolean;
2512
2859
  children: string;
2513
2860
  enableTransformer?: HighlighterProps['enableTransformer'];
@@ -2516,7 +2863,7 @@ interface SyntaxHighlighterProps extends DivProps$1 {
2516
2863
  theme?: HighlighterProps['theme'];
2517
2864
  variant?: HighlighterProps['variant'];
2518
2865
  }
2519
- interface HighlighterProps extends Omit<FlexboxProps, 'children' | 'wrap'> {
2866
+ interface HighlighterProps extends Omit<FlexProps, 'children' | 'wrap'> {
2520
2867
  actionIconSize?: ActionIconProps['size'];
2521
2868
  actionsRender?: (props: {
2522
2869
  actionIconSize: ActionIconProps['size'];
@@ -2652,7 +2999,7 @@ interface ImageSelectItem {
2652
2999
  label: ReactNode;
2653
3000
  value: string;
2654
3001
  }
2655
- interface ImageSelectProps extends FlexboxProps {
3002
+ interface ImageSelectProps extends FlexProps {
2656
3003
  className?: string;
2657
3004
  classNames?: {
2658
3005
  img?: string;
@@ -2673,7 +3020,7 @@ interface ImageSelectProps extends FlexboxProps {
2673
3020
 
2674
3021
  declare const ImageSelect: react.NamedExoticComponent<ImageSelectProps>;
2675
3022
 
2676
- declare const LayoutFooter: react.NamedExoticComponent<DivProps$1>;
3023
+ declare const LayoutFooter: react.NamedExoticComponent<DivProps>;
2677
3024
 
2678
3025
  interface LayoutProps {
2679
3026
  asideWidth?: number;
@@ -2687,24 +3034,24 @@ interface LayoutProps {
2687
3034
  toc?: ReactNode;
2688
3035
  tocWidth?: number;
2689
3036
  }
2690
- type LayoutFooterProps = DivProps$1;
2691
- interface LayoutHeaderProps extends DivProps$1 {
3037
+ type LayoutFooterProps = DivProps;
3038
+ interface LayoutHeaderProps extends DivProps {
2692
3039
  headerHeight?: number;
2693
3040
  }
2694
- type LayoutMainProps = DivProps$1;
2695
- interface LayoutSidebarProps extends DivProps$1 {
3041
+ type LayoutMainProps = DivProps;
3042
+ interface LayoutSidebarProps extends DivProps {
2696
3043
  headerHeight?: number;
2697
3044
  }
2698
- interface LayoutSidebarInnerProps extends DivProps$1 {
3045
+ interface LayoutSidebarInnerProps extends DivProps {
2699
3046
  headerHeight?: number;
2700
3047
  }
2701
- interface LayoutTocProps extends DivProps$1 {
3048
+ interface LayoutTocProps extends DivProps {
2702
3049
  tocWidth?: number;
2703
3050
  }
2704
3051
 
2705
3052
  declare const LayoutHeader: react.NamedExoticComponent<LayoutHeaderProps>;
2706
3053
 
2707
- declare const LayoutMain: react.NamedExoticComponent<DivProps$1>;
3054
+ declare const LayoutMain: react.NamedExoticComponent<DivProps>;
2708
3055
 
2709
3056
  declare const LayoutSidebar: react.NamedExoticComponent<LayoutSidebarProps>;
2710
3057
 
@@ -2723,7 +3070,7 @@ interface ILayout {
2723
3070
  }
2724
3071
  declare const Layout: ILayout;
2725
3072
 
2726
- interface ListItemProps extends Omit<FlexboxProps, 'title'> {
3073
+ interface ListItemProps extends Omit<FlexProps, 'title'> {
2727
3074
  actions?: ReactNode;
2728
3075
  active?: boolean;
2729
3076
  addon?: ReactNode;
@@ -2756,7 +3103,7 @@ interface ListItemProps extends Omit<FlexboxProps, 'title'> {
2756
3103
  };
2757
3104
  title: ReactNode;
2758
3105
  }
2759
- interface ListProps extends Omit<FlexboxProps, 'onClick'> {
3106
+ interface ListProps extends Omit<FlexProps, 'onClick'> {
2760
3107
  activeKey?: string;
2761
3108
  classNames?: {
2762
3109
  item?: string;
@@ -2780,364 +3127,122 @@ interface IList {
2780
3127
  }
2781
3128
  declare const List: IList;
2782
3129
 
2783
- type LobeSelectSize = 'large' | 'middle' | 'small';
2784
- type LobeSelectVariant = 'borderless' | 'filled' | 'outlined';
2785
- type LobeSelectBehaviorVariant = 'default' | 'item-aligned';
2786
- /**
2787
- * Variant for how selected items are indicated in the popup.
2788
- * - `check`: Display a checkmark icon next to selected items (default)
2789
- * - `bold`: Display selected items with bold text, no checkmark
2790
- */
2791
- type LobeSelectIndicatorVariant = 'check' | 'bold';
2792
- interface LobeSelectOption<Value = string> {
2793
- className?: string;
2794
- disabled?: boolean;
2795
- label: ReactNode;
2796
- style?: CSSProperties;
2797
- title?: string;
2798
- value: Value;
2799
- }
2800
- interface LobeSelectOptionGroup<Value = string> {
2801
- disabled?: boolean;
2802
- label: ReactNode;
2803
- options: LobeSelectOption<Value>[];
2804
- }
2805
- type LobeSelectOptions<Value = string> = Array<LobeSelectOption<Value> | LobeSelectOptionGroup<Value>>;
2806
- interface LobeSelectClassNames {
2807
- clear?: string;
2808
- dropdown?: string;
2809
- empty?: string;
2810
- group?: string;
2811
- groupLabel?: string;
2812
- icon?: string;
2813
- item?: string;
2814
- itemIndicator?: string;
2815
- itemText?: string;
2816
- list?: string;
2817
- option?: string;
2818
- popup?: string;
2819
- prefix?: string;
2820
- root?: string;
2821
- search?: string;
2822
- suffix?: string;
2823
- trigger?: string;
2824
- value?: string;
2825
- }
2826
- interface LobeSelectProps<Value = string> {
2827
- allowClear?: boolean;
2828
- autoFocus?: boolean;
2829
- /**
2830
- * Behavior variant for Base UI Select.
2831
- *
2832
- * - `default`: regular dropdown positioning (alignItemWithTrigger=false, modal=false)
2833
- * - `item-aligned`: aligns the selected item with trigger and uses modal=true
2834
- * @default 'default'
2835
- */
2836
- behaviorVariant?: LobeSelectBehaviorVariant;
2837
- className?: string;
2838
- classNames?: LobeSelectClassNames;
2839
- defaultOpen?: boolean;
2840
- defaultValue?: Value | Value[] | null;
2841
- disabled?: boolean;
2842
- id?: string;
2843
- labelRender?: (option: LobeSelectOption<Value>) => ReactNode;
2844
- /**
2845
- * 设置弹窗滚动高度
2846
- * @default 256
2847
- */
2848
- listHeight?: number;
2849
- listItemHeight?: number;
2850
- loading?: boolean;
2851
- mode?: 'multiple' | 'tags';
2852
- name?: string;
2853
- onChange?: (value: Value | Value[] | null, option?: LobeSelectOption<Value> | LobeSelectOption<Value>[]) => void;
2854
- onOpenChange?: (open: boolean) => void;
2855
- onSelect?: (value: Value, option?: LobeSelectOption<Value>) => void;
2856
- open?: boolean;
2857
- optionRender?: (option: LobeSelectOption<Value>, info: {
2858
- index: number;
2859
- }) => ReactNode;
2860
- options?: LobeSelectOptions<Value>;
2861
- placeholder?: ReactNode;
2862
- popupClassName?: string;
2863
- popupMatchSelectWidth?: boolean | number;
2864
- prefix?: ReactNode | IconProps$1['icon'];
2865
- readOnly?: boolean;
2866
- required?: boolean;
2867
- /**
2868
- * Variant for how selected items are indicated in the popup.
2869
- * - `check`: Display a checkmark icon next to selected items (default)
2870
- * - `bold`: Display selected items with bold text, no checkmark
2871
- * @default 'check'
2872
- */
2873
- selectedIndicatorVariant?: LobeSelectIndicatorVariant;
2874
- shadow?: boolean;
2875
- showSearch?: boolean;
2876
- size?: LobeSelectSize;
2877
- style?: CSSProperties;
2878
- suffixIcon?: IconProps$1['icon'] | ReactNode;
2879
- suffixIconProps?: Omit<IconProps$1, 'icon'>;
2880
- tokenSeparators?: string[];
2881
- value?: Value | Value[] | null;
2882
- variant?: LobeSelectVariant;
2883
- virtual?: boolean;
2884
- }
2885
-
2886
- declare const LOBE_SELECT_CONTAINER_ATTR = "data-lobe-ui-select-container";
3130
+ declare const SELECT_CONTAINER_ATTR = "data-custom-select-container";
3131
+ declare const CUSTOM_SELECT_CONTAINER_ATTR = "data-custom-select-container";
2887
3132
 
2888
- declare const LobeSelectRoot: typeof Select$1.Root;
2889
- declare const LobeSelectBackdrop: react.ForwardRefExoticComponent<_base_ui_react_select.SelectBackdropProps & react.RefAttributes<HTMLDivElement>>;
2890
- declare const LobeSelectSeparator: react.ForwardRefExoticComponent<node_modules__base_ui_react_esm_separator_Separator.SeparatorProps & react.RefAttributes<HTMLDivElement>>;
2891
- type LobeSelectTriggerProps = Omit<ComponentPropsWithRef<typeof Select$1.Trigger>, 'children' | 'render'> & {
3133
+ declare const SelectRoot: typeof Select$1.Root;
3134
+ declare const SelectBackdrop: react.ForwardRefExoticComponent<_base_ui_react_select.SelectBackdropProps & react.RefAttributes<HTMLDivElement>>;
3135
+ declare const SelectSeparator: react.ForwardRefExoticComponent<node_modules__base_ui_react_esm_separator_Separator.SeparatorProps & react.RefAttributes<HTMLDivElement>>;
3136
+ type SelectTriggerProps = Omit<ComponentPropsWithRef<typeof Select$1.Trigger>, 'children' | 'render'> & {
2892
3137
  children: ComponentProps<typeof Select$1.Trigger>['children'];
2893
3138
  shadow?: boolean;
2894
- size?: LobeSelectSize;
2895
- variant?: LobeSelectVariant;
3139
+ size?: SelectSize;
3140
+ variant?: SelectVariant;
2896
3141
  };
2897
- declare const LobeSelectTrigger: {
2898
- ({ children, className, nativeButton, shadow, size, variant, ref: refProp, ...rest }: LobeSelectTriggerProps): react_jsx_runtime.JSX.Element;
3142
+ declare const SelectTrigger: {
3143
+ ({ children, className, nativeButton, shadow, size, variant, ref: refProp, ...rest }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
2899
3144
  displayName: string;
2900
3145
  };
2901
- type LobeSelectIconProps = ComponentProps<typeof Select$1.Icon>;
2902
- declare const LobeSelectIcon: {
2903
- ({ className, ...rest }: LobeSelectIconProps): react_jsx_runtime.JSX.Element;
3146
+ type SelectIconProps = ComponentProps<typeof Select$1.Icon>;
3147
+ declare const SelectIcon: {
3148
+ ({ className, ...rest }: SelectIconProps): react_jsx_runtime.JSX.Element;
2904
3149
  displayName: string;
2905
3150
  };
2906
- type LobeSelectValueProps = ComponentProps<typeof Select$1.Value>;
2907
- declare const LobeSelectValue: {
2908
- ({ className, ...rest }: LobeSelectValueProps): react_jsx_runtime.JSX.Element;
3151
+ type SelectValueProps = ComponentProps<typeof Select$1.Value>;
3152
+ declare const SelectValue: {
3153
+ ({ className, ...rest }: SelectValueProps): react_jsx_runtime.JSX.Element;
2909
3154
  displayName: string;
2910
3155
  };
2911
- type LobeSelectPortalProps = ComponentProps<typeof Select$1.Portal> & {
3156
+ type SelectPortalProps = ComponentProps<typeof Select$1.Portal> & {
2912
3157
  /**
2913
3158
  * When `container` is not provided, it uses a shared container created by `usePortalContainer`.
2914
3159
  */
2915
3160
  container?: HTMLElement | null;
2916
3161
  };
2917
- declare const LobeSelectPortal: {
2918
- ({ container, ...rest }: LobeSelectPortalProps): react_jsx_runtime.JSX.Element;
3162
+ declare const SelectPortal: {
3163
+ ({ container, ...rest }: SelectPortalProps): react_jsx_runtime.JSX.Element;
2919
3164
  displayName: string;
2920
3165
  };
2921
- type LobeSelectPositionerProps = ComponentProps<typeof Select$1.Positioner>;
2922
- declare const LobeSelectPositioner: {
2923
- ({ align, alignItemWithTrigger, className, side, sideOffset, ...rest }: LobeSelectPositionerProps): react_jsx_runtime.JSX.Element;
3166
+ type SelectPositionerProps = ComponentProps<typeof Select$1.Positioner>;
3167
+ declare const SelectPositioner: {
3168
+ ({ align, alignItemWithTrigger, className, side, sideOffset, ...rest }: SelectPositionerProps): react_jsx_runtime.JSX.Element;
2924
3169
  displayName: string;
2925
3170
  };
2926
- type LobeSelectPopupProps = ComponentProps<typeof Select$1.Popup>;
2927
- declare const LobeSelectPopup: {
2928
- ({ className, ...rest }: LobeSelectPopupProps): react_jsx_runtime.JSX.Element;
3171
+ type SelectPopupProps = ComponentProps<typeof Select$1.Popup>;
3172
+ declare const SelectPopup: {
3173
+ ({ className, ...rest }: SelectPopupProps): react_jsx_runtime.JSX.Element;
2929
3174
  displayName: string;
2930
3175
  };
2931
- type LobeSelectListProps = ComponentProps<typeof Select$1.List>;
2932
- declare const LobeSelectList: {
2933
- ({ className, ...rest }: LobeSelectListProps): react_jsx_runtime.JSX.Element;
3176
+ type SelectListProps = ComponentProps<typeof Select$1.List>;
3177
+ declare const SelectList: {
3178
+ ({ className, ...rest }: SelectListProps): react_jsx_runtime.JSX.Element;
2934
3179
  displayName: string;
2935
3180
  };
2936
- type LobeSelectItemProps = ComponentProps<typeof Select$1.Item>;
2937
- declare const LobeSelectItem: {
2938
- ({ className, ...rest }: LobeSelectItemProps): react_jsx_runtime.JSX.Element;
3181
+ type SelectItemProps = ComponentProps<typeof Select$1.Item>;
3182
+ declare const SelectItem: {
3183
+ ({ className, ...rest }: SelectItemProps): react_jsx_runtime.JSX.Element;
2939
3184
  displayName: string;
2940
3185
  };
2941
- type LobeSelectItemTextProps = ComponentProps<typeof Select$1.ItemText>;
2942
- declare const LobeSelectItemText: {
2943
- ({ className, ...rest }: LobeSelectItemTextProps): react_jsx_runtime.JSX.Element;
3186
+ type SelectItemTextProps = ComponentProps<typeof Select$1.ItemText>;
3187
+ declare const SelectItemText: {
3188
+ ({ className, ...rest }: SelectItemTextProps): react_jsx_runtime.JSX.Element;
2944
3189
  displayName: string;
2945
3190
  };
2946
- type LobeSelectItemIndicatorProps = ComponentProps<typeof Select$1.ItemIndicator>;
2947
- declare const LobeSelectItemIndicator: {
2948
- ({ className, ...rest }: LobeSelectItemIndicatorProps): react_jsx_runtime.JSX.Element;
3191
+ type SelectItemIndicatorProps = ComponentProps<typeof Select$1.ItemIndicator>;
3192
+ declare const SelectItemIndicator: {
3193
+ ({ className, ...rest }: SelectItemIndicatorProps): react_jsx_runtime.JSX.Element;
2949
3194
  displayName: string;
2950
3195
  };
2951
- type LobeSelectGroupProps = ComponentProps<typeof Select$1.Group>;
2952
- declare const LobeSelectGroup: {
2953
- ({ className, ...rest }: LobeSelectGroupProps): react_jsx_runtime.JSX.Element;
3196
+ type SelectGroupProps = ComponentProps<typeof Select$1.Group>;
3197
+ declare const SelectGroup: {
3198
+ ({ className, ...rest }: SelectGroupProps): react_jsx_runtime.JSX.Element;
2954
3199
  displayName: string;
2955
3200
  };
2956
- type LobeSelectGroupLabelProps = ComponentProps<typeof Select$1.GroupLabel>;
2957
- declare const LobeSelectGroupLabel: {
2958
- ({ className, ...rest }: LobeSelectGroupLabelProps): react_jsx_runtime.JSX.Element;
3201
+ type SelectGroupLabelProps = ComponentProps<typeof Select$1.GroupLabel>;
3202
+ declare const SelectGroupLabel: {
3203
+ ({ className, ...rest }: SelectGroupLabelProps): react_jsx_runtime.JSX.Element;
2959
3204
  displayName: string;
2960
3205
  };
2961
- type LobeSelectScrollUpArrowProps = ComponentProps<typeof Select$1.ScrollUpArrow>;
2962
- declare const LobeSelectScrollUpArrow: {
2963
- ({ className, ...rest }: LobeSelectScrollUpArrowProps): react_jsx_runtime.JSX.Element;
3206
+ type SelectScrollUpArrowProps = ComponentProps<typeof Select$1.ScrollUpArrow>;
3207
+ declare const SelectScrollUpArrow: {
3208
+ ({ className, ...rest }: SelectScrollUpArrowProps): react_jsx_runtime.JSX.Element;
2964
3209
  displayName: string;
2965
3210
  };
2966
- type LobeSelectScrollDownArrowProps = ComponentProps<typeof Select$1.ScrollDownArrow>;
2967
- declare const LobeSelectScrollDownArrow: {
2968
- ({ className, ...rest }: LobeSelectScrollDownArrowProps): react_jsx_runtime.JSX.Element;
3211
+ type SelectScrollDownArrowProps = ComponentProps<typeof Select$1.ScrollDownArrow>;
3212
+ declare const SelectScrollDownArrow: {
3213
+ ({ className, ...rest }: SelectScrollDownArrowProps): react_jsx_runtime.JSX.Element;
2969
3214
  displayName: string;
2970
3215
  };
2971
- type LobeSelectArrowProps = ComponentProps<typeof Select$1.Arrow>;
2972
- declare const LobeSelectArrow: {
2973
- ({ className, ...rest }: LobeSelectArrowProps): react_jsx_runtime.JSX.Element;
3216
+ type SelectArrowProps = ComponentProps<typeof Select$1.Arrow>;
3217
+ declare const SelectArrow: {
3218
+ ({ className, ...rest }: SelectArrowProps): react_jsx_runtime.JSX.Element;
2974
3219
  displayName: string;
2975
3220
  };
2976
3221
 
2977
- declare const LobeSelect: react.NamedExoticComponent<LobeSelectProps<any>>;
3222
+ declare const Select: react.NamedExoticComponent<SelectProps<any>>;
2978
3223
 
2979
- type LobeSwitchSize = 'default' | 'small';
2980
- type LobeSwitchChangeEventHandler = (checked: boolean, event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
2981
- type LobeSwitchClickEventHandler = LobeSwitchChangeEventHandler;
2982
- interface LobeSwitchClassNames {
2983
- content?: string;
2984
- root?: string;
2985
- thumb?: string;
2986
- }
2987
- interface LobeSwitchStyles {
2988
- content?: CSSProperties;
2989
- root?: CSSProperties;
2990
- thumb?: CSSProperties;
2991
- }
2992
- interface LobeSwitchContextType {
2993
- isChecked: boolean;
2994
- isPressed: boolean;
2995
- setIsChecked: (checked: boolean) => void;
2996
- setIsPressed: (pressed: boolean) => void;
2997
- }
2998
- type LobeSwitchRootProps = Omit<ComponentProps<typeof Switch.Root>, 'render'> & HTMLMotionProps<'button'> & {
2999
- size?: LobeSwitchSize;
3224
+ declare const useSwitchContext: () => SwitchContextType;
3225
+ type SwitchRootInternalProps = Omit<SwitchRootProps, 'onCheckedChange' | 'onClick'> & {
3226
+ onCheckedChange?: SwitchChangeEventHandler;
3227
+ onClick?: SwitchChangeEventHandler;
3000
3228
  };
3001
- type LobeSwitchThumbProps = Omit<ComponentProps<typeof Switch.Thumb>, 'render'> & HTMLMotionProps<'span'> & {
3002
- pressedAnimation?: TargetAndTransition | boolean;
3003
- size?: LobeSwitchSize;
3004
- transition?: Transition;
3005
- };
3006
- type LobeSwitchIconPosition = 'left' | 'right' | 'thumb';
3007
- type LobeSwitchIconProps = HTMLMotionProps<'span'> & {
3008
- position: LobeSwitchIconPosition;
3009
- transition?: Transition;
3010
- };
3011
- interface LobeSwitchProps {
3012
- /**
3013
- * Whether to set focus automatically when mounted
3014
- */
3015
- autoFocus?: boolean;
3016
- /**
3017
- * Whether the switch is checked
3018
- */
3019
- checked?: boolean;
3020
- /**
3021
- * Icon to show when checked (left position)
3022
- */
3023
- checkedChildren?: ReactNode;
3024
- /**
3025
- * Custom class name
3026
- */
3027
- className?: string;
3028
- /**
3029
- * Custom class names for each part
3030
- */
3031
- classNames?: LobeSwitchClassNames;
3032
- /**
3033
- * Initial checked state (uncontrolled)
3034
- */
3035
- defaultChecked?: boolean;
3036
- /**
3037
- * Alias for `defaultChecked`
3038
- */
3039
- defaultValue?: boolean;
3040
- /**
3041
- * Whether the switch is disabled
3042
- */
3043
- disabled?: boolean;
3044
- /**
3045
- * Element id
3046
- */
3047
- id?: string;
3048
- /**
3049
- * Show loading indicator
3050
- */
3051
- loading?: boolean;
3052
- /**
3053
- * Name attribute for form submission
3054
- */
3055
- name?: string;
3056
- /**
3057
- * Callback when the switch state changes
3058
- */
3059
- onChange?: LobeSwitchChangeEventHandler;
3060
- /**
3061
- * Callback when clicking the switch
3062
- */
3063
- onClick?: LobeSwitchClickEventHandler;
3064
- /**
3065
- * Reference to the root element
3066
- */
3067
- ref?: Ref<HTMLButtonElement>;
3068
- /**
3069
- * Additional class name for root element
3070
- */
3071
- rootClassName?: string;
3072
- /**
3073
- * Size of the switch
3074
- * @default 'default'
3075
- */
3076
- size?: LobeSwitchSize;
3077
- /**
3078
- * Custom inline style
3079
- */
3080
- style?: CSSProperties;
3081
- /**
3082
- * Custom styles for each part
3083
- */
3084
- styles?: LobeSwitchStyles;
3085
- /**
3086
- * Tab index for keyboard navigation
3087
- */
3088
- tabIndex?: number;
3089
- /**
3090
- * Native title attribute
3091
- */
3092
- title?: string;
3093
- /**
3094
- * Icon to show when unchecked (right position)
3095
- */
3096
- unCheckedChildren?: ReactNode;
3097
- /**
3098
- * Alias for `checked`
3099
- */
3100
- value?: boolean;
3101
- }
3102
-
3103
- declare const styles$1: {
3104
- icon: string;
3105
- iconLeft: string;
3106
- iconLeftSmall: string;
3107
- iconRight: string;
3108
- iconRightSmall: string;
3109
- iconThumb: string;
3110
- loading: string;
3111
- root: string;
3112
- rootDefault: string;
3113
- rootSmall: string;
3114
- thumb: string;
3115
- thumbDefault: string;
3116
- thumbSmall: string;
3117
- };
3118
-
3119
- declare const useLobeSwitchContext: () => LobeSwitchContextType;
3120
- type LobeSwitchRootInternalProps = Omit<LobeSwitchRootProps, 'onCheckedChange' | 'onClick'> & {
3121
- onCheckedChange?: LobeSwitchChangeEventHandler;
3122
- onClick?: LobeSwitchChangeEventHandler;
3123
- };
3124
- declare const LobeSwitchRoot: {
3125
- ({ checked, className, defaultChecked, onCheckedChange, onClick, size, children, disabled, readOnly, required, inputRef, id, name, ...rest }: LobeSwitchRootInternalProps): react_jsx_runtime.JSX.Element;
3229
+ declare const SwitchRoot: {
3230
+ ({ checked, className, defaultChecked, onCheckedChange, onClick, size, children, disabled, readOnly, required, inputRef, id, name, ...rest }: SwitchRootInternalProps): react_jsx_runtime.JSX.Element;
3126
3231
  displayName: string;
3127
3232
  };
3128
- declare const LobeSwitchThumb: {
3129
- ({ className, pressedAnimation, size, transition, children, ...rest }: LobeSwitchThumbProps): react_jsx_runtime.JSX.Element;
3233
+ declare const SwitchThumb: {
3234
+ ({ className, pressedAnimation, size, transition, children, ...rest }: SwitchThumbProps): react_jsx_runtime.JSX.Element;
3130
3235
  displayName: string;
3131
3236
  };
3132
- declare const LobeSwitchIcon: {
3133
- ({ children, className, position, transition, ...rest }: LobeSwitchIconProps & {
3237
+ declare const SwitchIcon: {
3238
+ ({ children, className, position, transition, ...rest }: SwitchIconProps & {
3134
3239
  children?: React.ReactNode;
3135
3240
  size?: "default" | "small";
3136
3241
  }): react_jsx_runtime.JSX.Element;
3137
3242
  displayName: string;
3138
3243
  };
3139
3244
 
3140
- declare const LobeSwitch: react.NamedExoticComponent<LobeSwitchProps>;
3245
+ declare const Switch: react.NamedExoticComponent<SwitchProps>;
3141
3246
 
3142
3247
  interface MermaidThemeItem {
3143
3248
  background?: string;
@@ -3156,7 +3261,7 @@ interface SyntaxMermaidProps {
3156
3261
  theme?: MermaidProps['theme'];
3157
3262
  variant?: MermaidProps['variant'];
3158
3263
  }
3159
- interface MermaidProps extends DivProps$1 {
3264
+ interface MermaidProps extends DivProps {
3160
3265
  actionIconSize?: ActionIconProps['size'];
3161
3266
  actionsRender?: (props: {
3162
3267
  actionIconSize: ActionIconProps['size'];
@@ -3195,6 +3300,15 @@ declare const Mermaid: react.NamedExoticComponent<MermaidProps>;
3195
3300
 
3196
3301
  declare const SyntaxMermaid: react.NamedExoticComponent<SyntaxMermaidProps>;
3197
3302
 
3303
+ interface TagProps extends Omit<TagProps$1, 'color' | 'variant'> {
3304
+ color?: TagProps$1['color'] | 'info';
3305
+ ref?: Ref<HTMLDivElement>;
3306
+ size?: 'small' | 'middle' | 'large';
3307
+ variant?: 'filled' | 'outlined' | 'borderless';
3308
+ }
3309
+
3310
+ declare const Tag: FC<TagProps>;
3311
+
3198
3312
  type ImageProps = ImageProps$1;
3199
3313
 
3200
3314
  interface CitationItem {
@@ -3204,7 +3318,7 @@ interface CitationItem {
3204
3318
  url: string;
3205
3319
  }
3206
3320
 
3207
- interface SnippetProps extends FlexboxProps {
3321
+ interface SnippetProps extends FlexProps {
3208
3322
  children: string;
3209
3323
  copyable?: boolean;
3210
3324
  language?: string;
@@ -3219,7 +3333,7 @@ declare const Snippet: FC<SnippetProps>;
3219
3333
 
3220
3334
  type PreProps = HighlighterProps;
3221
3335
 
3222
- interface VideoProps$1 extends VideoProps$2, Pick<FlexboxProps, 'width' | 'height'> {
3336
+ interface VideoProps$1 extends VideoProps$2, Pick<FlexProps, 'width' | 'height'> {
3223
3337
  autoPlay?: boolean;
3224
3338
  classNames?: {
3225
3339
  mask?: string;
@@ -3264,7 +3378,7 @@ interface TabsProps extends TabsProps$1 {
3264
3378
 
3265
3379
  declare const Tabs: FC<TabsProps>;
3266
3380
 
3267
- interface TypographyProps extends DivProps$1 {
3381
+ interface TypographyProps extends DivProps {
3268
3382
  borderRadius?: number;
3269
3383
  fontSize?: number;
3270
3384
  headerMultiple?: number;
@@ -3322,7 +3436,7 @@ interface SearchResultItem {
3322
3436
  title?: string;
3323
3437
  url: string;
3324
3438
  }
3325
- interface SearchResultCardsProps extends FlexboxProps {
3439
+ interface SearchResultCardsProps extends FlexProps {
3326
3440
  dataSource: string[] | SearchResultItem[];
3327
3441
  ref?: Ref<HTMLDivElement>;
3328
3442
  }
@@ -3382,7 +3496,7 @@ interface RemarkVideoOptions {
3382
3496
  */
3383
3497
  declare const remarkVideo: (options?: RemarkVideoOptions) => (tree: any) => void;
3384
3498
 
3385
- interface MaskShadowProps extends FlexboxProps {
3499
+ interface MaskShadowProps extends FlexProps {
3386
3500
  position?: 'top' | 'bottom' | 'left' | 'right';
3387
3501
  size?: number;
3388
3502
  visibility?: 'auto' | 'always' | 'never';
@@ -3390,7 +3504,7 @@ interface MaskShadowProps extends FlexboxProps {
3390
3504
 
3391
3505
  declare const MaskShadow: react.NamedExoticComponent<MaskShadowProps>;
3392
3506
 
3393
- interface MaterialFileTypeIconProps extends DivProps$1 {
3507
+ interface MaterialFileTypeIconProps extends DivProps {
3394
3508
  fallbackUnknownType?: boolean;
3395
3509
  filename: string;
3396
3510
  open?: boolean;
@@ -3480,7 +3594,7 @@ interface ScrollAreaProps extends Omit<ScrollAreaRootProps, 'children'> {
3480
3594
 
3481
3595
  declare const ScrollArea: FC<ScrollAreaProps>;
3482
3596
 
3483
- interface ScrollShadowProps extends FlexboxProps {
3597
+ interface ScrollShadowProps extends FlexProps {
3484
3598
  hideScrollBar?: boolean;
3485
3599
  isEnabled?: boolean;
3486
3600
  offset?: number;
@@ -3503,11 +3617,21 @@ interface SearchBarProps extends Omit<InputProps, 'styles' | 'classNames'> {
3503
3617
  input?: string;
3504
3618
  shortKey?: string;
3505
3619
  };
3620
+ defaultOpen?: boolean;
3506
3621
  defaultValue?: string;
3507
3622
  enableShortKey?: boolean;
3508
3623
  loading?: boolean;
3624
+ modal?: boolean;
3625
+ modalProps?: Omit<ModalProps, 'children' | 'open'> & {
3626
+ onCancel?: ModalProps['onCancel'];
3627
+ };
3628
+ modalTitle?: ReactNode;
3629
+ modalWidth?: number | string;
3630
+ modalContent?: ReactNode | ((value: string, close: () => void) => ReactNode);
3509
3631
  onInputChange?: (value: string) => void;
3632
+ onOpenChange?: (open: boolean) => void;
3510
3633
  onSearch?: (value: string) => void;
3634
+ open?: boolean;
3511
3635
  shortKey?: string;
3512
3636
  spotlight?: boolean;
3513
3637
  styles?: {
@@ -3530,19 +3654,7 @@ interface SegmentedProps extends SegmentedProps$1 {
3530
3654
 
3531
3655
  declare const Segmented: react.NamedExoticComponent<SegmentedProps>;
3532
3656
 
3533
- interface SelectProps extends Omit<SelectProps$1, 'suffixIcon'> {
3534
- ref?: Ref<RefSelectProps>;
3535
- shadow?: boolean;
3536
- suffixIcon?: IconProps$1['icon'];
3537
- suffixIconProps?: Omit<IconProps$1, 'icon'>;
3538
- }
3539
-
3540
- /**
3541
- * @deprecated Use `LobeSelect` instead.
3542
- */
3543
- declare const Select: react.NamedExoticComponent<SelectProps>;
3544
-
3545
- interface SideNavProps extends FlexboxProps {
3657
+ interface SideNavProps extends FlexProps {
3546
3658
  avatar?: ReactNode;
3547
3659
  bottomActions: ReactNode;
3548
3660
  topActions?: ReactNode;
@@ -3635,7 +3747,7 @@ interface SliderWithInputProps extends Omit<SliderSingleProps, 'classNames' | 's
3635
3747
  slider?: string;
3636
3748
  } & SliderSingleProps['classNames'];
3637
3749
  controls?: InputNumberProps['controls'];
3638
- gap?: FlexboxProps['gap'];
3750
+ gap?: FlexProps['gap'];
3639
3751
  size?: InputNumberProps['size'];
3640
3752
  styles?: {
3641
3753
  input?: CSSProperties;
@@ -3649,7 +3761,7 @@ declare const SliderWithInput: react.NamedExoticComponent<SliderWithInputProps>;
3649
3761
 
3650
3762
  declare const DragHandle: react.NamedExoticComponent<ActionIconProps>;
3651
3763
 
3652
- interface SortableItemProps extends Omit<FlexboxProps, 'id'> {
3764
+ interface SortableItemProps extends Omit<FlexProps, 'id'> {
3653
3765
  id: string | number;
3654
3766
  variant?: 'borderless' | 'filled' | 'outlined';
3655
3767
  }
@@ -3659,7 +3771,7 @@ interface SortableListItem {
3659
3771
  [key: string]: any;
3660
3772
  id: string | number;
3661
3773
  }
3662
- interface SortableListProps extends Omit<FlexboxProps, 'onChange'> {
3774
+ interface SortableListProps extends Omit<FlexProps, 'onChange'> {
3663
3775
  items: SortableListItem[];
3664
3776
  onChange(items: SortableListItem[]): void;
3665
3777
  ref?: Ref<HTMLUListElement>;
@@ -3673,6 +3785,72 @@ interface ISortableList {
3673
3785
  }
3674
3786
  declare const SortableList: ISortableList;
3675
3787
 
3788
+ type TableAlign = "left" | "center" | "right";
3789
+ type TableColumnFixed = "start" | "end" | "left" | "right" | true;
3790
+ type TableColumn<TData> = {
3791
+ key: string;
3792
+ title: string;
3793
+ item?: string;
3794
+ sortable?: boolean;
3795
+ hiddeable?: boolean;
3796
+ width?: number | string;
3797
+ align?: TableAlign;
3798
+ fixed?: TableColumnFixed;
3799
+ headerClassName?: string;
3800
+ cellClassName?: string;
3801
+ headerStyle?: react.CSSProperties;
3802
+ cellStyle?: react.CSSProperties;
3803
+ func?: (row: TData, context: {
3804
+ value: unknown;
3805
+ rowIndex: number;
3806
+ }) => react.ReactNode;
3807
+ };
3808
+ type TableReadConfig<TData> = {
3809
+ method?: "get" | "post";
3810
+ url?: string;
3811
+ get?: string;
3812
+ post?: string;
3813
+ payload?: unknown;
3814
+ body?: unknown;
3815
+ params?: Record<string, unknown>;
3816
+ headers?: HeadersInit;
3817
+ resultKey?: string;
3818
+ mapData?: (raw: unknown) => TData[];
3819
+ delay?: number;
3820
+ };
3821
+ type TableDataSource<TData> = {
3822
+ bind?: TData[];
3823
+ read?: TableReadConfig<TData>;
3824
+ };
3825
+ type TablePageSizeConfig = {
3826
+ visible?: boolean;
3827
+ count?: number;
3828
+ options?: number[];
3829
+ };
3830
+ type AntdTablePropsBase<TData> = Omit<TableProps$1<TData>, "columns" | "dataSource" | "pagination">;
3831
+ interface TableProps<TData> extends AntdTablePropsBase<TData> {
3832
+ data: TableDataSource<TData>;
3833
+ columns: TableColumn<TData>[];
3834
+ pagination?: boolean;
3835
+ sortable?: boolean;
3836
+ reload?: boolean;
3837
+ filterable?: boolean;
3838
+ selectable?: boolean;
3839
+ height?: number | string;
3840
+ rowHeight?: number;
3841
+ overscan?: number;
3842
+ defaultPageSize?: number;
3843
+ pageSize?: TablePageSizeConfig;
3844
+ className?: string;
3845
+ emptyState?: react.ReactNode;
3846
+ onDataChange?: (rows: TData[]) => void;
3847
+ }
3848
+
3849
+ declare const Table: {
3850
+ <TData extends object>({ data, columns, pagination, sortable, reload, filterable, selectable: selectableProp, height, defaultPageSize, pageSize, className, emptyState, onDataChange, loading: loadingProp, rowSelection: rowSelectionProp, rowKey: rowKeyProp, bordered: borderedProp, size: sizeProp, sticky: stickyProp, scroll: scrollProp, virtual: virtualProp, locale: localeProp, style: tableStyle, ...restTableProps }: TableProps<TData>): react_jsx_runtime.JSX.Element;
3851
+ displayName: string;
3852
+ };
3853
+
3676
3854
  declare const primaryColors: {
3677
3855
  blue: string;
3678
3856
  cyan: string;
@@ -3745,8 +3923,6 @@ declare const CLASSNAMES: {
3745
3923
  DropdownMenuTrigger: string;
3746
3924
  };
3747
3925
 
3748
- declare const LOBE_THEME_APP_ID = "lobe-ui-theme-app";
3749
-
3750
3926
  interface ThemeProviderProps extends ThemeProviderProps$1<any> {
3751
3927
  className?: string;
3752
3928
  customFonts?: string[];
@@ -3762,6 +3938,10 @@ interface ThemeProviderProps extends ThemeProviderProps$1<any> {
3762
3938
  };
3763
3939
  enableCustomFonts?: boolean;
3764
3940
  enableGlobalStyle?: boolean;
3941
+ /**
3942
+ * Global mobile mode. Components with an `isMobile` prop will default to this value.
3943
+ */
3944
+ isMobile?: boolean;
3765
3945
  style?: CSSProperties;
3766
3946
  }
3767
3947
  interface MetaProps {
@@ -3774,7 +3954,7 @@ declare const Meta: FC<MetaProps>;
3774
3954
 
3775
3955
  declare const ThemeProvider: react.NamedExoticComponent<ThemeProviderProps>;
3776
3956
 
3777
- interface ThemeSwitchProps extends DivProps$1 {
3957
+ interface ThemeSwitchProps extends DivProps {
3778
3958
  labels?: {
3779
3959
  auto: string;
3780
3960
  dark: string;
@@ -4052,4 +4232,4 @@ declare const _default: {
4052
4232
  type: string;
4053
4233
  };
4054
4234
 
4055
- export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DROPDOWN_MENU_CONTAINER_ATTR, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps$1 as DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, EditorSlashMenuGroup$1 as EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, FileTypeIcon, type FileTypeIconProps, _default$9 as FlexBasic, type FlexBasicProps, _default$9 as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps$1 as IconProps, IconProvider, type IconSize, Image, type ImageProps$1 as ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, LOBE_SELECT_CONTAINER_ATTR, LOBE_THEME_APP_ID, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, LobeSelect, LobeSelectArrow, type LobeSelectArrowProps, LobeSelectBackdrop, LobeSelectGroup, LobeSelectGroupLabel, type LobeSelectGroupLabelProps, type LobeSelectGroupProps, LobeSelectIcon, type LobeSelectIconProps, LobeSelectItem, LobeSelectItemIndicator, type LobeSelectItemIndicatorProps, type LobeSelectItemProps, LobeSelectItemText, type LobeSelectItemTextProps, LobeSelectList, type LobeSelectListProps, LobeSelectPopup, type LobeSelectPopupProps, LobeSelectPortal, type LobeSelectPortalProps, LobeSelectPositioner, type LobeSelectPositionerProps, type LobeSelectProps, LobeSelectRoot, LobeSelectScrollDownArrow, type LobeSelectScrollDownArrowProps, LobeSelectScrollUpArrow, type LobeSelectScrollUpArrowProps, LobeSelectSeparator, LobeSelectTrigger, type LobeSelectTriggerProps, LobeSelectValue, type LobeSelectValueProps, LobeSwitch, type LobeSwitchChangeEventHandler, type LobeSwitchClassNames, type LobeSwitchClickEventHandler, type LobeSwitchContextType, LobeSwitchIcon, type LobeSwitchIconPosition, type LobeSwitchIconProps, type LobeSwitchProps, LobeSwitchRoot, type LobeSwitchRootProps, type LobeSwitchSize, type LobeSwitchStyles, LobeSwitchThumb, type LobeSwitchThumbProps, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, type NeutralColors, type NeutralColorsObj, POPOVER_CONTAINER_ATTR, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, type PrimaryColors, type PrimaryColorsObj, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, type SelectProps, _default as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, type SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, Video, type VideoProps$1 as VideoProps, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles$1 as lobeSwitchStyles, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useCdnFn, useLobeSwitchContext, useModalContext, useMotionComponent, usePopoverContext, usePopoverPortalContainer, useToast, useTranslation };
4235
+ export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, CUSTOM_SELECT_CONTAINER_ATTR, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DROPDOWN_MENU_CONTAINER_ATTR, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, EditorSlashMenuGroup$1 as EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, FileTypeIcon, type FileTypeIconProps, Flex, type FlexDirection, type FlexProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, FormComponentImpl as Form, FormCheckbox, type FormConfig, FormDatePicker, FormError, type FormFieldRules, FormGroup, FormInput, FormLabel, FormModal, type FormModalProps, type FormProps, FormSegment, FormSelect, type FormState, FormSwitch, FormTimePicker, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps$1 as IconProps, IconProvider, type IconSize, Image, type ImageProps$1 as ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputMask, type InputMaskProps, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, type NeutralColors, type NeutralColorsObj, POPOVER_CONTAINER_ATTR, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, type PrimaryColors, type PrimaryColorsObj, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, SELECT_CONTAINER_ATTR, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, _default as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, type SvgProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Table, type TableColumn, type TableDataSource, type TablePageSizeConfig, type TableProps, type TableReadConfig, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type Meridiem as TimePickerMeridiem, type TimePickerProps, type TimeValue as TimePickerValue, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, type UseFormReturn, Video, type VideoProps$1 as VideoProps, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, runRules, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useCdnFn, useForm, useModalContext, useMotionComponent, usePopoverContext, usePopoverPortalContainer, useSwitchContext, useToast, useTranslation };