@mirai/ui 1.1.16 → 2.0.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/build/components/Action/Action.js +2 -5
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.stories.js +1 -1
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +42 -30
- package/build/components/Button/Button.js +4 -6
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +38 -27
- package/build/components/Calendar/Calendar.js +1 -1
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +5 -5
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +15576 -15544
- package/build/components/Form/Form.js +2 -5
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +14 -12
- package/build/components/InputDate/InputDate.js +1 -0
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +67 -42
- package/build/components/InputNumber/InputNumber.js +17 -4
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +198 -114
- package/build/components/InputOption/InputOption.js +6 -2
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +114 -75
- package/build/components/InputPhone/InputPhone.js +8 -1
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/InputPhone.module.css +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +448 -354
- package/build/components/InputSelect/InputSelect.js +10 -1
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +118 -112
- package/build/components/InputText/InputText.js +6 -2
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +160 -130
- package/build/components/InputText/partials/InputText.Label.js +1 -0
- package/build/components/InputText/partials/InputText.Label.js.map +1 -1
- package/build/components/Menu/Menu.js +1 -0
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +76 -55
- package/build/components/Modal/Modal.js +20 -6
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +106 -72
- package/build/components/Notification/Notification.js +1 -0
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +328 -288
- package/build/components/Progress/Progress.js +1 -0
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +31 -18
- package/build/components/Slider/Slider.js +3 -2
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/Slider.module.css +1 -1
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +475 -339
- package/build/components/Table/Table.js +2 -4
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +222 -192
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +878 -432
- package/build/components/Tooltip/Tooltip.js +3 -4
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +38 -28
- package/build/primitives/Checkbox/Checkbox.js +1 -0
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +35 -20
- package/build/primitives/Icon/Icon.js +1 -1
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +108 -82
- package/build/primitives/Layer/Layer.js +2 -1
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +60 -42
- package/build/primitives/Pressable/Pressable.constants.js +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +7 -6
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +16 -12
- package/build/primitives/Primitive/Primitive.constants.js +1 -1
- package/build/primitives/Primitive/Primitive.constants.js.map +1 -1
- package/build/primitives/Primitive/Primitive.js +2 -2
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +12 -12
- package/build/primitives/Primitive/helpers/getTag.js +35 -0
- package/build/primitives/Primitive/helpers/getTag.js.map +1 -0
- package/build/primitives/Primitive/helpers/index.js +11 -0
- package/build/primitives/Primitive/helpers/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +1 -1
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +39 -21
- package/build/primitives/ScrollView/ScrollView.js +2 -5
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +6 -5
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +24 -24
- package/build/primitives/Select/Select.js +7 -4
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +35 -0
- package/build/primitives/Switch/Switch.js +1 -1
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +60 -40
- package/build/primitives/Text/Text.js +4 -3
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +68 -68
- package/build/primitives/Text/helpers/parseMarkdown.js +3 -1
- package/build/primitives/Text/helpers/parseMarkdown.js.map +1 -1
- package/build/primitives/View/View.js +2 -5
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +15 -15
- package/package.json +1 -1
|
@@ -17,6 +17,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
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; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
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); }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
25
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
26
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
27
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -67,6 +72,7 @@ var InputSelect = function InputSelect(_ref) {
|
|
|
67
72
|
value: others.value !== undefined && ((_others$value = others.value) === null || _others$value === void 0 ? void 0 : _others$value.length) > 0,
|
|
68
73
|
stateIcon: showState && (error || success || warning)
|
|
69
74
|
};
|
|
75
|
+
var id = label ? others.id || others.name : others.id;
|
|
70
76
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
71
77
|
role: others.role || 'input-select',
|
|
72
78
|
className: (0, _helpers.styles)(_InputTextModule.default.inputContainer, others.className),
|
|
@@ -85,11 +91,14 @@ var InputSelect = function InputSelect(_ref) {
|
|
|
85
91
|
disabled: disabled,
|
|
86
92
|
error: error,
|
|
87
93
|
focus: focus,
|
|
94
|
+
for: id,
|
|
88
95
|
label: label,
|
|
89
96
|
required: showRequired && others.required,
|
|
90
97
|
value: others.value
|
|
91
|
-
}), /*#__PURE__*/_react.default.createElement(_primitives.Select, _extends({},
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement(_primitives.Select, _extends({}, _objectSpread({
|
|
92
99
|
disabled: disabled,
|
|
100
|
+
id: id
|
|
101
|
+
}, others), {
|
|
93
102
|
value: others.value || '',
|
|
94
103
|
className: (0, _helpers.styles)(_InputTextModule.default.input, has.label && _InputTextModule.default.withLabel, !!label && !(focus || error || has.value) && _InputTextModule.default.empty),
|
|
95
104
|
onChange: handleChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputSelect.js","names":["InputSelect","caption","disabled","error","hint","label","showRequired","showState","success","warning","onChange","onEnter","onLeave","others","useState","focus","setFocus","handleChange","value","event","target","blur","handleEnter","handleLeave","has","undefined","length","stateIcon","role","styles","style","inputContainer","className","inputBorder","content","required","input","withLabel","empty","displayName","propTypes","PropTypes","string","bool","
|
|
1
|
+
{"version":3,"file":"InputSelect.js","names":["InputSelect","caption","disabled","error","hint","label","showRequired","showState","success","warning","onChange","onEnter","onLeave","others","useState","focus","setFocus","handleChange","value","event","target","blur","handleEnter","handleLeave","has","undefined","length","stateIcon","id","name","role","styles","style","inputContainer","className","inputBorder","content","for","required","input","withLabel","empty","displayName","propTypes","PropTypes","string","bool","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 { Select, Text, View } from '../../primitives';\nimport style from '../InputText/InputText.module.css';\nimport { Hint, IconState, Label } from '../InputText/partials';\nimport { Expand } from './partials';\n\nconst InputSelect = ({\n caption,\n disabled,\n error,\n hint,\n label,\n showRequired = false,\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 const id = label ? others.id || others.name : others.id;\n\n return (\n <View\n role={others.role || 'input-select'}\n className={styles(style.inputContainer, others.className)}\n style={others.style}\n >\n <View\n row\n className={styles(style.inputBorder, disabled && style.disabled, focus && style.focus, error && style.error)}\n >\n {caption && (\n <Text action light className={style.caption}>\n {caption}\n </Text>\n )}\n\n <View wide className={style.content}>\n {label && (\n <Label\n {...{\n disabled,\n error,\n focus,\n for: id,\n label,\n required: showRequired && others.required,\n value: others.value,\n }}\n />\n )}\n\n <Select\n {...{ disabled, id, ...others }}\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 onChange={handleChange}\n onEnter={handleEnter}\n onLeave={handleLeave}\n />\n </View>\n\n {!disabled && <Expand />}\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 caption: PropTypes.string,\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n hint: PropTypes.string,\n label: PropTypes.string,\n name: PropTypes.string.isRequired,\n showRequired: PropTypes.bool,\n showState: PropTypes.bool,\n success: PropTypes.bool,\n warning: PropTypes.bool,\n onChange: Prop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ACjCzC,YAAY,EAAEsC,kBAAS,CAACE,IAAI;EAC5BvC,SAAS,EAAEqC,kBAAS,CAACE,IAAI;EACzBtC,OAAO,EAAEoC,kBAAS,CAACE,IAAI;EACvBrC,OAAO,EAAEmC,kBAAS,CAACE,IAAI;EACvBpC,QAAQ,EAAEkC,kBAAS,CAACI,IAAI;EACxBrC,OAAO,EAAEiC,kBAAS,CAACI,IAAI;EACvBpC,OAAO,EAAEgC,kBAAS,CAACI;AACrB,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`component:<InputSelect> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_view
|
|
6
6
|
class="view inputContainer mirai"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
8
|
+
<ui_view
|
|
9
9
|
class="view row inputBorder"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<ui_view
|
|
12
12
|
class="view wide content"
|
|
13
13
|
>
|
|
14
14
|
<select
|
|
@@ -41,8 +41,8 @@ exports[`component:<InputSelect> inherit:className 1`] = `
|
|
|
41
41
|
five
|
|
42
42
|
</option>
|
|
43
43
|
</select>
|
|
44
|
-
</
|
|
45
|
-
<
|
|
44
|
+
</ui_view>
|
|
45
|
+
<ui_icon
|
|
46
46
|
class="icon headline-3 icon expand"
|
|
47
47
|
>
|
|
48
48
|
<svg
|
|
@@ -63,26 +63,26 @@ exports[`component:<InputSelect> inherit:className 1`] = `
|
|
|
63
63
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
64
64
|
/>
|
|
65
65
|
</svg>
|
|
66
|
-
</
|
|
67
|
-
</
|
|
68
|
-
</
|
|
66
|
+
</ui_icon>
|
|
67
|
+
</ui_view>
|
|
68
|
+
</ui_view>
|
|
69
69
|
</DocumentFragment>
|
|
70
70
|
`;
|
|
71
71
|
|
|
72
72
|
exports[`component:<InputSelect> prop:caption 1`] = `
|
|
73
73
|
<DocumentFragment>
|
|
74
|
-
<
|
|
74
|
+
<ui_view
|
|
75
75
|
class="view inputContainer"
|
|
76
76
|
>
|
|
77
|
-
<
|
|
77
|
+
<ui_view
|
|
78
78
|
class="view row inputBorder"
|
|
79
79
|
>
|
|
80
|
-
<
|
|
80
|
+
<ui_text
|
|
81
81
|
class="text light action caption"
|
|
82
82
|
>
|
|
83
83
|
caption
|
|
84
|
-
</
|
|
85
|
-
<
|
|
84
|
+
</ui_text>
|
|
85
|
+
<ui_view
|
|
86
86
|
class="view wide content"
|
|
87
87
|
>
|
|
88
88
|
<select
|
|
@@ -115,8 +115,8 @@ exports[`component:<InputSelect> prop:caption 1`] = `
|
|
|
115
115
|
five
|
|
116
116
|
</option>
|
|
117
117
|
</select>
|
|
118
|
-
</
|
|
119
|
-
<
|
|
118
|
+
</ui_view>
|
|
119
|
+
<ui_icon
|
|
120
120
|
class="icon headline-3 icon expand"
|
|
121
121
|
>
|
|
122
122
|
<svg
|
|
@@ -137,21 +137,21 @@ exports[`component:<InputSelect> prop:caption 1`] = `
|
|
|
137
137
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
138
138
|
/>
|
|
139
139
|
</svg>
|
|
140
|
-
</
|
|
141
|
-
</
|
|
142
|
-
</
|
|
140
|
+
</ui_icon>
|
|
141
|
+
</ui_view>
|
|
142
|
+
</ui_view>
|
|
143
143
|
</DocumentFragment>
|
|
144
144
|
`;
|
|
145
145
|
|
|
146
146
|
exports[`component:<InputSelect> prop:disabled 1`] = `
|
|
147
147
|
<DocumentFragment>
|
|
148
|
-
<
|
|
148
|
+
<ui_view
|
|
149
149
|
class="view inputContainer"
|
|
150
150
|
>
|
|
151
|
-
<
|
|
151
|
+
<ui_view
|
|
152
152
|
class="view row inputBorder disabled"
|
|
153
153
|
>
|
|
154
|
-
<
|
|
154
|
+
<ui_view
|
|
155
155
|
class="view wide content"
|
|
156
156
|
>
|
|
157
157
|
<select
|
|
@@ -185,21 +185,21 @@ exports[`component:<InputSelect> prop:disabled 1`] = `
|
|
|
185
185
|
five
|
|
186
186
|
</option>
|
|
187
187
|
</select>
|
|
188
|
-
</
|
|
189
|
-
</
|
|
190
|
-
</
|
|
188
|
+
</ui_view>
|
|
189
|
+
</ui_view>
|
|
190
|
+
</ui_view>
|
|
191
191
|
</DocumentFragment>
|
|
192
192
|
`;
|
|
193
193
|
|
|
194
194
|
exports[`component:<InputSelect> prop:error 1`] = `
|
|
195
195
|
<DocumentFragment>
|
|
196
|
-
<
|
|
196
|
+
<ui_view
|
|
197
197
|
class="view inputContainer"
|
|
198
198
|
>
|
|
199
|
-
<
|
|
199
|
+
<ui_view
|
|
200
200
|
class="view row inputBorder"
|
|
201
201
|
>
|
|
202
|
-
<
|
|
202
|
+
<ui_view
|
|
203
203
|
class="view wide content"
|
|
204
204
|
>
|
|
205
205
|
<select
|
|
@@ -232,8 +232,8 @@ exports[`component:<InputSelect> prop:error 1`] = `
|
|
|
232
232
|
five
|
|
233
233
|
</option>
|
|
234
234
|
</select>
|
|
235
|
-
</
|
|
236
|
-
<
|
|
235
|
+
</ui_view>
|
|
236
|
+
<ui_icon
|
|
237
237
|
class="icon headline-3 icon expand"
|
|
238
238
|
>
|
|
239
239
|
<svg
|
|
@@ -254,21 +254,21 @@ exports[`component:<InputSelect> prop:error 1`] = `
|
|
|
254
254
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
255
255
|
/>
|
|
256
256
|
</svg>
|
|
257
|
-
</
|
|
258
|
-
</
|
|
259
|
-
</
|
|
257
|
+
</ui_icon>
|
|
258
|
+
</ui_view>
|
|
259
|
+
</ui_view>
|
|
260
260
|
</DocumentFragment>
|
|
261
261
|
`;
|
|
262
262
|
|
|
263
263
|
exports[`component:<InputSelect> prop:hint 1`] = `
|
|
264
264
|
<DocumentFragment>
|
|
265
|
-
<
|
|
265
|
+
<ui_view
|
|
266
266
|
class="view inputContainer"
|
|
267
267
|
>
|
|
268
|
-
<
|
|
268
|
+
<ui_view
|
|
269
269
|
class="view row inputBorder"
|
|
270
270
|
>
|
|
271
|
-
<
|
|
271
|
+
<ui_view
|
|
272
272
|
class="view wide content"
|
|
273
273
|
>
|
|
274
274
|
<select
|
|
@@ -301,8 +301,8 @@ exports[`component:<InputSelect> prop:hint 1`] = `
|
|
|
301
301
|
five
|
|
302
302
|
</option>
|
|
303
303
|
</select>
|
|
304
|
-
</
|
|
305
|
-
<
|
|
304
|
+
</ui_view>
|
|
305
|
+
<ui_icon
|
|
306
306
|
class="icon headline-3 icon expand"
|
|
307
307
|
>
|
|
308
308
|
<svg
|
|
@@ -323,35 +323,37 @@ exports[`component:<InputSelect> prop:hint 1`] = `
|
|
|
323
323
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
324
324
|
/>
|
|
325
325
|
</svg>
|
|
326
|
-
</
|
|
327
|
-
</
|
|
328
|
-
<
|
|
326
|
+
</ui_icon>
|
|
327
|
+
</ui_view>
|
|
328
|
+
<ui_text
|
|
329
329
|
class="text small text hint"
|
|
330
330
|
>
|
|
331
331
|
hint
|
|
332
|
-
</
|
|
333
|
-
</
|
|
332
|
+
</ui_text>
|
|
333
|
+
</ui_view>
|
|
334
334
|
</DocumentFragment>
|
|
335
335
|
`;
|
|
336
336
|
|
|
337
337
|
exports[`component:<InputSelect> prop:label 1`] = `
|
|
338
338
|
<DocumentFragment>
|
|
339
|
-
<
|
|
339
|
+
<ui_view
|
|
340
340
|
class="view inputContainer"
|
|
341
341
|
>
|
|
342
|
-
<
|
|
342
|
+
<ui_view
|
|
343
343
|
class="view row inputBorder"
|
|
344
344
|
>
|
|
345
|
-
<
|
|
345
|
+
<ui_view
|
|
346
346
|
class="view wide content"
|
|
347
347
|
>
|
|
348
|
-
<
|
|
348
|
+
<label
|
|
349
349
|
class="text paragraph text label"
|
|
350
|
+
for="name"
|
|
350
351
|
>
|
|
351
352
|
label
|
|
352
|
-
</
|
|
353
|
+
</label>
|
|
353
354
|
<select
|
|
354
355
|
class="select empty input withLabel empty"
|
|
356
|
+
id="name"
|
|
355
357
|
name="name"
|
|
356
358
|
>
|
|
357
359
|
<option
|
|
@@ -380,8 +382,8 @@ exports[`component:<InputSelect> prop:label 1`] = `
|
|
|
380
382
|
five
|
|
381
383
|
</option>
|
|
382
384
|
</select>
|
|
383
|
-
</
|
|
384
|
-
<
|
|
385
|
+
</ui_view>
|
|
386
|
+
<ui_icon
|
|
385
387
|
class="icon headline-3 icon expand"
|
|
386
388
|
>
|
|
387
389
|
<svg
|
|
@@ -402,25 +404,26 @@ exports[`component:<InputSelect> prop:label 1`] = `
|
|
|
402
404
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
403
405
|
/>
|
|
404
406
|
</svg>
|
|
405
|
-
</
|
|
406
|
-
</
|
|
407
|
-
</
|
|
407
|
+
</ui_icon>
|
|
408
|
+
</ui_view>
|
|
409
|
+
</ui_view>
|
|
408
410
|
</DocumentFragment>
|
|
409
411
|
`;
|
|
410
412
|
|
|
411
413
|
exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] = `
|
|
412
414
|
<DocumentFragment>
|
|
413
|
-
<
|
|
415
|
+
<ui_view
|
|
414
416
|
class="view inputContainer"
|
|
415
417
|
>
|
|
416
|
-
<
|
|
418
|
+
<ui_view
|
|
417
419
|
class="view row inputBorder"
|
|
418
420
|
>
|
|
419
|
-
<
|
|
421
|
+
<ui_view
|
|
420
422
|
class="view wide content"
|
|
421
423
|
>
|
|
422
|
-
<
|
|
424
|
+
<label
|
|
423
425
|
class="text paragraph text label"
|
|
426
|
+
for="name"
|
|
424
427
|
>
|
|
425
428
|
label
|
|
426
429
|
<span
|
|
@@ -428,9 +431,10 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
|
|
|
428
431
|
>
|
|
429
432
|
*
|
|
430
433
|
</span>
|
|
431
|
-
</
|
|
434
|
+
</label>
|
|
432
435
|
<select
|
|
433
436
|
class="select empty input withLabel empty"
|
|
437
|
+
id="name"
|
|
434
438
|
name="name"
|
|
435
439
|
required=""
|
|
436
440
|
>
|
|
@@ -460,8 +464,8 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
|
|
|
460
464
|
five
|
|
461
465
|
</option>
|
|
462
466
|
</select>
|
|
463
|
-
</
|
|
464
|
-
<
|
|
467
|
+
</ui_view>
|
|
468
|
+
<ui_icon
|
|
465
469
|
class="icon headline-3 icon expand"
|
|
466
470
|
>
|
|
467
471
|
<svg
|
|
@@ -482,30 +486,32 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
|
|
|
482
486
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
483
487
|
/>
|
|
484
488
|
</svg>
|
|
485
|
-
</
|
|
486
|
-
</
|
|
487
|
-
</
|
|
489
|
+
</ui_icon>
|
|
490
|
+
</ui_view>
|
|
491
|
+
</ui_view>
|
|
488
492
|
</DocumentFragment>
|
|
489
493
|
`;
|
|
490
494
|
|
|
491
495
|
exports[`component:<InputSelect> prop:required 1`] = `
|
|
492
496
|
<DocumentFragment>
|
|
493
|
-
<
|
|
497
|
+
<ui_view
|
|
494
498
|
class="view inputContainer"
|
|
495
499
|
>
|
|
496
|
-
<
|
|
500
|
+
<ui_view
|
|
497
501
|
class="view row inputBorder"
|
|
498
502
|
>
|
|
499
|
-
<
|
|
503
|
+
<ui_view
|
|
500
504
|
class="view wide content"
|
|
501
505
|
>
|
|
502
|
-
<
|
|
506
|
+
<label
|
|
503
507
|
class="text paragraph text label"
|
|
508
|
+
for="name"
|
|
504
509
|
>
|
|
505
510
|
label
|
|
506
|
-
</
|
|
511
|
+
</label>
|
|
507
512
|
<select
|
|
508
513
|
class="select empty input withLabel empty"
|
|
514
|
+
id="name"
|
|
509
515
|
name="name"
|
|
510
516
|
required=""
|
|
511
517
|
>
|
|
@@ -535,8 +541,8 @@ exports[`component:<InputSelect> prop:required 1`] = `
|
|
|
535
541
|
five
|
|
536
542
|
</option>
|
|
537
543
|
</select>
|
|
538
|
-
</
|
|
539
|
-
<
|
|
544
|
+
</ui_view>
|
|
545
|
+
<ui_icon
|
|
540
546
|
class="icon headline-3 icon expand"
|
|
541
547
|
>
|
|
542
548
|
<svg
|
|
@@ -557,21 +563,21 @@ exports[`component:<InputSelect> prop:required 1`] = `
|
|
|
557
563
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
558
564
|
/>
|
|
559
565
|
</svg>
|
|
560
|
-
</
|
|
561
|
-
</
|
|
562
|
-
</
|
|
566
|
+
</ui_icon>
|
|
567
|
+
</ui_view>
|
|
568
|
+
</ui_view>
|
|
563
569
|
</DocumentFragment>
|
|
564
570
|
`;
|
|
565
571
|
|
|
566
572
|
exports[`component:<InputSelect> prop:success 1`] = `
|
|
567
573
|
<DocumentFragment>
|
|
568
|
-
<
|
|
574
|
+
<ui_view
|
|
569
575
|
class="view inputContainer"
|
|
570
576
|
>
|
|
571
|
-
<
|
|
577
|
+
<ui_view
|
|
572
578
|
class="view row inputBorder disabled"
|
|
573
579
|
>
|
|
574
|
-
<
|
|
580
|
+
<ui_view
|
|
575
581
|
class="view wide content"
|
|
576
582
|
>
|
|
577
583
|
<select
|
|
@@ -605,21 +611,21 @@ exports[`component:<InputSelect> prop:success 1`] = `
|
|
|
605
611
|
five
|
|
606
612
|
</option>
|
|
607
613
|
</select>
|
|
608
|
-
</
|
|
609
|
-
</
|
|
610
|
-
</
|
|
614
|
+
</ui_view>
|
|
615
|
+
</ui_view>
|
|
616
|
+
</ui_view>
|
|
611
617
|
</DocumentFragment>
|
|
612
618
|
`;
|
|
613
619
|
|
|
614
620
|
exports[`component:<InputSelect> prop:value 1`] = `
|
|
615
621
|
<DocumentFragment>
|
|
616
|
-
<
|
|
622
|
+
<ui_view
|
|
617
623
|
class="view inputContainer"
|
|
618
624
|
>
|
|
619
|
-
<
|
|
625
|
+
<ui_view
|
|
620
626
|
class="view row inputBorder"
|
|
621
627
|
>
|
|
622
|
-
<
|
|
628
|
+
<ui_view
|
|
623
629
|
class="view wide content"
|
|
624
630
|
>
|
|
625
631
|
<select
|
|
@@ -652,8 +658,8 @@ exports[`component:<InputSelect> prop:value 1`] = `
|
|
|
652
658
|
five
|
|
653
659
|
</option>
|
|
654
660
|
</select>
|
|
655
|
-
</
|
|
656
|
-
<
|
|
661
|
+
</ui_view>
|
|
662
|
+
<ui_icon
|
|
657
663
|
class="icon headline-3 icon expand"
|
|
658
664
|
>
|
|
659
665
|
<svg
|
|
@@ -674,21 +680,21 @@ exports[`component:<InputSelect> prop:value 1`] = `
|
|
|
674
680
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
675
681
|
/>
|
|
676
682
|
</svg>
|
|
677
|
-
</
|
|
678
|
-
</
|
|
679
|
-
</
|
|
683
|
+
</ui_icon>
|
|
684
|
+
</ui_view>
|
|
685
|
+
</ui_view>
|
|
680
686
|
</DocumentFragment>
|
|
681
687
|
`;
|
|
682
688
|
|
|
683
689
|
exports[`component:<InputSelect> prop:warning 1`] = `
|
|
684
690
|
<DocumentFragment>
|
|
685
|
-
<
|
|
691
|
+
<ui_view
|
|
686
692
|
class="view inputContainer"
|
|
687
693
|
>
|
|
688
|
-
<
|
|
694
|
+
<ui_view
|
|
689
695
|
class="view row inputBorder"
|
|
690
696
|
>
|
|
691
|
-
<
|
|
697
|
+
<ui_view
|
|
692
698
|
class="view wide content"
|
|
693
699
|
>
|
|
694
700
|
<select
|
|
@@ -721,8 +727,8 @@ exports[`component:<InputSelect> prop:warning 1`] = `
|
|
|
721
727
|
five
|
|
722
728
|
</option>
|
|
723
729
|
</select>
|
|
724
|
-
</
|
|
725
|
-
<
|
|
730
|
+
</ui_view>
|
|
731
|
+
<ui_icon
|
|
726
732
|
class="icon headline-3 icon expand"
|
|
727
733
|
>
|
|
728
734
|
<svg
|
|
@@ -743,8 +749,8 @@ exports[`component:<InputSelect> prop:warning 1`] = `
|
|
|
743
749
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
744
750
|
/>
|
|
745
751
|
</svg>
|
|
746
|
-
</
|
|
747
|
-
<
|
|
752
|
+
</ui_icon>
|
|
753
|
+
<ui_icon
|
|
748
754
|
class="icon headline-3 icon warning"
|
|
749
755
|
>
|
|
750
756
|
<svg
|
|
@@ -760,21 +766,21 @@ exports[`component:<InputSelect> prop:warning 1`] = `
|
|
|
760
766
|
d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
761
767
|
/>
|
|
762
768
|
</svg>
|
|
763
|
-
</
|
|
764
|
-
</
|
|
765
|
-
</
|
|
769
|
+
</ui_icon>
|
|
770
|
+
</ui_view>
|
|
771
|
+
</ui_view>
|
|
766
772
|
</DocumentFragment>
|
|
767
773
|
`;
|
|
768
774
|
|
|
769
775
|
exports[`component:<InputSelect> renders 1`] = `
|
|
770
776
|
<DocumentFragment>
|
|
771
|
-
<
|
|
777
|
+
<ui_view
|
|
772
778
|
class="view inputContainer"
|
|
773
779
|
>
|
|
774
|
-
<
|
|
780
|
+
<ui_view
|
|
775
781
|
class="view row inputBorder"
|
|
776
782
|
>
|
|
777
|
-
<
|
|
783
|
+
<ui_view
|
|
778
784
|
class="view wide content"
|
|
779
785
|
>
|
|
780
786
|
<select
|
|
@@ -807,8 +813,8 @@ exports[`component:<InputSelect> renders 1`] = `
|
|
|
807
813
|
five
|
|
808
814
|
</option>
|
|
809
815
|
</select>
|
|
810
|
-
</
|
|
811
|
-
<
|
|
816
|
+
</ui_view>
|
|
817
|
+
<ui_icon
|
|
812
818
|
class="icon headline-3 icon expand"
|
|
813
819
|
>
|
|
814
820
|
<svg
|
|
@@ -829,21 +835,21 @@ exports[`component:<InputSelect> renders 1`] = `
|
|
|
829
835
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
830
836
|
/>
|
|
831
837
|
</svg>
|
|
832
|
-
</
|
|
833
|
-
</
|
|
834
|
-
</
|
|
838
|
+
</ui_icon>
|
|
839
|
+
</ui_view>
|
|
840
|
+
</ui_view>
|
|
835
841
|
</DocumentFragment>
|
|
836
842
|
`;
|
|
837
843
|
|
|
838
844
|
exports[`component:<InputSelect> testId 1`] = `
|
|
839
845
|
<DocumentFragment>
|
|
840
|
-
<
|
|
846
|
+
<ui_view
|
|
841
847
|
class="view inputContainer"
|
|
842
848
|
>
|
|
843
|
-
<
|
|
849
|
+
<ui_view
|
|
844
850
|
class="view row inputBorder"
|
|
845
851
|
>
|
|
846
|
-
<
|
|
852
|
+
<ui_view
|
|
847
853
|
class="view wide content"
|
|
848
854
|
>
|
|
849
855
|
<select
|
|
@@ -877,8 +883,8 @@ exports[`component:<InputSelect> testId 1`] = `
|
|
|
877
883
|
five
|
|
878
884
|
</option>
|
|
879
885
|
</select>
|
|
880
|
-
</
|
|
881
|
-
<
|
|
886
|
+
</ui_view>
|
|
887
|
+
<ui_icon
|
|
882
888
|
class="icon headline-3 icon expand"
|
|
883
889
|
>
|
|
884
890
|
<svg
|
|
@@ -899,8 +905,8 @@ exports[`component:<InputSelect> testId 1`] = `
|
|
|
899
905
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
900
906
|
/>
|
|
901
907
|
</svg>
|
|
902
|
-
</
|
|
903
|
-
</
|
|
904
|
-
</
|
|
908
|
+
</ui_icon>
|
|
909
|
+
</ui_view>
|
|
910
|
+
</ui_view>
|
|
905
911
|
</DocumentFragment>
|
|
906
912
|
`;
|
|
@@ -90,8 +90,10 @@ var InputText = function InputText(_ref) {
|
|
|
90
90
|
value: others.value !== undefined && (((_others$value = others.value) === null || _others$value === void 0 ? void 0 : _others$value.length) > 0 || typeof others.value === 'number'),
|
|
91
91
|
stateIcon: showState && (error || success || warning)
|
|
92
92
|
};
|
|
93
|
+
var id = label ? "input.".concat(others.id || others.name) : others.id;
|
|
93
94
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
94
95
|
role: others.role || 'input-text',
|
|
96
|
+
tag: others.tag || 'input_text',
|
|
95
97
|
className: (0, _helpers.styles)(_InputTextModule.default.inputContainer, others.className),
|
|
96
98
|
style: others.style
|
|
97
99
|
}, /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
@@ -111,13 +113,15 @@ var InputText = function InputText(_ref) {
|
|
|
111
113
|
disabled: disabled,
|
|
112
114
|
error: error,
|
|
113
115
|
focus: focus,
|
|
116
|
+
for: id,
|
|
114
117
|
label: label,
|
|
115
118
|
required: showRequired && others.required,
|
|
116
119
|
value: others.value
|
|
117
|
-
}), inputMode && /*#__PURE__*/_react.default.createElement(_primitives.Input, _extends({}, _objectSpread({
|
|
120
|
+
}), inputMode && /*#__PURE__*/_react.default.createElement(_primitives.Input, _extends({}, _objectSpread(_objectSpread({}, others), {}, {
|
|
118
121
|
disabled: disabled,
|
|
122
|
+
id: id,
|
|
119
123
|
multiLine: multiLine
|
|
120
|
-
}
|
|
124
|
+
}), {
|
|
121
125
|
type: !is.password || password ? type : 'text',
|
|
122
126
|
value: others.value !== undefined ? others.value : '',
|
|
123
127
|
className: (0, _helpers.styles)(_InputTextModule.default.input, has.label && _InputTextModule.default.withLabel, multiLine && _InputTextModule.default.multiLine),
|