@mirai/ui 1.0.42 → 1.0.44
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/build/components/InputDate/InputDate.js +158 -0
- package/build/components/InputDate/InputDate.js.map +1 -0
- package/build/components/InputDate/InputDate.module.css +32 -0
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +772 -0
- package/build/components/InputDate/index.js +19 -0
- package/build/components/InputDate/index.js.map +1 -0
- package/build/components/InputText/InputText.js +1 -0
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +1 -0
- package/build/components/Notification/Notification.js +8 -2
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +12 -3
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +86 -8
- package/build/components/index.js +13 -0
- package/build/components/index.js.map +1 -1
- package/build/helpers/getInputDateErrors.js +34 -0
- package/build/helpers/getInputDateErrors.js.map +1 -0
- package/build/helpers/getInputErrors.js +13 -1
- package/build/helpers/getInputErrors.js.map +1 -1
- package/build/helpers/index.js +13 -0
- package/build/helpers/index.js.map +1 -1
- package/build/primitives/Input/Input.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _InputDate = require("./InputDate");
|
|
8
|
+
|
|
9
|
+
Object.keys(_InputDate).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _InputDate[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _InputDate[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/InputDate/index.js"],"sourcesContent":["export * from './InputDate';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -111,6 +111,7 @@ var InputText = function InputText(_ref) {
|
|
|
111
111
|
onEnter: handleEnter,
|
|
112
112
|
onLeave: handleLeave
|
|
113
113
|
})), is.password && !disabled && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
|
|
114
|
+
tabIndex: -1,
|
|
114
115
|
type: "button",
|
|
115
116
|
className: _InputTextModule.default.pressable,
|
|
116
117
|
onPress: function onPress() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText.js","names":["InputText","disabled","error","hint","icon","label","type","onChange","onEnter","onLeave","others","focus","setFocus","password","setPassword","handleChange","value","event","handleEnter","handleLeave","has","undefined","length","is","style","inputContainer","className","text","withIcon","inputBorder","left","input","iconLeft","pressable","displayName","propTypes","PropTypes","bool","string","multiLine","name","isRequired","func"],"sources":["../../../src/components/InputText/InputText.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Input, Pressable, Text, View } from '../../primitives';\nimport style from './InputText.module.css';\n\nconst InputText = ({\n disabled,\n error,\n hint,\n icon,\n label,\n type,\n onChange = () => {},\n onEnter = () => {},\n onLeave = () => {},\n ...others\n}) => {\n const [focus, setFocus] = useState(false);\n const [password, setPassword] = useState(true);\n\n const handleChange = (value, event) => {\n onChange(value, event);\n };\n\n const handleEnter = (event) => {\n setFocus(true);\n onEnter(event);\n };\n\n const handleLeave = () => {\n setFocus(false);\n onLeave(event);\n };\n\n const has = {\n value: others.value !== undefined && others.value?.length > 0,\n };\n const is = { password: type === 'password' };\n\n return (\n <View className={styles(style.inputContainer, others.className)} style={others.style}>\n {label && (\n <Text\n className={styles(\n style.text,\n style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n icon && style.withIcon,\n (focus || error || has.value) && style.value,\n )}\n >\n {label}\n </Text>\n )}\n\n <View\n row\n className={styles(\n style.inputBorder,\n disabled && style.disabled,\n error && style.error,\n focus && !error && style.focus,\n )}\n >\n {icon && <Icon name={icon} className={[style.icon, style.left]} />}\n <Input\n {...others}\n disabled={disabled}\n type={!is.password || password ? type : 'text'}\n value={others.value || ''}\n className={styles(style.input, icon && style.iconLeft)}\n style={undefined}\n onChange={handleChange}\n onEnter={handleEnter}\n onLeave={handleLeave}\n />\n {is.password && !disabled && (\n <Pressable type=\"button\" className={style.pressable} onPress={() => setPassword(!password)}>\n <Icon name={password ? 'EyeClose' : 'EyeOpen'} />\n </Pressable>\n )}\n </View>\n\n {hint && (\n <Text small className={styles(style.text, style.hint, disabled && style.disabled, error && style.error)}>\n {hint}\n </Text>\n )}\n </View>\n );\n};\n\nInputText.displayName = 'Component:InputText';\n\nInputText.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n hint: PropTypes.string,\n icon: PropTypes.string,\n label: PropTypes.string,\n multiLine: PropTypes.bool,\n name: PropTypes.string.isRequired,\n type: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { InputText };\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,OAWZ;EAAA;;EAAA,IAVJC,QAUI,QAVJA,QAUI;EAAA,IATJC,KASI,QATJA,KASI;EAAA,IARJC,IAQI,QARJA,IAQI;EAAA,IAPJC,IAOI,QAPJA,IAOI;EAAA,IANJC,KAMI,QANJA,KAMI;EAAA,IALJC,IAKI,QALJA,IAKI;EAAA,yBAJJC,QAII;EAAA,IAJJA,QAII,8BAJO,YAAM,CAAE,C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KTT,KAAK,IAAIsB,yBAAMtB,KALN,EAMTE,IAAI,IAAIoB,yBAAMI,QANL,EAOT,CAACjB,KAAK,IAAIT,KAAT,IAAkBkB,GAAG,CAACJ,KAAvB,KAAiCQ,yBAAMR,KAP9B;EADb,GAWGX,KAXH,CAFJ,eAiBE,6BAAC,gBAAD;IACE,GAAG,MADL;IAEE,SAAS,EAAE,qBACTmB,yBAAMK,WADG,EAET5B,QAAQ,IAAIuB,yBAAMvB,QAFT,EAGTC,KAAK,IAAIsB,yBAAMtB,KAHN,EAITS,KAAK,IAAI,CAACT,KAAV,IAAmBsB,yBAAMb,KAJhB;EAFb,GASGP,IAAI,iBAAI,6BAAC,gBAAD;IAAM,IAAI,EAAEA,IAAZ;IAAkB,SAAS,EAAE,CAACoB,yBAAMpB,IAAP,EAAaoB,yBAAMM,IAAnB;EAA7B,EATX,eAUE,6BAAC,iBAAD,eACMpB,MADN;IAEE,QAAQ,EAAET,QAFZ;IAGE,IAAI,EAAE,CAACsB,EAAE,CAACV,QAAJ,IAAgBA,QAAhB,GAA2BP,IAA3B,GAAkC,MAH1C;IAIE,KAAK,EAAEI,MAAM,CAACM,KAAP,IAAgB,EAJzB;IAKE,SAAS,EAAE,qBAAOQ,yBAAMO,KAAb,EAAoB3B,IAAI,IAAIoB,yBAAMQ,QAAlC,CALb;IAME,KAAK,EAAEX,SANT;IAOE,QAAQ,EAAEN,YAPZ;IAQE,OAAO,EAAEG,WARX;IASE,OAAO,EAAEC;EATX,GAVF,EAqBGI,EAAE,CAACV,QAAH,IAAe,CAACZ,QAAhB,iBACC,6BAAC,qBAAD;IAAW,IAAI,EAAC,
|
|
1
|
+
{"version":3,"file":"InputText.js","names":["InputText","disabled","error","hint","icon","label","type","onChange","onEnter","onLeave","others","focus","setFocus","password","setPassword","handleChange","value","event","handleEnter","handleLeave","has","undefined","length","is","style","inputContainer","className","text","withIcon","inputBorder","left","input","iconLeft","pressable","displayName","propTypes","PropTypes","bool","string","multiLine","name","isRequired","func"],"sources":["../../../src/components/InputText/InputText.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Input, Pressable, Text, View } from '../../primitives';\nimport style from './InputText.module.css';\n\nconst InputText = ({\n disabled,\n error,\n hint,\n icon,\n label,\n type,\n onChange = () => {},\n onEnter = () => {},\n onLeave = () => {},\n ...others\n}) => {\n const [focus, setFocus] = useState(false);\n const [password, setPassword] = useState(true);\n\n const handleChange = (value, event) => {\n onChange(value, event);\n };\n\n const handleEnter = (event) => {\n setFocus(true);\n onEnter(event);\n };\n\n const handleLeave = () => {\n setFocus(false);\n onLeave(event);\n };\n\n const has = {\n value: others.value !== undefined && others.value?.length > 0,\n };\n const is = { password: type === 'password' };\n\n return (\n <View className={styles(style.inputContainer, others.className)} style={others.style}>\n {label && (\n <Text\n className={styles(\n style.text,\n style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n icon && style.withIcon,\n (focus || error || has.value) && style.value,\n )}\n >\n {label}\n </Text>\n )}\n\n <View\n row\n className={styles(\n style.inputBorder,\n disabled && style.disabled,\n error && style.error,\n focus && !error && style.focus,\n )}\n >\n {icon && <Icon name={icon} className={[style.icon, style.left]} />}\n <Input\n {...others}\n disabled={disabled}\n type={!is.password || password ? type : 'text'}\n value={others.value || ''}\n className={styles(style.input, icon && style.iconLeft)}\n style={undefined}\n onChange={handleChange}\n onEnter={handleEnter}\n onLeave={handleLeave}\n />\n {is.password && !disabled && (\n <Pressable tabIndex={-1} type=\"button\" className={style.pressable} onPress={() => setPassword(!password)}>\n <Icon name={password ? 'EyeClose' : 'EyeOpen'} />\n </Pressable>\n )}\n </View>\n\n {hint && (\n <Text small className={styles(style.text, style.hint, disabled && style.disabled, error && style.error)}>\n {hint}\n </Text>\n )}\n </View>\n );\n};\n\nInputText.displayName = 'Component:InputText';\n\nInputText.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n hint: PropTypes.string,\n icon: PropTypes.string,\n label: PropTypes.string,\n multiLine: PropTypes.bool,\n name: PropTypes.string.isRequired,\n type: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { InputText };\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,OAWZ;EAAA;;EAAA,IAVJC,QAUI,QAVJA,QAUI;EAAA,IATJC,KASI,QATJA,KASI;EAAA,IARJC,IAQI,QARJA,IAQI;EAAA,IAPJC,IAOI,QAPJA,IAOI;EAAA,IANJC,KAMI,QANJA,KAMI;EAAA,IALJC,IAKI,QALJA,IAKI;EAAA,yBAJJC,QAII;EAAA,IAJJA,QAII,8BAJO,YAAM,CAAE,CAIf;EAAA,wBAHJC,OAGI;EAAA,IAHJA,OAGI,6BAHM,YAAM,CAAE,CAGd;EAAA,wBAFJC,OAEI;EAAA,IAFJA,OAEI,6BAFM,YAAM,CAAE,CAEd;EAAA,IADDC,MACC;;EACJ,gBAA0B,qBAAS,KAAT,CAA1B;EAAA;EAAA,IAAOC,KAAP;EAAA,IAAcC,QAAd;;EACA,iBAAgC,qBAAS,IAAT,CAAhC;EAAA;EAAA,IAAOC,QAAP;EAAA,IAAiBC,WAAjB;;EAEA,IAAMC,YAAY,GAAG,SAAfA,YAAe,CAACC,KAAD,EAAQC,KAAR,EAAkB;IACrCV,QAAQ,CAACS,KAAD,EAAQC,KAAR,CAAR;EACD,CAFD;;EAIA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACD,KAAD,EAAW;IAC7BL,QAAQ,CAAC,IAAD,CAAR;IACAJ,OAAO,CAACS,KAAD,CAAP;EACD,CAHD;;EAKA,IAAME,WAAW,GAAG,SAAdA,WAAc,GAAM;IACxBP,QAAQ,CAAC,KAAD,CAAR;IACAH,OAAO,CAACQ,KAAD,CAAP;EACD,CAHD;;EAKA,IAA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;EAUpBlC,OAAO,EAAE4B,mBAAUM,IAVC;EAWpBjC,OAAO,EAAE2B,mBAAUM;AAXC,CAAtB"}
|
|
@@ -15,7 +15,7 @@ var _primitives = require("../../primitives");
|
|
|
15
15
|
|
|
16
16
|
var _NotificationModule = _interopRequireDefault(require("./Notification.module.css"));
|
|
17
17
|
|
|
18
|
-
var _excluded = ["children", "error", "success", "title", "warning", "onClose"];
|
|
18
|
+
var _excluded = ["children", "error", "outlined", "small", "success", "title", "warning", "onClose"];
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -28,6 +28,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
28
28
|
var Notification = function Notification(_ref) {
|
|
29
29
|
var children = _ref.children,
|
|
30
30
|
error = _ref.error,
|
|
31
|
+
_ref$outlined = _ref.outlined,
|
|
32
|
+
outlined = _ref$outlined === void 0 ? true : _ref$outlined,
|
|
33
|
+
_ref$small = _ref.small,
|
|
34
|
+
small = _ref$small === void 0 ? false : _ref$small,
|
|
31
35
|
success = _ref.success,
|
|
32
36
|
title = _ref.title,
|
|
33
37
|
warning = _ref.warning,
|
|
@@ -36,7 +40,7 @@ var Notification = function Notification(_ref) {
|
|
|
36
40
|
|
|
37
41
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
38
42
|
row: true,
|
|
39
|
-
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined, others.className)
|
|
43
|
+
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined, outlined && _NotificationModule.default.outlined, small && _NotificationModule.default.small, others.className)
|
|
40
44
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
41
45
|
name: error ? 'Error' : warning ? 'Warning' : success ? 'Success' : 'Info',
|
|
42
46
|
className: _NotificationModule.default.icon
|
|
@@ -61,6 +65,8 @@ Notification.displayName = 'Component:Notification';
|
|
|
61
65
|
Notification.propTypes = {
|
|
62
66
|
children: _propTypes.default.string.isRequired,
|
|
63
67
|
error: _propTypes.default.bool,
|
|
68
|
+
outlined: _propTypes.default.bool,
|
|
69
|
+
small: _propTypes.default.bool,
|
|
64
70
|
success: _propTypes.default.bool,
|
|
65
71
|
title: _propTypes.default.string,
|
|
66
72
|
warning: _propTypes.default.bool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["Notification","children","error","success","title","warning","onClose","others","style","notification","undefined","className","icon","text","pressable","displayName","propTypes","PropTypes","string","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["Notification","children","error","outlined","small","success","title","warning","onClose","others","style","notification","undefined","className","icon","text","pressable","displayName","propTypes","PropTypes","string","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({\n children,\n error,\n outlined = true,\n small = false,\n success,\n title,\n warning,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n outlined && style.outlined,\n small && style.small,\n others.className,\n )}\n >\n <Icon name={error ? 'Error' : warning ? 'Warning' : success ? 'Success' : 'Info'} className={style.icon} />\n <View\n className={styles(\n style.text,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n )}\n >\n {title && (\n <Text bold action>\n Title\n </Text>\n )}\n <Text action>{children}</Text>\n </View>\n {onClose && (\n <Pressable className={style.pressable} onPress={onClose}>\n <Icon name=\"Close\" className={style.icon} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.string.isRequired,\n error: PropTypes.bool,\n outlined: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n title: PropTypes.string,\n warning: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,SAAfA,YAAe;EAAA,IACnBC,QADmB,QACnBA,QADmB;EAAA,IAEnBC,KAFmB,QAEnBA,KAFmB;EAAA,yBAGnBC,QAHmB;EAAA,IAGnBA,QAHmB,8BAGR,IAHQ;EAAA,sBAInBC,KAJmB;EAAA,IAInBA,KAJmB,2BAIX,KAJW;EAAA,IAKnBC,OALmB,QAKnBA,OALmB;EAAA,IAMnBC,KANmB,QAMnBA,KANmB;EAAA,IAOnBC,OAPmB,QAOnBA,OAPmB;EAAA,IAQnBC,OARmB,QAQnBA,OARmB;EAAA,IAShBC,MATgB;;EAAA,oBAWnB,6BAAC,gBAAD,eACMA,MADN;IAEE,GAAG,MAFL;IAGE,SAAS,EAAE,qBACTC,4BAAMC,YADG,EAETT,KAAK,GAAGQ,4BAAMR,KAAT,GAAiBK,OAAO,GAAGG,4BAAMH,OAAT,GAAmBF,OAAO,GAAGK,4BAAML,OAAT,GAAmBO,SAFjE,EAGTT,QAAQ,IAAIO,4BAAMP,QAHT,EAITC,KAAK,IAAIM,4BAAMN,KAJN,EAKTK,MAAM,CAACI,SALE;EAHb,iBAWE,6BAAC,gBAAD;IAAM,IAAI,EAAEX,KAAK,GAAG,OAAH,GAAaK,OAAO,GAAG,SAAH,GAAeF,OAAO,GAAG,SAAH,GAAe,MAA1E;IAAkF,SAAS,EAAEK,4BAAMI;EAAnG,EAXF,eAYE,6BAAC,gBAAD;IACE,SAAS,EAAE,qBACTJ,4BAAMK,IADG,EAETb,KAAK,GAAGQ,4BAAMR,KAAT,GAAiBK,OAAO,GAAGG,4BAAMH,OAAT,GAAmBF,OAAO,GAAGK,4BAAML,OAAT,GAAmBO,SAFjE;EADb,GAMGN,KAAK,iBACJ,6BAAC,gBAAD;IAAM,IAAI,MAAV;IAAW,MAAM;EAAjB,WAPJ,eAWE,6BAAC,gBAAD;IAAM,MAAM;EAAZ,GAAcL,QAAd,CAXF,CAZF,EAyBGO,OAAO,iBACN,6BAAC,qBAAD;IAAW,SAAS,EAAEE,4BAAMM,SAA5B;IAAuC,OAAO,EAAER;EAAhD,gBACE,6BAAC,gBAAD;IAAM,IAAI,EAAC,OAAX;IAAmB,SAAS,EAAEE,4BAAMI;EAApC,EADF,CA1BJ,CAXmB;AAAA,CAArB;;;AA4CAd,YAAY,CAACiB,WAAb,GAA2B,wBAA3B;AAEAjB,YAAY,CAACkB,SAAb,GAAyB;EACvBjB,QAAQ,EAAEkB,mBAAUC,MAAV,CAAiBC,UADJ;EAEvBnB,KAAK,EAAEiB,mBAAUG,IAFM;EAGvBnB,QAAQ,EAAEgB,mBAAUG,IAHG;EAIvBlB,KAAK,EAAEe,mBAAUG,IAJM;EAKvBjB,OAAO,EAAEc,mBAAUG,IALI;EAMvBhB,KAAK,EAAEa,mBAAUC,MANM;EAOvBb,OAAO,EAAEY,mBAAUG,IAPI;EAQvBd,OAAO,EAAEW,mBAAUI;AARI,CAAzB"}
|
|
@@ -9,14 +9,23 @@
|
|
|
9
9
|
background-color: var(--mirai-ui-accent-background);
|
|
10
10
|
border-radius: var(--mirai-ui-notification-border-radius);
|
|
11
11
|
padding: var(--mirai-ui-notification-padding);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.notification.outlined {
|
|
12
15
|
border: solid 1px var(--mirai-ui-accent-border);
|
|
13
16
|
}
|
|
14
17
|
|
|
18
|
+
.notification.small {
|
|
19
|
+
padding: 0;
|
|
20
|
+
border: none;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
.notification * {
|
|
16
25
|
color: var(--mirai-ui-accent);
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
.notification.success {
|
|
28
|
+
.notification.success:not(.small) {
|
|
20
29
|
background-color: var(--mirai-ui-success-background);
|
|
21
30
|
border-color: var(--mirai-ui-success-border);
|
|
22
31
|
}
|
|
@@ -25,7 +34,7 @@
|
|
|
25
34
|
color: var(--mirai-ui-success);
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
.notification.error {
|
|
37
|
+
.notification.error:not(.small) {
|
|
29
38
|
background-color: var(--mirai-ui-error-background);
|
|
30
39
|
border-color: var(--mirai-ui-error-border);
|
|
31
40
|
}
|
|
@@ -34,7 +43,7 @@
|
|
|
34
43
|
color: var(--mirai-ui-error);
|
|
35
44
|
}
|
|
36
45
|
|
|
37
|
-
.notification.warning {
|
|
46
|
+
.notification.warning:not(.small) {
|
|
38
47
|
background-color: var(--mirai-ui-warning-background);
|
|
39
48
|
border-color: var(--mirai-ui-warning-border);
|
|
40
49
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`component:<Notification> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="view row notification mirai"
|
|
6
|
+
class="view row notification outlined mirai"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
9
|
class="icon icon"
|
|
@@ -42,7 +42,7 @@ exports[`component:<Notification> inherit:className 1`] = `
|
|
|
42
42
|
exports[`component:<Notification> prop:error 1`] = `
|
|
43
43
|
<DocumentFragment>
|
|
44
44
|
<div
|
|
45
|
-
class="view row notification error"
|
|
45
|
+
class="view row notification error outlined"
|
|
46
46
|
>
|
|
47
47
|
<span
|
|
48
48
|
class="icon icon"
|
|
@@ -81,7 +81,7 @@ exports[`component:<Notification> prop:error 1`] = `
|
|
|
81
81
|
exports[`component:<Notification> prop:onClose 1`] = `
|
|
82
82
|
<DocumentFragment>
|
|
83
83
|
<div
|
|
84
|
-
class="view row notification"
|
|
84
|
+
class="view row notification outlined"
|
|
85
85
|
>
|
|
86
86
|
<span
|
|
87
87
|
class="icon icon"
|
|
@@ -149,10 +149,88 @@ exports[`component:<Notification> prop:onClose 1`] = `
|
|
|
149
149
|
</DocumentFragment>
|
|
150
150
|
`;
|
|
151
151
|
|
|
152
|
+
exports[`component:<Notification> prop:outlined 1`] = `
|
|
153
|
+
<DocumentFragment>
|
|
154
|
+
<div
|
|
155
|
+
class="view row notification"
|
|
156
|
+
>
|
|
157
|
+
<span
|
|
158
|
+
class="icon icon"
|
|
159
|
+
>
|
|
160
|
+
<svg
|
|
161
|
+
fill="currentColor"
|
|
162
|
+
height="1em"
|
|
163
|
+
stroke="currentColor"
|
|
164
|
+
stroke-width="0"
|
|
165
|
+
viewBox="0 0 24 24"
|
|
166
|
+
width="1em"
|
|
167
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
168
|
+
>
|
|
169
|
+
<path
|
|
170
|
+
d="M0 0h24v24H0z"
|
|
171
|
+
fill="none"
|
|
172
|
+
/>
|
|
173
|
+
<path
|
|
174
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
175
|
+
/>
|
|
176
|
+
</svg>
|
|
177
|
+
</span>
|
|
178
|
+
<div
|
|
179
|
+
class="view text"
|
|
180
|
+
>
|
|
181
|
+
<span
|
|
182
|
+
class="text action"
|
|
183
|
+
>
|
|
184
|
+
Lorem Ipsum...
|
|
185
|
+
</span>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</DocumentFragment>
|
|
189
|
+
`;
|
|
190
|
+
|
|
191
|
+
exports[`component:<Notification> prop:small 1`] = `
|
|
192
|
+
<DocumentFragment>
|
|
193
|
+
<div
|
|
194
|
+
class="view row notification outlined small"
|
|
195
|
+
>
|
|
196
|
+
<span
|
|
197
|
+
class="icon icon"
|
|
198
|
+
>
|
|
199
|
+
<svg
|
|
200
|
+
fill="currentColor"
|
|
201
|
+
height="1em"
|
|
202
|
+
stroke="currentColor"
|
|
203
|
+
stroke-width="0"
|
|
204
|
+
viewBox="0 0 24 24"
|
|
205
|
+
width="1em"
|
|
206
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
207
|
+
>
|
|
208
|
+
<path
|
|
209
|
+
d="M0 0h24v24H0z"
|
|
210
|
+
fill="none"
|
|
211
|
+
/>
|
|
212
|
+
<path
|
|
213
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
214
|
+
/>
|
|
215
|
+
</svg>
|
|
216
|
+
</span>
|
|
217
|
+
<div
|
|
218
|
+
class="view text"
|
|
219
|
+
>
|
|
220
|
+
<span
|
|
221
|
+
class="text action"
|
|
222
|
+
>
|
|
223
|
+
Lorem Ipsum...
|
|
224
|
+
</span>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</DocumentFragment>
|
|
228
|
+
`;
|
|
229
|
+
|
|
152
230
|
exports[`component:<Notification> prop:success 1`] = `
|
|
153
231
|
<DocumentFragment>
|
|
154
232
|
<div
|
|
155
|
-
class="view row notification success"
|
|
233
|
+
class="view row notification success outlined"
|
|
156
234
|
>
|
|
157
235
|
<span
|
|
158
236
|
class="icon icon"
|
|
@@ -191,7 +269,7 @@ exports[`component:<Notification> prop:success 1`] = `
|
|
|
191
269
|
exports[`component:<Notification> prop:title 1`] = `
|
|
192
270
|
<DocumentFragment>
|
|
193
271
|
<div
|
|
194
|
-
class="view row notification"
|
|
272
|
+
class="view row notification outlined"
|
|
195
273
|
>
|
|
196
274
|
<span
|
|
197
275
|
class="icon icon"
|
|
@@ -235,7 +313,7 @@ exports[`component:<Notification> prop:title 1`] = `
|
|
|
235
313
|
exports[`component:<Notification> prop:warning 1`] = `
|
|
236
314
|
<DocumentFragment>
|
|
237
315
|
<div
|
|
238
|
-
class="view row notification warning"
|
|
316
|
+
class="view row notification warning outlined"
|
|
239
317
|
>
|
|
240
318
|
<span
|
|
241
319
|
class="icon icon"
|
|
@@ -274,7 +352,7 @@ exports[`component:<Notification> prop:warning 1`] = `
|
|
|
274
352
|
exports[`component:<Notification> renders 1`] = `
|
|
275
353
|
<DocumentFragment>
|
|
276
354
|
<div
|
|
277
|
-
class="view row notification"
|
|
355
|
+
class="view row notification outlined"
|
|
278
356
|
>
|
|
279
357
|
<span
|
|
280
358
|
class="icon icon"
|
|
@@ -313,7 +391,7 @@ exports[`component:<Notification> renders 1`] = `
|
|
|
313
391
|
exports[`component:<Notification> testID 1`] = `
|
|
314
392
|
<DocumentFragment>
|
|
315
393
|
<div
|
|
316
|
-
class="view row notification"
|
|
394
|
+
class="view row notification outlined"
|
|
317
395
|
data-testid="mirai"
|
|
318
396
|
>
|
|
319
397
|
<span
|
|
@@ -43,6 +43,19 @@ Object.keys(_Form).forEach(function (key) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
+
var _InputDate = require("./InputDate");
|
|
47
|
+
|
|
48
|
+
Object.keys(_InputDate).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _InputDate[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function get() {
|
|
54
|
+
return _InputDate[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
46
59
|
var _InputNumber = require("./InputNumber");
|
|
47
60
|
|
|
48
61
|
Object.keys(_InputNumber).forEach(function (key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["export * from './Button';\nexport * from './Calendar';\nexport * from './Form';\nexport * from './InputNumber';\nexport * from './InputOption';\nexport * from './InputSelect';\nexport * from './InputText';\nexport * from './Menu';\nexport * from './Modal';\nexport * from './Notification';\nexport * from './Table';\nexport * from './Tooltip';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["export * from './Button';\nexport * from './Calendar';\nexport * from './Form';\nexport * from './InputDate';\nexport * from './InputNumber';\nexport * from './InputOption';\nexport * from './InputSelect';\nexport * from './InputText';\nexport * from './Menu';\nexport * from './Modal';\nexport * from './Notification';\nexport * from './Table';\nexport * from './Tooltip';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getInputDateErrors = void 0;
|
|
7
|
+
|
|
8
|
+
var _locale = require("@mirai/locale");
|
|
9
|
+
|
|
10
|
+
var getInputDateErrors = function getInputDateErrors() {
|
|
11
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
12
|
+
_ref$format = _ref.format,
|
|
13
|
+
format = _ref$format === void 0 ? _locale.DEFAULT_DATE_FORMAT : _ref$format,
|
|
14
|
+
max = _ref.max,
|
|
15
|
+
min = _ref.min,
|
|
16
|
+
value = _ref.value;
|
|
17
|
+
|
|
18
|
+
var errors = {};
|
|
19
|
+
var values = (value === null || value === void 0 ? void 0 : value.split('/')) || [];
|
|
20
|
+
var filled = true;
|
|
21
|
+
format.split('/').forEach(function (part, index) {
|
|
22
|
+
var _values$index;
|
|
23
|
+
|
|
24
|
+
if (!((_values$index = values[index]) !== null && _values$index !== void 0 && _values$index.length)) filled = false;else if (part.substring(0, 1) === 'Y' && values[index].length !== part.length) filled = false;
|
|
25
|
+
});
|
|
26
|
+
var date = filled ? (0, _locale.parseDate)(value, format) : undefined;
|
|
27
|
+
if (!date) errors.format = true;
|
|
28
|
+
if (date && max && (0, _locale.dateDiff)(date, (0, _locale.parseDate)(max, format)).days < 0) errors.max = true;
|
|
29
|
+
if (date && min && (0, _locale.dateDiff)(date, (0, _locale.parseDate)(min, format)).days > 0) errors.min = true;
|
|
30
|
+
return Object.keys(errors).length > 0 ? errors : undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.getInputDateErrors = getInputDateErrors;
|
|
34
|
+
//# sourceMappingURL=getInputDateErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInputDateErrors.js","names":["getInputDateErrors","format","DEFAULT_DATE_FORMAT","max","min","value","errors","values","split","filled","forEach","part","index","length","substring","date","undefined","days","Object","keys"],"sources":["../../src/helpers/getInputDateErrors.js"],"sourcesContent":["import { DEFAULT_DATE_FORMAT, dateDiff, parseDate } from '@mirai/locale';\n\nexport const getInputDateErrors = ({ format = DEFAULT_DATE_FORMAT, max, min, value } = {}) => {\n const errors = {};\n const values = value?.split('/') || [];\n let filled = true;\n\n format.split('/').forEach((part, index) => {\n if (!values[index]?.length) filled = false;\n else if (part.substring(0, 1) === 'Y' && values[index].length !== part.length) filled = false;\n });\n\n const date = filled ? parseDate(value, format) : undefined;\n\n if (!date) errors.format = true;\n if (date && max && dateDiff(date, parseDate(max, format)).days < 0) errors.max = true;\n if (date && min && dateDiff(date, parseDate(min, format)).days > 0) errors.min = true;\n\n return Object.keys(errors).length > 0 ? errors : undefined;\n};\n"],"mappings":";;;;;;;AAAA;;AAEO,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,GAA4D;EAAA,+EAAP,EAAO;EAAA,uBAAzDC,MAAyD;EAAA,IAAzDA,MAAyD,4BAAhDC,2BAAgD;EAAA,IAA3BC,GAA2B,QAA3BA,GAA2B;EAAA,IAAtBC,GAAsB,QAAtBA,GAAsB;EAAA,IAAjBC,KAAiB,QAAjBA,KAAiB;;EAC5F,IAAMC,MAAM,GAAG,EAAf;EACA,IAAMC,MAAM,GAAG,CAAAF,KAAK,SAAL,IAAAA,KAAK,WAAL,YAAAA,KAAK,CAAEG,KAAP,CAAa,GAAb,MAAqB,EAApC;EACA,IAAIC,MAAM,GAAG,IAAb;EAEAR,MAAM,CAACO,KAAP,CAAa,GAAb,EAAkBE,OAAlB,CAA0B,UAACC,IAAD,EAAOC,KAAP,EAAiB;IAAA;;IACzC,IAAI,mBAACL,MAAM,CAACK,KAAD,CAAP,0CAAC,cAAeC,MAAhB,CAAJ,EAA4BJ,MAAM,GAAG,KAAT,CAA5B,KACK,IAAIE,IAAI,CAACG,SAAL,CAAe,CAAf,EAAkB,CAAlB,MAAyB,GAAzB,IAAgCP,MAAM,CAACK,KAAD,CAAN,CAAcC,MAAd,KAAyBF,IAAI,CAACE,MAAlE,EAA0EJ,MAAM,GAAG,KAAT;EAChF,CAHD;EAKA,IAAMM,IAAI,GAAGN,MAAM,GAAG,uBAAUJ,KAAV,EAAiBJ,MAAjB,CAAH,GAA8Be,SAAjD;EAEA,IAAI,CAACD,IAAL,EAAWT,MAAM,CAACL,MAAP,GAAgB,IAAhB;EACX,IAAIc,IAAI,IAAIZ,GAAR,IAAe,sBAASY,IAAT,EAAe,uBAAUZ,GAAV,EAAeF,MAAf,CAAf,EAAuCgB,IAAvC,GAA8C,CAAjE,EAAoEX,MAAM,CAACH,GAAP,GAAa,IAAb;EACpE,IAAIY,IAAI,IAAIX,GAAR,IAAe,sBAASW,IAAT,EAAe,uBAAUX,GAAV,EAAeH,MAAf,CAAf,EAAuCgB,IAAvC,GAA8C,CAAjE,EAAoEX,MAAM,CAACF,GAAP,GAAa,IAAb;EAEpE,OAAOc,MAAM,CAACC,IAAP,CAAYb,MAAZ,EAAoBO,MAApB,GAA6B,CAA7B,GAAiCP,MAAjC,GAA0CU,SAAjD;AACD,CAjBM"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getInputErrors = void 0;
|
|
7
7
|
|
|
8
|
+
var _getInputDateErrors = require("./getInputDateErrors");
|
|
9
|
+
|
|
8
10
|
var _isValidDate = require("./isValidDate");
|
|
9
11
|
|
|
10
12
|
var _isValidEmail = require("./isValidEmail");
|
|
@@ -13,6 +15,12 @@ var _isValidPhone = require("./isValidPhone");
|
|
|
13
15
|
|
|
14
16
|
var _excluded = ["minLength", "regexp", "required", "test", "type", "value"];
|
|
15
17
|
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
16
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
25
|
|
|
18
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -37,7 +45,11 @@ var getInputErrors = function getInputErrors() {
|
|
|
37
45
|
if (regexp && regexp.exec && regexp.exec(value) === null) errors.regexp = true;
|
|
38
46
|
if (test && !test(value)) errors.test = true; // Email, Phone & Date format
|
|
39
47
|
|
|
40
|
-
if (type === 'date' && !(0, _isValidDate.isValidDate)(value, others) || type === 'email' && !(0, _isValidEmail.isValidEmail)(value) || type === 'tel' && !(0, _isValidPhone.isValidPhone)(value)) errors.format = true;
|
|
48
|
+
if (type === 'date' && !(0, _isValidDate.isValidDate)(value, others) || type === 'email' && !(0, _isValidEmail.isValidEmail)(value) || type === 'tel' && !(0, _isValidPhone.isValidPhone)(value)) errors.format = true; // Custom Inputs
|
|
49
|
+
|
|
50
|
+
if (type === 'inputDate') errors = _objectSpread(_objectSpread({}, errors), (0, _getInputDateErrors.getInputDateErrors)(_objectSpread(_objectSpread({}, others), {}, {
|
|
51
|
+
value: value
|
|
52
|
+
})));
|
|
41
53
|
return Object.keys(errors).length > 0 ? errors : undefined;
|
|
42
54
|
};
|
|
43
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInputErrors.js","names":["getInputErrors","minLength","regexp","required","test","type","value","others","errors","undefined","length","exec","format","Object","keys"],"sources":["../../src/helpers/getInputErrors.js"],"sourcesContent":["import { isValidDate } from './isValidDate';\nimport { isValidEmail } from './isValidEmail';\nimport { isValidPhone } from './isValidPhone';\n\nexport const getInputErrors = ({\n minLength = 0,\n regexp,\n required,\n test,\n type = 'text',\n value = '',\n ...others\n} = {}) => {\n
|
|
1
|
+
{"version":3,"file":"getInputErrors.js","names":["getInputErrors","minLength","regexp","required","test","type","value","others","errors","undefined","length","exec","format","Object","keys"],"sources":["../../src/helpers/getInputErrors.js"],"sourcesContent":["import { getInputDateErrors } from './getInputDateErrors';\nimport { isValidDate } from './isValidDate';\nimport { isValidEmail } from './isValidEmail';\nimport { isValidPhone } from './isValidPhone';\n\nexport const getInputErrors = ({\n minLength = 0,\n regexp,\n required,\n test,\n type = 'text',\n value = '',\n ...others\n} = {}) => {\n let errors = {};\n\n // Common\n if (required && (value === undefined || value.length === 0)) errors.required = true;\n if (minLength > 0 && value.length < minLength) errors.minLength = true;\n if (regexp && regexp.exec && regexp.exec(value) === null) errors.regexp = true;\n if (test && !test(value)) errors.test = true;\n // Email, Phone & Date format\n if (\n (type === 'date' && !isValidDate(value, others)) ||\n (type === 'email' && !isValidEmail(value)) ||\n (type === 'tel' && !isValidPhone(value))\n )\n errors.format = true;\n // Custom Inputs\n if (type === 'inputDate') errors = { ...errors, ...getInputDateErrors({ ...others, value }) };\n\n return Object.keys(errors).length > 0 ? errors : undefined;\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,GAQnB;EAAA,+EAAP,EAAO;EAAA,0BAPTC,SAOS;EAAA,IAPTA,SAOS,+BAPG,CAOH;EAAA,IANTC,MAMS,QANTA,MAMS;EAAA,IALTC,QAKS,QALTA,QAKS;EAA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@@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
+
var _getInputDateErrors = require("./getInputDateErrors");
|
|
8
|
+
|
|
9
|
+
Object.keys(_getInputDateErrors).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _getInputDateErrors[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _getInputDateErrors[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
7
20
|
var _getInputErrors = require("./getInputErrors");
|
|
8
21
|
|
|
9
22
|
Object.keys(_getInputErrors).forEach(function (key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/helpers/index.js"],"sourcesContent":["export * from './getInputErrors';\nexport * from './isJest';\nexport * from './styles';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/helpers/index.js"],"sourcesContent":["export * from './getInputDateErrors';\nexport * from './getInputErrors';\nexport * from './isJest';\nexport * from './styles';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","names":["Input","disabled","multiLine","type","onChange","onEnter","onError","onLeave","others","errors","handleChange","next","event","isNaN","value","React","createElement","className","style","input","target","onFocus","onBlur","displayName","propTypes","PropTypes","bool","name","string","isRequired","func"],"sources":["../../../src/primitives/Input/Input.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getInputErrors, styles } from '../../helpers';\nimport { parseValue } from './helpers';\nimport style from './Input.module.css';\n\nconst Input = ({ disabled, multiLine, type = 'text', onChange, onEnter, onError, onLeave, ...others }) => {\n const errors = getInputErrors({ ...others, type });\n if (errors && onError) onError(errors);\n\n const handleChange = (next = '', event) => {\n if (type === 'number' && isNaN(next)) return;\n const value = parseValue(next, type, others);\n\n onError && onError(getInputErrors({ ...others, type, value }));\n onChange && onChange(value || '', event);\n };\n\n return React.createElement(multiLine ? 'textarea' : 'input', {\n ...others,\n disabled,\n className: styles(style.input, others.className),\n type,\n ...(!disabled\n ? {\n onChange: (event) => handleChange(event.target.value, event),\n onFocus: onEnter,\n onBlur: onLeave,\n }\n : {}),\n });\n};\nInput.displayName = 'Primitive:Input';\n\nInput.propTypes = {\n disabled: PropTypes.bool,\n multiLine: PropTypes.bool,\n name: PropTypes.string.isRequired,\n type: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onError: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { Input };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAQ,OAA4F;EAAA,IAAzFC,QAAyF,QAAzFA,QAAyF;EAAA,IAA/EC,SAA+E,QAA/EA,SAA+E;EAAA,qBAApEC,IAAoE;EAAA,IAApEA,IAAoE,0BAA7D,MAA6D;EAAA,IAArDC,QAAqD,QAArDA,QAAqD;EAAA,IAA3CC,OAA2C,QAA3CA,OAA2C;EAAA,IAAlCC,OAAkC,QAAlCA,OAAkC;EAAA,IAAzBC,OAAyB,QAAzBA,OAAyB;EAAA,IAAbC,MAAa;;EACxG,IAAMC,MAAM,GAAG,6DAAoBD,MAApB;IAA4BL,IAAI,EAAJA;EAA5B,GAAf;EACA,IAAIM,MAAM,IAAIH,OAAd,EAAuBA,OAAO,CAACG,MAAD,CAAP;;EAEvB,IAAMC,YAAY,GAAG,SAAfA,YAAe,GAAsB;IAAA,IAArBC,IAAqB,uEAAd,EAAc;IAAA,IAAVC,KAAU;IACzC,IAAIT,IAAI,KAAK,QAAT,IAAqBU,KAAK,CAACF,IAAD,CAA9B,EAAsC;IACtC,IAAMG,KAAK,GAAG,0BAAWH,IAAX,EAAiBR,IAAjB,EAAuBK,MAAvB,CAAd;IAEAF,OAAO,IAAIA,OAAO,CAAC,6DAAoBE,MAApB;MAA4BL,IAAI,EAAJA,IAA5B;MAAkCW,KAAK,EAALA;IAAlC,GAAD,CAAlB;IACAV,QAAQ,IAAIA,QAAQ,CAACU,KAAK,IAAI,EAAV,EAAcF,KAAd,CAApB;EACD,CAND;;EAQA,oBAAOG,eAAMC,aAAN,CAAoBd,SAAS,GAAG,UAAH,GAAgB,OAA7C,kCACFM,MADE;IAELP,QAAQ,EAARA,QAFK;IAGLgB,SAAS,EAAE,qBAAOC,qBAAMC,KAAb,EAAoBX,MAAM,CAACS,SAA3B,CAHN;IAILd,IAAI,EAAJA;EAJK,GAKD,CAACF,QAAD,GACA;IACEG,QAAQ,EAAE,kBAACQ,KAAD;MAAA,OAAWF,YAAY,CAACE,KAAK,CAACQ,MAAN,CAAaN,KAAd,EAAqBF,KAArB,CAAvB;IAAA,CADZ;IAEES,OAAO,EAAEhB,OAFX;IAGEiB,MAAM,EAAEf;EAHV,CADA,GAMA,EAXC,EAAP;AAaD,CAzBD;;;
|
|
1
|
+
{"version":3,"file":"Input.js","names":["Input","disabled","multiLine","type","onChange","onEnter","onError","onLeave","others","errors","handleChange","next","event","isNaN","value","React","createElement","className","style","input","target","onFocus","onBlur","displayName","propTypes","PropTypes","bool","name","string","isRequired","func"],"sources":["../../../src/primitives/Input/Input.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getInputErrors, styles } from '../../helpers';\nimport { parseValue } from './helpers';\nimport style from './Input.module.css';\n\nconst Input = ({ disabled, multiLine, type = 'text', onChange, onEnter, onError, onLeave, ...others }) => {\n const errors = getInputErrors({ ...others, type });\n if (errors && onError) onError(errors);\n\n const handleChange = (next = '', event) => {\n if (type === 'number' && isNaN(next)) return;\n const value = parseValue(next, type, others);\n\n onError && onError(getInputErrors({ ...others, type, value }));\n onChange && onChange(value || '', event);\n };\n\n return React.createElement(multiLine ? 'textarea' : 'input', {\n ...others,\n disabled,\n className: styles(style.input, others.className),\n type,\n ...(!disabled\n ? {\n onChange: (event) => handleChange(event.target.value, event),\n onFocus: onEnter,\n onBlur: onLeave,\n }\n : {}),\n });\n};\n\nInput.displayName = 'Primitive:Input';\n\nInput.propTypes = {\n disabled: PropTypes.bool,\n multiLine: PropTypes.bool,\n name: PropTypes.string.isRequired,\n type: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onError: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { Input };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAQ,OAA4F;EAAA,IAAzFC,QAAyF,QAAzFA,QAAyF;EAAA,IAA/EC,SAA+E,QAA/EA,SAA+E;EAAA,qBAApEC,IAAoE;EAAA,IAApEA,IAAoE,0BAA7D,MAA6D;EAAA,IAArDC,QAAqD,QAArDA,QAAqD;EAAA,IAA3CC,OAA2C,QAA3CA,OAA2C;EAAA,IAAlCC,OAAkC,QAAlCA,OAAkC;EAAA,IAAzBC,OAAyB,QAAzBA,OAAyB;EAAA,IAAbC,MAAa;;EACxG,IAA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