@gusarov-studio/rubik-ui 28.0.1 → 28.2.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/Button/Button.d.ts +1 -1
- package/dist/Progress/Progress.d.ts +16 -0
- package/dist/Progress/constants/index.d.ts +2 -0
- package/dist/Progress/constants/namedColors.d.ts +2 -0
- package/dist/Progress/index.d.ts +1 -0
- package/dist/Progress/types.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/Button/Button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import "./Button.scss";
|
|
3
3
|
type ButtonSize = 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56;
|
|
4
4
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
appearance?: "fill" | "outline" | "ghost" | "text";
|
|
5
|
+
appearance?: "fill" | "subtle" | "outline" | "ghost" | "text";
|
|
6
6
|
variant?: "accent" | "primary" | "secondary" | "success" | "danger" | "warning";
|
|
7
7
|
size?: ButtonSize | `${ButtonSize}`;
|
|
8
8
|
shape?: "rectangle" | "rounded" | "pill";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ProgressProps as RadixProgressProps } from "@radix-ui/react-progress";
|
|
3
|
+
import type { Color } from "../types/Color";
|
|
4
|
+
import type { NamedColor } from "./types";
|
|
5
|
+
import "./Progress.scss";
|
|
6
|
+
type ProgressSize = 2 | 4 | 6 | 8 | 10 | 12;
|
|
7
|
+
interface ProgressProps extends RadixProgressProps {
|
|
8
|
+
appearance?: "soft";
|
|
9
|
+
color?: NamedColor | Color;
|
|
10
|
+
size?: ProgressSize | `${ProgressSize}`;
|
|
11
|
+
shape?: "rectangle" | "rounded" | "pill";
|
|
12
|
+
duration?: string | number;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { Progress, type ProgressProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Progress";
|
package/dist/index.d.ts
CHANGED