@mirai/ui 1.0.118 → 1.0.120
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/README.md +23 -2
- package/build/components/Calendar/Calendar.Month.js +6 -3
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +1 -1
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +5 -1
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +1 -0
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +528 -528
- package/build/components/Form/Form.stories.js +11 -2
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +14 -10
- package/build/components/InputDate/InputDate.js +21 -16
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.module.css +8 -6
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +597 -512
- package/build/components/InputOption/InputOption.js +2 -4
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.module.css +2 -16
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +1 -1
- package/build/components/InputSelect/InputSelect.js +23 -22
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +503 -495
- package/build/components/InputText/InputText.js +24 -21
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +14 -35
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +223 -191
- package/build/components/InputText/partials/InputText.Hint.js +33 -0
- package/build/components/InputText/partials/InputText.Hint.js.map +1 -0
- package/build/components/InputText/partials/InputText.IconState.js +33 -0
- package/build/components/InputText/partials/InputText.IconState.js.map +1 -0
- package/build/components/InputText/partials/InputText.Label.js +39 -0
- package/build/components/InputText/partials/InputText.Label.js.map +1 -0
- package/build/components/InputText/partials/index.js +39 -0
- package/build/components/InputText/partials/index.js.map +1 -0
- package/build/components/Menu/Menu.Option.js +6 -2
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.module.css +6 -3
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +93 -69
- package/build/components/Modal/Modal.js +1 -1
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +4 -4
- package/build/components/Table/Table.Row.js +5 -2
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.module.css +7 -2
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +1829 -669
- package/build/primitives/Text/Text.module.css +4 -4
- package/build/primitives/View/View.js +5 -2
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/View.module.css +11 -3
- package/build/primitives/View/View.stories.js +1 -0
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +8 -0
- package/build/theme/default.theme.css +1 -1
- package/build/theme/index.js +11 -0
- package/build/theme/index.js.map +1 -1
- package/build/theme/theme.constants.js +21 -1
- package/build/theme/theme.constants.js.map +1 -1
- package/build/theme/theme.js +23 -1
- package/build/theme/theme.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var _helpers = require("../../helpers");
|
|
|
10
10
|
var _primitives = require("../../primitives");
|
|
11
11
|
var _InputOption = require("./InputOption.constants");
|
|
12
12
|
var _InputOptionModule = _interopRequireDefault(require("./InputOption.module.css"));
|
|
13
|
-
var _excluded = ["checked", "disabled", "indeterminate", "label", "name", "
|
|
13
|
+
var _excluded = ["checked", "disabled", "indeterminate", "label", "name", "type", "value", "onChange"];
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
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; }
|
|
@@ -21,7 +21,6 @@ var InputOption = function InputOption(_ref) {
|
|
|
21
21
|
indeterminate = _ref.indeterminate,
|
|
22
22
|
label = _ref.label,
|
|
23
23
|
name = _ref.name,
|
|
24
|
-
reverse = _ref.reverse,
|
|
25
24
|
_ref$type = _ref.type,
|
|
26
25
|
type = _ref$type === void 0 ? _InputOption.CHECKBOX : _ref$type,
|
|
27
26
|
_ref$value = _ref.value,
|
|
@@ -35,7 +34,7 @@ var InputOption = function InputOption(_ref) {
|
|
|
35
34
|
};
|
|
36
35
|
return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, _extends({}, others, {
|
|
37
36
|
onPress: handleChange,
|
|
38
|
-
className: (0, _helpers.styles)(_InputOptionModule.default.inputOption,
|
|
37
|
+
className: (0, _helpers.styles)(_InputOptionModule.default.inputOption, others.className)
|
|
39
38
|
}), /*#__PURE__*/_react.default.createElement(Primitive, {
|
|
40
39
|
checked: checked || type === _InputOption.CHECKBOX && indeterminate,
|
|
41
40
|
disabled: disabled,
|
|
@@ -58,7 +57,6 @@ InputOption.propTypes = {
|
|
|
58
57
|
indeterminate: _propTypes.default.bool,
|
|
59
58
|
label: _propTypes.default.string,
|
|
60
59
|
name: _propTypes.default.string.isRequired,
|
|
61
|
-
reverse: _propTypes.default.bool,
|
|
62
60
|
type: _propTypes.default.oneOf([_InputOption.CHECKBOX, _InputOption.RADIO, _InputOption.SWITCH]),
|
|
63
61
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
64
62
|
onChange: _propTypes.default.func
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOption.js","names":["InputOption","checked","disabled","indeterminate","label","name","
|
|
1
|
+
{"version":3,"file":"InputOption.js","names":["InputOption","checked","disabled","indeterminate","label","name","type","CHECKBOX","value","onChange","others","Primitive","Checkbox","RADIO","Radio","Switch","handleChange","event","SWITCH","includes","styles","style","inputOption","className","ICON","CHECK","REMOVE","icon","undefined","displayName","propTypes","PropTypes","bool","string","isRequired","oneOf","oneOfType","func"],"sources":["../../../src/components/InputOption/InputOption.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Checkbox, Icon, ICON, Pressable, Radio, Switch, Text } from '../../primitives';\nimport { CHECKBOX, RADIO, SWITCH } from './InputOption.constants';\nimport style from './InputOption.module.css';\n\nconst InputOption = ({\n checked,\n disabled,\n indeterminate,\n label,\n name,\n type = CHECKBOX,\n value = '',\n onChange = () => {},\n ...others\n}) => {\n const Primitive = type === CHECKBOX ? Checkbox : type === RADIO ? Radio : Switch;\n\n const handleChange = (event) => {\n onChange([CHECKBOX, SWITCH].includes(type) ? !checked : value, event);\n };\n\n return (\n <Pressable {...others} onPress={handleChange} className={styles(style.inputOption, others.className)}>\n <Primitive\n checked={checked || (type === CHECKBOX && indeterminate)}\n disabled={disabled}\n name={name}\n type={type}\n value={value}\n >\n {type === CHECKBOX && (checked || indeterminate) ? (\n <Icon value={checked ? ICON.CHECK : ICON.REMOVE} className={style.icon} />\n ) : undefined}\n </Primitive>\n {label && (\n <Text action className={styles(style.label, disabled && style.disabled)}>\n {label}\n </Text>\n )}\n </Pressable>\n );\n};\n\nInputOption.displayName = 'Component:InputOption';\n\nInputOption.propTypes = {\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n indeterminate: PropTypes.bool,\n label: PropTypes.string,\n name: PropTypes.string.isRequired,\n type: PropTypes.oneOf([CHECKBOX, RADIO, SWITCH]),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n onChange: PropTypes.func,\n};\n\nexport { InputOption };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAA6C;AAAA;AAAA;AAAA;AAAA;AAE7C,IAAMA,WAAW,GAAG,SAAdA,WAAW,OAUX;EAAA,IATJC,OAAO,QAAPA,OAAO;IACPC,QAAQ,QAARA,QAAQ;IACRC,aAAa,QAAbA,aAAa;IACbC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IAAA,iBACJC,IAAI;IAAJA,IAAI,0BAAGC,qBAAQ;IAAA,kBACfC,KAAK;IAALA,KAAK,2BAAG,EAAE;IAAA,qBACVC,QAAQ;IAARA,QAAQ,8BAAG,YAAM,CAAC,CAAC;IAChBC,MAAM;EAET,IAAMC,SAAS,GAAGL,IAAI,KAAKC,qBAAQ,GAAGK,oBAAQ,GAAGN,IAAI,KAAKO,kBAAK,GAAGC,iBAAK,GAAGC,kBAAM;EAEhF,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAIC,KAAK,EAAK;IAC9BR,QAAQ,CAAC,CAACF,qBAAQ,EAAEW,mBAAM,CAAC,CAACC,QAAQ,CAACb,IAAI,CAAC,GAAG,CAACL,OAAO,GAAGO,KAAK,EAAES,KAAK,CAAC;EACvE,CAAC;EAED,oBACE,6BAAC,qBAAS,eAAKP,MAAM;IAAE,OAAO,EAAEM,YAAa;IAAC,SAAS,EAAE,IAAAI,eAAM,EAACC,0BAAK,CAACC,WAAW,EAAEZ,MAAM,CAACa,SAAS;EAAE,iBACnG,6BAAC,SAAS;IACR,OAAO,EAAEtB,OAAO,IAAKK,IAAI,KAAKC,qBAAQ,IAAIJ,aAAe;IACzD,QAAQ,EAAED,QAAS;IACnB,IAAI,EAAEG,IAAK;IACX,IAAI,EAAEC,IAAK;IACX,KAAK,EAAEE;EAAM,GAEZF,IAAI,KAAKC,qBAAQ,KAAKN,OAAO,IAAIE,aAAa,CAAC,gBAC9C,6BAAC,gBAAI;IAAC,KAAK,EAAEF,OAAO,GAAGuB,gBAAI,CAACC,KAAK,GAAGD,gBAAI,CAACE,MAAO;IAAC,SAAS,EAAEL,0BAAK,CAACM;EAAK,EAAG,GACxEC,SAAS,CACH,EACXxB,KAAK,iBACJ,6BAAC,gBAAI;IAAC,MAAM;IAAC,SAAS,EAAE,IAAAgB,eAAM,EAACC,0BAAK,CAACjB,KAAK,EAAEF,QAAQ,IAAImB,0BAAK,CAACnB,QAAQ;EAAE,GACrEE,KAAK,CAET,CACS;AAEhB,CAAC;AAAC;AAEFJ,WAAW,CAAC6B,WAAW,GAAG,uBAAuB;AAEjD7B,WAAW,CAAC8B,SAAS,GAAG;EACtB7B,OAAO,EAAE8B,kBAAS,CAACC,IAAI;EACvB9B,QAAQ,EAAE6B,kBAAS,CAACC,IAAI;EACxB7B,aAAa,EAAE4B,kBAAS,CAACC,IAAI;EAC7B5B,KAAK,EAAE2B,kBAAS,CAACE,MAAM;EACvB5B,IAAI,EAAE0B,kBAAS,CAACE,MAAM,CAACC,UAAU;EACjC5B,IAAI,EAAEyB,kBAAS,CAACI,KAAK,CAAC,CAAC5B,qBAAQ,EAAEM,kBAAK,EAAEK,mBAAM,CAAC,CAAC;EAChDV,KAAK,EAAEuB,kBAAS,CAACK,SAAS,CAAC,CAACL,kBAAS,CAACE,MAAM,EAAEF,kBAAS,CAACC,IAAI,CAAC,CAAC;EAC9DvB,QAAQ,EAAEsB,kBAAS,CAACM;AACtB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
.inputOption {
|
|
2
2
|
align-items: center;
|
|
3
3
|
display: flex;
|
|
4
|
-
flex-direction: row;
|
|
4
|
+
flex-direction: var(--mirai-ui-row-direction);
|
|
5
5
|
margin-bottom: var(--mirai-ui-input-option-padding-y);
|
|
6
6
|
position: relative;
|
|
7
|
+
gap: var(--mirai-ui-input-option-label-margin);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.icon {
|
|
@@ -16,24 +17,9 @@
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.label {
|
|
19
|
-
margin-left: var(--mirai-ui-input-option-label-margin);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.label.disabled {
|
|
23
23
|
color: var(--mirai-ui-input-option-disabled);
|
|
24
24
|
cursor: default;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
.reverse {
|
|
28
|
-
flex-direction: row-reverse;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.reverse .icon {
|
|
32
|
-
left: auto;
|
|
33
|
-
right: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.reverse .label {
|
|
37
|
-
margin-left: 0;
|
|
38
|
-
margin-right: var(--mirai-ui-input-option-label-margin);
|
|
39
|
-
}
|
|
@@ -232,7 +232,7 @@ exports[`primitive:<InputOption> prop:label 1`] = `
|
|
|
232
232
|
exports[`primitive:<InputOption> prop:reverse + label 1`] = `
|
|
233
233
|
<DocumentFragment>
|
|
234
234
|
<div
|
|
235
|
-
class="pressable inputOption
|
|
235
|
+
class="pressable inputOption"
|
|
236
236
|
>
|
|
237
237
|
<div
|
|
238
238
|
class="checkbox"
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
12
|
var _InputTextModule = _interopRequireDefault(require("../InputText/InputText.module.css"));
|
|
13
|
+
var _partials = require("../InputText/partials");
|
|
13
14
|
var _excluded = ["disabled", "error", "hint", "label", "showState", "success", "warning", "onChange", "onEnter", "onLeave"];
|
|
14
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -68,35 +69,35 @@ var InputSelect = function InputSelect(_ref) {
|
|
|
68
69
|
}, /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
69
70
|
row: true,
|
|
70
71
|
className: (0, _helpers.styles)(_InputTextModule.default.inputBorder, disabled && _InputTextModule.default.disabled, focus && !error && _InputTextModule.default.focus, error && _InputTextModule.default.error)
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
73
|
+
wide: true,
|
|
74
|
+
className: _InputTextModule.default.content
|
|
75
|
+
}, label && /*#__PURE__*/_react.default.createElement(_partials.Label, {
|
|
76
|
+
disabled: disabled,
|
|
77
|
+
error: error,
|
|
78
|
+
focus: focus,
|
|
79
|
+
label: label,
|
|
80
|
+
value: others.value
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_primitives.Select, _extends({}, others, {
|
|
74
82
|
disabled: disabled,
|
|
75
83
|
value: others.value || '',
|
|
76
|
-
className: (0, _helpers.styles)(
|
|
77
|
-
//
|
|
78
|
-
_InputTextModule.default.input, _InputTextModule.default.iconRight, has.label && _InputTextModule.default.withLabel, !!label && !(focus || error || has.value) && _InputTextModule.default.empty),
|
|
84
|
+
className: (0, _helpers.styles)(_InputTextModule.default.input, has.label && _InputTextModule.default.withLabel, !!label && !(focus || error || has.value) && _InputTextModule.default.empty),
|
|
79
85
|
style: undefined,
|
|
80
86
|
onChange: handleChange,
|
|
81
87
|
onEnter: handleEnter,
|
|
82
88
|
onLeave: handleLeave
|
|
83
|
-
})),
|
|
84
|
-
row: true,
|
|
85
|
-
className: (0, _helpers.styles)(_InputTextModule.default.icons, _InputTextModule.default.select)
|
|
86
|
-
}, !disabled && /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
89
|
+
}))), !disabled && /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
87
90
|
value: _primitives.ICON.EXPAND_MORE,
|
|
88
|
-
className: _InputTextModule.default.icon
|
|
89
|
-
}), has.stateIcon && /*#__PURE__*/_react.default.createElement(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
className: (0, _helpers.styles)(_InputTextModule.default.text, _InputTextModule.default.hint, disabled && _InputTextModule.default.disabled, error && _InputTextModule.default.error)
|
|
99
|
-
}, hint));
|
|
91
|
+
className: (0, _helpers.styles)(_InputTextModule.default.icon, _InputTextModule.default.select)
|
|
92
|
+
}), has.stateIcon && /*#__PURE__*/_react.default.createElement(_partials.IconState, {
|
|
93
|
+
error: error,
|
|
94
|
+
success: success,
|
|
95
|
+
warning: warning
|
|
96
|
+
})), hint && /*#__PURE__*/_react.default.createElement(_partials.Hint, {
|
|
97
|
+
disabled: disabled,
|
|
98
|
+
error: error,
|
|
99
|
+
hint: hint
|
|
100
|
+
}));
|
|
100
101
|
};
|
|
101
102
|
exports.InputSelect = InputSelect;
|
|
102
103
|
InputSelect.displayName = 'Component:InputSelect';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputSelect.js","names":["InputSelect","disabled","error","hint","label","showState","success","warning","onChange","onEnter","onLeave","others","useState","focus","setFocus","handleChange","value","event","target","blur","handleEnter","handleLeave","has","undefined","length","stateIcon","styles","style","inputContainer","className","inputBorder","
|
|
1
|
+
{"version":3,"file":"InputSelect.js","names":["InputSelect","disabled","error","hint","label","showState","success","warning","onChange","onEnter","onLeave","others","useState","focus","setFocus","handleChange","value","event","target","blur","handleEnter","handleLeave","has","undefined","length","stateIcon","styles","style","inputContainer","className","inputBorder","content","input","withLabel","empty","ICON","EXPAND_MORE","icon","select","displayName","propTypes","PropTypes","bool","string","name","isRequired","func"],"sources":["../../../src/components/InputSelect/InputSelect.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, ICON, Select, View } from '../../primitives';\nimport style from '../InputText/InputText.module.css';\nimport { Hint, IconState, Label } from '../InputText/partials';\n\nconst InputSelect = ({\n disabled,\n error,\n hint,\n label,\n showState = true,\n success,\n warning,\n onChange = () => {},\n onEnter = () => {},\n onLeave = () => {},\n ...others\n}) => {\n const [focus, setFocus] = useState(false);\n\n const handleChange = (value, event) => {\n onChange(value, event);\n event.target?.blur();\n };\n\n const handleEnter = (event) => {\n setFocus(true);\n onEnter(event);\n };\n\n const handleLeave = (event) => {\n setFocus(false);\n onLeave(event);\n };\n\n const has = {\n label: !!label,\n value: others.value !== undefined && others.value?.length > 0,\n stateIcon: showState && (error || success || warning),\n };\n\n return (\n <View className={styles(style.inputContainer, others.className)} style={others.style}>\n <View\n row\n className={styles(\n style.inputBorder,\n disabled && style.disabled,\n focus && !error && style.focus,\n error && style.error,\n )}\n >\n <View wide className={style.content}>\n {label && <Label {...{ disabled, error, focus, label, value: others.value }} />}\n\n <Select\n {...others}\n disabled={disabled}\n value={others.value || ''}\n className={styles(\n style.input,\n has.label && style.withLabel,\n !!label && !(focus || error || has.value) && style.empty,\n )}\n style={undefined}\n onChange={handleChange}\n onEnter={handleEnter}\n onLeave={handleLeave}\n />\n </View>\n\n {!disabled && <Icon value={ICON.EXPAND_MORE} className={styles(style.icon, style.select)} />}\n {has.stateIcon && <IconState {...{ error, success, warning }} />}\n </View>\n\n {hint && <Hint {...{ disabled, error, hint }} />}\n </View>\n );\n};\n\nInputSelect.displayName = 'Component:InputSelect';\n\nInputSelect.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n hint: PropTypes.string,\n label: PropTypes.string,\n name: PropTypes.string.isRequired,\n showState: PropTypes.bool,\n success: PropTypes.bool,\n warning: PropTypes.bool,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { InputSelect };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAA+D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE/D,IAAMA,WAAW,GAAG,SAAdA,WAAW,OAYX;EAAA;EAAA,IAXJC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IACJC,KAAK,QAALA,KAAK;IAAA,sBACLC,SAAS;IAATA,SAAS,+BAAG,IAAI;IAChBC,OAAO,QAAPA,OAAO;IACPC,OAAO,QAAPA,OAAO;IAAA,qBACPC,QAAQ;IAARA,QAAQ,8BAAG,YAAM,CAAC,CAAC;IAAA,oBACnBC,OAAO;IAAPA,OAAO,6BAAG,YAAM,CAAC,CAAC;IAAA,oBAClBC,OAAO;IAAPA,OAAO,6BAAG,YAAM,CAAC,CAAC;IACfC,MAAM;EAET,gBAA0B,IAAAC,eAAQ,EAAC,KAAK,CAAC;IAAA;IAAlCC,KAAK;IAAEC,QAAQ;EAEtB,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAIC,KAAK,EAAEC,KAAK,EAAK;IAAA;IACrCT,QAAQ,CAACQ,KAAK,EAAEC,KAAK,CAAC;IACtB,iBAAAA,KAAK,CAACC,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