@gusarov-studio/rubik-ui 5.0.1 → 6.0.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/README.md CHANGED
@@ -6,25 +6,25 @@ https://rubikui.web.app/
6
6
 
7
7
  Project requires at least `18.20.3` Node.js version.
8
8
 
9
- Install project dependencies
9
+ Install project dependencies:
10
10
 
11
11
  ```shell
12
12
  npm install
13
13
  ```
14
14
 
15
- Run local development
15
+ Run local development:
16
16
 
17
17
  ```shell
18
18
  npm run storybook
19
19
  ```
20
20
 
21
- To build library for publishing on npm
21
+ To build library for publishing on npm:
22
22
 
23
23
  ```shell
24
24
  npm run build
25
25
  ```
26
26
 
27
- To run tests
27
+ To run tests:
28
28
 
29
29
  ```shell
30
30
  npm test
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import "./Button.scss";
3
3
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- variant?: "accent" | "primary" | "danger" | "outline-accent" | "outline-primary" | "outline-danger" | "ghost-accent" | "ghost-primary" | "ghost-danger" | "text-accent" | "text-primary" | "text-danger";
4
+ appearance?: "fill" | "outline" | "ghost" | "text";
5
+ variant: "accent" | "primary" | "secondary" | "success" | "danger" | "warning";
5
6
  size?: "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "56";
6
7
  shape?: "rectangle" | "rounded" | "pill";
7
8
  fullWidth?: boolean;
@@ -7,4 +7,4 @@ interface IconProps extends GlyphProps {
7
7
  appearance?: "inherit" | "primary" | "secondary" | "accent" | "success" | "danger" | "info" | "warning" | "disabled" | "white" | "black" | "placeholder";
8
8
  }
9
9
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
10
- export { Icon, type IconGlyph };
10
+ export { Icon, type IconGlyph, type IconProps };
@@ -2,7 +2,7 @@ import type { ModalProps } from "./types";
2
2
  declare const modalsManager: {
3
3
  open(modalId: string, props?: ModalProps): void;
4
4
  close(): void;
5
- register: (modalId: string, Component: React.ComponentType<unknown>, defaultProps?: ModalProps) => void;
5
+ register: (modalId: string, Component: React.ComponentType<any>, defaultProps?: ModalProps) => void;
6
6
  unregister: (modalId: string) => boolean;
7
7
  };
8
8
  export { modalsManager };
@@ -1,6 +1,6 @@
1
1
  import type React from "react";
2
2
  import type { ModalProps, RegistryItem } from "./types";
3
- declare function register(modalId: string, Component: React.ComponentType<unknown>, defaultProps?: ModalProps): void;
3
+ declare function register(modalId: string, Component: React.ComponentType<any>, defaultProps?: ModalProps): void;
4
4
  declare function unregister(modalId: string): boolean;
5
5
  declare function get(modalId: string): RegistryItem | undefined;
6
6
  declare function has(modalId: string): boolean;