@q1travel/design-system 0.30.1 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-pkg/design-system.d.ts +11 -2
- package/dist-pkg/design-system.js +6151 -5951
- package/dist-pkg/style.css +22 -1
- package/package.json +1 -1
|
@@ -580,13 +580,14 @@ export declare function CollapsibleBreadcrumb({ items, label }: {
|
|
|
580
580
|
label: string;
|
|
581
581
|
}): JSX.Element;
|
|
582
582
|
|
|
583
|
-
export declare function Combobox({ options, value, onChange, onSearch, isLoading, placeholder, size, disabled, readOnly, invalid, errorId, error, emptyText, clearable, id, className, name, inputMode, spellCheck, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, ref, ...rest }: ComboboxProps): JSX.Element;
|
|
583
|
+
export declare function Combobox({ options, searchPlacement, searchPlaceholder, footer, value, onChange, onSearch, isLoading, placeholder, size, disabled, readOnly, invalid, errorId, error, emptyText, clearable, id, className, name, inputMode, spellCheck, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, ref, ...rest }: ComboboxProps): JSX.Element;
|
|
584
584
|
|
|
585
585
|
export declare type ComboboxOption = {
|
|
586
586
|
/** 禁止空字符串(与「未选」的受控空值歧义,adapter 层保证)。 */
|
|
587
587
|
value: string;
|
|
588
588
|
/** 显示与过滤的唯一来源。 */
|
|
589
589
|
label: string;
|
|
590
|
+
description?: string;
|
|
590
591
|
disabled?: boolean;
|
|
591
592
|
/** 组件透而不读,仅随 onChange 第二参原样带回。 */
|
|
592
593
|
meta?: unknown;
|
|
@@ -599,6 +600,12 @@ export declare type ComboboxOption = {
|
|
|
599
600
|
export declare type ComboboxProps = {
|
|
600
601
|
/** 唯一 shape,后端字段在 adapter 层转换。 */
|
|
601
602
|
options: ComboboxOption[];
|
|
603
|
+
/** 默认在触发器输入;panel 使用按钮触发并将搜索放在弹层。 */
|
|
604
|
+
searchPlacement?: 'input' | 'panel';
|
|
605
|
+
/** 面板搜索的独立占位文案。 */
|
|
606
|
+
searchPlaceholder?: string;
|
|
607
|
+
/** 列表之外的操作区,进入正常 Tab 顺序。 */
|
|
608
|
+
footer?: ReactNode;
|
|
602
609
|
/** 受控选中值;'' = 未选。 */
|
|
603
610
|
value: string;
|
|
604
611
|
/** 选中传 (option.value, option);clearable 清除传 ('', undefined)。 */
|
|
@@ -1573,7 +1580,7 @@ declare type ModalLegacyDismissalProps = {
|
|
|
1573
1580
|
export declare type ModalProps = ModalBaseProps & (ModalLegacyDismissalProps | ModalEscapeActionProps);
|
|
1574
1581
|
|
|
1575
1582
|
/** 标签触发器与弹层搜索组合;选项变更保持展开,选中值完全受控。 */
|
|
1576
|
-
export declare function MultiCombobox({ options, value, onChange, onOpenChange, selectedOptions, placeholder, searchPlaceholder, onSearch, searchValue, isLoading, loadError, onRetry, emptyText, disabled, readOnly, invalid, errorId, error, clearable, id, name, className, ref, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby }: MultiComboboxProps): JSX.Element;
|
|
1583
|
+
export declare function MultiCombobox({ options, value, onChange, onOpenChange, selectedOptions, placeholder, searchPlaceholder, onSearch, searchValue, isLoading, loadError, onRetry, emptyText, footer, required, disabled, readOnly, invalid, errorId, error, clearable, id, name, className, ref, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby }: MultiComboboxProps): JSX.Element;
|
|
1577
1584
|
|
|
1578
1585
|
export declare type MultiComboboxChangeDetails = {
|
|
1579
1586
|
action: 'select' | 'remove' | 'clear';
|
|
@@ -1607,6 +1614,8 @@ export declare type MultiComboboxProps = {
|
|
|
1607
1614
|
loadError?: ReactNode;
|
|
1608
1615
|
onRetry?: () => void;
|
|
1609
1616
|
emptyText?: ReactNode;
|
|
1617
|
+
footer?: ReactNode;
|
|
1618
|
+
required?: boolean;
|
|
1610
1619
|
disabled?: boolean;
|
|
1611
1620
|
readOnly?: boolean;
|
|
1612
1621
|
invalid?: boolean;
|