bonkers-ui 2.0.14 → 2.0.16
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/_types/sizing.d.ts +4 -0
- package/_types/sizing.js +1 -1
- package/_types/sizing.js.map +1 -1
- package/bonkers.css +2 -2
- package/components/UiAlert/UiAlert.d.ts +1 -0
- package/components/UiAlert/UiAlert.js +31 -21
- package/components/UiAlert/UiAlert.js.map +1 -1
- package/components/UiIcon/UiIcon.js +5 -5
- package/components/UiIcon/UiIcon.js.map +1 -1
- package/components/UiIconBadge/UiIconBadge.js +29 -26
- package/components/UiIconBadge/UiIconBadge.js.map +1 -1
- package/components/UiIconBadge/_types.d.ts +3 -3
- package/components/UiIconBadge/_types.js +1 -1
- package/components/UiIconBadge/_types.js.map +1 -1
- package/components/UiInput/UiInput.base.d.ts +10 -2
- package/components/UiInput/UiInput.base.js +48 -44
- package/components/UiInput/UiInput.base.js.map +1 -1
- package/components/UiInput/UiInputText.d.ts +10 -6
- package/components/UiInput/UiInputText.js +23 -16
- package/components/UiInput/UiInputText.js.map +1 -1
- package/components/UiInput/_types.d.ts +4 -0
- package/components/UiInput/_types.js +3 -2
- package/components/UiInput/_types.js.map +1 -1
- package/components/UiInput/index.d.ts +1 -2
- package/components/UiInput/index.js +11 -12
- package/components/UiInput/index.js.map +1 -1
- package/components/{UiInput → UiInputTextArea}/UiInputTextArea.d.ts +1 -1
- package/components/{UiInput → UiInputTextArea}/UiInputTextArea.js +7 -7
- package/components/UiInputTextArea/UiInputTextArea.js.map +1 -0
- package/components/UiInputTextArea/index.d.ts +1 -0
- package/components/UiInputTextArea/index.js +5 -0
- package/components/UiInputTextArea/index.js.map +1 -0
- package/components/UiList/UiList.js +18 -17
- package/components/UiList/UiList.js.map +1 -1
- package/components/UiList/UiListItem.js +12 -12
- package/components/UiList/UiListItem.js.map +1 -1
- package/components/UiList/_types.d.ts +1 -0
- package/components/UiList/_types.js +1 -1
- package/components/UiList/_types.js.map +1 -1
- package/components/UiPills/UiPills.d.ts +4 -1
- package/components/UiPills/UiPills.js +49 -32
- package/components/UiPills/UiPills.js.map +1 -1
- package/components/UiSelect/UiSelect.d.ts +2 -0
- package/components/UiSelect/UiSelect.js +68 -61
- package/components/UiSelect/UiSelect.js.map +1 -1
- package/components/UiSelect/_types.d.ts +4 -0
- package/components/UiSelect/_types.js +5 -0
- package/components/UiSelect/_types.js.map +1 -0
- package/components/UiSelect/index.d.ts +1 -0
- package/components/UiSelect/index.js +2 -0
- package/components/UiSelect/index.js.map +1 -1
- package/components/UiStars/index.d.ts +1 -1
- package/components/UiStars/index.js +3 -2
- package/components/UiToggle/UiToggle.js +13 -13
- package/components/UiToggle/UiToggle.js.map +1 -1
- package/components/UiTypography/UiTypography.js +31 -38
- package/components/UiTypography/UiTypography.js.map +1 -1
- package/components/UiTypography/_types.d.ts +2 -2
- package/components/UiTypography/_types.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +32 -32
- package/components/UiInput/UiInputTextArea.js.map +0 -1
package/_types/sizing.d.ts
CHANGED
package/_types/sizing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var X = /* @__PURE__ */ ((x) => (x.AUTO = "auto", x.ZERO = "zero", x.XXXS = "xxxs", x.XXS = "xxs", x.XS = "xs", x.SM = "sm", x.MD = "md", x.LG = "lg", x.XL = "xl", x.XXL = "xxl", x.XXXL = "xxxl", x.XXXXL = "xxxxl", x.XXXXXL = "xxxxxl", x))(X || {});
|
|
1
|
+
var X = /* @__PURE__ */ ((x) => (x.AUTO = "auto", x.ZERO = "zero", x.MIN = "min", x.XXXS = "xxxs", x.XXS = "xxs", x.XS = "xs", x.SM = "sm", x.MD = "md", x.LG = "lg", x.XL = "xl", x.XXL = "xxl", x.XXXL = "xxxl", x.XXXXL = "xxxxl", x.XXXXXL = "xxxxxl", x))(X || {});
|
|
2
2
|
export {
|
|
3
3
|
X as ESize
|
|
4
4
|
};
|
package/_types/sizing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizing.js","sources":["../../src/_types/sizing.ts"],"sourcesContent":["\nexport enum ESize {\n\t/**\n\t * auto\n\t */\n\tAUTO = \"auto\",\n\t/**\n\t * zero\n\t */\n\tZERO = \"zero\",\n\t/**\n\t * 4px\n\t */\n\tXXXS = \"xxxs\",\n\t/**\n\t * 8px\n\t */\n\tXXS = \"xxs\",\n\t/**\n\t * 12px\n\t */\n\tXS = \"xs\",\n\t/**\n\t * 16px\n\t */\n\tSM = \"sm\",\n\t/**\n\t * 24px\n\t */\n\tMD = \"md\",\n\t/**\n\t * 32px\n\t */\n\tLG = \"lg\",\n\t/**\n\t * 40px\n\t */\n\tXL = \"xl\",\n\t/**\n\t * 48px\n\t */\n\tXXL = \"xxl\",\n\t/**\n\t * 64px\n\t */\n\tXXXL = \"xxxl\",\n\t/**\n\t * 80px\n\t */\n\tXXXXL = \"xxxxl\",\n\t/**\n\t * 120px\n\t */\n\tXXXXXL = \"xxxxxl\",\n}\n"],"names":["ESize"],"mappings":"AACO,IAAKA,sBAAAA,OAIXA,EAAA,OAAO,QAIPA,EAAA,OAAO,QAIPA,EAAA,OAAO,QAIPA,EAAA,MAAM,OAINA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,MAAM,OAINA,EAAA,OAAO,QAIPA,EAAA,QAAQ,SAIRA,EAAA,SAAS,
|
|
1
|
+
{"version":3,"file":"sizing.js","sources":["../../src/_types/sizing.ts"],"sourcesContent":["\nexport enum ESize {\n\t/**\n\t * auto\n\t */\n\tAUTO = \"auto\",\n\t/**\n\t * zero\n\t */\n\tZERO = \"zero\",\n\t/**\n\t * min (1px)\n\t */\n\tMIN = \"min\",\n\t/**\n\t * 4px\n\t */\n\tXXXS = \"xxxs\",\n\t/**\n\t * 8px\n\t */\n\tXXS = \"xxs\",\n\t/**\n\t * 12px\n\t */\n\tXS = \"xs\",\n\t/**\n\t * 16px\n\t */\n\tSM = \"sm\",\n\t/**\n\t * 24px\n\t */\n\tMD = \"md\",\n\t/**\n\t * 32px\n\t */\n\tLG = \"lg\",\n\t/**\n\t * 40px\n\t */\n\tXL = \"xl\",\n\t/**\n\t * 48px\n\t */\n\tXXL = \"xxl\",\n\t/**\n\t * 64px\n\t */\n\tXXXL = \"xxxl\",\n\t/**\n\t * 80px\n\t */\n\tXXXXL = \"xxxxl\",\n\t/**\n\t * 120px\n\t */\n\tXXXXXL = \"xxxxxl\",\n}\n"],"names":["ESize"],"mappings":"AACO,IAAKA,sBAAAA,OAIXA,EAAA,OAAO,QAIPA,EAAA,OAAO,QAIPA,EAAA,MAAM,OAINA,EAAA,OAAO,QAIPA,EAAA,MAAM,OAINA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,KAAK,MAILA,EAAA,MAAM,OAINA,EAAA,OAAO,QAIPA,EAAA,QAAQ,SAIRA,EAAA,SAAS,UAxDEA,IAAAA,KAAA,CAAA,CAAA;"}
|
package/bonkers.css
CHANGED
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
--color-error-600: #a02323;
|
|
97
97
|
--color-error-700: #6b1818;
|
|
98
98
|
|
|
99
|
-
--color-warning-300: #
|
|
100
|
-
--color-warning-400: #
|
|
99
|
+
--color-warning-300: #F7E2D5;
|
|
100
|
+
--color-warning-400: #E6A982;
|
|
101
101
|
--color-warning-500: #D6702F;
|
|
102
102
|
--color-warning-600: #B45821;
|
|
103
103
|
--color-warning-700: #9A4D1B;
|
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { EAlertTypes as r } from "./_types.js";
|
|
4
|
-
import
|
|
5
|
-
import { UiIcon as
|
|
4
|
+
import t from "classnames";
|
|
5
|
+
import { UiIcon as l } from "../UiIcon/UiIcon.js";
|
|
6
6
|
import { ESize as d } from "../../_types/sizing.js";
|
|
7
7
|
import "@fortawesome/fontawesome-svg-core";
|
|
8
|
-
const
|
|
9
|
-
[r.PRIMARY]: "border-primary
|
|
10
|
-
[r.SECONDARY]: "
|
|
11
|
-
[r.ERROR]: "border-error
|
|
12
|
-
[r.WARNING]: "border-warning
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
const R = {
|
|
9
|
+
[r.PRIMARY]: "border-primary ",
|
|
10
|
+
[r.SECONDARY]: "border-secondary",
|
|
11
|
+
[r.ERROR]: "border-error",
|
|
12
|
+
[r.WARNING]: "border-warning"
|
|
13
|
+
}, p = {
|
|
14
|
+
[r.PRIMARY]: "text-primary",
|
|
15
|
+
[r.SECONDARY]: "text-secondary",
|
|
16
|
+
[r.ERROR]: "text-error",
|
|
17
|
+
[r.WARNING]: "text-warning"
|
|
18
|
+
}, E = ({
|
|
19
|
+
children: s,
|
|
20
|
+
kind: e = r.PRIMARY,
|
|
16
21
|
className: i,
|
|
17
|
-
icon:
|
|
18
|
-
|
|
22
|
+
icon: o,
|
|
23
|
+
noBorder: m = !1
|
|
24
|
+
}) => /* @__PURE__ */ a("div", { className: t(
|
|
19
25
|
"ui-alert",
|
|
20
26
|
"flex",
|
|
21
27
|
"gap-sm",
|
|
22
|
-
"rounded-xl",
|
|
23
|
-
"border",
|
|
24
|
-
"bg-white",
|
|
25
|
-
"p-sm",
|
|
28
|
+
m ? "border-0" : "rounded-xl border bg-white p-sm",
|
|
26
29
|
"leading-normal",
|
|
27
30
|
"text-xs",
|
|
28
|
-
|
|
31
|
+
R[e],
|
|
29
32
|
i
|
|
30
33
|
), children: [
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
o ? /* @__PURE__ */ n(
|
|
35
|
+
l,
|
|
36
|
+
{
|
|
37
|
+
className: t(p[e], "h-lh align-middle"),
|
|
38
|
+
name: o,
|
|
39
|
+
size: d.SM
|
|
40
|
+
}
|
|
41
|
+
) : null,
|
|
42
|
+
s
|
|
33
43
|
] });
|
|
34
44
|
export {
|
|
35
|
-
|
|
45
|
+
E as UiAlert
|
|
36
46
|
};
|
|
37
47
|
//# sourceMappingURL=UiAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiAlert.js","sources":["../../../src/components/UiAlert/UiAlert.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport { EAlertTypes } from \"./_types\";\nimport cx from \"classnames\";\nimport { UiIcon } from \"../UiIcon\";\nimport { ESize } from \"../../_types/sizing\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\n\ninterface IUiAlert {\n\tchildren: React.ReactNode
|
|
1
|
+
{"version":3,"file":"UiAlert.js","sources":["../../../src/components/UiAlert/UiAlert.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport { EAlertTypes } from \"./_types\";\nimport cx from \"classnames\";\nimport { UiIcon } from \"../UiIcon\";\nimport { ESize } from \"../../_types/sizing\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\n\ninterface IUiAlert {\n\tchildren: React.ReactNode;\n\tclassName?: string;\n\tkind?: EAlertTypes;\n\ticon?: IconProp;\n\tnoBorder?: boolean;\n}\n\nconst kindClasses = {\n\t[EAlertTypes.PRIMARY]: \"border-primary \",\n\t[EAlertTypes.SECONDARY]: \"border-secondary\",\n\t[EAlertTypes.ERROR]: \"border-error\",\n\t[EAlertTypes.WARNING]: \"border-warning\"\n};\n\nconst iconKindClasses = {\n\t[EAlertTypes.PRIMARY]: \"text-primary\",\n\t[EAlertTypes.SECONDARY]: \"text-secondary\",\n\t[EAlertTypes.ERROR]: \"text-error\",\n\t[EAlertTypes.WARNING]: \"text-warning\"\n};\n\nexport const UiAlert: React.FC<IUiAlert> = ({\n\tchildren,\n\tkind = EAlertTypes.PRIMARY,\n\tclassName,\n\ticon,\n\tnoBorder = false\n}) => {\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-alert\",\n\t\t\t\"flex\",\n\t\t\t\"gap-sm\",\n\t\t\tnoBorder\n\t\t\t\t? \"border-0\"\n\t\t\t\t: \"rounded-xl border bg-white p-sm\",\n\t\t\t\"leading-normal\",\n\t\t\t\"text-xs\",\n\t\t\tkindClasses[kind],\n\t\t\tclassName\n\t\t) }>\n\n\t\t\t{ icon\n\t\t\t\t? <UiIcon\n\t\t\t\t\tclassName={ cx(iconKindClasses[kind], \"h-lh align-middle\") }\n\t\t\t\t\tname={ icon }\n\t\t\t\t\tsize={ ESize.SM }\n\t\t\t\t/>\n\t\t\t\t: null }\n\t\t\t{ children }\n\t\t</div>\n\t);\n};\n"],"names":["kindClasses","EAlertTypes","iconKindClasses","UiAlert","children","kind","className","icon","noBorder","jsxs","cx","jsx","UiIcon","ESize"],"mappings":";;;;;;;AAgBA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAY,OAAO,GAAG;AAAA,EACvB,CAACA,EAAY,SAAS,GAAG;AAAA,EACzB,CAACA,EAAY,KAAK,GAAG;AAAA,EACrB,CAACA,EAAY,OAAO,GAAG;AACxB,GAEMC,IAAkB;AAAA,EACvB,CAACD,EAAY,OAAO,GAAG;AAAA,EACvB,CAACA,EAAY,SAAS,GAAG;AAAA,EACzB,CAACA,EAAY,KAAK,GAAG;AAAA,EACrB,CAACA,EAAY,OAAO,GAAG;AACxB,GAEaE,IAA8B,CAAC;AAAA,EAC3C,UAAAC;AAAA,EACA,MAAAC,IAAOJ,EAAY;AAAA,EACnB,WAAAK;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC,IAAW;AACZ,MAEE,gBAAAC,EAAC,SAAI,WAAYC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACAF,IACG,aACA;AAAA,EACH;AAAA,EACA;AAAA,EACAR,EAAYK,CAAI;AAAA,EAChBC;AAAA,GAGE,UAAA;AAAA,EAAAC,IACC,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACF,WAAYF,EAAGR,EAAgBG,CAAI,GAAG,mBAAmB;AAAA,MACzD,MAAOE;AAAA,MACP,MAAOM,EAAM;AAAA,IAAA;AAAA,EAAA,IAEZ;AAAA,EACDT;AAAA,GACH;"}
|
|
@@ -4,7 +4,8 @@ import { ESize as i } from "../../_types/sizing.js";
|
|
|
4
4
|
import { FontAwesomeIcon as X } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import m from "classnames";
|
|
6
6
|
import "@fortawesome/fontawesome-svg-core";
|
|
7
|
-
const
|
|
7
|
+
const z = {
|
|
8
|
+
[i.MIN]: "size-min",
|
|
8
9
|
[i.XXXS]: "size-xxxs",
|
|
9
10
|
[i.XXS]: "size-xxs",
|
|
10
11
|
[i.XS]: "size-xs",
|
|
@@ -18,7 +19,7 @@ const r = {
|
|
|
18
19
|
[i.XXXXXL]: "size-xxxxxl",
|
|
19
20
|
[i.AUTO]: "size-auto",
|
|
20
21
|
[i.ZERO]: "size-zero"
|
|
21
|
-
},
|
|
22
|
+
}, L = ({ size: s, name: e, className: o }) => /* @__PURE__ */ x(
|
|
22
23
|
X,
|
|
23
24
|
{
|
|
24
25
|
icon: e,
|
|
@@ -26,13 +27,12 @@ const r = {
|
|
|
26
27
|
"ui-icon",
|
|
27
28
|
"inline",
|
|
28
29
|
"overflow-visible",
|
|
29
|
-
|
|
30
|
-
s && r[s],
|
|
30
|
+
s && z[s],
|
|
31
31
|
o
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
L as UiIcon
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=UiIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiIcon.js","sources":["../../../src/components/UiIcon/UiIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ESize } from \"../../_types/sizing\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport cx from \"classnames\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\n\ninterface IUiIconProps {\n\tname: IconProp;\n\tsize?: ESize;\n\tclassName?: string;\n}\n\nconst sizeToClassName: { [key in ESize]: string } = {\n\t[ESize.XXXS]: \"size-xxxs\",\n\t[ESize.XXS]: \"size-xxs\",\n\t[ESize.XS]: \"size-xs\",\n\t[ESize.SM]: \"size-sm\",\n\t[ESize.MD]: \"size-md\",\n\t[ESize.LG]: \"size-lg\",\n\t[ESize.XL]: \"size-xl\",\n\t[ESize.XXL]: \"size-xxl\",\n\t[ESize.XXXL]: \"size-xxxl\",\n\t[ESize.XXXXL]: \"size-xxxxl\",\n\t[ESize.XXXXXL]: \"size-xxxxxl\",\n\t[ESize.AUTO]: \"size-auto\",\n\t[ESize.ZERO]: \"size-zero\",\n};\n\nexport const UiIcon: React.FC<IUiIconProps> = ({ size, name, className }) => {\n\treturn (\n\t\t<FontAwesomeIcon\n\t\t\ticon={ name }\n\t\t\tclassName={ cx(\n\t\t\t\t\"ui-icon\",\n\t\t\t\t\"inline\",\n\t\t\t\t\"overflow-visible\",\n\t\t\t\
|
|
1
|
+
{"version":3,"file":"UiIcon.js","sources":["../../../src/components/UiIcon/UiIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ESize } from \"../../_types/sizing\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport cx from \"classnames\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\n\ninterface IUiIconProps {\n\tname: IconProp;\n\tsize?: ESize;\n\tclassName?: string;\n}\n\nconst sizeToClassName: { [key in ESize]: string } = {\n\t[ESize.MIN]: \"size-min\",\n\t[ESize.XXXS]: \"size-xxxs\",\n\t[ESize.XXS]: \"size-xxs\",\n\t[ESize.XS]: \"size-xs\",\n\t[ESize.SM]: \"size-sm\",\n\t[ESize.MD]: \"size-md\",\n\t[ESize.LG]: \"size-lg\",\n\t[ESize.XL]: \"size-xl\",\n\t[ESize.XXL]: \"size-xxl\",\n\t[ESize.XXXL]: \"size-xxxl\",\n\t[ESize.XXXXL]: \"size-xxxxl\",\n\t[ESize.XXXXXL]: \"size-xxxxxl\",\n\t[ESize.AUTO]: \"size-auto\",\n\t[ESize.ZERO]: \"size-zero\",\n};\n\nexport const UiIcon: React.FC<IUiIconProps> = ({ size, name, className }) => {\n\treturn (\n\t\t<FontAwesomeIcon\n\t\t\ticon={ name }\n\t\t\tclassName={ cx(\n\t\t\t\t\"ui-icon\",\n\t\t\t\t\"inline\",\n\t\t\t\t\"overflow-visible\",\n\t\t\t\tsize && sizeToClassName[size],\n\t\t\t\tclassName\n\t\t\t) }\n\t\t/>\n\t);\n};\n"],"names":["sizeToClassName","ESize","UiIcon","size","name","className","jsx","FontAwesomeIcon","cx"],"mappings":";;;;;;AAYA,MAAMA,IAA8C;AAAA,EACnD,CAACC,EAAM,GAAG,GAAG;AAAA,EACb,CAACA,EAAM,IAAI,GAAG;AAAA,EACd,CAACA,EAAM,GAAG,GAAG;AAAA,EACb,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,GAAG,GAAG;AAAA,EACb,CAACA,EAAM,IAAI,GAAG;AAAA,EACd,CAACA,EAAM,KAAK,GAAG;AAAA,EACf,CAACA,EAAM,MAAM,GAAG;AAAA,EAChB,CAACA,EAAM,IAAI,GAAG;AAAA,EACd,CAACA,EAAM,IAAI,GAAG;AACf,GAEaC,IAAiC,CAAC,EAAE,MAAAC,GAAM,MAAAC,GAAM,WAAAC,QAE3D,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACA,MAAOH;AAAA,IACP,WAAYI;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACAL,KAAQH,EAAgBG,CAAI;AAAA,MAC5BE;AAAA,IAAA;AAAA,EACD;AAAA;"}
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ESize as
|
|
4
|
-
import
|
|
5
|
-
import { EIconBadgeKind as
|
|
6
|
-
const
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
},
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
},
|
|
18
|
-
size:
|
|
19
|
-
kind:
|
|
20
|
-
className:
|
|
21
|
-
children:
|
|
22
|
-
}) => /* @__PURE__ */
|
|
3
|
+
import { ESize as e } from "../../_types/sizing.js";
|
|
4
|
+
import d from "classnames";
|
|
5
|
+
import { EIconBadgeKind as r } from "./_types.js";
|
|
6
|
+
const n = {
|
|
7
|
+
[e.SM]: "p-xxs",
|
|
8
|
+
[e.MD]: "p-xs",
|
|
9
|
+
[e.LG]: "p-sm",
|
|
10
|
+
[e.XL]: "p-lg"
|
|
11
|
+
}, m = {
|
|
12
|
+
[r.PRIMARY]: "bg-primary-alt-700",
|
|
13
|
+
[r.WARNING]: "bg-warning-500",
|
|
14
|
+
[r.ERROR]: "bg-error-500",
|
|
15
|
+
[r.SECONDARY]: "bg-secondary-500",
|
|
16
|
+
[r.AI]: "bg-[linear-gradient(225deg,#8B8BFC_16.73%,#282894_86.38%)]"
|
|
17
|
+
}, R = ({
|
|
18
|
+
size: o = e.MD,
|
|
19
|
+
kind: s = r.PRIMARY,
|
|
20
|
+
className: i,
|
|
21
|
+
children: t
|
|
22
|
+
}) => /* @__PURE__ */ a("div", { className: d(
|
|
23
23
|
"rounded-full",
|
|
24
24
|
"inline-flex",
|
|
25
25
|
"items-center",
|
|
26
26
|
"justify-center",
|
|
27
27
|
"aspect-square",
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
"drop-shadow-md drop-shadow-black/25",
|
|
29
|
+
"border-2 border-white",
|
|
30
|
+
"text-white",
|
|
31
|
+
n[o],
|
|
32
|
+
m[s],
|
|
33
|
+
i
|
|
34
|
+
), children: t });
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
R as UiIconBadge
|
|
34
37
|
};
|
|
35
38
|
//# sourceMappingURL=UiIconBadge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiIconBadge.js","sources":["../../../src/components/UiIconBadge/UiIconBadge.tsx"],"sourcesContent":["import React from \"react\";\nimport { ESize } from \"../../_types/sizing\";\nimport cx from \"classnames\";\nimport { EIconBadgeKind } from \"./_types\";\nimport type { IUiIconBadgeProps } from \"./_types\";\n\nconst badgeSizeClasses = {\n\t[ESize.SM]: \"p-xxs\",\n\t[ESize.MD]: \"p-xs\",\n\t[ESize.LG]: \"p-sm\",\n\t[ESize.XL]: \"p-lg\"\n};\n\nconst kindClasses = {\n\t[EIconBadgeKind.PRIMARY]: \"bg-primary-
|
|
1
|
+
{"version":3,"file":"UiIconBadge.js","sources":["../../../src/components/UiIconBadge/UiIconBadge.tsx"],"sourcesContent":["import React from \"react\";\nimport { ESize } from \"../../_types/sizing\";\nimport cx from \"classnames\";\nimport { EIconBadgeKind } from \"./_types\";\nimport type { IUiIconBadgeProps } from \"./_types\";\n\nconst badgeSizeClasses = {\n\t[ESize.SM]: \"p-xxs\",\n\t[ESize.MD]: \"p-xs\",\n\t[ESize.LG]: \"p-sm\",\n\t[ESize.XL]: \"p-lg\"\n};\n\nconst kindClasses = {\n\t[EIconBadgeKind.PRIMARY]: \"bg-primary-alt-700\",\n\t[EIconBadgeKind.WARNING]: \"bg-warning-500\",\n\t[EIconBadgeKind.ERROR]: \"bg-error-500\",\n\t[EIconBadgeKind.SECONDARY]: \"bg-secondary-500\",\n\t[EIconBadgeKind.AI]: \"bg-[linear-gradient(225deg,#8B8BFC_16.73%,#282894_86.38%)]\",\n};\n\nexport const UiIconBadge: React.FC<IUiIconBadgeProps> = ({\n\tsize = ESize.MD,\n\tkind = EIconBadgeKind.PRIMARY,\n\tclassName,\n\tchildren\n}) => {\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"rounded-full\",\n\t\t\t\"inline-flex\",\n\t\t\t\"items-center\",\n\t\t\t\"justify-center\",\n\t\t\t\"aspect-square\",\n\t\t\t\"drop-shadow-md drop-shadow-black/25\",\n\t\t\t\"border-2 border-white\",\n\t\t\t\"text-white\",\n\t\t\tbadgeSizeClasses[size],\n\t\t\tkindClasses[kind],\n\t\t\tclassName\n\t\t) }>\n\t\t\t{ children }\n\t\t</div>\n\t);\n};\n"],"names":["badgeSizeClasses","ESize","kindClasses","EIconBadgeKind","UiIconBadge","size","kind","className","children","jsx","cx"],"mappings":";;;;;AAMA,MAAMA,IAAmB;AAAA,EACxB,CAACC,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AAAA,EACZ,CAACA,EAAM,EAAE,GAAG;AACb,GAEMC,IAAc;AAAA,EACnB,CAACC,EAAe,OAAO,GAAG;AAAA,EAC1B,CAACA,EAAe,OAAO,GAAG;AAAA,EAC1B,CAACA,EAAe,KAAK,GAAG;AAAA,EACxB,CAACA,EAAe,SAAS,GAAG;AAAA,EAC5B,CAACA,EAAe,EAAE,GAAG;AACtB,GAEaC,IAA2C,CAAC;AAAA,EACxD,MAAAC,IAAOJ,EAAM;AAAA,EACb,MAAAK,IAAOH,EAAe;AAAA,EACtB,WAAAI;AAAA,EACA,UAAAC;AACD,MAEE,gBAAAC,EAAC,SAAI,WAAYC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACAV,EAAiBK,CAAI;AAAA,EACrBH,EAAYI,CAAI;AAAA,EAChBC;AAAA,GAEE,UAAAC,EAAA,CACH;"}
|
|
@@ -2,10 +2,10 @@ import { ESize } from '../../_types/sizing';
|
|
|
2
2
|
export type BadgeSize = ESize.SM | ESize.MD | ESize.LG | ESize.XL;
|
|
3
3
|
export declare enum EIconBadgeKind {
|
|
4
4
|
PRIMARY = "primary",
|
|
5
|
-
|
|
6
|
-
DARK = "dark",
|
|
5
|
+
SECONDARY = "secondary",
|
|
7
6
|
WARNING = "warning",
|
|
8
|
-
ERROR = "error"
|
|
7
|
+
ERROR = "error",
|
|
8
|
+
AI = "ai"
|
|
9
9
|
}
|
|
10
10
|
export interface IUiIconBadgeProps {
|
|
11
11
|
size?: BadgeSize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var R = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.
|
|
1
|
+
var R = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.SECONDARY = "secondary", r.WARNING = "warning", r.ERROR = "error", r.AI = "ai", r))(R || {});
|
|
2
2
|
export {
|
|
3
3
|
R as EIconBadgeKind
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sources":["../../../src/components/UiIconBadge/_types.ts"],"sourcesContent":["import { ESize } from \"../../_types/sizing\";\n\nexport type BadgeSize = ESize.SM | ESize.MD | ESize.LG | ESize.XL;\n\nexport enum EIconBadgeKind {\n\tPRIMARY = \"primary\",\n\
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiIconBadge/_types.ts"],"sourcesContent":["import { ESize } from \"../../_types/sizing\";\n\nexport type BadgeSize = ESize.SM | ESize.MD | ESize.LG | ESize.XL;\n\nexport enum EIconBadgeKind {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tWARNING = \"warning\",\n\tERROR = \"error\",\n\tAI = \"ai\"\n}\n\nexport interface IUiIconBadgeProps {\n\tsize?: BadgeSize;\n\tkind?: EIconBadgeKind;\n\tchildren: React.ReactNode;\n\tclassName?: string;\n}\n"],"names":["EIconBadgeKind"],"mappings":"AAIO,IAAKA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,YAAY,aACZA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,KAAK,MALMA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { EInputKind } from './_types';
|
|
2
|
+
import { EInputKind, EInputSize } from './_types';
|
|
3
3
|
export type TUiInputBaseProps = {
|
|
4
4
|
id: string;
|
|
5
5
|
postIcon?: React.ReactNode;
|
|
6
6
|
preIcon?: React.ReactNode;
|
|
7
7
|
kind?: EInputKind;
|
|
8
8
|
className?: string;
|
|
9
|
+
size?: EInputSize;
|
|
9
10
|
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
10
|
-
export declare const UiInputBase: React.
|
|
11
|
+
export declare const UiInputBase: React.ForwardRefExoticComponent<{
|
|
12
|
+
id: string;
|
|
13
|
+
postIcon?: React.ReactNode;
|
|
14
|
+
preIcon?: React.ReactNode;
|
|
15
|
+
kind?: EInputKind;
|
|
16
|
+
className?: string;
|
|
17
|
+
size?: EInputSize;
|
|
18
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "react";
|
|
3
|
-
import { UiTypography as
|
|
4
|
-
import { EInputKind as r } from "./_types.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
"bg-white": !e.disabled,
|
|
28
|
-
"border-secondary-alt-300 bg-secondary-alt-200": e.disabled
|
|
29
|
-
},
|
|
30
|
-
l
|
|
31
|
-
),
|
|
32
|
-
children: [
|
|
33
|
-
a || null,
|
|
34
|
-
/* @__PURE__ */ d(
|
|
35
|
-
"input",
|
|
1
|
+
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { UiTypography as b } from "../UiTypography/UiTypography.js";
|
|
4
|
+
import { EInputKind as r, EInputSize as o } from "./_types.js";
|
|
5
|
+
import l from "classnames";
|
|
6
|
+
const w = u.forwardRef(
|
|
7
|
+
({ postIcon: a, preIcon: t, className: s, kind: i = r.DEFAULT, size: n = o.MEDIUM, ...e }, d) => {
|
|
8
|
+
const p = {
|
|
9
|
+
[r.DEFAULT]: "border-secondary-alt-600",
|
|
10
|
+
[r.ERROR]: "border-error",
|
|
11
|
+
[r.SUCCESS]: "border-primary-600",
|
|
12
|
+
[r.WARNING]: "border-warning-600"
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ m(
|
|
15
|
+
b,
|
|
16
|
+
{
|
|
17
|
+
tag: "label",
|
|
18
|
+
htmlFor: e.id,
|
|
19
|
+
className: l(
|
|
20
|
+
"ui-input-wrapper",
|
|
21
|
+
"flex flex-row items-center gap-sm rounded-xl border",
|
|
22
|
+
"focus-within:outline-4",
|
|
23
|
+
"focus-within:outline-primary-300",
|
|
24
|
+
"focus-within:ring-secondary-alt-700 active:ring",
|
|
25
|
+
i && p[i],
|
|
36
26
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
27
|
+
"bg-white hover:border-secondary-alt-700": !e.disabled,
|
|
28
|
+
"!border-secondary-alt-300 bg-secondary-alt-200": e.disabled
|
|
29
|
+
},
|
|
30
|
+
s,
|
|
31
|
+
n === o.SMALL && "px-xs py-xxs",
|
|
32
|
+
n === o.MEDIUM && "p-sm"
|
|
40
33
|
),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
children: [
|
|
35
|
+
t || null,
|
|
36
|
+
/* @__PURE__ */ c(
|
|
37
|
+
"input",
|
|
38
|
+
{
|
|
39
|
+
ref: d,
|
|
40
|
+
className: l("w-full bg-transparent outline-hidden placeholder:text-secondary-alt-600"),
|
|
41
|
+
...e
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
a || null
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
);
|
|
46
50
|
export {
|
|
47
|
-
|
|
51
|
+
w as UiInputBase
|
|
48
52
|
};
|
|
49
53
|
//# sourceMappingURL=UiInput.base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiInput.base.js","sources":["../../../src/components/UiInput/UiInput.base.tsx"],"sourcesContent":["import React from \"react\";\nimport { UiTypography } from \"../UiTypography\";\nimport { EInputKind } from \"./_types\";\nimport cx from \"classnames\";\n\nexport type TUiInputBaseProps = {\n\tid: string;\n\tpostIcon?: React.ReactNode;\n\tpreIcon?: React.ReactNode;\n\tkind?: EInputKind;\n\tclassName?: string;\n\n} & React.InputHTMLAttributes<HTMLInputElement>;\n\nexport const UiInputBase
|
|
1
|
+
{"version":3,"file":"UiInput.base.js","sources":["../../../src/components/UiInput/UiInput.base.tsx"],"sourcesContent":["import React from \"react\";\nimport { UiTypography } from \"../UiTypography\";\nimport { EInputKind, EInputSize } from \"./_types\";\nimport cx from \"classnames\";\n\nexport type TUiInputBaseProps = {\n\tid: string;\n\tpostIcon?: React.ReactNode;\n\tpreIcon?: React.ReactNode;\n\tkind?: EInputKind;\n\tclassName?: string;\n\tsize?: EInputSize;\n} & React.InputHTMLAttributes<HTMLInputElement>;\n\nexport const UiInputBase = React.forwardRef<HTMLInputElement, TUiInputBaseProps>(\n\t({ postIcon, preIcon, className, kind = EInputKind.DEFAULT, size = EInputSize.MEDIUM, ...rest }, ref) => {\n\n\t\tconst stateClasses = {\n\t\t\t[EInputKind.DEFAULT]: \"border-secondary-alt-600\",\n\t\t\t[EInputKind.ERROR]: \"border-error\",\n\t\t\t[EInputKind.SUCCESS]: \"border-primary-600\",\n\t\t\t[EInputKind.WARNING]: \"border-warning-600\"\n\t\t};\n\n\t\treturn (\n\t\t\t<UiTypography\n\t\t\t\ttag=\"label\"\n\t\t\t\thtmlFor={ rest.id }\n\t\t\t\tclassName={\n\t\t\t\t\tcx(\n\t\t\t\t\t\t\"ui-input-wrapper\",\n\t\t\t\t\t\t\"flex flex-row items-center gap-sm rounded-xl border\",\n\t\t\t\t\t\t\"focus-within:outline-4\",\n\t\t\t\t\t\t\"focus-within:outline-primary-300\",\n\t\t\t\t\t\t\"focus-within:ring-secondary-alt-700 active:ring\",\n\t\t\t\t\t\tkind && stateClasses[kind],\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"bg-white hover:border-secondary-alt-700\": !rest.disabled,\n\t\t\t\t\t\t\t\"!border-secondary-alt-300 bg-secondary-alt-200\": rest.disabled,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t\tsize === EInputSize.SMALL && \"px-xs py-xxs\",\n\t\t\t\t\t\tsize === EInputSize.MEDIUM && \"p-sm\"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{ preIcon\n\t\t\t\t\t? preIcon\n\t\t\t\t\t: null }\n\t\t\t\t<input\n\t\t\t\t\tref={ ref }\n\t\t\t\t\tclassName={ cx(\"w-full bg-transparent outline-hidden placeholder:text-secondary-alt-600\") }\n\t\t\t\t\t{ ...rest }\n\t\t\t\t/>\n\n\t\t\t\t{ postIcon\n\t\t\t\t\t? postIcon\n\t\t\t\t\t: null }\n\n\t\t\t</UiTypography>\n\t\t);\n\t});\n"],"names":["UiInputBase","React","postIcon","preIcon","className","kind","EInputKind","size","EInputSize","rest","ref","stateClasses","jsxs","UiTypography","cx","jsx"],"mappings":";;;;;AAcO,MAAMA,IAAcC,EAAM;AAAA,EAChC,CAAC,EAAE,UAAAC,GAAU,SAAAC,GAAS,WAAAC,GAAW,MAAAC,IAAOC,EAAW,SAAS,MAAAC,IAAOC,EAAW,QAAQ,GAAGC,EAAA,GAAQC,MAAQ;AAExG,UAAMC,IAAe;AAAA,MACpB,CAACL,EAAW,OAAO,GAAG;AAAA,MACtB,CAACA,EAAW,KAAK,GAAG;AAAA,MACpB,CAACA,EAAW,OAAO,GAAG;AAAA,MACtB,CAACA,EAAW,OAAO,GAAG;AAAA,IAAA;AAGvB,WACC,gBAAAM;AAAA,MAACC;AAAA,MAAA;AAAA,QACA,KAAI;AAAA,QACJ,SAAUJ,EAAK;AAAA,QACf,WACCK;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACAT,KAAQM,EAAaN,CAAI;AAAA,UACzB;AAAA,YACC,2CAA2C,CAACI,EAAK;AAAA,YACjD,kDAAkDA,EAAK;AAAA,UAAA;AAAA,UAExDL;AAAA,UACAG,MAASC,EAAW,SAAS;AAAA,UAC7BD,MAASC,EAAW,UAAU;AAAA,QAAA;AAAA,QAI9B,UAAA;AAAA,UAAAL,KAEC;AAAA,UACH,gBAAAY;AAAA,YAAC;AAAA,YAAA;AAAA,cACA,KAAAL;AAAA,cACA,WAAYI,EAAG,yEAAyE;AAAA,cACtF,GAAGL;AAAA,YAAA;AAAA,UAAA;AAAA,UAGJP,KAEC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIN;AAAC;"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type TUiInputTextProps = {
|
|
2
|
+
import { EInputKind, EInputSize } from './_types.ts';
|
|
3
|
+
export declare const UiInputText: React.ForwardRefExoticComponent<{
|
|
5
4
|
id: string;
|
|
6
5
|
kind?: EInputKind;
|
|
7
6
|
statusMessage?: string | React.ReactElement;
|
|
8
7
|
title?: React.ReactNode;
|
|
9
8
|
subtitle?: React.ReactNode;
|
|
10
9
|
infoComponent?: React.ReactNode;
|
|
11
|
-
} &
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
} & {
|
|
11
|
+
id: string;
|
|
12
|
+
postIcon?: React.ReactNode;
|
|
13
|
+
preIcon?: React.ReactNode;
|
|
14
|
+
kind?: EInputKind;
|
|
15
|
+
className?: string;
|
|
16
|
+
size?: EInputSize;
|
|
17
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,26 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "react";
|
|
3
|
-
import { UiInputBase as
|
|
4
|
-
import { UiInputTitled as
|
|
5
|
-
import { UiInputStatusMessage as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { UiInputBase as l } from "./UiInput.base.js";
|
|
4
|
+
import { UiInputTitled as c } from "./UiInputTitled.js";
|
|
5
|
+
import { UiInputStatusMessage as s } from "./UiInputStatusMessage.js";
|
|
6
|
+
const h = u.forwardRef(({
|
|
7
7
|
kind: r,
|
|
8
|
-
title:
|
|
9
|
-
infoComponent:
|
|
10
|
-
subtitle:
|
|
8
|
+
title: i,
|
|
9
|
+
infoComponent: m,
|
|
10
|
+
subtitle: p,
|
|
11
11
|
statusMessage: t,
|
|
12
|
-
...
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
...e
|
|
13
|
+
}, n) => /* @__PURE__ */ f(c, { title: i, subtitle: p, infoComponent: m, children: [
|
|
14
|
+
/* @__PURE__ */ o(
|
|
15
|
+
l,
|
|
16
|
+
{
|
|
17
|
+
kind: r,
|
|
18
|
+
ref: n,
|
|
19
|
+
...e
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
t ? /* @__PURE__ */ o(
|
|
23
|
+
s,
|
|
17
24
|
{
|
|
18
25
|
kind: r,
|
|
19
26
|
children: t
|
|
20
27
|
}
|
|
21
28
|
) : null
|
|
22
|
-
] });
|
|
29
|
+
] }));
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
h as UiInputText
|
|
25
32
|
};
|
|
26
33
|
//# sourceMappingURL=UiInputText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiInputText.js","sources":["../../../src/components/UiInput/UiInputText.tsx"],"sourcesContent":["import React from \"react\";\nimport { UiInputBase, type TUiInputBaseProps } from \"./UiInput.base.tsx\";\nimport { UiInputTitled } from \"./UiInputTitled.tsx\";\nimport { EInputKind } from \"./_types.ts\";\nimport { UiInputStatusMessage } from \"./UiInputStatusMessage.tsx\";\n\ntype TUiInputTextProps = {\n\tid: string;\n\tkind?: EInputKind;\n\tstatusMessage?: string | React.ReactElement;\n\ttitle?: React.ReactNode;\n\tsubtitle?: React.ReactNode;\n\tinfoComponent?: React.ReactNode;\n} & TUiInputBaseProps;\n\nexport const UiInputText
|
|
1
|
+
{"version":3,"file":"UiInputText.js","sources":["../../../src/components/UiInput/UiInputText.tsx"],"sourcesContent":["import React from \"react\";\nimport { UiInputBase, type TUiInputBaseProps } from \"./UiInput.base.tsx\";\nimport { UiInputTitled } from \"./UiInputTitled.tsx\";\nimport { EInputKind } from \"./_types.ts\";\nimport { UiInputStatusMessage } from \"./UiInputStatusMessage.tsx\";\n\ntype TUiInputTextProps = {\n\tid: string;\n\tkind?: EInputKind;\n\tstatusMessage?: string | React.ReactElement;\n\ttitle?: React.ReactNode;\n\tsubtitle?: React.ReactNode;\n\tinfoComponent?: React.ReactNode;\n} & TUiInputBaseProps;\n\nexport const UiInputText = React.forwardRef<HTMLInputElement, TUiInputTextProps>(({\n\tkind,\n\ttitle,\n\tinfoComponent,\n\tsubtitle,\n\tstatusMessage,\n\t...rest\n}, ref) => {\n\treturn (\n\t\t<UiInputTitled title={ title } subtitle={ subtitle } infoComponent={ infoComponent } >\n\t\t\t<UiInputBase\n\t\t\t\tkind={ kind }\n\t\t\t\tref={ ref }\n\t\t\t\t{ ...rest }\n\t\t\t/>\n\t\t\t{ statusMessage\n\t\t\t\t? (\n\t\t\t\t\t<UiInputStatusMessage\n\t\t\t\t\t\tkind={ kind }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ statusMessage }\n\t\t\t\t\t</UiInputStatusMessage>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t</UiInputTitled>\n\t);\n});\n"],"names":["UiInputText","React","kind","title","infoComponent","subtitle","statusMessage","rest","ref","jsxs","UiInputTitled","jsx","UiInputBase","UiInputStatusMessage"],"mappings":";;;;;AAeO,MAAMA,IAAcC,EAAM,WAAgD,CAAC;AAAA,EACjF,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,GAAGC;AACJ,GAAGC,MAED,gBAAAC,EAACC,GAAA,EAAc,OAAAP,GAAgB,UAAAE,GAAsB,eAAAD,GACpD,UAAA;AAAA,EAAA,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,MAAAV;AAAA,MACA,KAAAM;AAAA,MACE,GAAGD;AAAA,IAAA;AAAA,EAAA;AAAA,EAEJD,IAEA,gBAAAK;AAAA,IAACE;AAAA,IAAA;AAAA,MACA,MAAAX;AAAA,MAEE,UAAAI;AAAA,IAAA;AAAA,EAAA,IAGF;AAAA,GACJ,CAED;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r = /* @__PURE__ */ ((R) => (R.DEFAULT = "DEFAULT", R.ERROR = "ERROR", R.SUCCESS = "SUCCESS", R.WARNING = "WARNING", R))(r || {}), S = /* @__PURE__ */ ((R) => (R.SMALL = "small", R.MEDIUM = "medium", R))(S || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as EInputKind,
|
|
4
|
+
S as EInputSize
|
|
4
5
|
};
|
|
5
6
|
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sources":["../../../src/components/UiInput/_types.ts"],"sourcesContent":["export enum EInputKind {\n\tDEFAULT = \"DEFAULT\",\n\tERROR = \"ERROR\",\n\tSUCCESS = \"SUCCESS\",\n\tWARNING = \"WARNING\",\n}\n"],"names":["EInputKind"],"mappings":"AAAO,IAAKA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,UAAU,WACVA,EAAA,UAAU,WAJCA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiInput/_types.ts"],"sourcesContent":["export enum EInputKind {\n\tDEFAULT = \"DEFAULT\",\n\tERROR = \"ERROR\",\n\tSUCCESS = \"SUCCESS\",\n\tWARNING = \"WARNING\",\n}\n\nexport enum EInputSize {\n\tSMALL = \"small\",\n\tMEDIUM = \"medium\",\n}\n"],"names":["EInputKind","EInputSize"],"mappings":"AAAO,IAAKA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,UAAU,WACVA,EAAA,UAAU,WAJCA,IAAAA,KAAA,CAAA,CAAA,GAOAC,sBAAAA,OACXA,EAAA,QAAQ,SACRA,EAAA,SAAS,UAFEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { UiInputBase } from './UiInput.base';
|
|
2
|
-
export { UiInputTextArea } from './UiInputTextArea';
|
|
3
2
|
export { UiInputTitled } from './UiInputTitled';
|
|
4
3
|
export { UiInputText } from './UiInputText';
|
|
5
4
|
export { UiInputStatusMessage } from './UiInputStatusMessage';
|
|
6
|
-
export { EInputKind } from './_types';
|
|
5
|
+
export { EInputKind, EInputSize } from './_types';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { UiInputBase as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { EInputKind as U } from "./_types.js";
|
|
1
|
+
import { UiInputBase as p } from "./UiInput.base.js";
|
|
2
|
+
import { UiInputTitled as r } from "./UiInputTitled.js";
|
|
3
|
+
import { UiInputText as n } from "./UiInputText.js";
|
|
4
|
+
import { UiInputStatusMessage as x } from "./UiInputStatusMessage.js";
|
|
5
|
+
import { EInputKind as f, EInputSize as m } from "./_types.js";
|
|
7
6
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
f as EInputKind,
|
|
8
|
+
m as EInputSize,
|
|
9
|
+
p as UiInputBase,
|
|
10
|
+
x as UiInputStatusMessage,
|
|
11
|
+
n as UiInputText,
|
|
12
|
+
r as UiInputTitled
|
|
14
13
|
};
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|