trepur_components 1.0.60 → 1.0.61
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/src/lib/components/AlertBar/AlertBar.d.ts +5 -5
- package/dist/src/lib/components/AlertBar/AlertBar.js +29 -33
- package/dist/src/lib/components/AlertBar/AlertBar.js.map +1 -1
- package/dist/src/lib/components/AlertBar/style.module.css +11 -2
- package/dist/src/lib/components/AlertBar/style.module.css.map +1 -1
- package/dist/src/lib/components/ComponentWrapper/style.module.css +3 -23
- package/dist/src/lib/components/ComponentWrapper/style.module.css.map +1 -1
- package/dist/src/lib/components/Form/Form.d.ts +4 -4
- package/dist/src/lib/components/Form/Form.js +9 -9
- package/dist/src/lib/components/Form/Form.js.map +1 -1
- package/dist/src/lib/components/Icon/Icon.d.ts +3 -3
- package/dist/src/lib/components/Icon/Icon.js +27 -15
- package/dist/src/lib/components/Icon/Icon.js.map +1 -1
- package/dist/src/lib/components/ImageInfo/ImageInfo.js +1 -1
- package/dist/src/lib/components/ImageInfo/ImageInfo.js.map +1 -1
- package/dist/src/lib/components/InformationIcon/InformationIcon.d.ts +3 -3
- package/dist/src/lib/components/InformationIcon/InformationIcon.js +18 -15
- package/dist/src/lib/components/InformationIcon/InformationIcon.js.map +1 -1
- package/dist/src/lib/components/InformationIcon/style.module.css +45 -88
- package/dist/src/lib/components/InformationIcon/style.module.css.map +1 -1
- package/dist/src/lib/components/InformationIconBlock/InformationIconBlock.d.ts +3 -3
- package/dist/src/lib/components/InformationIconBlock/InformationIconBlock.js +17 -18
- package/dist/src/lib/components/InformationIconBlock/InformationIconBlock.js.map +1 -1
- package/dist/src/lib/components/InformationIconBlock/style.module.css +1 -9
- package/dist/src/lib/components/InformationIconBlock/style.module.css.map +1 -1
- package/dist/src/lib/components/Input/Input.d.ts +2 -3
- package/dist/src/lib/components/Input/Input.js +11 -16
- package/dist/src/lib/components/Input/Input.js.map +1 -1
- package/dist/src/lib/components/Input/style.module.css +0 -4
- package/dist/src/lib/components/Input/style.module.css.map +1 -1
- package/dist/src/lib/components/Nav/Nav.js +4 -1
- package/dist/src/lib/components/Nav/Nav.js.map +1 -1
- package/dist/src/lib/components/Nav/style.module.css +1 -1
- package/dist/src/lib/components/Nav/style.module.css.map +1 -1
- package/dist/src/lib/components/SocialBlock/SocialBlock.d.ts +3 -8
- package/dist/src/lib/components/SocialBlock/SocialBlock.js +14 -53
- package/dist/src/lib/components/SocialBlock/SocialBlock.js.map +1 -1
- package/dist/src/lib/components/SocialBlock/style.module.css +36 -41
- package/dist/src/lib/components/SocialBlock/style.module.css.map +1 -1
- package/dist/src/lib/components/SocialButton/SocialButton.d.ts +3 -3
- package/dist/src/lib/components/SocialButton/SocialButton.js +12 -13
- package/dist/src/lib/components/SocialButton/SocialButton.js.map +1 -1
- package/dist/src/lib/components/SocialButton/style.module.css +5 -10
- package/dist/src/lib/components/SocialButton/style.module.css.map +1 -1
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.d.ts +3 -3
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.js +32 -52
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.js.map +1 -1
- package/dist/src/lib/components/TextArea/TextArea.d.ts +15 -12
- package/dist/src/lib/components/TextArea/TextArea.js +21 -16
- package/dist/src/lib/components/TextArea/TextArea.js.map +1 -1
- package/dist/src/lib/components/TextArea/style.module.css +89 -20
- package/dist/src/lib/components/TextArea/style.module.css.map +1 -1
- package/package.json +1 -1
|
@@ -1,75 +1,70 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
border-width: 1px;
|
|
4
|
-
|
|
5
|
-
border-style: dashed
|
|
1
|
+
.classList {
|
|
2
|
+
width:100%;
|
|
6
3
|
}
|
|
7
4
|
|
|
8
5
|
.dark {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
color: var(--color-white)
|
|
6
|
+
background-color:var(--color-primary);
|
|
7
|
+
color:var(--color-white);
|
|
13
8
|
}
|
|
14
9
|
|
|
15
10
|
.dark::placeholder {
|
|
16
|
-
|
|
17
|
-
color: var(--color-white)
|
|
11
|
+
color:var(--color-white);
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
.light {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
color: var(--color-black)
|
|
15
|
+
background-color:var(--color-white);
|
|
16
|
+
color:var(--color-black);
|
|
25
17
|
}
|
|
26
18
|
|
|
27
19
|
.light::placeholder {
|
|
20
|
+
color:var(--color-primary);
|
|
21
|
+
}
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
.outside {
|
|
24
|
+
display:flex;
|
|
25
|
+
width:100%;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
.
|
|
28
|
+
.wrapper {
|
|
29
|
+
margin-left:auto;
|
|
30
|
+
margin-right:auto;
|
|
31
|
+
display:inline-block;
|
|
32
|
+
border-radius:9999px;
|
|
33
|
+
padding-left:0.5rem;
|
|
34
|
+
padding-right:0.5rem;
|
|
35
|
+
}
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
.dark .wrapper {
|
|
38
|
+
background:rgba(255, 255, 255, 0.4);
|
|
39
|
+
}
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
.light .wrapper {
|
|
42
|
+
background:rgba(0, 54, 160, 0.7);
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
.
|
|
45
|
+
.buttonWrapper {
|
|
46
|
+
display:flex;
|
|
47
|
+
}
|
|
40
48
|
|
|
41
|
-
|
|
49
|
+
.title {
|
|
50
|
+
font-size:22px;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
@media (min-width: 640px) {
|
|
45
54
|
|
|
46
55
|
.title {
|
|
47
|
-
|
|
48
|
-
font-size: 28px
|
|
56
|
+
font-size:28px;
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
.text {
|
|
53
|
-
|
|
54
|
-
padding-top: 1rem
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.cancelButton {
|
|
58
|
-
|
|
59
|
-
margin-top: 1rem;
|
|
60
|
-
|
|
61
|
-
margin-left: 1rem
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.saveButton {
|
|
65
|
-
|
|
66
|
-
margin-top: 1rem
|
|
61
|
+
padding-top:1rem;
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
.buttonClasses {
|
|
70
|
-
|
|
71
|
-
margin-
|
|
72
|
-
|
|
73
|
-
margin-
|
|
65
|
+
margin-top:0.5rem;
|
|
66
|
+
margin-bottom:0.5rem;
|
|
67
|
+
margin-left:0.25rem;
|
|
68
|
+
margin-right:0.25rem;
|
|
74
69
|
}
|
|
75
70
|
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/lib/components/SocialBlock/style.module.css"],"names":[],"mappings":"AACI
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/SocialBlock/style.module.css"],"names":[],"mappings":"AACI;IAAA;AAAa;;AAIb;IAAA,qCAA8C;IAA9C;AAA8C;;AAA9C;IAAA;AAA8C;;AAI9C;IAAA,mCAA8C;IAA9C;AAA8C;;AAA9C;IAAA;AAA8C;;AAI9C;IAAA,YAAkB;IAAlB;AAAkB;;AAIlB;IAAA,gBAA6C;IAA7C,iBAA6C;IAA7C,oBAA6C;IAA7C,oBAA6C;IAA7C,mBAA6C;IAA7C;AAA6C;;AAGjD;IACI,mCAAmC;AACvC;;AAEA;IACI,gCAAgC;AACpC;;AAGI;IAAA;AAAW;;AAIX;IAAA;AAAyB;;AAAzB;;IAAA;QAAA;IAAyB;AAAA;;AAIzB;IAAA;AAAW;;AAIX;IAAA,iBAAgB;IAAhB,oBAAgB;IAAhB,mBAAgB;IAAhB;AAAgB","file":"style.module.css","sourcesContent":[".classList {\n @apply w-full;\n}\n\n.dark {\n @apply placeholder-white bg-primary text-white;\n}\n\n.light {\n @apply placeholder-primary bg-white text-black;\n}\n\n.outside {\n @apply w-full flex;\n}\n\n.wrapper {\n @apply mx-auto px-2 inline-block rounded-full;\n}\n\n.dark .wrapper {\n background:rgba(255, 255, 255, 0.4);\n}\n\n.light .wrapper {\n background:rgba(0, 54, 160, 0.7);\n}\n\n.buttonWrapper {\n @apply flex;\n}\n\n.title {\n @apply text-md sm:text-lg;\n}\n\n.text {\n @apply pt-4;\n}\n\n.buttonClasses {\n @apply my-2 mx-1;\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ThemeTypes, SocialTypes } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ThemeTypes, SocialTypes } from "../../utils/controls";
|
|
3
3
|
export interface Props {
|
|
4
4
|
id?: string;
|
|
5
5
|
className?: string;
|
|
@@ -9,5 +9,5 @@ export interface Props {
|
|
|
9
9
|
openInNewTab?: boolean;
|
|
10
10
|
theme?: ThemeTypes;
|
|
11
11
|
}
|
|
12
|
-
declare const SocialButton: ({ id, className, onClick, type, href, openInNewTab, theme }: Props) => JSX.Element;
|
|
12
|
+
declare const SocialButton: ({ id, className, onClick, type, href, openInNewTab, theme, }: Props) => JSX.Element;
|
|
13
13
|
export default SocialButton;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import Icon from
|
|
3
|
-
import classNames from
|
|
4
|
-
import style from
|
|
5
|
-
const SocialButton = ({ id, className, onClick, type =
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "../Icon/Icon";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import style from "./style.module.css";
|
|
5
|
+
const SocialButton = ({ id, className, onClick, type = "facebook", href, openInNewTab = false, theme = "theme-rupertbennett", }) => {
|
|
6
6
|
const getColours = (type) => {
|
|
7
7
|
const typeString = type;
|
|
8
8
|
const colour = `interactive-${typeString}`;
|
|
9
9
|
return colour;
|
|
10
10
|
};
|
|
11
11
|
const classList = classNames(style.classList, style[type], theme, className);
|
|
12
|
-
const aClassList = classNames(style.aClassList, style.hover);
|
|
13
12
|
const iconType = {
|
|
14
|
-
facebook:
|
|
15
|
-
instagram:
|
|
16
|
-
github:
|
|
17
|
-
linkedin:
|
|
13
|
+
facebook: "facebook-f",
|
|
14
|
+
instagram: "instagram",
|
|
15
|
+
github: "github",
|
|
16
|
+
linkedin: "linkedin-in",
|
|
18
17
|
};
|
|
19
18
|
const typeString = type.toString();
|
|
20
|
-
return (React.createElement("
|
|
21
|
-
React.createElement("
|
|
22
|
-
React.createElement(Icon, { type: iconType[type], size:
|
|
19
|
+
return (React.createElement("a", Object.assign({ className: style.anchor, href: href, "aria-label": `view me on ${typeString}`, onClick: onClick }, (openInNewTab && { target: "_blank" })),
|
|
20
|
+
React.createElement("div", { id: id, className: classList },
|
|
21
|
+
React.createElement(Icon, { type: iconType[type], className: "mx-auto my-auto", size: 2, brand: true, rounded: true, bgColour: type, colour: "white", hoverBgColour: getColours(type) }))));
|
|
23
22
|
};
|
|
24
23
|
export default SocialButton;
|
|
25
24
|
//# sourceMappingURL=SocialButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialButton.js","sourceRoot":"","sources":["../../../../../src/lib/components/SocialButton/SocialButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"SocialButton.js","sourceRoot":"","sources":["../../../../../src/lib/components/SocialButton/SocialButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAYvC,MAAM,YAAY,GAAG,CAAC,EACpB,EAAE,EACF,SAAS,EACT,OAAO,EACP,IAAI,GAAG,UAAU,EACjB,IAAI,EACJ,YAAY,GAAG,KAAK,EACpB,KAAK,GAAG,qBAAqB,GACvB,E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ewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
4
6
|
border-radius: 9999px;
|
|
5
7
|
transition-duration: 500ms;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
border-width: 2px;
|
|
11
|
-
border-color: var(--color-transparent);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.aClassList:focus {
|
|
15
|
-
border-width: 2px;
|
|
16
|
-
border-color: var(--color-primary);
|
|
10
|
+
.anchor {
|
|
11
|
+
border-radius: 9999px;
|
|
17
12
|
}
|
|
18
13
|
|
|
19
14
|
.facebook {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/lib/components/SocialButton/style.module.css"],"names":[],"mappings":"AACI;IAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/SocialButton/style.module.css"],"names":[],"mappings":"AACI;IAAA,aAAyD;IAAzD,YAAyD;IAAzD,WAAyD;IAAzD,+LAAyD;IAAzD,qBAAyD;IAAzD;AAAyD;;AAIzD;IAAA;AAAmB;;AAInB;IAAA;AAAgD;;AAAhD;IAAA;AAAgD;;AAGpD;IACI,6nBAA6nB;AACjoB;;AAEA;IACI,6nBAA6nB;AACjoB;;AAGI;IAAA;AAA4C;;AAA5C;IAAA;AAA4C;;AAI5C;IAAA;AAAgD;;AAAhD;IAAA;AAAgD","file":"style.module.css","sourcesContent":[".classList {\n @apply duration-500 transform rounded-full flex w-16 h-16;\n}\n\n.anchor {\n @apply rounded-full;\n}\n\n.facebook {\n @apply bg-facebook hover:bg-interactive-facebook;\n}\n\n.instagram {\n background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);\n}\n\n.instagram:hover {\n background: radial-gradient(circle farthest-corner at 95% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);\n}\n\n.github {\n @apply bg-github hover:bg-interactive-github;\n}\n\n.linkedin {\n @apply bg-linkedin hover:bg-interactive-linkedin;\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Props as buttonProps } from
|
|
3
|
-
import { Colours, ThemeTypes } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Props as buttonProps } from "../Button/Button";
|
|
3
|
+
import { Colours, ThemeTypes } from "../../utils/controls";
|
|
4
4
|
export interface Props {
|
|
5
5
|
id: string;
|
|
6
6
|
className?: string;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import React, { useState } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import style from './style.module.css';
|
|
7
|
-
import Container from '../Container/Container';
|
|
8
|
-
import ComponentWrapper from '../ComponentWrapper/ComponentWrapper';
|
|
9
|
-
const TextAndTitle = ({ id, className, title, description, bgColour, titleClasses, editTitleClasses, editTextClasses, editInputClasses, textClasses, textLineOne, textLineTwo, textLineThree, titleBold, textCenter, titleCenter, withLiveUpdates = false, onSave, saveButtonProps, cancelButtonProps, isHorizontal = true, children, theme = 'theme-rupertbennett' }) => {
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import style from "./style.module.css";
|
|
4
|
+
import ComponentWrapper from "../ComponentWrapper/ComponentWrapper";
|
|
5
|
+
const TextAndTitle = ({ id, className, title, description, bgColour, titleClasses, editTitleClasses, editTextClasses, editInputClasses, textClasses, textLineOne, textLineTwo, textLineThree, titleBold, textCenter, titleCenter, withLiveUpdates = false, onSave, saveButtonProps, cancelButtonProps, isHorizontal = true, children, theme = "theme-rupertbennett", }) => {
|
|
10
6
|
const getLineHeight = (id) => {
|
|
11
7
|
const element = document.getElementById(id);
|
|
12
8
|
const divHeight = (element === null || element === void 0 ? void 0 : element.offsetHeight) !== undefined ? element.offsetHeight : 0;
|
|
13
|
-
const lineHeight =
|
|
14
|
-
const pt =
|
|
15
|
-
const pb =
|
|
16
|
-
const mt =
|
|
17
|
-
const mb =
|
|
18
|
-
const bw =
|
|
19
|
-
const height = divHeight - mt - mb - pt - pb -
|
|
9
|
+
const lineHeight = element != null ? parseFloat(getComputedStyle(element).fontSize) : 1;
|
|
10
|
+
const pt = element != null ? parseFloat(getComputedStyle(element).paddingTop) : 0;
|
|
11
|
+
const pb = element != null ? parseFloat(getComputedStyle(element).paddingBottom) : 0;
|
|
12
|
+
const mt = element != null ? parseFloat(getComputedStyle(element).marginTop) : 0;
|
|
13
|
+
const mb = element != null ? parseFloat(getComputedStyle(element).marginBottom) : 0;
|
|
14
|
+
const bw = element != null ? parseFloat(getComputedStyle(element).borderWidth) : 0;
|
|
15
|
+
const height = divHeight - mt - mb - pt - pb - bw * 2;
|
|
20
16
|
if (isHorizontal) {
|
|
21
17
|
return Math.floor(height / lineHeight) - 1;
|
|
22
18
|
}
|
|
@@ -26,7 +22,7 @@ const TextAndTitle = ({ id, className, title, description, bgColour, titleClasse
|
|
|
26
22
|
title,
|
|
27
23
|
textLineOne,
|
|
28
24
|
textLineTwo,
|
|
29
|
-
textLineThree
|
|
25
|
+
textLineThree,
|
|
30
26
|
};
|
|
31
27
|
const [isInEditingMode, setIsInEditingMode] = useState(false);
|
|
32
28
|
const [componentData, setComponentData] = useState(defaultComponentData);
|
|
@@ -35,22 +31,21 @@ const TextAndTitle = ({ id, className, title, description, bgColour, titleClasse
|
|
|
35
31
|
const titleClassList = classNames({
|
|
36
32
|
[style.fontBold]: titleBold,
|
|
37
33
|
[style.textCenter]: titleCenter,
|
|
38
|
-
[borderClasses]: withLiveUpdates && !isInEditingMode && isHorizontal
|
|
34
|
+
[borderClasses]: withLiveUpdates && !isInEditingMode && isHorizontal,
|
|
39
35
|
}, titleClasses, style.titleClassList);
|
|
40
36
|
const textClassList = classNames({
|
|
41
37
|
[style.textCenter]: textCenter,
|
|
42
|
-
[borderClasses]: withLiveUpdates && !isInEditingMode && isHorizontal
|
|
38
|
+
[borderClasses]: withLiveUpdates && !isInEditingMode && isHorizontal,
|
|
43
39
|
}, textClasses, style.textClassList);
|
|
44
40
|
const toggleEditState = () => {
|
|
45
|
-
withLiveUpdates &&
|
|
46
|
-
setIsInEditingMode(!isInEditingMode);
|
|
41
|
+
withLiveUpdates && setIsInEditingMode(!isInEditingMode);
|
|
47
42
|
};
|
|
48
43
|
const handleButtonSave = () => {
|
|
49
44
|
const arr = [];
|
|
50
|
-
arr.push({ key:
|
|
51
|
-
arr.push({ key:
|
|
52
|
-
arr.push({ key:
|
|
53
|
-
arr.push({ key:
|
|
45
|
+
arr.push({ key: "title", value: componentData.title });
|
|
46
|
+
arr.push({ key: "textLineOne", value: componentData.textLineOne });
|
|
47
|
+
arr.push({ key: "textLineTwo", value: componentData.textLineTwo });
|
|
48
|
+
arr.push({ key: "textLineThree", value: componentData.textLineThree });
|
|
54
49
|
toggleEditState();
|
|
55
50
|
onSave === null || onSave === void 0 ? void 0 : onSave(arr, id);
|
|
56
51
|
};
|
|
@@ -59,43 +54,28 @@ const TextAndTitle = ({ id, className, title, description, bgColour, titleClasse
|
|
|
59
54
|
};
|
|
60
55
|
const handleChange = (e) => {
|
|
61
56
|
let id = e.target.id;
|
|
62
|
-
id = id.split(
|
|
57
|
+
id = id.split("-")[id.split("-").length - 1];
|
|
63
58
|
setComponentData(Object.assign(Object.assign({}, componentData), { [id]: e.target.value }));
|
|
64
59
|
};
|
|
65
60
|
const wrapperClassList = classNames({
|
|
66
61
|
[style.horizontalWrapperClassList]: isHorizontal,
|
|
67
62
|
[style.liveUpdatesWrapperClassList]: withLiveUpdates && !isInEditingMode,
|
|
68
|
-
[style.wrapperClassList]: isHorizontal
|
|
63
|
+
[style.wrapperClassList]: isHorizontal,
|
|
69
64
|
});
|
|
70
65
|
const titleWrapperClassList = classNames({
|
|
71
|
-
[style.horizontalTitleWrapperClassList]: isHorizontal
|
|
66
|
+
[style.horizontalTitleWrapperClassList]: isHorizontal,
|
|
72
67
|
});
|
|
73
68
|
const textWrapperClassList = classNames({
|
|
74
|
-
[style.horizontalTextWrapperClassList]: isHorizontal
|
|
69
|
+
[style.horizontalTextWrapperClassList]: isHorizontal,
|
|
75
70
|
});
|
|
76
|
-
const node = document.getElementById(
|
|
77
|
-
return (React.createElement(ComponentWrapper, { id: id, className: classList, title: title, description: description, bgColour: bgColour, theme: theme },
|
|
78
|
-
|
|
79
|
-
React.createElement("div", { className:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
React.createElement("div", { className:
|
|
84
|
-
React.createElement(TextArea, { className: editTextClasses, rows: getLineHeight('textLineOne') + 1, onChange: (e) => handleChange(e) }, node === null || node === void 0 ? void 0 : node.innerHTML),
|
|
85
|
-
React.createElement(TextArea, { className: editTextClasses, rows: getLineHeight('textLineTwo'), onChange: (e) => handleChange(e) }, componentData.textLineTwo),
|
|
86
|
-
React.createElement(TextArea, { className: editTextClasses, rows: getLineHeight('textLineThree'), onChange: (e) => handleChange(e) }, componentData.textLineThree))),
|
|
87
|
-
React.createElement("div", { className: style.buttonWrapper },
|
|
88
|
-
React.createElement(Button, { className: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.className, onClick: handleButtonSave }, saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.children),
|
|
89
|
-
React.createElement(Button, { className: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, onClick: handleButtonCancel }, cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.children))))
|
|
90
|
-
: (React.createElement(Container, null,
|
|
91
|
-
React.createElement("div", { className: wrapperClassList, onClick: toggleEditState },
|
|
92
|
-
React.createElement("div", { className: titleWrapperClassList }, children !== undefined && children !== null
|
|
93
|
-
? (children)
|
|
94
|
-
: (React.createElement("h1", { className: titleClassList }, componentData.title))),
|
|
95
|
-
React.createElement("div", { className: textWrapperClassList },
|
|
96
|
-
React.createElement("div", { id: 'textLineOne', className: textClassList }, componentData.textLineOne),
|
|
97
|
-
React.createElement("div", { id: 'textLineTwo', className: textClassList }, componentData.textLineTwo),
|
|
98
|
-
React.createElement("div", { id: 'textLineThree', className: textClassList }, componentData.textLineThree)))))));
|
|
71
|
+
const node = document.getElementById("textLineOne");
|
|
72
|
+
return (React.createElement(ComponentWrapper, { id: id, className: classList, title: title, description: description, bgColour: bgColour, theme: theme },
|
|
73
|
+
React.createElement("div", { className: wrapperClassList, onClick: toggleEditState },
|
|
74
|
+
React.createElement("div", { className: titleWrapperClassList }, children !== undefined && children !== null ? (children) : (React.createElement("h1", { className: titleClassList }, componentData.title))),
|
|
75
|
+
React.createElement("div", { className: textWrapperClassList },
|
|
76
|
+
React.createElement("div", { id: "textLineOne", className: textClassList }, componentData.textLineOne),
|
|
77
|
+
React.createElement("div", { id: "textLineTwo", className: textClassList }, componentData.textLineTwo),
|
|
78
|
+
React.createElement("div", { id: "textLineThree", className: textClassList }, componentData.textLineThree)))));
|
|
99
79
|
};
|
|
100
80
|
export default TextAndTitle;
|
|
101
81
|
//# sourceMappingURL=TextAndTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAndTitle.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextAndTitle/TextAndTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"TextAndTitle.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextAndTitle/TextAndTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAGvC,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AA4B7E,MAAM,YAAY,GAAoB,CAAC,EACrC,EAAE,EACF,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,eAAe,GAAG,KAAK,EACvB,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,YAAY,GAAG,IAAI,EACnB,QAAQ,EACR,KAAK,GAAG,qBAAqB,GACvB,EAAe,EAAE;IACvB,MAAM,aAAa,GAAG,CAAC,EAAU,EAAU,EAAE;QAC3C,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC5C,MAAM,SAAS,GACb,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,MAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,MAAM,UAAU,GACd,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,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E,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK;QAEZ,6BAAK,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,eAAe;YACxD,6BAAK,SAAS,EAAE,qBAAqB,IAClC,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CAC7C,QAAQ,CACT,CAAC,CAAC,CAAC,CACF,4BAAI,SAAS,EAAE,cAAc,IAAG,aAAa,CAAC,KAAK,CAAM,CAC1D,CACG;YACN,6BAAK,SAAS,EAAE,oBAAoB;gBAClC,6BAAK,EAAE,EAAC,aAAa,EAAC,SAAS,EAAE,aAAa,IAC3C,aAAa,CAAC,WAAW,CACtB;gBACN,6BAAK,EAAE,EAAC,aAAa,EAAC,SAAS,EAAE,aAAa,IAC3C,aAAa,CAAC,WAAW,CACtB;gBACN,6BAAK,EAAE,EAAC,eAAe,EAAC,SAAS,EAAE,aAAa,IAC7C,aAAa,CAAC,aAAa,CACxB,CACF,CACF,CACW,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ThemeTypes } from
|
|
2
|
+
import { Colours, ThemeTypes } from "../../utils/controls";
|
|
3
3
|
export interface Props {
|
|
4
4
|
id?: string;
|
|
5
5
|
className?: string;
|
|
6
|
-
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
name?: string;
|
|
6
|
+
autoComplete?: string;
|
|
9
7
|
disabled?: boolean;
|
|
10
|
-
rows?: number;
|
|
11
|
-
cols?: number;
|
|
12
|
-
autoFocus?: boolean;
|
|
13
8
|
formId?: string;
|
|
14
9
|
maxLength?: number;
|
|
15
|
-
|
|
10
|
+
minLength?: number;
|
|
16
11
|
required?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
withValidation?: boolean;
|
|
17
|
+
onChange?: (e: any) => void;
|
|
17
18
|
onBlur?: () => void;
|
|
18
19
|
onFocus?: () => void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
errors?: string[];
|
|
22
|
+
errorState?: boolean;
|
|
23
|
+
value?: string;
|
|
24
|
+
bgColour?: Colours;
|
|
22
25
|
theme?: ThemeTypes;
|
|
23
26
|
}
|
|
24
|
-
declare const TextArea: ({ id, className,
|
|
27
|
+
declare const TextArea: ({ id, className, autoComplete, disabled, formId, maxLength, minLength, required, readOnly, label, name, placeholder, onChange, onBlur, onFocus, onClick, withValidation, errors, errorState, value, theme, }: Props) => JSX.Element;
|
|
25
28
|
export default TextArea;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import React, { useRef } from
|
|
2
|
-
import classNames from
|
|
3
|
-
import style from
|
|
4
|
-
const TextArea = ({ id, className,
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
[style.
|
|
8
|
-
});
|
|
9
|
-
const
|
|
1
|
+
import React, { useRef } from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import style from "./style.module.css";
|
|
4
|
+
const TextArea = ({ id, className, autoComplete, disabled, formId, maxLength, minLength, required = false, readOnly, label, name, placeholder, onChange, onBlur, onFocus, onClick, withValidation, errors, errorState = false, value, theme = "theme-rupertbennett", }) => {
|
|
5
|
+
const newId = id !== undefined ? `-${id}` : "";
|
|
6
|
+
const valueClassList = classNames({
|
|
7
|
+
[style.errorState]: errors != null || errorState,
|
|
8
|
+
}, style.value);
|
|
9
|
+
const labelClassList = classNames({
|
|
10
|
+
[style.labelError]: errors != null || errorState,
|
|
11
|
+
}, style.label);
|
|
12
|
+
const headerClassList = classNames(style.classList, className, theme);
|
|
10
13
|
const btnRef = useRef(null);
|
|
11
14
|
const handleClick = () => {
|
|
12
15
|
var _a;
|
|
13
16
|
(_a = btnRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14
17
|
};
|
|
15
|
-
return (React.createElement(
|
|
16
|
-
React.createElement("div", { className:
|
|
17
|
-
React.createElement("
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
return (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement("div", { id: id, className: headerClassList, onClick: handleClick },
|
|
20
|
+
React.createElement("div", { className: style.labelWrapper },
|
|
21
|
+
React.createElement("p", { className: labelClassList }, label),
|
|
22
|
+
required && React.createElement("p", { className: style.required }, "\u00A0*")),
|
|
23
|
+
React.createElement("textarea", { ref: btnRef, id: `input${newId}`, className: valueClassList, autoComplete: autoComplete, disabled: disabled, form: formId, maxLength: maxLength, minLength: minLength, required: required, readOnly: readOnly, name: name, value: value, placeholder: placeholder, onChange: (e) => onChange === null || onChange === void 0 ? void 0 : onChange(e), onBlur: onBlur, onFocus: onFocus, onClick: onClick })),
|
|
24
|
+
withValidation === true && (React.createElement("div", { id: `errors${newId}`, className: classNames(style.errors, theme) }, errors === null || errors === void 0 ? void 0 : errors.map((error, i) => {
|
|
25
|
+
return (React.createElement("p", { key: `error-msg-${i + 0}`, className: style.errorText }, error));
|
|
26
|
+
})))));
|
|
22
27
|
};
|
|
23
28
|
export default TextArea;
|
|
24
29
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AA4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