@theroutingcompany/components 0.0.152-alpha.2 → 0.0.153-alpha.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/trc-components.es.js +36 -21
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +5 -4
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/types/components/IconButton/IconButton.d.ts +4 -0
- package/types/components/NavigationMenu/NavigationMenu.d.ts +3 -1
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ export type StyledIconButtonProps = AriaButtonProps & {
|
|
|
11
11
|
shape?: Shape;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
style?: React.CSSProperties;
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
active?: boolean;
|
|
14
16
|
};
|
|
15
17
|
/** Be sure to add add a `label` prop. Note `aria-label` is already taken care of by the `label` prop.
|
|
16
18
|
* ```jsx
|
|
@@ -28,5 +30,7 @@ export declare const IconButton: import("react").ForwardRefExoticComponent<AriaB
|
|
|
28
30
|
shape?: Shape;
|
|
29
31
|
disabled?: boolean;
|
|
30
32
|
style?: React.CSSProperties;
|
|
33
|
+
as?: React.ElementType;
|
|
34
|
+
active?: boolean;
|
|
31
35
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
32
36
|
export default IconButton;
|
|
@@ -6,9 +6,11 @@ export declare enum Direction {
|
|
|
6
6
|
/**
|
|
7
7
|
* Menu
|
|
8
8
|
*/
|
|
9
|
-
interface NavigationMenuProps {
|
|
9
|
+
export interface NavigationMenuProps {
|
|
10
10
|
direction?: Direction.Up | Direction.Down;
|
|
11
11
|
children: ReactNode;
|
|
12
|
+
isOpen?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
14
|
}
|
|
13
15
|
export interface CompoundedComponent extends React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLDivElement>> {
|
|
14
16
|
Trigger: typeof Trigger;
|