@popsure/dirty-swan 0.32.0 → 0.33.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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +62 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/downloadButton/index.d.ts +3 -3
- package/dist/cjs/lib/components/downloadButton/index.stories.d.ts +36 -0
- package/dist/cjs/lib/components/input/checkbox/index.d.ts +17 -0
- package/dist/cjs/lib/components/input/checkbox/index.stories.d.ts +64 -0
- package/dist/cjs/lib/components/input/checkbox/index.test.d.ts +1 -0
- package/dist/cjs/lib/components/markdown/index.d.ts +9 -8
- package/dist/cjs/lib/components/markdown/index.stories.d.ts +44 -0
- package/dist/cjs/lib/components/signaturePad/index.d.ts +4 -4
- package/dist/cjs/lib/components/signaturePad/index.stories.d.ts +21 -0
- package/dist/cjs/lib/index.d.ts +5 -4
- package/dist/esm/components/downloadButton/index.js +1 -1
- package/dist/esm/components/downloadButton/index.js.map +1 -1
- package/dist/esm/components/downloadButton/index.stories.js +47 -0
- package/dist/esm/components/downloadButton/index.stories.js.map +1 -0
- package/dist/esm/components/input/checkbox/index.js +53 -0
- package/dist/esm/components/input/checkbox/index.js.map +1 -0
- package/dist/esm/components/input/checkbox/index.stories.js +153 -0
- package/dist/esm/components/input/checkbox/index.stories.js.map +1 -0
- package/dist/esm/components/input/checkbox/index.test.js +105 -0
- package/dist/esm/components/input/checkbox/index.test.js.map +1 -0
- package/dist/esm/components/markdown/index.js +1 -1
- package/dist/esm/components/markdown/index.js.map +1 -1
- package/dist/esm/components/markdown/index.stories.js +66 -0
- package/dist/esm/components/markdown/index.stories.js.map +1 -0
- package/dist/esm/components/signaturePad/index.js +14 -14
- package/dist/esm/components/signaturePad/index.js.map +1 -1
- package/dist/esm/components/signaturePad/index.stories.js +33 -0
- package/dist/esm/components/signaturePad/index.stories.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/downloadButton/index.d.ts +3 -3
- package/dist/esm/lib/components/downloadButton/index.stories.d.ts +36 -0
- package/dist/esm/lib/components/input/checkbox/index.d.ts +17 -0
- package/dist/esm/lib/components/input/checkbox/index.stories.d.ts +64 -0
- package/dist/esm/lib/components/input/checkbox/index.test.d.ts +1 -0
- package/dist/esm/lib/components/markdown/index.d.ts +9 -8
- package/dist/esm/lib/components/markdown/index.stories.d.ts +44 -0
- package/dist/esm/lib/components/signaturePad/index.d.ts +4 -4
- package/dist/esm/lib/components/signaturePad/index.stories.d.ts +21 -0
- package/dist/esm/lib/index.d.ts +5 -4
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/lib/scss/private/components/_input.scss +4 -0
- package/package.json +1 -1
- package/src/App.tsx +1 -1
- package/src/index.tsx +1 -0
- package/src/lib/components/downloadButton/index.stories.tsx +58 -0
- package/src/lib/components/downloadButton/index.tsx +3 -3
- package/src/lib/components/input/checkbox/index.stories.tsx +214 -0
- package/src/lib/components/input/checkbox/index.test.tsx +110 -0
- package/src/lib/components/input/checkbox/index.tsx +129 -0
- package/src/lib/components/markdown/index.stories.tsx +131 -0
- package/src/lib/components/markdown/index.tsx +11 -9
- package/src/lib/components/signaturePad/index.stories.tsx +35 -0
- package/src/lib/components/signaturePad/index.tsx +6 -6
- package/src/lib/index.tsx +5 -3
- package/src/lib/scss/private/components/_input.scss +4 -0
- package/src/lib/components/downloadButton/index.stories.mdx +0 -59
- package/src/lib/components/markdown/example.md +0 -78
- package/src/lib/components/markdown/index.stories.mdx +0 -22
- package/src/lib/components/signaturePad/index.stories.mdx +0 -17
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-5bc94358.js';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Markdown } from './index.js';
|
|
4
|
+
import '../../style-inject.es-1f59c1d0.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../index-171a0108.js';
|
|
7
|
+
import '../../index-dd80248b.js';
|
|
8
|
+
import '../../_commonjsHelpers-e7f67fd8.js';
|
|
9
|
+
import 'path';
|
|
10
|
+
import 'querystring';
|
|
11
|
+
|
|
12
|
+
var story = {
|
|
13
|
+
title: 'JSX/Markdown',
|
|
14
|
+
component: Markdown,
|
|
15
|
+
argTypes: {
|
|
16
|
+
children: {
|
|
17
|
+
description: 'MD content to be rendered in the component.',
|
|
18
|
+
},
|
|
19
|
+
className: {
|
|
20
|
+
defaultValue: '',
|
|
21
|
+
description: 'This property allows to add custom styles to the component.',
|
|
22
|
+
},
|
|
23
|
+
customMDComponents: {
|
|
24
|
+
defaultValue: {},
|
|
25
|
+
description: 'An object that allows creating custom MD components by passing the key to wrap it in, and the logic to render, as a function that returns an HTMLElement.',
|
|
26
|
+
table: {
|
|
27
|
+
type: {
|
|
28
|
+
summary: 'Record<componentKey, (props: HTMLElmentAttributes) => HTMLElement>'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
paragraphClassName: {
|
|
33
|
+
defaultValue: '',
|
|
34
|
+
description: 'This property allows to add custom styles to the paragraph (`<p>`) component rendered inside Markdown component.',
|
|
35
|
+
},
|
|
36
|
+
openLinksInNewTab: {
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
description: 'Wether link components rendered inside Markdown should open in a new tab (`target="_blank"`).',
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
args: {
|
|
42
|
+
children: '## Title \n This is **our content**.'
|
|
43
|
+
},
|
|
44
|
+
parameters: {
|
|
45
|
+
componentSubtitle: (jsxs(Fragment, { children: ["Display markdown text based on ", jsx("a", __assign({ href: "https://github.com/remarkjs/react-markdown", target: '_blank', rel: "noreferrer" }, { children: "react-markdown" }), void 0), " with custom styling."] }, void 0)),
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
var MarkdownStory = function (_a) {
|
|
49
|
+
var children = _a.children, className = _a.className;
|
|
50
|
+
return (jsx(Markdown, __assign({ className: className }, { children: children }), void 0));
|
|
51
|
+
};
|
|
52
|
+
MarkdownStory.storyName = "Markdown";
|
|
53
|
+
var AvailableMDComponents = function (_a) {
|
|
54
|
+
var className = _a.className;
|
|
55
|
+
return (jsx(Markdown, __assign({ className: className }, { children: "# Headers\nThe header options range from h1 to h4.\n\n```\n# H1\n## H2\n### H3\n#### H4\n```\n\n# H1 Lorem ipsum non sunt qui sunt\n\n## H2 Lorem ipsum non sunt qui sunt\n\n### H3 Lorem ipsum non sunt qui sunt\n\n#### H4 Lorem ipsum non sunt qui sunt\n\n# Emphasis\n\n```\nEmphasis or italics, use *asterisk* or _underscore_.\nStrong emphasis or bold, use **asterisks** or __underscores__.\nCombined emphasis, use **_asterisks and underscores_**.\n```\n\nEmphasis or italics, use _asterisk_ or _underscore_.\n\nStrong emphasis or bold, use **asterisks** or **underscores**.\n\nCombined emphasis, use **_asterisks and underscores_**.\n\n# Lists\n\n```\n1. First ordered list item\n2. Another item\n3. Actual numbers don't matter, just that it's a number\n4. And another item.\n\n* Unordered list can use asterisks\n- Or minuses\n+ Or pluses\n```\n\n1. First ordered list item\n2. Another item\n3. Actual numbers don't matter, just that it's a number\n4. And another item.\n\n- Unordered list can use asterisks\n- Or minuses\n- Or pluses\n\n# Links\n\nFor links markdown syntax should be used.\n\n```\n[This is an inline link](https://feather-insurance.com)\n```\n\n[This is an inline link](https://feather-insurance.com)\n" }), void 0));
|
|
56
|
+
};
|
|
57
|
+
var AddingCustomComponents = function (_a) {
|
|
58
|
+
_a.className;
|
|
59
|
+
return (jsx(Markdown, __assign({ customMDComponents: {
|
|
60
|
+
h6: function (props) { return (jsx("h6", __assign({ className: 'tc-red-500' }, { children: props.children }), void 0)); }
|
|
61
|
+
} }, { children: "###### This is a custom H6 that will always be red" }), void 0));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default story;
|
|
65
|
+
export { AddingCustomComponents, AvailableMDComponents, MarkdownStory };
|
|
66
|
+
//# sourceMappingURL=index.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/markdown/index.stories.tsx"],"sourcesContent":["import { Markdown, MarkdownProps } from '.';\n\nconst story = {\n title: 'JSX/Markdown',\n component: Markdown,\n argTypes: {\n children: {\n description: 'MD content to be rendered in the component.',\n },\n className: {\n defaultValue: '',\n description: 'This property allows to add custom styles to the component.',\n },\n customMDComponents: {\n defaultValue: {},\n description: 'An object that allows creating custom MD components by passing the key to wrap it in, and the logic to render, as a function that returns an HTMLElement.',\n table: {\n type: {\n summary: 'Record<componentKey, (props: HTMLElmentAttributes) => HTMLElement>'\n }\n }\n },\n paragraphClassName: {\n defaultValue: '',\n description: 'This property allows to add custom styles to the paragraph (`<p>`) component rendered inside Markdown component.',\n },\n openLinksInNewTab: {\n defaultValue: false,\n description: 'Wether link components rendered inside Markdown should open in a new tab (`target=\"_blank\"`).',\n }\n },\n args: {\n children: '## Title \\n This is **our content**.'\n },\n parameters: {\n componentSubtitle: (\n <>\n Display markdown text based on <a href=\"https://github.com/remarkjs/react-markdown\" target='_blank' rel=\"noreferrer\">react-markdown</a> with custom styling.\n </>\n ),\n },\n};\n\nexport const MarkdownStory = ({ children, className }: MarkdownProps) => (\n <Markdown className={className}>\n {children}\n </Markdown>\n);\n\nMarkdownStory.storyName = \"Markdown\";\n\nexport const AvailableMDComponents = ({ className }: MarkdownProps) => (\n <Markdown className={className}>\n {`# Headers\nThe header options range from h1 to h4.\n\n\\`\\`\\`\n# H1\n## H2\n### H3\n#### H4\n\\`\\`\\`\n\n# H1 Lorem ipsum non sunt qui sunt\n\n## H2 Lorem ipsum non sunt qui sunt\n\n### H3 Lorem ipsum non sunt qui sunt\n\n#### H4 Lorem ipsum non sunt qui sunt\n\n# Emphasis\n\n\\`\\`\\`\nEmphasis or italics, use *asterisk* or _underscore_.\nStrong emphasis or bold, use **asterisks** or __underscores__.\nCombined emphasis, use **_asterisks and underscores_**.\n\\`\\`\\`\n\nEmphasis or italics, use _asterisk_ or _underscore_.\n\nStrong emphasis or bold, use **asterisks** or **underscores**.\n\nCombined emphasis, use **_asterisks and underscores_**.\n\n# Lists\n\n\\`\\`\\`\n1. First ordered list item\n2. Another item\n3. Actual numbers don't matter, just that it's a number\n4. And another item.\n\n* Unordered list can use asterisks\n- Or minuses\n+ Or pluses\n\\`\\`\\`\n\n1. First ordered list item\n2. Another item\n3. Actual numbers don't matter, just that it's a number\n4. And another item.\n\n- Unordered list can use asterisks\n- Or minuses\n- Or pluses\n\n# Links\n\nFor links markdown syntax should be used.\n\n\\`\\`\\`\n[This is an inline link](https://feather-insurance.com)\n\\`\\`\\`\n\n[This is an inline link](https://feather-insurance.com)\n`}\n </Markdown>\n);\n\nexport const AddingCustomComponents = ({ className }: MarkdownProps) => (\n <Markdown customMDComponents={{\n h6: (props: any) => (\n <h6 className='tc-red-500'>{props.children}</h6>\n )\n }}>\n ###### This is a custom H6 that will always be red\n </Markdown>\n);\n\nexport default story;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,6DAA6D;SAC3E;QACD,kBAAkB,EAAE;YAClB,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,2JAA2J;YACxK,KAAK,EAAE;gBACL,IAAI,EAAE;oBACF,OAAO,EAAE,oEAAoE;iBAChF;aACF;SACF;QACD,kBAAkB,EAAE;YAClB,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,kHAAkH;SAChI;QACD,iBAAiB,EAAE;YACjB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,+FAA+F;SAC7G;KACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,sCAAsC;KACjD;IACD,UAAU,EAAE;QACV,iBAAiB,GACfA,+DACiCC,oBAAG,IAAI,EAAC,4CAA4C,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,YAAY,4CAAmB,qCACtI,CACJ;KACF;EACD;IAEW,aAAa,GAAG,UAAC,EAAsC;QAApC,QAAQ,cAAA,EAAE,SAAS,eAAA;IAAsB,QACvEA,IAAC,QAAQ,aAAC,SAAS,EAAE,SAAS,gBAC3B,QAAQ,YACA;AAH4D,EAIvE;AAEF,aAAa,CAAC,SAAS,GAAG,UAAU,CAAC;IAExB,qBAAqB,GAAG,UAAC,EAA4B;QAA1B,SAAS,eAAA;IAAsB,QACrEA,IAAC,QAAQ,aAAC,SAAS,EAAE,SAAS,gBAC3B,usCA+DJ,YACY;AAlE0D,EAmErE;IAEW,sBAAsB,GAAG,UAAC,EAA4B;;IAAK,QACtEA,IAAC,QAAQ,aAAC,kBAAkB,EAAE;YAC5B,EAAE,EAAE,UAAC,KAAU,IAAK,QAClBA,qBAAI,SAAS,EAAC,YAAY,gBAAE,KAAK,CAAC,QAAQ,YAAM,IACjD;SACF,gFAEU;AAP2D;;;;;"}
|
|
@@ -127,7 +127,7 @@ function throttle(fn, wait = 250) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
class SignaturePad {
|
|
130
|
+
class SignaturePad$1 {
|
|
131
131
|
constructor(canvas, options = {}) {
|
|
132
132
|
this.canvas = canvas;
|
|
133
133
|
this.options = options;
|
|
@@ -185,8 +185,8 @@ class SignaturePad {
|
|
|
185
185
|
this.onBegin = options.onBegin;
|
|
186
186
|
this.onEnd = options.onEnd;
|
|
187
187
|
this._strokeMoveUpdate = this.throttle
|
|
188
|
-
? throttle(SignaturePad.prototype._strokeUpdate, this.throttle)
|
|
189
|
-
: SignaturePad.prototype._strokeUpdate;
|
|
188
|
+
? throttle(SignaturePad$1.prototype._strokeUpdate, this.throttle)
|
|
189
|
+
: SignaturePad$1.prototype._strokeUpdate;
|
|
190
190
|
this._ctx = canvas.getContext('2d');
|
|
191
191
|
this.clear();
|
|
192
192
|
this.on();
|
|
@@ -505,9 +505,9 @@ var sign = "data:image/svg+xml,%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20v
|
|
|
505
505
|
|
|
506
506
|
var reset = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%204V10H7%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.51%2014.9999C4.15839%2016.8403%205.38734%2018.4201%207.01166%2019.5013C8.63598%2020.5825%2010.5677%2021.1065%2012.5157%2020.9944C14.4637%2020.8823%2016.3226%2020.1401%2017.8121%2018.8797C19.3017%2017.6193%2020.3413%2015.9089%2020.7742%2014.0063C21.2072%2012.1037%2021.0101%2010.1119%2020.2126%208.33105C19.4152%206.55019%2018.0605%205.07674%2016.3528%204.13271C14.6451%203.18868%2012.6769%202.82521%2010.7447%203.09707C8.81245%203.36892%207.02091%204.26137%205.64%205.63995L1%209.99995%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
|
|
507
507
|
|
|
508
|
-
var
|
|
509
|
-
__extends(
|
|
510
|
-
function
|
|
508
|
+
var SignaturePad = /** @class */ (function (_super) {
|
|
509
|
+
__extends(SignaturePad, _super);
|
|
510
|
+
function SignaturePad(props) {
|
|
511
511
|
var _this = _super.call(this, props) || this;
|
|
512
512
|
_this.state = {
|
|
513
513
|
hasContent: false,
|
|
@@ -518,14 +518,14 @@ var Signature = /** @class */ (function (_super) {
|
|
|
518
518
|
_this.clear = _this.clear.bind(_this);
|
|
519
519
|
return _this;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
SignaturePad.prototype.componentDidMount = function () {
|
|
522
522
|
this.canvas = this.canvasRef.current;
|
|
523
|
-
this.signaturePad = new SignaturePad(this.canvas, {
|
|
523
|
+
this.signaturePad = new SignaturePad$1(this.canvas, {
|
|
524
524
|
onEnd: this.notifyOnChange,
|
|
525
525
|
});
|
|
526
526
|
this.resizeCanvas();
|
|
527
527
|
};
|
|
528
|
-
|
|
528
|
+
SignaturePad.prototype.render = function () {
|
|
529
529
|
var hasContent = this.state.hasContent;
|
|
530
530
|
return (jsxs(Fragment, { children: [jsx("style", { dangerouslySetInnerHTML: {
|
|
531
531
|
__html: "." + styles.reset + "::before { \n -webkit-mask-image: url(\"" + reset + "\");\n mask-image: url(\"" + reset + "\");\n }",
|
|
@@ -538,23 +538,23 @@ var Signature = /** @class */ (function (_super) {
|
|
|
538
538
|
} }, void 0),
|
|
539
539
|
jsx("button", __assign({ className: styles.reset, onClick: this.clear, disabled: !hasContent }, { children: "Reset" }), void 0)] }), void 0)] }, void 0));
|
|
540
540
|
};
|
|
541
|
-
|
|
541
|
+
SignaturePad.prototype.notifyOnChange = function () {
|
|
542
542
|
var onChange = this.props.onChange;
|
|
543
543
|
onChange(this.signaturePad.isEmpty() ? '' : this.signaturePad.toDataURL());
|
|
544
544
|
this.setState({ hasContent: !this.signaturePad.isEmpty() });
|
|
545
545
|
};
|
|
546
|
-
|
|
546
|
+
SignaturePad.prototype.resizeCanvas = function () {
|
|
547
547
|
var ratio = Math.max(window.devicePixelRatio || 1, 1);
|
|
548
548
|
this.canvas.width = this.canvas.offsetWidth * ratio;
|
|
549
549
|
this.canvas.height = this.canvas.offsetHeight * ratio;
|
|
550
550
|
this.canvas.getContext('2d').scale(ratio, ratio);
|
|
551
551
|
};
|
|
552
|
-
|
|
552
|
+
SignaturePad.prototype.clear = function () {
|
|
553
553
|
this.signaturePad.clear();
|
|
554
554
|
this.notifyOnChange();
|
|
555
555
|
};
|
|
556
|
-
return
|
|
556
|
+
return SignaturePad;
|
|
557
557
|
}(Component));
|
|
558
558
|
|
|
559
|
-
export
|
|
559
|
+
export { SignaturePad };
|
|
560
560
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/signature_pad/dist/signature_pad.js","../../../../src/lib/components/signaturePad/img/sign.svg","../../../../src/lib/components/signaturePad/img/reset.svg","../../../../../src/lib/components/signaturePad/index.tsx"],"sourcesContent":["/*!\n * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad\n * (c) 2020 Szymon Nowak | Released under the MIT license\n */\n\nclass Point {\n constructor(x, y, time) {\n this.x = x;\n this.y = y;\n this.time = time || Date.now();\n }\n distanceTo(start) {\n return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));\n }\n equals(other) {\n return this.x === other.x && this.y === other.y && this.time === other.time;\n }\n velocityFrom(start) {\n return this.time !== start.time\n ? this.distanceTo(start) / (this.time - start.time)\n : 0;\n }\n}\n\nclass Bezier {\n constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {\n this.startPoint = startPoint;\n this.control2 = control2;\n this.control1 = control1;\n this.endPoint = endPoint;\n this.startWidth = startWidth;\n this.endWidth = endWidth;\n }\n static fromPoints(points, widths) {\n const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;\n const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;\n return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);\n }\n static calculateControlPoints(s1, s2, s3) {\n const dx1 = s1.x - s2.x;\n const dy1 = s1.y - s2.y;\n const dx2 = s2.x - s3.x;\n const dy2 = s2.y - s3.y;\n const m1 = { x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0 };\n const m2 = { x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0 };\n const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);\n const dxm = m1.x - m2.x;\n const dym = m1.y - m2.y;\n const k = l2 / (l1 + l2);\n const cm = { x: m2.x + dxm * k, y: m2.y + dym * k };\n const tx = s2.x - cm.x;\n const ty = s2.y - cm.y;\n return {\n c1: new Point(m1.x + tx, m1.y + ty),\n c2: new Point(m2.x + tx, m2.y + ty),\n };\n }\n length() {\n const steps = 10;\n let length = 0;\n let px;\n let py;\n for (let i = 0; i <= steps; i += 1) {\n const t = i / steps;\n const cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);\n const cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);\n if (i > 0) {\n const xdiff = cx - px;\n const ydiff = cy - py;\n length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);\n }\n px = cx;\n py = cy;\n }\n return length;\n }\n point(t, start, c1, c2, end) {\n return (start * (1.0 - t) * (1.0 - t) * (1.0 - t))\n + (3.0 * c1 * (1.0 - t) * (1.0 - t) * t)\n + (3.0 * c2 * (1.0 - t) * t * t)\n + (end * t * t * t);\n }\n}\n\nfunction throttle(fn, wait = 250) {\n let previous = 0;\n let timeout = null;\n let result;\n let storedContext;\n let storedArgs;\n const later = () => {\n previous = Date.now();\n timeout = null;\n result = fn.apply(storedContext, storedArgs);\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n };\n return function wrapper(...args) {\n const now = Date.now();\n const remaining = wait - (now - previous);\n storedContext = this;\n storedArgs = args;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n result = fn.apply(storedContext, storedArgs);\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n }\n else if (!timeout) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n}\n\nclass SignaturePad {\n constructor(canvas, options = {}) {\n this.canvas = canvas;\n this.options = options;\n this._handleMouseDown = (event) => {\n if (event.which === 1) {\n this._mouseButtonDown = true;\n this._strokeBegin(event);\n }\n };\n this._handleMouseMove = (event) => {\n if (this._mouseButtonDown) {\n this._strokeMoveUpdate(event);\n }\n };\n this._handleMouseUp = (event) => {\n if (event.which === 1 && this._mouseButtonDown) {\n this._mouseButtonDown = false;\n this._strokeEnd(event);\n }\n };\n this._handleTouchStart = (event) => {\n event.preventDefault();\n if (event.targetTouches.length === 1) {\n const touch = event.changedTouches[0];\n this._strokeBegin(touch);\n }\n };\n this._handleTouchMove = (event) => {\n event.preventDefault();\n const touch = event.targetTouches[0];\n this._strokeMoveUpdate(touch);\n };\n this._handleTouchEnd = (event) => {\n const wasCanvasTouched = event.target === this.canvas;\n if (wasCanvasTouched) {\n event.preventDefault();\n const touch = event.changedTouches[0];\n this._strokeEnd(touch);\n }\n };\n this.velocityFilterWeight = options.velocityFilterWeight || 0.7;\n this.minWidth = options.minWidth || 0.5;\n this.maxWidth = options.maxWidth || 2.5;\n this.throttle = ('throttle' in options ? options.throttle : 16);\n this.minDistance = ('minDistance' in options\n ? options.minDistance\n : 5);\n this.dotSize =\n options.dotSize ||\n function dotSize() {\n return (this.minWidth + this.maxWidth) / 2;\n };\n this.penColor = options.penColor || 'black';\n this.backgroundColor = options.backgroundColor || 'rgba(0,0,0,0)';\n this.onBegin = options.onBegin;\n this.onEnd = options.onEnd;\n this._strokeMoveUpdate = this.throttle\n ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle)\n : SignaturePad.prototype._strokeUpdate;\n this._ctx = canvas.getContext('2d');\n this.clear();\n this.on();\n }\n clear() {\n const { _ctx: ctx, canvas } = this;\n ctx.fillStyle = this.backgroundColor;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n this._data = [];\n this._reset();\n this._isEmpty = true;\n }\n fromDataURL(dataUrl, options = {}, callback) {\n const image = new Image();\n const ratio = options.ratio || window.devicePixelRatio || 1;\n const width = options.width || this.canvas.width / ratio;\n const height = options.height || this.canvas.height / ratio;\n this._reset();\n image.onload = () => {\n this._ctx.drawImage(image, 0, 0, width, height);\n if (callback) {\n callback();\n }\n };\n image.onerror = (error) => {\n if (callback) {\n callback(error);\n }\n };\n image.src = dataUrl;\n this._isEmpty = false;\n }\n toDataURL(type = 'image/png', encoderOptions) {\n switch (type) {\n case 'image/svg+xml':\n return this._toSVG();\n default:\n return this.canvas.toDataURL(type, encoderOptions);\n }\n }\n on() {\n this.canvas.style.touchAction = 'none';\n this.canvas.style.msTouchAction = 'none';\n if (window.PointerEvent) {\n this._handlePointerEvents();\n }\n else {\n this._handleMouseEvents();\n if ('ontouchstart' in window) {\n this._handleTouchEvents();\n }\n }\n }\n off() {\n this.canvas.style.touchAction = 'auto';\n this.canvas.style.msTouchAction = 'auto';\n this.canvas.removeEventListener('pointerdown', this._handleMouseDown);\n this.canvas.removeEventListener('pointermove', this._handleMouseMove);\n document.removeEventListener('pointerup', this._handleMouseUp);\n this.canvas.removeEventListener('mousedown', this._handleMouseDown);\n this.canvas.removeEventListener('mousemove', this._handleMouseMove);\n document.removeEventListener('mouseup', this._handleMouseUp);\n this.canvas.removeEventListener('touchstart', this._handleTouchStart);\n this.canvas.removeEventListener('touchmove', this._handleTouchMove);\n this.canvas.removeEventListener('touchend', this._handleTouchEnd);\n }\n isEmpty() {\n return this._isEmpty;\n }\n fromData(pointGroups) {\n this.clear();\n this._fromData(pointGroups, ({ color, curve }) => this._drawCurve({ color, curve }), ({ color, point }) => this._drawDot({ color, point }));\n this._data = pointGroups;\n }\n toData() {\n return this._data;\n }\n _strokeBegin(event) {\n const newPointGroup = {\n color: this.penColor,\n points: [],\n };\n if (typeof this.onBegin === 'function') {\n this.onBegin(event);\n }\n this._data.push(newPointGroup);\n this._reset();\n this._strokeUpdate(event);\n }\n _strokeUpdate(event) {\n if (this._data.length === 0) {\n this._strokeBegin(event);\n return;\n }\n const x = event.clientX;\n const y = event.clientY;\n const point = this._createPoint(x, y);\n const lastPointGroup = this._data[this._data.length - 1];\n const lastPoints = lastPointGroup.points;\n const lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];\n const isLastPointTooClose = lastPoint\n ? point.distanceTo(lastPoint) <= this.minDistance\n : false;\n const color = lastPointGroup.color;\n if (!lastPoint || !(lastPoint && isLastPointTooClose)) {\n const curve = this._addPoint(point);\n if (!lastPoint) {\n this._drawDot({ color, point });\n }\n else if (curve) {\n this._drawCurve({ color, curve });\n }\n lastPoints.push({\n time: point.time,\n x: point.x,\n y: point.y,\n });\n }\n }\n _strokeEnd(event) {\n this._strokeUpdate(event);\n if (typeof this.onEnd === 'function') {\n this.onEnd(event);\n }\n }\n _handlePointerEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('pointerdown', this._handleMouseDown);\n this.canvas.addEventListener('pointermove', this._handleMouseMove);\n document.addEventListener('pointerup', this._handleMouseUp);\n }\n _handleMouseEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('mousedown', this._handleMouseDown);\n this.canvas.addEventListener('mousemove', this._handleMouseMove);\n document.addEventListener('mouseup', this._handleMouseUp);\n }\n _handleTouchEvents() {\n this.canvas.addEventListener('touchstart', this._handleTouchStart);\n this.canvas.addEventListener('touchmove', this._handleTouchMove);\n this.canvas.addEventListener('touchend', this._handleTouchEnd);\n }\n _reset() {\n this._lastPoints = [];\n this._lastVelocity = 0;\n this._lastWidth = (this.minWidth + this.maxWidth) / 2;\n this._ctx.fillStyle = this.penColor;\n }\n _createPoint(x, y) {\n const rect = this.canvas.getBoundingClientRect();\n return new Point(x - rect.left, y - rect.top, new Date().getTime());\n }\n _addPoint(point) {\n const { _lastPoints } = this;\n _lastPoints.push(point);\n if (_lastPoints.length > 2) {\n if (_lastPoints.length === 3) {\n _lastPoints.unshift(_lastPoints[0]);\n }\n const widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2]);\n const curve = Bezier.fromPoints(_lastPoints, widths);\n _lastPoints.shift();\n return curve;\n }\n return null;\n }\n _calculateCurveWidths(startPoint, endPoint) {\n const velocity = this.velocityFilterWeight * endPoint.velocityFrom(startPoint) +\n (1 - this.velocityFilterWeight) * this._lastVelocity;\n const newWidth = this._strokeWidth(velocity);\n const widths = {\n end: newWidth,\n start: this._lastWidth,\n };\n this._lastVelocity = velocity;\n this._lastWidth = newWidth;\n return widths;\n }\n _strokeWidth(velocity) {\n return Math.max(this.maxWidth / (velocity + 1), this.minWidth);\n }\n _drawCurveSegment(x, y, width) {\n const ctx = this._ctx;\n ctx.moveTo(x, y);\n ctx.arc(x, y, width, 0, 2 * Math.PI, false);\n this._isEmpty = false;\n }\n _drawCurve({ color, curve }) {\n const ctx = this._ctx;\n const widthDelta = curve.endWidth - curve.startWidth;\n const drawSteps = Math.floor(curve.length()) * 2;\n ctx.beginPath();\n ctx.fillStyle = color;\n for (let i = 0; i < drawSteps; i += 1) {\n const t = i / drawSteps;\n const tt = t * t;\n const ttt = tt * t;\n const u = 1 - t;\n const uu = u * u;\n const uuu = uu * u;\n let x = uuu * curve.startPoint.x;\n x += 3 * uu * t * curve.control1.x;\n x += 3 * u * tt * curve.control2.x;\n x += ttt * curve.endPoint.x;\n let y = uuu * curve.startPoint.y;\n y += 3 * uu * t * curve.control1.y;\n y += 3 * u * tt * curve.control2.y;\n y += ttt * curve.endPoint.y;\n const width = Math.min(curve.startWidth + ttt * widthDelta, this.maxWidth);\n this._drawCurveSegment(x, y, width);\n }\n ctx.closePath();\n ctx.fill();\n }\n _drawDot({ color, point, }) {\n const ctx = this._ctx;\n const width = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n ctx.beginPath();\n this._drawCurveSegment(point.x, point.y, width);\n ctx.closePath();\n ctx.fillStyle = color;\n ctx.fill();\n }\n _fromData(pointGroups, drawCurve, drawDot) {\n for (const group of pointGroups) {\n const { color, points } = group;\n if (points.length > 1) {\n for (let j = 0; j < points.length; j += 1) {\n const basicPoint = points[j];\n const point = new Point(basicPoint.x, basicPoint.y, basicPoint.time);\n this.penColor = color;\n if (j === 0) {\n this._reset();\n }\n const curve = this._addPoint(point);\n if (curve) {\n drawCurve({ color, curve });\n }\n }\n }\n else {\n this._reset();\n drawDot({\n color,\n point: points[0],\n });\n }\n }\n }\n _toSVG() {\n const pointGroups = this._data;\n const ratio = Math.max(window.devicePixelRatio || 1, 1);\n const minX = 0;\n const minY = 0;\n const maxX = this.canvas.width / ratio;\n const maxY = this.canvas.height / ratio;\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('width', this.canvas.width.toString());\n svg.setAttribute('height', this.canvas.height.toString());\n this._fromData(pointGroups, ({ color, curve }) => {\n const path = document.createElement('path');\n if (!isNaN(curve.control1.x) &&\n !isNaN(curve.control1.y) &&\n !isNaN(curve.control2.x) &&\n !isNaN(curve.control2.y)) {\n const attr = `M ${curve.startPoint.x.toFixed(3)},${curve.startPoint.y.toFixed(3)} ` +\n `C ${curve.control1.x.toFixed(3)},${curve.control1.y.toFixed(3)} ` +\n `${curve.control2.x.toFixed(3)},${curve.control2.y.toFixed(3)} ` +\n `${curve.endPoint.x.toFixed(3)},${curve.endPoint.y.toFixed(3)}`;\n path.setAttribute('d', attr);\n path.setAttribute('stroke-width', (curve.endWidth * 2.25).toFixed(3));\n path.setAttribute('stroke', color);\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-linecap', 'round');\n svg.appendChild(path);\n }\n }, ({ color, point }) => {\n const circle = document.createElement('circle');\n const dotSize = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n circle.setAttribute('r', dotSize.toString());\n circle.setAttribute('cx', point.x.toString());\n circle.setAttribute('cy', point.y.toString());\n circle.setAttribute('fill', color);\n svg.appendChild(circle);\n });\n const prefix = 'data:image/svg+xml;base64,';\n const header = '<svg' +\n ' xmlns=\"http://www.w3.org/2000/svg\"' +\n ' xmlns:xlink=\"http://www.w3.org/1999/xlink\"' +\n ` viewBox=\"${minX} ${minY} ${maxX} ${maxY}\"` +\n ` width=\"${maxX}\"` +\n ` height=\"${maxY}\"` +\n '>';\n let body = svg.innerHTML;\n if (body === undefined) {\n const dummy = document.createElement('dummy');\n const nodes = svg.childNodes;\n dummy.innerHTML = '';\n for (let i = 0; i < nodes.length; i += 1) {\n dummy.appendChild(nodes[i].cloneNode(true));\n }\n body = dummy.innerHTML;\n }\n const footer = '</svg>';\n const data = header + body + footer;\n return prefix + btoa(data);\n }\n}\n\nexport default SignaturePad;\n//# sourceMappingURL=signature_pad.js.map\n","export default \"data:image/svg+xml,%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.7%203.70001C13.3%204.00001%2013.5%205.10001%2014.1%206.20001C14.7%207.30001%2014.9%209.20001%2014.6%2010.5C14.1%2012.3%2015.3%2014.4%2019.3%2019.7C22.2%2023.4%2025.6%2028%2026.9%2029.8L29.2%2033L23%2039.7C19.7%2043.4%2017.1%2046.9%2017.4%2047.6C17.7%2048.3%2017.2%2049.4%2016.4%2050C14.8%2051.4%2014.5%2054%2016.1%2054C17.5%2054%2023.6%2049.5%2029%2044.4L33.5%2040.1L41%2051.3C49.2%2063.6%2053.7%2069%2055.8%2069C56.6%2069%2056.8%2068.5%2056.4%2067.7C56%2067.1%2057.8%2068.9%2060.5%2071.8C63.1%2074.7%2065.5%2076.9%2065.7%2076.6C65.9%2076.4%2065.2%2074.4%2064.1%2072.1C62.9%2069.9%2062%2067.2%2062%2066.2C62%2063.3%2054.5%2047.6%2048.9%2039C46.2%2034.8%2044%2031%2044%2030.6C44%2030.2%2046.2%2027.3%2048.9%2024.2C54.3%2017.9%2059%2011.2%2059%209.80001C59%209.30001%2057.7%209.10001%2056%209.50001C54.2%209.90001%2050.5%2012.7%2046.4%2017.1C42.7%2020.9%2039.4%2024%2039.1%2024C38.8%2024%2036.3%2020.7%2033.6%2016.8C30.9%2012.9%2027.9%209.50001%2027%209.30001C26%209.00001%2024.3%207.60001%2023.2%206.10001C21.7%204.10001%2020.3%203.30001%2017.7%203.20001C15.8%203.10001%2014%203.30001%2013.7%203.70001Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fsvg%3E\"","export default \"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%204V10H7%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.51%2014.9999C4.15839%2016.8403%205.38734%2018.4201%207.01166%2019.5013C8.63598%2020.5825%2010.5677%2021.1065%2012.5157%2020.9944C14.4637%2020.8823%2016.3226%2020.1401%2017.8121%2018.8797C19.3017%2017.6193%2020.3413%2015.9089%2020.7742%2014.0063C21.2072%2012.1037%2021.0101%2010.1119%2020.2126%208.33105C19.4152%206.55019%2018.0605%205.07674%2016.3528%204.13271C14.6451%203.18868%2012.6769%202.82521%2010.7447%203.09707C8.81245%203.36892%207.02091%204.26137%205.64%205.63995L1%209.99995%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","import React, { Component } from 'react';\n\nimport SignaturePad from 'signature_pad';\n\nimport styles from './style.module.scss';\n\nimport sign from './img/sign.svg';\nimport reset from './img/reset.svg';\n\ninterface Props {\n onChange: (base64signature: string) => void;\n}\n\ninterface State {\n hasContent: boolean;\n}\n\nclass Signature extends Component<Props, State> {\n private canvasRef: React.RefObject<HTMLCanvasElement>;\n private canvas: any;\n private signaturePad: any;\n\n constructor(props: Props) {\n super(props);\n this.state = {\n hasContent: false,\n };\n this.canvasRef = React.createRef();\n this.notifyOnChange = this.notifyOnChange.bind(this);\n this.resizeCanvas = this.resizeCanvas.bind(this);\n this.clear = this.clear.bind(this);\n }\n\n public componentDidMount() {\n this.canvas = this.canvasRef.current;\n this.signaturePad = new SignaturePad(this.canvas, {\n onEnd: this.notifyOnChange,\n });\n this.resizeCanvas();\n }\n\n public render() {\n const { hasContent } = this.state;\n\n return (\n <>\n <style\n dangerouslySetInnerHTML={{\n __html: `.${styles.reset}::before { \n -webkit-mask-image: url(\"${reset}\");\n mask-image: url(\"${reset}\");\n }`,\n }}\n />\n <div className={styles.container}>\n <canvas className={styles.canvas} ref={this.canvasRef} />\n <div className={styles.separator} />\n <div\n className={styles.sign}\n style={{\n WebkitMaskImage: `url(\"${sign}\")`,\n maskImage: `url(\"${sign}\")`,\n }}\n />\n <button\n className={styles.reset}\n onClick={this.clear}\n disabled={!hasContent}\n >\n Reset\n </button>\n </div>\n </>\n );\n }\n\n private notifyOnChange() {\n const { onChange } = this.props;\n onChange(this.signaturePad.isEmpty() ? '' : this.signaturePad.toDataURL());\n this.setState({ hasContent: !this.signaturePad.isEmpty() });\n }\n\n private resizeCanvas() {\n const ratio = Math.max(window.devicePixelRatio || 1, 1);\n this.canvas.width = this.canvas.offsetWidth * ratio;\n this.canvas.height = this.canvas.offsetHeight * ratio;\n this.canvas.getContext('2d').scale(ratio, ratio);\n }\n\n private clear() {\n this.signaturePad.clear();\n this.notifyOnChange();\n }\n}\n\nexport default Signature;\n"],"names":["React","_jsxs","_jsx"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,MAAM,KAAK,CAAC;AACZ,IAAI,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE;AAC5B,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACnB,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACnB,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;A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3,"file":"index.js","sources":["../../../../node_modules/signature_pad/dist/signature_pad.js","../../../../src/lib/components/signaturePad/img/sign.svg","../../../../src/lib/components/signaturePad/img/reset.svg","../../../../../src/lib/components/signaturePad/index.tsx"],"sourcesContent":["/*!\n * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad\n * (c) 2020 Szymon Nowak | Released under the MIT license\n */\n\nclass Point {\n constructor(x, y, time) {\n this.x = x;\n this.y = y;\n this.time = time || Date.now();\n }\n distanceTo(start) {\n return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));\n }\n equals(other) {\n return this.x === other.x && this.y === other.y && this.time === other.time;\n }\n velocityFrom(start) {\n return this.time !== start.time\n ? this.distanceTo(start) / (this.time - start.time)\n : 0;\n }\n}\n\nclass Bezier {\n constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {\n this.startPoint = startPoint;\n this.control2 = control2;\n this.control1 = control1;\n this.endPoint = endPoint;\n this.startWidth = startWidth;\n this.endWidth = endWidth;\n }\n static fromPoints(points, widths) {\n const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;\n const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;\n return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);\n }\n static calculateControlPoints(s1, s2, s3) {\n const dx1 = s1.x - s2.x;\n const dy1 = s1.y - s2.y;\n const dx2 = s2.x - s3.x;\n const dy2 = s2.y - s3.y;\n const m1 = { x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0 };\n const m2 = { x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0 };\n const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);\n const dxm = m1.x - m2.x;\n const dym = m1.y - m2.y;\n const k = l2 / (l1 + l2);\n const cm = { x: m2.x + dxm * k, y: m2.y + dym * k };\n const tx = s2.x - cm.x;\n const ty = s2.y - cm.y;\n return {\n c1: new Point(m1.x + tx, m1.y + ty),\n c2: new Point(m2.x + tx, m2.y + ty),\n };\n }\n length() {\n const steps = 10;\n let length = 0;\n let px;\n let py;\n for (let i = 0; i <= steps; i += 1) {\n const t = i / steps;\n const cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);\n const cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);\n if (i > 0) {\n const xdiff = cx - px;\n const ydiff = cy - py;\n length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);\n }\n px = cx;\n py = cy;\n }\n return length;\n }\n point(t, start, c1, c2, end) {\n return (start * (1.0 - t) * (1.0 - t) * (1.0 - t))\n + (3.0 * c1 * (1.0 - t) * (1.0 - t) * t)\n + (3.0 * c2 * (1.0 - t) * t * t)\n + (end * t * t * t);\n }\n}\n\nfunction throttle(fn, wait = 250) {\n let previous = 0;\n let timeout = null;\n let result;\n let storedContext;\n let storedArgs;\n const later = () => {\n previous = Date.now();\n timeout = null;\n result = fn.apply(storedContext, storedArgs);\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n };\n return function wrapper(...args) {\n const now = Date.now();\n const remaining = wait - (now - previous);\n storedContext = this;\n storedArgs = args;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n result = fn.apply(storedContext, storedArgs);\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n }\n else if (!timeout) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n}\n\nclass SignaturePad {\n constructor(canvas, options = {}) {\n this.canvas = canvas;\n this.options = options;\n this._handleMouseDown = (event) => {\n if (event.which === 1) {\n this._mouseButtonDown = true;\n this._strokeBegin(event);\n }\n };\n this._handleMouseMove = (event) => {\n if (this._mouseButtonDown) {\n this._strokeMoveUpdate(event);\n }\n };\n this._handleMouseUp = (event) => {\n if (event.which === 1 && this._mouseButtonDown) {\n this._mouseButtonDown = false;\n this._strokeEnd(event);\n }\n };\n this._handleTouchStart = (event) => {\n event.preventDefault();\n if (event.targetTouches.length === 1) {\n const touch = event.changedTouches[0];\n this._strokeBegin(touch);\n }\n };\n this._handleTouchMove = (event) => {\n event.preventDefault();\n const touch = event.targetTouches[0];\n this._strokeMoveUpdate(touch);\n };\n this._handleTouchEnd = (event) => {\n const wasCanvasTouched = event.target === this.canvas;\n if (wasCanvasTouched) {\n event.preventDefault();\n const touch = event.changedTouches[0];\n this._strokeEnd(touch);\n }\n };\n this.velocityFilterWeight = options.velocityFilterWeight || 0.7;\n this.minWidth = options.minWidth || 0.5;\n this.maxWidth = options.maxWidth || 2.5;\n this.throttle = ('throttle' in options ? options.throttle : 16);\n this.minDistance = ('minDistance' in options\n ? options.minDistance\n : 5);\n this.dotSize =\n options.dotSize ||\n function dotSize() {\n return (this.minWidth + this.maxWidth) / 2;\n };\n this.penColor = options.penColor || 'black';\n this.backgroundColor = options.backgroundColor || 'rgba(0,0,0,0)';\n this.onBegin = options.onBegin;\n this.onEnd = options.onEnd;\n this._strokeMoveUpdate = this.throttle\n ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle)\n : SignaturePad.prototype._strokeUpdate;\n this._ctx = canvas.getContext('2d');\n this.clear();\n this.on();\n }\n clear() {\n const { _ctx: ctx, canvas } = this;\n ctx.fillStyle = this.backgroundColor;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n this._data = [];\n this._reset();\n this._isEmpty = true;\n }\n fromDataURL(dataUrl, options = {}, callback) {\n const image = new Image();\n const ratio = options.ratio || window.devicePixelRatio || 1;\n const width = options.width || this.canvas.width / ratio;\n const height = options.height || this.canvas.height / ratio;\n this._reset();\n image.onload = () => {\n this._ctx.drawImage(image, 0, 0, width, height);\n if (callback) {\n callback();\n }\n };\n image.onerror = (error) => {\n if (callback) {\n callback(error);\n }\n };\n image.src = dataUrl;\n this._isEmpty = false;\n }\n toDataURL(type = 'image/png', encoderOptions) {\n switch (type) {\n case 'image/svg+xml':\n return this._toSVG();\n default:\n return this.canvas.toDataURL(type, encoderOptions);\n }\n }\n on() {\n this.canvas.style.touchAction = 'none';\n this.canvas.style.msTouchAction = 'none';\n if (window.PointerEvent) {\n this._handlePointerEvents();\n }\n else {\n this._handleMouseEvents();\n if ('ontouchstart' in window) {\n this._handleTouchEvents();\n }\n }\n }\n off() {\n this.canvas.style.touchAction = 'auto';\n this.canvas.style.msTouchAction = 'auto';\n this.canvas.removeEventListener('pointerdown', this._handleMouseDown);\n this.canvas.removeEventListener('pointermove', this._handleMouseMove);\n document.removeEventListener('pointerup', this._handleMouseUp);\n this.canvas.removeEventListener('mousedown', this._handleMouseDown);\n this.canvas.removeEventListener('mousemove', this._handleMouseMove);\n document.removeEventListener('mouseup', this._handleMouseUp);\n this.canvas.removeEventListener('touchstart', this._handleTouchStart);\n this.canvas.removeEventListener('touchmove', this._handleTouchMove);\n this.canvas.removeEventListener('touchend', this._handleTouchEnd);\n }\n isEmpty() {\n return this._isEmpty;\n }\n fromData(pointGroups) {\n this.clear();\n this._fromData(pointGroups, ({ color, curve }) => this._drawCurve({ color, curve }), ({ color, point }) => this._drawDot({ color, point }));\n this._data = pointGroups;\n }\n toData() {\n return this._data;\n }\n _strokeBegin(event) {\n const newPointGroup = {\n color: this.penColor,\n points: [],\n };\n if (typeof this.onBegin === 'function') {\n this.onBegin(event);\n }\n this._data.push(newPointGroup);\n this._reset();\n this._strokeUpdate(event);\n }\n _strokeUpdate(event) {\n if (this._data.length === 0) {\n this._strokeBegin(event);\n return;\n }\n const x = event.clientX;\n const y = event.clientY;\n const point = this._createPoint(x, y);\n const lastPointGroup = this._data[this._data.length - 1];\n const lastPoints = lastPointGroup.points;\n const lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];\n const isLastPointTooClose = lastPoint\n ? point.distanceTo(lastPoint) <= this.minDistance\n : false;\n const color = lastPointGroup.color;\n if (!lastPoint || !(lastPoint && isLastPointTooClose)) {\n const curve = this._addPoint(point);\n if (!lastPoint) {\n this._drawDot({ color, point });\n }\n else if (curve) {\n this._drawCurve({ color, curve });\n }\n lastPoints.push({\n time: point.time,\n x: point.x,\n y: point.y,\n });\n }\n }\n _strokeEnd(event) {\n this._strokeUpdate(event);\n if (typeof this.onEnd === 'function') {\n this.onEnd(event);\n }\n }\n _handlePointerEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('pointerdown', this._handleMouseDown);\n this.canvas.addEventListener('pointermove', this._handleMouseMove);\n document.addEventListener('pointerup', this._handleMouseUp);\n }\n _handleMouseEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('mousedown', this._handleMouseDown);\n this.canvas.addEventListener('mousemove', this._handleMouseMove);\n document.addEventListener('mouseup', this._handleMouseUp);\n }\n _handleTouchEvents() {\n this.canvas.addEventListener('touchstart', this._handleTouchStart);\n this.canvas.addEventListener('touchmove', this._handleTouchMove);\n this.canvas.addEventListener('touchend', this._handleTouchEnd);\n }\n _reset() {\n this._lastPoints = [];\n this._lastVelocity = 0;\n this._lastWidth = (this.minWidth + this.maxWidth) / 2;\n this._ctx.fillStyle = this.penColor;\n }\n _createPoint(x, y) {\n const rect = this.canvas.getBoundingClientRect();\n return new Point(x - rect.left, y - rect.top, new Date().getTime());\n }\n _addPoint(point) {\n const { _lastPoints } = this;\n _lastPoints.push(point);\n if (_lastPoints.length > 2) {\n if (_lastPoints.length === 3) {\n _lastPoints.unshift(_lastPoints[0]);\n }\n const widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2]);\n const curve = Bezier.fromPoints(_lastPoints, widths);\n _lastPoints.shift();\n return curve;\n }\n return null;\n }\n _calculateCurveWidths(startPoint, endPoint) {\n const velocity = this.velocityFilterWeight * endPoint.velocityFrom(startPoint) +\n (1 - this.velocityFilterWeight) * this._lastVelocity;\n const newWidth = this._strokeWidth(velocity);\n const widths = {\n end: newWidth,\n start: this._lastWidth,\n };\n this._lastVelocity = velocity;\n this._lastWidth = newWidth;\n return widths;\n }\n _strokeWidth(velocity) {\n return Math.max(this.maxWidth / (velocity + 1), this.minWidth);\n }\n _drawCurveSegment(x, y, width) {\n const ctx = this._ctx;\n ctx.moveTo(x, y);\n ctx.arc(x, y, width, 0, 2 * Math.PI, false);\n this._isEmpty = false;\n }\n _drawCurve({ color, curve }) {\n const ctx = this._ctx;\n const widthDelta = curve.endWidth - curve.startWidth;\n const drawSteps = Math.floor(curve.length()) * 2;\n ctx.beginPath();\n ctx.fillStyle = color;\n for (let i = 0; i < drawSteps; i += 1) {\n const t = i / drawSteps;\n const tt = t * t;\n const ttt = tt * t;\n const u = 1 - t;\n const uu = u * u;\n const uuu = uu * u;\n let x = uuu * curve.startPoint.x;\n x += 3 * uu * t * curve.control1.x;\n x += 3 * u * tt * curve.control2.x;\n x += ttt * curve.endPoint.x;\n let y = uuu * curve.startPoint.y;\n y += 3 * uu * t * curve.control1.y;\n y += 3 * u * tt * curve.control2.y;\n y += ttt * curve.endPoint.y;\n const width = Math.min(curve.startWidth + ttt * widthDelta, this.maxWidth);\n this._drawCurveSegment(x, y, width);\n }\n ctx.closePath();\n ctx.fill();\n }\n _drawDot({ color, point, }) {\n const ctx = this._ctx;\n const width = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n ctx.beginPath();\n this._drawCurveSegment(point.x, point.y, width);\n ctx.closePath();\n ctx.fillStyle = color;\n ctx.fill();\n }\n _fromData(pointGroups, drawCurve, drawDot) {\n for (const group of pointGroups) {\n const { color, points } = group;\n if (points.length > 1) {\n for (let j = 0; j < points.length; j += 1) {\n const basicPoint = points[j];\n const point = new Point(basicPoint.x, basicPoint.y, basicPoint.time);\n this.penColor = color;\n if (j === 0) {\n this._reset();\n }\n const curve = this._addPoint(point);\n if (curve) {\n drawCurve({ color, curve });\n }\n }\n }\n else {\n this._reset();\n drawDot({\n color,\n point: points[0],\n });\n }\n }\n }\n _toSVG() {\n const pointGroups = this._data;\n const ratio = Math.max(window.devicePixelRatio || 1, 1);\n const minX = 0;\n const minY = 0;\n const maxX = this.canvas.width / ratio;\n const maxY = this.canvas.height / ratio;\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('width', this.canvas.width.toString());\n svg.setAttribute('height', this.canvas.height.toString());\n this._fromData(pointGroups, ({ color, curve }) => {\n const path = document.createElement('path');\n if (!isNaN(curve.control1.x) &&\n !isNaN(curve.control1.y) &&\n !isNaN(curve.control2.x) &&\n !isNaN(curve.control2.y)) {\n const attr = `M ${curve.startPoint.x.toFixed(3)},${curve.startPoint.y.toFixed(3)} ` +\n `C ${curve.control1.x.toFixed(3)},${curve.control1.y.toFixed(3)} ` +\n `${curve.control2.x.toFixed(3)},${curve.control2.y.toFixed(3)} ` +\n `${curve.endPoint.x.toFixed(3)},${curve.endPoint.y.toFixed(3)}`;\n path.setAttribute('d', attr);\n path.setAttribute('stroke-width', (curve.endWidth * 2.25).toFixed(3));\n path.setAttribute('stroke', color);\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-linecap', 'round');\n svg.appendChild(path);\n }\n }, ({ color, point }) => {\n const circle = document.createElement('circle');\n const dotSize = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n circle.setAttribute('r', dotSize.toString());\n circle.setAttribute('cx', point.x.toString());\n circle.setAttribute('cy', point.y.toString());\n circle.setAttribute('fill', color);\n svg.appendChild(circle);\n });\n const prefix = 'data:image/svg+xml;base64,';\n const header = '<svg' +\n ' xmlns=\"http://www.w3.org/2000/svg\"' +\n ' xmlns:xlink=\"http://www.w3.org/1999/xlink\"' +\n ` viewBox=\"${minX} ${minY} ${maxX} ${maxY}\"` +\n ` width=\"${maxX}\"` +\n ` height=\"${maxY}\"` +\n '>';\n let body = svg.innerHTML;\n if (body === undefined) {\n const dummy = document.createElement('dummy');\n const nodes = svg.childNodes;\n dummy.innerHTML = '';\n for (let i = 0; i < nodes.length; i += 1) {\n dummy.appendChild(nodes[i].cloneNode(true));\n }\n body = dummy.innerHTML;\n }\n const footer = '</svg>';\n const data = header + body + footer;\n return prefix + btoa(data);\n }\n}\n\nexport default SignaturePad;\n//# sourceMappingURL=signature_pad.js.map\n","export default \"data:image/svg+xml,%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.7%203.70001C13.3%204.00001%2013.5%205.10001%2014.1%206.20001C14.7%207.30001%2014.9%209.20001%2014.6%2010.5C14.1%2012.3%2015.3%2014.4%2019.3%2019.7C22.2%2023.4%2025.6%2028%2026.9%2029.8L29.2%2033L23%2039.7C19.7%2043.4%2017.1%2046.9%2017.4%2047.6C17.7%2048.3%2017.2%2049.4%2016.4%2050C14.8%2051.4%2014.5%2054%2016.1%2054C17.5%2054%2023.6%2049.5%2029%2044.4L33.5%2040.1L41%2051.3C49.2%2063.6%2053.7%2069%2055.8%2069C56.6%2069%2056.8%2068.5%2056.4%2067.7C56%2067.1%2057.8%2068.9%2060.5%2071.8C63.1%2074.7%2065.5%2076.9%2065.7%2076.6C65.9%2076.4%2065.2%2074.4%2064.1%2072.1C62.9%2069.9%2062%2067.2%2062%2066.2C62%2063.3%2054.5%2047.6%2048.9%2039C46.2%2034.8%2044%2031%2044%2030.6C44%2030.2%2046.2%2027.3%2048.9%2024.2C54.3%2017.9%2059%2011.2%2059%209.80001C59%209.30001%2057.7%209.10001%2056%209.50001C54.2%209.90001%2050.5%2012.7%2046.4%2017.1C42.7%2020.9%2039.4%2024%2039.1%2024C38.8%2024%2036.3%2020.7%2033.6%2016.8C30.9%2012.9%2027.9%209.50001%2027%209.30001C26%209.00001%2024.3%207.60001%2023.2%206.10001C21.7%204.10001%2020.3%203.30001%2017.7%203.20001C15.8%203.10001%2014%203.30001%2013.7%203.70001Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fsvg%3E\"","export default \"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%204V10H7%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.51%2014.9999C4.15839%2016.8403%205.38734%2018.4201%207.01166%2019.5013C8.63598%2020.5825%2010.5677%2021.1065%2012.5157%2020.9944C14.4637%2020.8823%2016.3226%2020.1401%2017.8121%2018.8797C19.3017%2017.6193%2020.3413%2015.9089%2020.7742%2014.0063C21.2072%2012.1037%2021.0101%2010.1119%2020.2126%208.33105C19.4152%206.55019%2018.0605%205.07674%2016.3528%204.13271C14.6451%203.18868%2012.6769%202.82521%2010.7447%203.09707C8.81245%203.36892%207.02091%204.26137%205.64%205.63995L1%209.99995%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","import React, { Component } from 'react';\n\nimport Signature from 'signature_pad';\n\nimport styles from './style.module.scss';\n\nimport sign from './img/sign.svg';\nimport reset from './img/reset.svg';\n\nexport interface SignaturePadProps {\n onChange: (base64signature: string) => void;\n}\n\ninterface State {\n hasContent: boolean;\n}\n\nclass SignaturePad extends Component<SignaturePadProps, State> {\n private canvasRef: React.RefObject<HTMLCanvasElement>;\n private canvas: any;\n private signaturePad: any;\n\n constructor(props: SignaturePadProps) {\n super(props);\n this.state = {\n hasContent: false,\n };\n this.canvasRef = React.createRef();\n this.notifyOnChange = this.notifyOnChange.bind(this);\n this.resizeCanvas = this.resizeCanvas.bind(this);\n this.clear = this.clear.bind(this);\n }\n\n public componentDidMount() {\n this.canvas = this.canvasRef.current;\n this.signaturePad = new Signature(this.canvas, {\n onEnd: this.notifyOnChange,\n });\n this.resizeCanvas();\n }\n\n public render() {\n const { hasContent } = this.state;\n\n return (\n <>\n <style\n dangerouslySetInnerHTML={{\n __html: `.${styles.reset}::before { \n -webkit-mask-image: url(\"${reset}\");\n mask-image: url(\"${reset}\");\n }`,\n }}\n />\n <div className={styles.container}>\n <canvas className={styles.canvas} ref={this.canvasRef} />\n <div className={styles.separator} />\n <div\n className={styles.sign}\n style={{\n WebkitMaskImage: `url(\"${sign}\")`,\n maskImage: `url(\"${sign}\")`,\n }}\n />\n <button\n className={styles.reset}\n onClick={this.clear}\n disabled={!hasContent}\n >\n Reset\n </button>\n </div>\n </>\n );\n }\n\n private notifyOnChange() {\n const { onChange } = this.props;\n onChange(this.signaturePad.isEmpty() ? '' : this.signaturePad.toDataURL());\n this.setState({ hasContent: !this.signaturePad.isEmpty() });\n }\n\n private resizeCanvas() {\n const ratio = Math.max(window.devicePixelRatio || 1, 1);\n this.canvas.width = this.canvas.offsetWidth * ratio;\n this.canvas.height = this.canvas.offsetHeight * ratio;\n this.canvas.getContext('2d').scale(ratio, ratio);\n }\n\n private clear() {\n this.signaturePad.clear();\n this.notifyOnChange();\n }\n}\n\nexport { SignaturePad };\n"],"names":["SignaturePad","React","Signature","_jsxs","_jsx"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,MAAM,KAAK,CAAC;AACZ,IAAI,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE;AAC5B,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACnB,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACnB,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,UAAU,CAAC,KAAK,EAAE;AACtB,QAAQ,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,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ACD;wBACFA,yBACE,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,EACnB,QAAQ,EAAE,CAAC,UAAU,mCAGd,aACL,YACL,EACH;KACH;IAEO,qCAAc,GAAtB;QACU,IAAA,QAAQ,GAAK,IAAI,CAAC,KAAK,SAAf,CAAgB;QAChC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;KAC7D;IAEO,mCAAY,GAApB;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;QACtD,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAClD;IAEO,4BAAK,GAAb;QACE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;IACH,mBAAC;AAAD,CA5EA,CAA2B,SAAS;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { SignaturePad } from './index.js';
|
|
3
|
+
import '../../tslib.es6-5bc94358.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../../style-inject.es-1f59c1d0.js';
|
|
6
|
+
|
|
7
|
+
var story = {
|
|
8
|
+
title: 'JSX/SignaturePad',
|
|
9
|
+
component: SignaturePad,
|
|
10
|
+
argTypes: {
|
|
11
|
+
onChange: {
|
|
12
|
+
action: true,
|
|
13
|
+
table: {
|
|
14
|
+
category: "Callbacks",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
parameters: {
|
|
19
|
+
componentSubtitle: 'Signature pad are user interface elements which allow user sign any legal document.',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
var SignaturePadStory = function (_a) {
|
|
23
|
+
var onChange = _a.onChange;
|
|
24
|
+
var handleOnChange = function (newIndex) {
|
|
25
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newIndex);
|
|
26
|
+
};
|
|
27
|
+
return (jsx(SignaturePad, { onChange: handleOnChange }, void 0));
|
|
28
|
+
};
|
|
29
|
+
SignaturePadStory.storyName = "SignaturePad";
|
|
30
|
+
|
|
31
|
+
export default story;
|
|
32
|
+
export { SignaturePadStory };
|
|
33
|
+
//# sourceMappingURL=index.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/signaturePad/index.stories.tsx"],"sourcesContent":["import { SignaturePad, SignaturePadProps } from '.';\n\nconst story = {\n title: 'JSX/SignaturePad',\n component: SignaturePad,\n argTypes: {\n onChange: {\n action: true,\n table: {\n category: \"Callbacks\",\n },\n },\n },\n parameters: {\n componentSubtitle: 'Signature pad are user interface elements which allow user sign any legal document.',\n },\n};\n\nexport const SignaturePadStory = ({\n onChange,\n}: SignaturePadProps) => {\n const handleOnChange = (newIndex: string) => {\n onChange?.(newIndex);\n };\n\n return (\n <SignaturePad\n onChange={handleOnChange}\n />\n );\n};\n\nSignaturePadStory.storyName = \"SignaturePad\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACL,QAAQ,EAAE,WAAW;aACtB;SACF;KACF;IACD,UAAU,EAAE;QACV,iBAAiB,EAAE,qFAAqF;KACzG;EACD;IAEW,iBAAiB,GAAG,UAAC,EAEd;QADlB,QAAQ,cAAA;IAER,IAAM,cAAc,GAAG,UAAC,QAAgB;QACtC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,QAAQ,CAAC,CAAC;KACtB,CAAC;IAEF,QACEA,IAAC,YAAY,IACX,QAAQ,EAAE,cAAc,WACxB,EACF;AACJ,EAAE;AAEF,iBAAiB,CAAC,SAAS,GAAG,cAAc;;;;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, images } from './lib';
|
|
1
|
+
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, images } from './lib';
|
|
2
2
|
export type { DownloadStatus, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, } from './lib';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { default as DateSelector } from './components/dateSelector/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { SignaturePad } from './components/signaturePad/index.js';
|
|
3
3
|
export { AutocompleteAddress } from './components/autocompleteAddress/index.js';
|
|
4
4
|
export { default as Input } from './components/input/index.js';
|
|
5
5
|
export { default as MultiDropzone } from './components/multiDropzone/index.js';
|
|
6
|
-
export {
|
|
6
|
+
export { DownloadButton } from './components/downloadButton/index.js';
|
|
7
7
|
export { default as IbanInput } from './components/input/iban/index.js';
|
|
8
8
|
export { default as CurrencyInput } from './components/input/currency/index.js';
|
|
9
|
+
export { Checkbox } from './components/input/checkbox/index.js';
|
|
9
10
|
export { default as BottomModal } from './components/modal/bottomModal/index.js';
|
|
10
11
|
export { default as RegularModal } from './components/modal/regularModal/index.js';
|
|
11
12
|
export { default as BottomOrRegularModal } from './components/modal/bottomOrRegularModal/index.js';
|
|
@@ -17,7 +18,7 @@ export { default as Chip } from './components/chip/index.js';
|
|
|
17
18
|
export { default as AutoSuggestInput } from './components/input/autoSuggestInput/index.js';
|
|
18
19
|
export { ComparisonTable } from './components/comparisonTable/index.js';
|
|
19
20
|
export { SegmentedControl } from './components/segmentedControl/index.js';
|
|
20
|
-
export {
|
|
21
|
+
export { Markdown } from './components/markdown/index.js';
|
|
21
22
|
export { i as images } from './index-db2e797f.js';
|
|
22
23
|
export { default as TableRating } from './components/comparisonTable/components/TableRating/index.js';
|
|
23
24
|
export { default as TableTrueFalse } from './components/comparisonTable/components/TableTrueFalse.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DownloadStatus } from '../../models/download';
|
|
3
|
-
interface
|
|
3
|
+
export interface DownloadButtonProps {
|
|
4
4
|
downloadStatus: DownloadStatus;
|
|
5
5
|
onDownload: () => void;
|
|
6
6
|
className?: string;
|
|
7
7
|
customFail?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare const DownloadButton: ({ downloadStatus, onDownload, className, customFail, }:
|
|
10
|
-
export
|
|
9
|
+
declare const DownloadButton: ({ downloadStatus, onDownload, className, customFail, }: DownloadButtonProps) => JSX.Element;
|
|
10
|
+
export { DownloadButton };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DownloadButtonProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ downloadStatus, onDownload, className, customFail, }: DownloadButtonProps) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
downloadStatus: {
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
};
|
|
10
|
+
customFail: {
|
|
11
|
+
description: string;
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
onDownload: {
|
|
17
|
+
description: string;
|
|
18
|
+
action: boolean;
|
|
19
|
+
table: {
|
|
20
|
+
category: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
className: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
parameters: {
|
|
28
|
+
componentSubtitle: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const DownloadButtonStory: {
|
|
32
|
+
({ downloadStatus, onDownload, className, customFail }: DownloadButtonProps): JSX.Element;
|
|
33
|
+
storyName: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const CustomErrorMessage: ({ onDownload, }: DownloadButtonProps) => JSX.Element;
|
|
36
|
+
export default story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface CheckboxWithDescription {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: (selected: boolean) => ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckboxProps<ValueType extends string> {
|
|
8
|
+
options: Record<ValueType, string | CheckboxWithDescription>;
|
|
9
|
+
value?: ValueType[];
|
|
10
|
+
onChange: (value: ValueType[]) => void;
|
|
11
|
+
wide?: boolean;
|
|
12
|
+
inlineLayout?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
labelClassName?: string;
|
|
15
|
+
optionClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Checkbox: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, className, labelClassName, optionClassName, }: CheckboxProps<ValueType>) => JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CheckboxProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, className, labelClassName, optionClassName, }: CheckboxProps<ValueType>) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
options: {
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: {
|
|
9
|
+
CAT: {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
DOG: {
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
NONE: {
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
onChange: {
|
|
27
|
+
description: string;
|
|
28
|
+
action: boolean;
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
wide: {
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: boolean;
|
|
36
|
+
};
|
|
37
|
+
inlineLayout: {
|
|
38
|
+
description: string;
|
|
39
|
+
defaultValue: boolean;
|
|
40
|
+
};
|
|
41
|
+
className: {
|
|
42
|
+
description: string;
|
|
43
|
+
defaultValue: string;
|
|
44
|
+
};
|
|
45
|
+
optionClassName: {
|
|
46
|
+
description: string;
|
|
47
|
+
defaultValue: string;
|
|
48
|
+
};
|
|
49
|
+
labelClassName: {
|
|
50
|
+
description: string;
|
|
51
|
+
defaultValue: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const CheckboxStory: {
|
|
56
|
+
({ onChange, options, wide, className, optionClassName, labelClassName, inlineLayout, }: CheckboxProps<string>): JSX.Element;
|
|
57
|
+
storyName: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const CheckboxWithCustomWrapperStyles: ({ onChange }: CheckboxProps<string>) => JSX.Element;
|
|
60
|
+
export declare const CheckboxWithCustomOptionStyles: ({ onChange }: CheckboxProps<string>) => JSX.Element;
|
|
61
|
+
export declare const CheckboxWithCustomLabelStyles: ({ onChange }: CheckboxProps<string>) => JSX.Element;
|
|
62
|
+
export declare const CheckboxWithInlineLayout: ({ onChange }: CheckboxProps<string>) => JSX.Element;
|
|
63
|
+
export declare const CheckboxWithCustomLabel: ({ onChange, wide, className, optionClassName, inlineLayout }: CheckboxProps<string>) => JSX.Element;
|
|
64
|
+
export default story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|