@omniviewdev/base-ui 0.6.0 → 0.7.0
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/base-ui.css +1 -1
- package/dist/index.d.ts +26 -6
- package/dist/index.js +7626 -7497
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1140,6 +1140,9 @@ declare type CommandListCompound = typeof CommandListRoot & {
|
|
|
1140
1140
|
ItemIcon: typeof CommandListItemIcon;
|
|
1141
1141
|
ItemLabel: typeof CommandListItemLabel;
|
|
1142
1142
|
ItemDescription: typeof CommandListItemDescription;
|
|
1143
|
+
ItemContent: typeof CommandListItemContent;
|
|
1144
|
+
ItemMeta: typeof CommandListItemMeta;
|
|
1145
|
+
ItemDisabledReason: typeof CommandListItemDisabledReason;
|
|
1143
1146
|
ItemShortcut: typeof CommandListItemShortcut;
|
|
1144
1147
|
Empty: typeof CommandListEmpty;
|
|
1145
1148
|
Loading: typeof CommandListLoading;
|
|
@@ -1169,8 +1172,14 @@ declare interface CommandListInputProps extends Omit<SearchInputProps, 'value' |
|
|
|
1169
1172
|
|
|
1170
1173
|
declare const CommandListItem: ForwardRefExoticComponent<CommandListItemProps & RefAttributes<HTMLDivElement>>;
|
|
1171
1174
|
|
|
1175
|
+
/** Compound item layout: label, metadata, and shortcut first, description below. */
|
|
1176
|
+
declare const CommandListItemContent: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
1177
|
+
|
|
1172
1178
|
declare const CommandListItemDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1173
1179
|
|
|
1180
|
+
/** Unlike descriptions, disabled reasons wrap so the explanation stays visible. */
|
|
1181
|
+
declare const CommandListItemDisabledReason: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1182
|
+
|
|
1174
1183
|
declare const CommandListItemIcon: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1175
1184
|
|
|
1176
1185
|
declare const CommandListItemLabel: ForwardRefExoticComponent<CommandListItemLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -1179,6 +1188,8 @@ declare interface CommandListItemLabelProps extends HTMLAttributes<HTMLSpanEleme
|
|
|
1179
1188
|
highlights?: HighlightRange[];
|
|
1180
1189
|
}
|
|
1181
1190
|
|
|
1191
|
+
declare const CommandListItemMeta: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1192
|
+
|
|
1182
1193
|
export declare interface CommandListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
1183
1194
|
itemKey: Key_2;
|
|
1184
1195
|
disabled?: boolean;
|
|
@@ -2296,15 +2307,16 @@ export declare interface HighlightRange {
|
|
|
2296
2307
|
end: number;
|
|
2297
2308
|
}
|
|
2298
2309
|
|
|
2299
|
-
export declare
|
|
2300
|
-
|
|
2301
|
-
}
|
|
2302
|
-
ref?: PolymorphicRef<C> | undefined;
|
|
2303
|
-
}) => ReactElement | null;
|
|
2310
|
+
export declare function Hotkey<E extends HotkeyElement = 'kbd'>({ keys, children, ...props }: HotkeyProps<E> & {
|
|
2311
|
+
ref?: PolymorphicRef<E>;
|
|
2312
|
+
}): JSX.Element;
|
|
2304
2313
|
|
|
2305
2314
|
declare type HotkeyElement = 'kbd' | 'span';
|
|
2306
2315
|
|
|
2307
|
-
export declare type HotkeyProps<E extends HotkeyElement = HotkeyElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps
|
|
2316
|
+
export declare type HotkeyProps<E extends HotkeyElement = HotkeyElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps & {
|
|
2317
|
+
/** Keys pressed together, rendered with a plus separator by default. */
|
|
2318
|
+
keys?: readonly string[];
|
|
2319
|
+
}>;
|
|
2308
2320
|
|
|
2309
2321
|
export declare const IconButton: ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
2310
2322
|
|
|
@@ -3923,6 +3935,14 @@ export declare interface SearchInputProps extends Omit<InputControlProps, 'start
|
|
|
3923
3935
|
rootProps?: Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'color'>;
|
|
3924
3936
|
}
|
|
3925
3937
|
|
|
3938
|
+
/** Opens a search surface using the same shell and sizing as a text input. */
|
|
3939
|
+
export declare const SearchTrigger: ForwardRefExoticComponent<SearchTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
3940
|
+
|
|
3941
|
+
export declare interface SearchTriggerProps extends Omit<ComponentPropsWithoutRef<'button'>, 'color' | 'children'>, StyledComponentProps {
|
|
3942
|
+
placeholder?: string;
|
|
3943
|
+
shortcut?: ReactNode;
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3926
3946
|
declare const SecondarySidebar: ForwardRefExoticComponent<AppShellSecondarySidebarProps & RefAttributes<HTMLElement>>;
|
|
3927
3947
|
|
|
3928
3948
|
export declare interface Section {
|