@refineui/react 0.1.2 → 0.2.1
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/authoring-manifest.cjs +29 -2
- package/dist/authoring-manifest.cjs.map +1 -1
- package/dist/authoring-manifest.js +29 -2
- package/dist/authoring-manifest.js.map +1 -1
- package/dist/index.cjs +697 -490
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -12
- package/dist/index.d.ts +50 -12
- package/dist/index.js +342 -135
- package/dist/index.js.map +1 -1
- package/dist/spec/authoring/components/command.json +15 -1
- package/dist/spec/authoring/components/search-field.json +13 -0
- package/dist/spec/authoring/manifest.json +29 -2
- package/dist/spec/components/command.json +8 -0
- package/dist/spec/components/search-field.json +5 -0
- package/dist/spec/contract-index.json +1 -1
- package/dist/spec/token-trace-v2.json +1 -1
- package/package.json +2 -2
- package/refineui.css +151 -11
- package/spec/authoring/components/command.json +15 -1
- package/spec/authoring/components/search-field.json +13 -0
- package/spec/authoring/manifest.json +29 -2
- package/spec/components/command.json +8 -0
- package/spec/components/search-field.json +5 -0
package/dist/index.d.cts
CHANGED
|
@@ -2072,10 +2072,21 @@ declare const componentTypographyTokens: {
|
|
|
2072
2072
|
type: "semantic-text";
|
|
2073
2073
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2074
2074
|
}>;
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2075
|
+
/** Row text follows the Command size, like Tree rows. */
|
|
2076
|
+
readonly item: {
|
|
2077
|
+
readonly sm: Readonly<{
|
|
2078
|
+
type: "semantic-text";
|
|
2079
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2080
|
+
}>;
|
|
2081
|
+
readonly md: Readonly<{
|
|
2082
|
+
type: "semantic-text";
|
|
2083
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2084
|
+
}>;
|
|
2085
|
+
readonly lg: Readonly<{
|
|
2086
|
+
type: "semantic-text";
|
|
2087
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2088
|
+
}>;
|
|
2089
|
+
};
|
|
2079
2090
|
readonly empty: Readonly<{
|
|
2080
2091
|
type: "semantic-text";
|
|
2081
2092
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
@@ -4492,10 +4503,20 @@ declare const componentTokens: {
|
|
|
4492
4503
|
type: "semantic-text";
|
|
4493
4504
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4494
4505
|
}>;
|
|
4495
|
-
readonly item:
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4506
|
+
readonly item: {
|
|
4507
|
+
readonly sm: Readonly<{
|
|
4508
|
+
type: "semantic-text";
|
|
4509
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4510
|
+
}>;
|
|
4511
|
+
readonly md: Readonly<{
|
|
4512
|
+
type: "semantic-text";
|
|
4513
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4514
|
+
}>;
|
|
4515
|
+
readonly lg: Readonly<{
|
|
4516
|
+
type: "semantic-text";
|
|
4517
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4518
|
+
}>;
|
|
4519
|
+
};
|
|
4499
4520
|
readonly empty: Readonly<{
|
|
4500
4521
|
type: "semantic-text";
|
|
4501
4522
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
@@ -5943,7 +5964,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
5943
5964
|
|
|
5944
5965
|
declare function Input({ error, success, fullWidth, size: sizeProp, disabled, className, ...props }: InputProps): react.JSX.Element;
|
|
5945
5966
|
|
|
5946
|
-
/** Shared sm / md / lg tiers for Input, SpinButton — keep in sync. */
|
|
5967
|
+
/** Shared sm / md / lg tiers for Input, SpinButton, SearchField — keep in sync. */
|
|
5947
5968
|
|
|
5948
5969
|
type FormControlSize = ControlSize;
|
|
5949
5970
|
|
|
@@ -5992,6 +6013,12 @@ interface SearchFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChang
|
|
|
5992
6013
|
* @default "filled"
|
|
5993
6014
|
*/
|
|
5994
6015
|
appearance?: "filled" | "plain";
|
|
6016
|
+
/**
|
|
6017
|
+
* Control size — same tiers as Input. Inherits from `Field` when omitted.
|
|
6018
|
+
* `plain` only takes the size's typography and icon sizes.
|
|
6019
|
+
* @default "md"
|
|
6020
|
+
*/
|
|
6021
|
+
size?: "sm" | "md" | "lg";
|
|
5995
6022
|
/** Forwarded to the inner input. */
|
|
5996
6023
|
id?: string;
|
|
5997
6024
|
/** Accessible name for the search input. */
|
|
@@ -6007,7 +6034,7 @@ type SearchFieldClearProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type
|
|
|
6007
6034
|
children?: ReactNode;
|
|
6008
6035
|
};
|
|
6009
6036
|
|
|
6010
|
-
declare function SearchField({ value, defaultValue, onValueChange, disabled, appearance, className, children, id, onPointerDown, "aria-label": ariaLabel, ...props }: SearchFieldProps): react.JSX.Element;
|
|
6037
|
+
declare function SearchField({ value, defaultValue, onValueChange, disabled, appearance, size: sizeProp, className, children, id, onPointerDown, "aria-label": ariaLabel, ...props }: SearchFieldProps): react.JSX.Element;
|
|
6011
6038
|
declare function SearchFieldIcon({ children, className, ...props }: SearchFieldIconProps): react.JSX.Element;
|
|
6012
6039
|
declare const SearchFieldInput: react.ForwardRefExoticComponent<SearchFieldInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
6013
6040
|
declare function SearchFieldClear({ className, children, disabled: disabledProp, onClick, "aria-label": ariaLabel, ...props }: SearchFieldClearProps): react.JSX.Element | null;
|
|
@@ -6224,7 +6251,13 @@ declare function DialogDescription({ className, id, children, ...props }: Dialog
|
|
|
6224
6251
|
declare function DialogClose({ className, onClick, type, ...props }: DialogCloseProps): react.JSX.Element;
|
|
6225
6252
|
|
|
6226
6253
|
type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
|
|
6254
|
+
type CommandSize = "sm" | "md" | "lg";
|
|
6227
6255
|
interface CommandProps extends HTMLAttributes<HTMLDivElement> {
|
|
6256
|
+
/**
|
|
6257
|
+
* Density of the search field, results panel radius, and item rows — same tiers as SearchField.
|
|
6258
|
+
* @default "md" (`CommandDialog` defaults to `"lg"`)
|
|
6259
|
+
*/
|
|
6260
|
+
size?: CommandSize;
|
|
6228
6261
|
/** Controlled search query */
|
|
6229
6262
|
value?: string;
|
|
6230
6263
|
/** Uncontrolled initial search query */
|
|
@@ -6271,7 +6304,7 @@ interface CommandItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
6271
6304
|
type CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;
|
|
6272
6305
|
|
|
6273
6306
|
declare const defaultCommandFilter: CommandFilter;
|
|
6274
|
-
declare function Command({ children, className, value, defaultValue, onValueChange, shouldFilter, filter, selectedValue: selectedValueProp, defaultSelectedValue, onSelectedValueChange, label, onKeyDown, ...props }: CommandProps): react.JSX.Element;
|
|
6307
|
+
declare function Command({ children, className, size, value, defaultValue, onValueChange, shouldFilter, filter, selectedValue: selectedValueProp, defaultSelectedValue, onSelectedValueChange, label, onKeyDown, ...props }: CommandProps): react.JSX.Element;
|
|
6275
6308
|
declare function CommandDialog({ children, commandProps, size, ...dialogProps }: CommandDialogProps): react.JSX.Element;
|
|
6276
6309
|
declare const CommandInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "onChange"> & {
|
|
6277
6310
|
startIcon?: ReactNode;
|
|
@@ -6948,7 +6981,7 @@ interface SidebarLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
6948
6981
|
declare function Sidebar({ className, ...props }: SidebarProps): react.JSX.Element;
|
|
6949
6982
|
declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): react.JSX.Element;
|
|
6950
6983
|
declare function SidebarBrand({ className, ...props }: SidebarBrandProps): react.JSX.Element;
|
|
6951
|
-
declare function SidebarContent({ className, ...props }: SidebarContentProps): react.JSX.Element;
|
|
6984
|
+
declare function SidebarContent({ className, children, ...props }: SidebarContentProps): react.JSX.Element;
|
|
6952
6985
|
declare function SidebarNav({ className, "aria-label": ariaLabel, ...props }: SidebarNavProps): react.JSX.Element;
|
|
6953
6986
|
declare function SidebarGroup({ className, ...props }: SidebarGroupProps): react.JSX.Element;
|
|
6954
6987
|
declare function SidebarGroupLabel({ className, ...props }: SidebarGroupLabelProps): react.JSX.Element;
|
|
@@ -7206,6 +7239,11 @@ declare function ResizableHandle({ className, style, withHandle, disabled, onKey
|
|
|
7206
7239
|
type ScrollAreaOrientation = "vertical" | "horizontal";
|
|
7207
7240
|
/** When the custom scrollbar is visible. */
|
|
7208
7241
|
type ScrollAreaType = "hover" | "always";
|
|
7242
|
+
/**
|
|
7243
|
+
* Rows marked `data-scroll-edge-item` always blur as they cross an edge that hides more content
|
|
7244
|
+
* (picker-style); see the ScrollArea docs. Elements between the viewport and those rows must
|
|
7245
|
+
* not be scroll containers (`overflow: hidden`) — use `overflow: clip`.
|
|
7246
|
+
*/
|
|
7209
7247
|
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
7210
7248
|
type?: ScrollAreaType;
|
|
7211
7249
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2072,10 +2072,21 @@ declare const componentTypographyTokens: {
|
|
|
2072
2072
|
type: "semantic-text";
|
|
2073
2073
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2074
2074
|
}>;
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2075
|
+
/** Row text follows the Command size, like Tree rows. */
|
|
2076
|
+
readonly item: {
|
|
2077
|
+
readonly sm: Readonly<{
|
|
2078
|
+
type: "semantic-text";
|
|
2079
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2080
|
+
}>;
|
|
2081
|
+
readonly md: Readonly<{
|
|
2082
|
+
type: "semantic-text";
|
|
2083
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2084
|
+
}>;
|
|
2085
|
+
readonly lg: Readonly<{
|
|
2086
|
+
type: "semantic-text";
|
|
2087
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
2088
|
+
}>;
|
|
2089
|
+
};
|
|
2079
2090
|
readonly empty: Readonly<{
|
|
2080
2091
|
type: "semantic-text";
|
|
2081
2092
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
@@ -4492,10 +4503,20 @@ declare const componentTokens: {
|
|
|
4492
4503
|
type: "semantic-text";
|
|
4493
4504
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4494
4505
|
}>;
|
|
4495
|
-
readonly item:
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4506
|
+
readonly item: {
|
|
4507
|
+
readonly sm: Readonly<{
|
|
4508
|
+
type: "semantic-text";
|
|
4509
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4510
|
+
}>;
|
|
4511
|
+
readonly md: Readonly<{
|
|
4512
|
+
type: "semantic-text";
|
|
4513
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4514
|
+
}>;
|
|
4515
|
+
readonly lg: Readonly<{
|
|
4516
|
+
type: "semantic-text";
|
|
4517
|
+
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
4518
|
+
}>;
|
|
4519
|
+
};
|
|
4499
4520
|
readonly empty: Readonly<{
|
|
4500
4521
|
type: "semantic-text";
|
|
4501
4522
|
name: "displayLg" | "displayMd" | "displaySm" | "headingLg" | "headingMd" | "headingSm" | "titleLg" | "titleMd" | "titleSm" | "subtitleLg" | "subtitleMd" | "bodyLg" | "bodyMd" | "bodySm" | "bodyXs" | "labelLg" | "labelMd" | "labelSm" | "captionLg" | "captionMd" | "captionSm";
|
|
@@ -5943,7 +5964,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
5943
5964
|
|
|
5944
5965
|
declare function Input({ error, success, fullWidth, size: sizeProp, disabled, className, ...props }: InputProps): react.JSX.Element;
|
|
5945
5966
|
|
|
5946
|
-
/** Shared sm / md / lg tiers for Input, SpinButton — keep in sync. */
|
|
5967
|
+
/** Shared sm / md / lg tiers for Input, SpinButton, SearchField — keep in sync. */
|
|
5947
5968
|
|
|
5948
5969
|
type FormControlSize = ControlSize;
|
|
5949
5970
|
|
|
@@ -5992,6 +6013,12 @@ interface SearchFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChang
|
|
|
5992
6013
|
* @default "filled"
|
|
5993
6014
|
*/
|
|
5994
6015
|
appearance?: "filled" | "plain";
|
|
6016
|
+
/**
|
|
6017
|
+
* Control size — same tiers as Input. Inherits from `Field` when omitted.
|
|
6018
|
+
* `plain` only takes the size's typography and icon sizes.
|
|
6019
|
+
* @default "md"
|
|
6020
|
+
*/
|
|
6021
|
+
size?: "sm" | "md" | "lg";
|
|
5995
6022
|
/** Forwarded to the inner input. */
|
|
5996
6023
|
id?: string;
|
|
5997
6024
|
/** Accessible name for the search input. */
|
|
@@ -6007,7 +6034,7 @@ type SearchFieldClearProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type
|
|
|
6007
6034
|
children?: ReactNode;
|
|
6008
6035
|
};
|
|
6009
6036
|
|
|
6010
|
-
declare function SearchField({ value, defaultValue, onValueChange, disabled, appearance, className, children, id, onPointerDown, "aria-label": ariaLabel, ...props }: SearchFieldProps): react.JSX.Element;
|
|
6037
|
+
declare function SearchField({ value, defaultValue, onValueChange, disabled, appearance, size: sizeProp, className, children, id, onPointerDown, "aria-label": ariaLabel, ...props }: SearchFieldProps): react.JSX.Element;
|
|
6011
6038
|
declare function SearchFieldIcon({ children, className, ...props }: SearchFieldIconProps): react.JSX.Element;
|
|
6012
6039
|
declare const SearchFieldInput: react.ForwardRefExoticComponent<SearchFieldInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
6013
6040
|
declare function SearchFieldClear({ className, children, disabled: disabledProp, onClick, "aria-label": ariaLabel, ...props }: SearchFieldClearProps): react.JSX.Element | null;
|
|
@@ -6224,7 +6251,13 @@ declare function DialogDescription({ className, id, children, ...props }: Dialog
|
|
|
6224
6251
|
declare function DialogClose({ className, onClick, type, ...props }: DialogCloseProps): react.JSX.Element;
|
|
6225
6252
|
|
|
6226
6253
|
type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
|
|
6254
|
+
type CommandSize = "sm" | "md" | "lg";
|
|
6227
6255
|
interface CommandProps extends HTMLAttributes<HTMLDivElement> {
|
|
6256
|
+
/**
|
|
6257
|
+
* Density of the search field, results panel radius, and item rows — same tiers as SearchField.
|
|
6258
|
+
* @default "md" (`CommandDialog` defaults to `"lg"`)
|
|
6259
|
+
*/
|
|
6260
|
+
size?: CommandSize;
|
|
6228
6261
|
/** Controlled search query */
|
|
6229
6262
|
value?: string;
|
|
6230
6263
|
/** Uncontrolled initial search query */
|
|
@@ -6271,7 +6304,7 @@ interface CommandItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
6271
6304
|
type CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;
|
|
6272
6305
|
|
|
6273
6306
|
declare const defaultCommandFilter: CommandFilter;
|
|
6274
|
-
declare function Command({ children, className, value, defaultValue, onValueChange, shouldFilter, filter, selectedValue: selectedValueProp, defaultSelectedValue, onSelectedValueChange, label, onKeyDown, ...props }: CommandProps): react.JSX.Element;
|
|
6307
|
+
declare function Command({ children, className, size, value, defaultValue, onValueChange, shouldFilter, filter, selectedValue: selectedValueProp, defaultSelectedValue, onSelectedValueChange, label, onKeyDown, ...props }: CommandProps): react.JSX.Element;
|
|
6275
6308
|
declare function CommandDialog({ children, commandProps, size, ...dialogProps }: CommandDialogProps): react.JSX.Element;
|
|
6276
6309
|
declare const CommandInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "onChange"> & {
|
|
6277
6310
|
startIcon?: ReactNode;
|
|
@@ -6948,7 +6981,7 @@ interface SidebarLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
6948
6981
|
declare function Sidebar({ className, ...props }: SidebarProps): react.JSX.Element;
|
|
6949
6982
|
declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): react.JSX.Element;
|
|
6950
6983
|
declare function SidebarBrand({ className, ...props }: SidebarBrandProps): react.JSX.Element;
|
|
6951
|
-
declare function SidebarContent({ className, ...props }: SidebarContentProps): react.JSX.Element;
|
|
6984
|
+
declare function SidebarContent({ className, children, ...props }: SidebarContentProps): react.JSX.Element;
|
|
6952
6985
|
declare function SidebarNav({ className, "aria-label": ariaLabel, ...props }: SidebarNavProps): react.JSX.Element;
|
|
6953
6986
|
declare function SidebarGroup({ className, ...props }: SidebarGroupProps): react.JSX.Element;
|
|
6954
6987
|
declare function SidebarGroupLabel({ className, ...props }: SidebarGroupLabelProps): react.JSX.Element;
|
|
@@ -7206,6 +7239,11 @@ declare function ResizableHandle({ className, style, withHandle, disabled, onKey
|
|
|
7206
7239
|
type ScrollAreaOrientation = "vertical" | "horizontal";
|
|
7207
7240
|
/** When the custom scrollbar is visible. */
|
|
7208
7241
|
type ScrollAreaType = "hover" | "always";
|
|
7242
|
+
/**
|
|
7243
|
+
* Rows marked `data-scroll-edge-item` always blur as they cross an edge that hides more content
|
|
7244
|
+
* (picker-style); see the ScrollArea docs. Elements between the viewport and those rows must
|
|
7245
|
+
* not be scroll containers (`overflow: hidden`) — use `overflow: clip`.
|
|
7246
|
+
*/
|
|
7209
7247
|
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
7210
7248
|
type?: ScrollAreaType;
|
|
7211
7249
|
}
|