anysystem-design 0.0.41 → 0.0.43
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.
|
@@ -3,9 +3,11 @@ import { default as React } from 'react';
|
|
|
3
3
|
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
variant?: "default" | "primary";
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg";
|
|
6
|
+
rounded?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
8
9
|
variant?: "default" | "primary";
|
|
9
10
|
size?: "xs" | "sm" | "md" | "lg";
|
|
11
|
+
rounded?: boolean;
|
|
10
12
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
11
13
|
export default _default;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { t as d } from "../../bundle-mjs-SHnj3fHy.js";
|
|
4
|
+
const c = ({
|
|
5
|
+
children: o,
|
|
6
|
+
className: s,
|
|
7
|
+
variant: t = "default",
|
|
8
|
+
size: r = "md",
|
|
9
|
+
rounded: n = !1,
|
|
10
|
+
...u
|
|
11
|
+
}, f) => {
|
|
12
|
+
const i = e.useMemo(() => {
|
|
13
|
+
switch (t) {
|
|
7
14
|
case "default":
|
|
8
15
|
return "bg-gray-400 text-white after:bg-white";
|
|
9
16
|
case "primary":
|
|
@@ -11,7 +18,7 @@ const d = ({ children: o, className: f, variant: e = "default", size: r = "md",
|
|
|
11
18
|
default:
|
|
12
19
|
return "bg-gray-400 text-white after:bg-white";
|
|
13
20
|
}
|
|
14
|
-
}, [
|
|
21
|
+
}, [t]), l = e.useMemo(() => {
|
|
15
22
|
switch (r) {
|
|
16
23
|
case "xs":
|
|
17
24
|
return "px-4 py-2 text-xs";
|
|
@@ -28,24 +35,24 @@ const d = ({ children: o, className: f, variant: e = "default", size: r = "md",
|
|
|
28
35
|
return /* @__PURE__ */ a(
|
|
29
36
|
"button",
|
|
30
37
|
{
|
|
31
|
-
ref:
|
|
32
|
-
className:
|
|
38
|
+
ref: f,
|
|
39
|
+
className: d(
|
|
33
40
|
"relative overflow-hidden rounded",
|
|
34
|
-
|
|
35
|
-
//
|
|
41
|
+
n && "rounded-full",
|
|
42
|
+
//rounded
|
|
36
43
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
37
44
|
//disabled
|
|
38
45
|
"hover:after:w-full hover:after:transform hover:after:opacity-20 hover:after:transition-all hover:after:duration-300",
|
|
39
46
|
//hover:
|
|
40
47
|
i,
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
l,
|
|
49
|
+
s
|
|
43
50
|
),
|
|
44
|
-
...
|
|
51
|
+
...u,
|
|
45
52
|
children: /* @__PURE__ */ a("span", { className: "relative", children: o })
|
|
46
53
|
}
|
|
47
54
|
);
|
|
48
|
-
},
|
|
55
|
+
}, x = e.forwardRef(c);
|
|
49
56
|
export {
|
|
50
|
-
|
|
57
|
+
x as default
|
|
51
58
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { default as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { default as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { default as E
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as lo } from "./components/DataTable/DataTable.js";
|
|
1
|
+
import { default as r } from "./components/Button/Button.js";
|
|
2
|
+
import { CheckboxBase as f } from "./components/Checkbox/CheckboxBase.js";
|
|
3
|
+
import { Checkbox as m } from "./components/Checkbox/Checkbox.js";
|
|
4
|
+
import { FormCheckbox as l } from "./components/Checkbox/FormCheckbox.js";
|
|
5
|
+
import { default as s } from "./components/Switch/Switch.js";
|
|
6
|
+
import { default as n } from "./components/Column/Column.js";
|
|
7
|
+
import { Container as b } from "./components/Container/Container.js";
|
|
8
|
+
import { default as c } from "./components/DatePicker/DatePicker.js";
|
|
9
|
+
import { default as h } from "./components/Input/Input.js";
|
|
10
|
+
import { FormInput as I } from "./components/Input/FormInput.js";
|
|
11
|
+
import { default as S } from "./components/TelephoneInput/TelephoneInput.js";
|
|
12
|
+
import { default as w } from "./components/Label/Label.js";
|
|
13
|
+
import { FormLabel as M } from "./components/Label/FormLabel.js";
|
|
14
|
+
import { default as v } from "./components/PasswordInput/PasswordInput.js";
|
|
15
|
+
import { FormPasswordInput as T } from "./components/PasswordInput/FormPasswordInput.js";
|
|
16
|
+
import { default as N, getColumns as R } from "./components/Row/Row.js";
|
|
17
|
+
import { default as E } from "./components/Text/Text.js";
|
|
18
|
+
import { default as j } from "./components/Selectbox/SelectboxBase.js";
|
|
19
|
+
import { default as z } from "./components/Selectbox/SelectboxMultiple.js";
|
|
20
|
+
import { default as J } from "./components/Selectbox/Selectbox.js";
|
|
21
|
+
import { default as O } from "./components/RadioGroup/RadioGroup.js";
|
|
22
|
+
import { default as U } from "./components/AutoComplete/AutoComplete.js";
|
|
23
|
+
import { default as W } from "./components/NavList/NavList.js";
|
|
24
|
+
import { default as Y } from "./components/Navbar/Navbar.js";
|
|
25
|
+
import { default as _ } from "./components/Modal/Modal.js";
|
|
26
|
+
import { default as oo } from "./components/FormControl/FormControl.js";
|
|
27
|
+
import { default as to } from "./components/FormControl/FormComponent.js";
|
|
28
|
+
import { default as ao } from "./components/FormControl/FormContent.js";
|
|
29
|
+
import { default as po } from "./components/DataTable/DataTable.js";
|
|
31
30
|
import "react/jsx-runtime";
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
31
|
+
import { default as uo } from "./layouts/Empty/Empty.js";
|
|
32
|
+
import { default as xo } from "./layouts/SideMenu/SideMenu.js";
|
|
33
|
+
import { AppContext as no, AppProvider as Co } from "./contexts/AppContext.js";
|
|
34
34
|
import { default as io } from "./components/AutoComplete/AutoCompleteBase.js";
|
|
35
35
|
import { default as Fo } from "./components/AutoComplete/AutoCompleteMultiple.js";
|
|
36
36
|
import { u as Ao } from "./formik.esm-BJ9xsni6.js";
|
|
37
|
-
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
import './index.css';export {
|
|
38
|
+
no as AppContext,
|
|
39
|
+
Co as AppProvider,
|
|
40
|
+
U as AutoComplete,
|
|
41
41
|
io as AutoCompleteBase,
|
|
42
42
|
Fo as AutoCompleteMultiple,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
43
|
+
r as Button,
|
|
44
|
+
m as Checkbox,
|
|
45
|
+
f as CheckboxBase,
|
|
46
|
+
n as Column,
|
|
47
|
+
b as Container,
|
|
48
|
+
po as DataTable,
|
|
49
|
+
c as DatePicker,
|
|
50
|
+
uo as EmptyLayout,
|
|
51
|
+
l as FormCheckbox,
|
|
52
|
+
to as FormComponent,
|
|
53
|
+
ao as FormContent,
|
|
54
|
+
oo as FormControl,
|
|
55
|
+
I as FormInput,
|
|
56
|
+
M as FormLabel,
|
|
57
|
+
T as FormPasswordInput,
|
|
58
|
+
h as Input,
|
|
59
|
+
w as Label,
|
|
60
|
+
_ as Modal,
|
|
61
|
+
W as NavList,
|
|
62
|
+
Y as Navbar,
|
|
63
|
+
v as PasswordInput,
|
|
64
|
+
O as RadioGroup,
|
|
65
|
+
N as Row,
|
|
66
|
+
J as Selectbox,
|
|
67
|
+
j as SelectboxBase,
|
|
68
|
+
z as SelectboxMultiple,
|
|
69
|
+
xo as SideMenuLayout,
|
|
70
|
+
s as Switch,
|
|
71
|
+
S as TelephoneInput,
|
|
72
|
+
E as Text,
|
|
73
|
+
R as getColumns,
|
|
74
74
|
Ao as useFormContext
|
|
75
75
|
};
|
package/package.json
CHANGED
|
File without changes
|