@konstructio/ui 0.1.2-alpha.1 → 0.1.2-alpha.2
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.
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { resetEvent as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as a } from "react";
|
|
3
|
+
import { Button as m } from "../../../Button/Button.js";
|
|
4
|
+
import { resetEvent as p } from "../../events/index.js";
|
|
5
|
+
const u = ({
|
|
6
|
+
disabled: e,
|
|
7
|
+
onClick: t,
|
|
8
|
+
...r
|
|
9
|
+
}) => {
|
|
10
|
+
const o = a(() => {
|
|
11
|
+
p(), t?.();
|
|
8
12
|
}, [t]);
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
13
|
+
return /* @__PURE__ */ n(
|
|
14
|
+
m,
|
|
11
15
|
{
|
|
12
16
|
type: "button",
|
|
13
17
|
variant: "text",
|
|
14
18
|
appearance: "compact",
|
|
15
19
|
version: "alternate",
|
|
16
|
-
onClick:
|
|
20
|
+
onClick: o,
|
|
17
21
|
disabled: e,
|
|
22
|
+
...r,
|
|
18
23
|
children: "Reset"
|
|
19
24
|
}
|
|
20
25
|
);
|
|
21
26
|
};
|
|
22
27
|
export {
|
|
23
|
-
|
|
28
|
+
u as ResetButton
|
|
24
29
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -610,7 +610,7 @@ declare interface RangeProps extends VariantProps<typeof rangeVariants> {
|
|
|
610
610
|
|
|
611
611
|
declare const rangeVariants: (props?: ClassProp | undefined) => string;
|
|
612
612
|
|
|
613
|
-
declare type ResetButtonProps = {
|
|
613
|
+
declare type ResetButtonProps = ButtonProps & {
|
|
614
614
|
disabled?: boolean;
|
|
615
615
|
onClick?: VoidFunction;
|
|
616
616
|
};
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.2-alpha.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|