sea-react-components 1.1.0 → 1.1.1
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/components/text-editor/components/toolbar/index.d.ts.map +1 -1
- package/dist/components/text-editor/components/toolbar/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/utils/validation/index.d.ts.map +1 -1
- package/dist/utils/validation/index.js +5 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/text-editor/components/toolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAalD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,EAAE,CAAC;CACzB,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,aAAyB,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/text-editor/components/toolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAalD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,EAAE,CAAC;CACzB,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,aAAyB,EAAE,EAAE,KAAK,2CA+gB3E"}
|
|
@@ -257,7 +257,7 @@ export default function Toolbar({ editor, headingLevels = [1, 2, 3] }) {
|
|
|
257
257
|
value: o.style,
|
|
258
258
|
})), placeholder: "Heading" }), MARKER_SECTIONS.map((s, si) => (_jsxs("div", { className: "flex items-center gap-1", children: [s.items.map((item, ii) => {
|
|
259
259
|
if (item.type === "button")
|
|
260
|
-
return (_jsx(Button, { onClick: () => item.onClick(), disabled: item.disabled, className: clsx(editor.isActive(item.name)
|
|
260
|
+
return (_jsx(Button, { type: "button", onClick: () => item.onClick(), disabled: item.disabled, className: clsx(editor.isActive(item.name)
|
|
261
261
|
? "bg-primary bg-opacity-30"
|
|
262
262
|
: "bg-transparent hover:bg-primary hover:bg-opacity-30"), children: _jsx(Icon, { icon: item.icon, className: "\r\n text-black h-5 w-5" }) }, `${item.name}-${ii}`));
|
|
263
263
|
else if (item.type === "menu") {
|
|
@@ -11,5 +11,5 @@ export default function Tooltip({ text, children, placement = "top", containerCl
|
|
|
11
11
|
left: "right-full mr-2 top-1/2 transform -translate-y-1/2",
|
|
12
12
|
right: "left-full ml-2 top-1/2 transform -translate-y-1/2",
|
|
13
13
|
};
|
|
14
|
-
return (_jsxs("div", { className: "relative inline-block", onMouseEnter: () => setVisible(true), onMouseLeave: () => setVisible(false), children: [children, visible && (_jsx("div", { className: clsx("absolute px-2 py-1 rounded shadow-lg", positionClasses[placement], containerClassName), children: _jsxs("p", { className: textClassName, children: [" ", text] }) }))] }));
|
|
14
|
+
return (_jsxs("div", { className: "relative inline-block", onMouseEnter: () => text && setVisible(true), onMouseLeave: () => setVisible(false), children: [children, visible && (_jsx("div", { className: clsx("absolute px-2 py-1 rounded shadow-lg", positionClasses[placement], containerClassName), children: _jsxs("p", { className: textClassName, children: [" ", text] }) }))] }));
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B,eAAO,MAAM,IAAI,wDAAmD,CAAC;AACrE,eAAO,MAAM,SAAS,wDAAoC,CAAC;AAC3D,eAAO,MAAM,KAAK,wDAA4C,CAAC;AAC/D,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B,eAAO,MAAM,IAAI,wDAAmD,CAAC;AACrE,eAAO,MAAM,SAAS,wDAAoC,CAAC;AAC3D,eAAO,MAAM,KAAK,wDAA4C,CAAC;AAC/D,eAAO,MAAM,WAAW,wDAKpB,CAAC;AACL,eAAO,MAAM,QAAQ,wDAA2C,CAAC;AACjE,eAAO,MAAM,eAAe,wDAEe,CAAC;AAE5C,eAAO,MAAM,UAAU,wDASpB,CAAC;AAEJ,eAAO,MAAM,OAAO,WAAY,MAAM,2DAGb,CAAC"}
|
|
@@ -4,8 +4,11 @@ export const name = Yup.string().min(3).max(50).required("Required");
|
|
|
4
4
|
export const birthDate = Yup.string().required("Required");
|
|
5
5
|
export const email = Yup.string().email().required("Required");
|
|
6
6
|
export const phoneNumber = Yup.string()
|
|
7
|
-
.
|
|
8
|
-
.
|
|
7
|
+
.optional()
|
|
8
|
+
.matches(Utils.String.phoneRegExp, {
|
|
9
|
+
excludeEmptyString: true,
|
|
10
|
+
message: "Phone number is not valid!!!",
|
|
11
|
+
});
|
|
9
12
|
export const password = Yup.string().min(8).required("Required");
|
|
10
13
|
export const confirmPassword = Yup.string()
|
|
11
14
|
.oneOf([Yup.ref("password"), undefined], "Passwords must match")
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sea-react-components",
|
|
3
3
|
"description": "SEA react components library",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc --build && npx postcss src/styles.css -o dist/styles.css && npx postcss src/components/text-editor/style.css -o dist/components/text-editor/style.css",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lowlight": "^3.3.0",
|
|
47
47
|
"react-dom": "^18.3.1",
|
|
48
48
|
"sea-backend-helpers": "^1.0.0",
|
|
49
|
-
"sea-platform-helpers": "^1.
|
|
49
|
+
"sea-platform-helpers": "^1.3.1",
|
|
50
50
|
"sea-react-components": "file:",
|
|
51
51
|
"yup": "^1.5.0"
|
|
52
52
|
},
|