revdev-components 0.78.0 → 0.80.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.
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { TooltipPlacement } from "antd/es/tooltip";
3
+ import { RegularIconName } from "src/icon";
4
+ interface ButtonContentProps {
5
+ icon?: RegularIconName;
6
+ rightIcon?: RegularIconName;
7
+ className?: string;
8
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void;
9
+ children?: React.ReactNode;
10
+ disabled?: boolean;
11
+ isPrimary?: boolean;
12
+ }
13
+ export interface ButtonProps extends ButtonContentProps {
14
+ tooltip?: string;
15
+ tooltipPlacement?: TooltipPlacement;
16
+ hoverOpenDelay?: number;
17
+ }
18
+ export declare const Button: React.FC<ButtonProps>;
19
+ export {};
package/build/index.js CHANGED
@@ -5231,7 +5231,7 @@ function getNavOption(mapper, part) {
5231
5231
  if (mapper) {
5232
5232
  var o = mapper[key];
5233
5233
  if (o) {
5234
- return typeof o === "function" ? o((param === null || param === void 0 ? void 0 : param.toString()) || "") : o;
5234
+ return typeof o === "function" ? o(param) : o;
5235
5235
  }
5236
5236
  }
5237
5237
  return undefined;
@@ -3,8 +3,8 @@ export interface AlfaNavigatorOption {
3
3
  href: string;
4
4
  label: string;
5
5
  }
6
- export type AlfaNavigatorMapper = Record<string, AlfaNavigatorOption | ((param: string) => AlfaNavigatorOption)>;
7
- export type AlfaNavigatorPathPart<TKey extends string = string> = TKey | [TKey, string | number];
6
+ export type AlfaNavigatorMapper = Record<string, AlfaNavigatorOption | ((param: any) => AlfaNavigatorOption)>;
7
+ export type AlfaNavigatorPathPart<TKey extends string = string> = TKey | [TKey, any];
8
8
  export type AlfaNavigatorPath<TKey extends string = string> = AlfaNavigatorPathPart<TKey>[];
9
9
  interface Props {
10
10
  root?: AlfaNavigatorOption | AlfaNavigatorPathPart;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.78.0",
3
+ "version": "0.80.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {