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 t from "react";
3
- import { t as l } from "../../bundle-mjs-SHnj3fHy.js";
4
- const d = ({ children: o, className: f, variant: e = "default", size: r = "md", ...s }, u) => {
5
- const i = t.useMemo(() => {
6
- switch (e) {
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
- }, [e]), n = t.useMemo(() => {
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: u,
32
- className: l(
38
+ ref: f,
39
+ className: d(
33
40
  "relative overflow-hidden rounded",
34
- "after:absolute after:right-0 after:top-0 after:h-full after:w-0 after:rounded-l after:bg-gray-400 after:opacity-0",
35
- //after:
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
- n,
42
- f
48
+ l,
49
+ s
43
50
  ),
44
- ...s,
51
+ ...u,
45
52
  children: /* @__PURE__ */ a("span", { className: "relative", children: o })
46
53
  }
47
54
  );
48
- }, m = t.forwardRef(d);
55
+ }, x = e.forwardRef(c);
49
56
  export {
50
- m as default
57
+ x as default
51
58
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import '../AppContext.css';const p = r.createContext({
3
+ const p = r.createContext({
4
4
  appName: ""
5
5
  }), c = ({
6
6
  appName: t,
package/dist/index.js CHANGED
@@ -1,75 +1,75 @@
1
- import { AppContext as r, AppProvider as a } from "./contexts/AppContext.js";
2
- import { default as p } from "./components/Button/Button.js";
3
- import { CheckboxBase as u } from "./components/Checkbox/CheckboxBase.js";
4
- import { Checkbox as x } from "./components/Checkbox/Checkbox.js";
5
- import { FormCheckbox as d } from "./components/Checkbox/FormCheckbox.js";
6
- import { default as C } from "./components/Switch/Switch.js";
7
- import { default as i } from "./components/Column/Column.js";
8
- import { Container as F } from "./components/Container/Container.js";
9
- import { default as A } from "./components/DatePicker/DatePicker.js";
10
- import { default as L } from "./components/Input/Input.js";
11
- import { FormInput as k } from "./components/Input/FormInput.js";
12
- import { default as B } from "./components/TelephoneInput/TelephoneInput.js";
13
- import { default as P } from "./components/Label/Label.js";
14
- import { FormLabel as y } from "./components/Label/FormLabel.js";
15
- import { default as D } from "./components/PasswordInput/PasswordInput.js";
16
- import { FormPasswordInput as R } from "./components/PasswordInput/FormPasswordInput.js";
17
- import { default as E, getColumns as G } from "./components/Row/Row.js";
18
- import { default as q } from "./components/Text/Text.js";
19
- import { default as H } from "./components/Selectbox/SelectboxBase.js";
20
- import { default as K } from "./components/Selectbox/SelectboxMultiple.js";
21
- import { default as Q } from "./components/Selectbox/Selectbox.js";
22
- import { default as V } from "./components/RadioGroup/RadioGroup.js";
23
- import { default as X } from "./components/AutoComplete/AutoComplete.js";
24
- import { default as Z } from "./components/NavList/NavList.js";
25
- import { default as $ } from "./components/Navbar/Navbar.js";
26
- import { default as eo } from "./components/Modal/Modal.js";
27
- import { default as ro } from "./components/FormControl/FormControl.js";
28
- import { default as fo } from "./components/FormControl/FormComponent.js";
29
- import { default as mo } from "./components/FormControl/FormContent.js";
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 so } from "./layouts/Empty/Empty.js";
33
- import { default as Co } from "./layouts/SideMenu/SideMenu.js";
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
- r as AppContext,
39
- a as AppProvider,
40
- X as AutoComplete,
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
- p as Button,
44
- x as Checkbox,
45
- u as CheckboxBase,
46
- i as Column,
47
- F as Container,
48
- lo as DataTable,
49
- A as DatePicker,
50
- so as EmptyLayout,
51
- d as FormCheckbox,
52
- fo as FormComponent,
53
- mo as FormContent,
54
- ro as FormControl,
55
- k as FormInput,
56
- y as FormLabel,
57
- R as FormPasswordInput,
58
- L as Input,
59
- P as Label,
60
- eo as Modal,
61
- Z as NavList,
62
- $ as Navbar,
63
- D as PasswordInput,
64
- V as RadioGroup,
65
- E as Row,
66
- Q as Selectbox,
67
- H as SelectboxBase,
68
- K as SelectboxMultiple,
69
- Co as SideMenuLayout,
70
- C as Switch,
71
- B as TelephoneInput,
72
- q as Text,
73
- G as getColumns,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anysystem-design",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
File without changes