@refineui/react 0.2.0 → 0.3.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/authoring-manifest.cjs +20 -6
- package/dist/authoring-manifest.cjs.map +1 -1
- package/dist/authoring-manifest.js +20 -6
- package/dist/authoring-manifest.js.map +1 -1
- package/dist/index.cjs +709 -258
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +714 -263
- package/dist/index.js.map +1 -1
- package/dist/spec/authoring/components/navigation-menu-content.json +19 -5
- package/dist/spec/authoring/manifest.json +20 -6
- package/dist/spec/contract-index.json +1 -1
- package/dist/spec/token-trace-v2.json +1 -1
- package/package.json +5 -3
- package/refineui.css +4710 -2402
- package/spec/authoring/components/navigation-menu-content.json +19 -5
- package/spec/authoring/manifest.json +20 -6
package/dist/index.d.cts
CHANGED
|
@@ -6511,7 +6511,7 @@ type TableHeadProps = ThHTMLAttributes<HTMLTableCellElement>;
|
|
|
6511
6511
|
type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
6512
6512
|
type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
6513
6513
|
|
|
6514
|
-
/** Dense semantic table —
|
|
6514
|
+
/** Dense semantic table — state and surface chrome are encoded by its Tailwind styles. */
|
|
6515
6515
|
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
6516
6516
|
declare function TableHeader({ className, ...props }: TableHeaderProps): react.JSX.Element;
|
|
6517
6517
|
declare function TableBody({ className, ...props }: TableBodyProps): react.JSX.Element;
|
|
@@ -6850,7 +6850,7 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
6850
6850
|
disabled?: boolean;
|
|
6851
6851
|
}
|
|
6852
6852
|
|
|
6853
|
-
/** Web Kit `Link` `226:158` — colors and
|
|
6853
|
+
/** Web Kit `Link` `226:158` — colors and interaction states live with the component recipe. */
|
|
6854
6854
|
declare function Link({ showExternalIcon, target, disabled, children, className, ...props }: LinkProps): react.JSX.Element;
|
|
6855
6855
|
|
|
6856
6856
|
type MenuPositioning = {
|
|
@@ -6934,6 +6934,17 @@ interface NavigationMenuTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButto
|
|
|
6934
6934
|
children: ReactNode;
|
|
6935
6935
|
}
|
|
6936
6936
|
interface NavigationMenuContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
6937
|
+
/**
|
|
6938
|
+
* Surface and positioning treatment for the panel. Compact dropdown is the
|
|
6939
|
+
* default; floating and overlay let consuming navigation compose wider panels.
|
|
6940
|
+
* @default "dropdown"
|
|
6941
|
+
*/
|
|
6942
|
+
layout?: "dropdown" | "floating" | "overlay";
|
|
6943
|
+
/**
|
|
6944
|
+
* Optional portal boundary for embedded previews and contained experiences.
|
|
6945
|
+
* Panels position themselves relative to this element when provided.
|
|
6946
|
+
*/
|
|
6947
|
+
portalContainer?: Element | null;
|
|
6937
6948
|
}
|
|
6938
6949
|
interface NavigationMenuLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6939
6950
|
/** Marks the current page (`aria-current="page"`). */
|
|
@@ -6946,7 +6957,7 @@ declare function NavigationMenu({ children, className, value: valueControlled, d
|
|
|
6946
6957
|
declare function NavigationMenuList({ className, onKeyDown, ...props }: NavigationMenuListProps): react.JSX.Element;
|
|
6947
6958
|
declare function NavigationMenuItem({ children, className, value: valueProp, onPointerEnter, onPointerLeave, ...props }: NavigationMenuItemProps): react.JSX.Element;
|
|
6948
6959
|
declare function NavigationMenuTrigger({ children, className, disabled, onClick, onKeyDown, ...props }: NavigationMenuTriggerProps): react.JSX.Element;
|
|
6949
|
-
declare function NavigationMenuContent(
|
|
6960
|
+
declare function NavigationMenuContent(props: NavigationMenuContentProps): react.JSX.Element;
|
|
6950
6961
|
declare function NavigationMenuLink({ children, className, active, onClick, onFocus, "aria-disabled": ariaDisabled, ...props }: NavigationMenuLinkProps): react.JSX.Element;
|
|
6951
6962
|
declare function NavigationMenuIndicator({ className, style, ...props }: NavigationMenuIndicatorProps): react.JSX.Element | null;
|
|
6952
6963
|
|
|
@@ -7238,7 +7249,7 @@ declare function ResizableHandle({ className, style, withHandle, disabled, onKey
|
|
|
7238
7249
|
|
|
7239
7250
|
type ScrollAreaOrientation = "vertical" | "horizontal";
|
|
7240
7251
|
/** When the custom scrollbar is visible. */
|
|
7241
|
-
type ScrollAreaType = "hover" | "always";
|
|
7252
|
+
type ScrollAreaType = "hover" | "scroll" | "always";
|
|
7242
7253
|
/**
|
|
7243
7254
|
* Rows marked `data-scroll-edge-item` always blur as they cross an edge that hides more content
|
|
7244
7255
|
* (picker-style); see the ScrollArea docs. Elements between the viewport and those rows must
|
|
@@ -7255,7 +7266,7 @@ type ScrollAreaThumbProps = HTMLAttributes<HTMLDivElement>;
|
|
|
7255
7266
|
|
|
7256
7267
|
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
7257
7268
|
declare const ScrollAreaViewport: react.ForwardRefExoticComponent<ScrollAreaViewportProps & react.RefAttributes<HTMLDivElement>>;
|
|
7258
|
-
declare function ScrollAreaScrollbar({ orientation, className, children, onPointerDown, ...props }: ScrollAreaScrollbarProps): react.JSX.Element;
|
|
7269
|
+
declare function ScrollAreaScrollbar({ orientation, className, children, onPointerDown, onPointerEnter, onPointerLeave, ...props }: ScrollAreaScrollbarProps): react.JSX.Element;
|
|
7259
7270
|
declare function ScrollAreaThumb({ className, style, ...props }: ScrollAreaThumbProps): react.JSX.Element;
|
|
7260
7271
|
|
|
7261
7272
|
interface SpinButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
package/dist/index.d.ts
CHANGED
|
@@ -6511,7 +6511,7 @@ type TableHeadProps = ThHTMLAttributes<HTMLTableCellElement>;
|
|
|
6511
6511
|
type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
6512
6512
|
type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
6513
6513
|
|
|
6514
|
-
/** Dense semantic table —
|
|
6514
|
+
/** Dense semantic table — state and surface chrome are encoded by its Tailwind styles. */
|
|
6515
6515
|
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
6516
6516
|
declare function TableHeader({ className, ...props }: TableHeaderProps): react.JSX.Element;
|
|
6517
6517
|
declare function TableBody({ className, ...props }: TableBodyProps): react.JSX.Element;
|
|
@@ -6850,7 +6850,7 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
6850
6850
|
disabled?: boolean;
|
|
6851
6851
|
}
|
|
6852
6852
|
|
|
6853
|
-
/** Web Kit `Link` `226:158` — colors and
|
|
6853
|
+
/** Web Kit `Link` `226:158` — colors and interaction states live with the component recipe. */
|
|
6854
6854
|
declare function Link({ showExternalIcon, target, disabled, children, className, ...props }: LinkProps): react.JSX.Element;
|
|
6855
6855
|
|
|
6856
6856
|
type MenuPositioning = {
|
|
@@ -6934,6 +6934,17 @@ interface NavigationMenuTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButto
|
|
|
6934
6934
|
children: ReactNode;
|
|
6935
6935
|
}
|
|
6936
6936
|
interface NavigationMenuContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
6937
|
+
/**
|
|
6938
|
+
* Surface and positioning treatment for the panel. Compact dropdown is the
|
|
6939
|
+
* default; floating and overlay let consuming navigation compose wider panels.
|
|
6940
|
+
* @default "dropdown"
|
|
6941
|
+
*/
|
|
6942
|
+
layout?: "dropdown" | "floating" | "overlay";
|
|
6943
|
+
/**
|
|
6944
|
+
* Optional portal boundary for embedded previews and contained experiences.
|
|
6945
|
+
* Panels position themselves relative to this element when provided.
|
|
6946
|
+
*/
|
|
6947
|
+
portalContainer?: Element | null;
|
|
6937
6948
|
}
|
|
6938
6949
|
interface NavigationMenuLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6939
6950
|
/** Marks the current page (`aria-current="page"`). */
|
|
@@ -6946,7 +6957,7 @@ declare function NavigationMenu({ children, className, value: valueControlled, d
|
|
|
6946
6957
|
declare function NavigationMenuList({ className, onKeyDown, ...props }: NavigationMenuListProps): react.JSX.Element;
|
|
6947
6958
|
declare function NavigationMenuItem({ children, className, value: valueProp, onPointerEnter, onPointerLeave, ...props }: NavigationMenuItemProps): react.JSX.Element;
|
|
6948
6959
|
declare function NavigationMenuTrigger({ children, className, disabled, onClick, onKeyDown, ...props }: NavigationMenuTriggerProps): react.JSX.Element;
|
|
6949
|
-
declare function NavigationMenuContent(
|
|
6960
|
+
declare function NavigationMenuContent(props: NavigationMenuContentProps): react.JSX.Element;
|
|
6950
6961
|
declare function NavigationMenuLink({ children, className, active, onClick, onFocus, "aria-disabled": ariaDisabled, ...props }: NavigationMenuLinkProps): react.JSX.Element;
|
|
6951
6962
|
declare function NavigationMenuIndicator({ className, style, ...props }: NavigationMenuIndicatorProps): react.JSX.Element | null;
|
|
6952
6963
|
|
|
@@ -7238,7 +7249,7 @@ declare function ResizableHandle({ className, style, withHandle, disabled, onKey
|
|
|
7238
7249
|
|
|
7239
7250
|
type ScrollAreaOrientation = "vertical" | "horizontal";
|
|
7240
7251
|
/** When the custom scrollbar is visible. */
|
|
7241
|
-
type ScrollAreaType = "hover" | "always";
|
|
7252
|
+
type ScrollAreaType = "hover" | "scroll" | "always";
|
|
7242
7253
|
/**
|
|
7243
7254
|
* Rows marked `data-scroll-edge-item` always blur as they cross an edge that hides more content
|
|
7244
7255
|
* (picker-style); see the ScrollArea docs. Elements between the viewport and those rows must
|
|
@@ -7255,7 +7266,7 @@ type ScrollAreaThumbProps = HTMLAttributes<HTMLDivElement>;
|
|
|
7255
7266
|
|
|
7256
7267
|
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
7257
7268
|
declare const ScrollAreaViewport: react.ForwardRefExoticComponent<ScrollAreaViewportProps & react.RefAttributes<HTMLDivElement>>;
|
|
7258
|
-
declare function ScrollAreaScrollbar({ orientation, className, children, onPointerDown, ...props }: ScrollAreaScrollbarProps): react.JSX.Element;
|
|
7269
|
+
declare function ScrollAreaScrollbar({ orientation, className, children, onPointerDown, onPointerEnter, onPointerLeave, ...props }: ScrollAreaScrollbarProps): react.JSX.Element;
|
|
7259
7270
|
declare function ScrollAreaThumb({ className, style, ...props }: ScrollAreaThumbProps): react.JSX.Element;
|
|
7260
7271
|
|
|
7261
7272
|
interface SpinButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|