@app-studio/web 0.1.16 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StyleGuideWrapper.d.ts +1 -1
- package/dist/components/Button/Button/Button.props.d.ts +1 -1
- package/dist/components/Button/examples/AutoFocusButton.d.ts +2 -2
- package/dist/components/Button/examples/BorderedButtons.d.ts +2 -2
- package/dist/components/Button/examples/ColoredButtons.d.ts +2 -2
- package/dist/components/Button/examples/DefaultButton.d.ts +2 -2
- package/dist/components/Button/examples/DisabledButton.d.ts +2 -2
- package/dist/components/Button/examples/IconButtons.d.ts +2 -2
- package/dist/components/Button/examples/LoaderButtons.d.ts +2 -0
- package/dist/components/Button/examples/ShadowButton.d.ts +2 -2
- package/dist/components/Button/examples/SizeButtons.d.ts +2 -2
- package/dist/components/Button/examples/VariantButtons.d.ts +2 -2
- package/dist/components/Button/examples/index.d.ts +1 -1
- package/dist/components/Form/Checkbox/examples/ColorScheme.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/Default.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/DisabledInput.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/ErrorCheckbox.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/FormCheckout.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/IconCheckbox.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/IndeterminateCheckbox.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/Shadow.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/Checkbox/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Color.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Default.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Disabled.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Error.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Form.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Formik.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/HelperText.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Shadow.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Shape.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/CountryPicker/examples/Variant.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/ColorScheme.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/Default.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/DisabledInput.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/ErrorCheckbox.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/FormCheckout.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/Formik.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/Shadow.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/DatePicker/examples/helperTextDatePicker.d.ts +2 -2
- package/dist/components/Form/Password/example/Default.d.ts +2 -2
- package/dist/components/Form/Password/example/DisabledInput.d.ts +2 -2
- package/dist/components/Form/Password/example/ErrorInput.d.ts +2 -2
- package/dist/components/Form/Password/example/FormikErrorInput.d.ts +2 -2
- package/dist/components/Form/Password/example/FormikHelperText.d.ts +2 -2
- package/dist/components/Form/Password/example/HelperText.d.ts +2 -2
- package/dist/components/Form/Select/examples/Color.d.ts +2 -2
- package/dist/components/Form/Select/examples/Default.d.ts +2 -2
- package/dist/components/Form/Select/examples/Disabled.d.ts +2 -2
- package/dist/components/Form/Select/examples/Error.d.ts +2 -2
- package/dist/components/Form/Select/examples/Form.d.ts +2 -2
- package/dist/components/Form/Select/examples/Formik.d.ts +2 -2
- package/dist/components/Form/Select/examples/HelperText.d.ts +2 -2
- package/dist/components/Form/Select/examples/Multiple.d.ts +2 -2
- package/dist/components/Form/Select/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/Select/examples/Shadow.d.ts +2 -2
- package/dist/components/Form/Select/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/Select/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/Switch/examples/ChildSwitch.d.ts +2 -2
- package/dist/components/Form/Switch/examples/ColorScheme.d.ts +2 -2
- package/dist/components/Form/Switch/examples/Default.d.ts +2 -2
- package/dist/components/Form/Switch/examples/DisabledInput.d.ts +2 -2
- package/dist/components/Form/Switch/examples/FormSwitch.d.ts +2 -2
- package/dist/components/Form/Switch/examples/Formik.d.ts +2 -2
- package/dist/components/Form/Switch/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/Switch/examples/Shadow.d.ts +2 -2
- package/dist/components/Form/Switch/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/Switch/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/ColorScheme.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/Default.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/DisabledInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/ErrorInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/FormikErrorInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/FormikHelperText.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/HelperText.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/LabelInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/MaxRowCol.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/Placeholder.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/ShadowArea.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/ShapeInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/TextArea/examples/VariantsInputs.d.ts +2 -2
- package/dist/components/Form/TextField/examples/ClearInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/ColorScheme.d.ts +2 -2
- package/dist/components/Form/TextField/examples/Default.d.ts +2 -2
- package/dist/components/Form/TextField/examples/DisabledInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/ErrorInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/FormikErrorInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/FormikHelperText.d.ts +2 -2
- package/dist/components/Form/TextField/examples/HelperText.d.ts +2 -2
- package/dist/components/Form/TextField/examples/LabelInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/LeftChild.d.ts +2 -2
- package/dist/components/Form/TextField/examples/Placeholder.d.ts +2 -2
- package/dist/components/Form/TextField/examples/ReadOnlyInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/RightChild.d.ts +2 -2
- package/dist/components/Form/TextField/examples/ShapeInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/SizeInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/StylesInput.d.ts +2 -2
- package/dist/components/Form/TextField/examples/VariantsInputs.d.ts +2 -2
- package/dist/components/Layout/Horizontal/examples/Default.d.ts +2 -2
- package/dist/components/Layout/Horizontal/examples/Justify.d.ts +2 -2
- package/dist/components/Layout/Horizontal/examples/Reversed.d.ts +2 -2
- package/dist/components/Layout/Horizontal/examples/Wrap.d.ts +2 -2
- package/dist/components/Layout/Vertical/examples/Default.d.ts +2 -2
- package/dist/components/Layout/Vertical/examples/Justify.d.ts +2 -2
- package/dist/components/Layout/Vertical/examples/Reversed.d.ts +2 -2
- package/dist/components/Layout/Vertical/examples/Wrap.d.ts +2 -2
- package/dist/components/Link/examples/Default.d.ts +2 -2
- package/dist/components/Link/examples/IsExternal.d.ts +2 -2
- package/dist/components/Link/examples/Underline.d.ts +2 -2
- package/dist/components/Loader/Loader.d.ts +1 -1
- package/dist/components/Loader/examples/ColorLoader.d.ts +2 -2
- package/dist/components/Loader/examples/DefaultLoader.d.ts +2 -2
- package/dist/components/Loader/examples/PositionLoader.d.ts +2 -2
- package/dist/components/Loader/examples/SizeLoader.d.ts +2 -2
- package/dist/components/Loader/examples/SpeedLoader.d.ts +2 -2
- package/dist/components/Loader/examples/TextLoader.d.ts +2 -2
- package/dist/components/Loader/examples/VariantLoader.d.ts +2 -2
- package/dist/components/Modal/Examples/BlurModal.d.ts +2 -2
- package/dist/components/Modal/Examples/CloseButtonModal.d.ts +2 -2
- package/dist/components/Modal/Examples/DefaultModal.d.ts +2 -2
- package/dist/components/Modal/Examples/FullScreenModal.d.ts +2 -2
- package/dist/components/Modal/Examples/ModalPosition.d.ts +2 -2
- package/dist/components/Modal/Examples/PreventCloseModal.d.ts +2 -2
- package/dist/components/Modal/Examples/ScrollModal.d.ts +2 -2
- package/dist/components/Modal/Examples/ShadowModal.d.ts +2 -2
- package/dist/components/Modal/Examples/VariantModal.d.ts +2 -2
- package/dist/features.d.ts +2 -2
- package/dist/pages/button.page.d.ts +2 -2
- package/dist/pages/center.page.d.ts +2 -2
- package/dist/pages/checkbox.page.d.ts +2 -2
- package/dist/pages/components.page.d.ts +2 -2
- package/dist/pages/countryPicker.page.d.ts +2 -2
- package/dist/pages/datePicker.page.d.ts +2 -2
- package/dist/pages/home.page.d.ts +2 -2
- package/dist/pages/horizontal.page.d.ts +2 -2
- package/dist/pages/input.page.d.ts +2 -2
- package/dist/pages/link.page.d.ts +2 -2
- package/dist/pages/loader.page.d.ts +2 -2
- package/dist/pages/modal.page.d.ts +2 -2
- package/dist/pages/password.page.d.ts +2 -2
- package/dist/pages/select.page.d.ts +2 -2
- package/dist/pages/switch.page.d.ts +2 -2
- package/dist/pages/text.page.d.ts +2 -2
- package/dist/pages/textArea.page.d.ts +2 -2
- package/dist/pages/vertical.page.d.ts +2 -2
- package/dist/routes/routes.d.ts +2 -2
- package/dist/web.cjs.development.js +458 -458
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +459 -459
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -2
- package/dist/components/Button/examples/LoadingButtons.d.ts +0 -2
|
@@ -12,11 +12,11 @@ var reactRouterDom = require('react-router-dom');
|
|
|
12
12
|
require('core-js/modules/es6.array.map.js');
|
|
13
13
|
require('core-js/modules/es6.array.filter.js');
|
|
14
14
|
require('core-js/modules/es6.string.starts-with.js');
|
|
15
|
+
require('core-js/modules/es6.array.slice.js');
|
|
15
16
|
var format = _interopDefault(require('date-fns/format'));
|
|
16
17
|
require('core-js/modules/es6.string.includes.js');
|
|
17
18
|
require('core-js/modules/es7.array.includes.js');
|
|
18
19
|
var useModalStore = require('./store/useModalStore');
|
|
19
|
-
require('core-js/modules/es6.array.slice.js');
|
|
20
20
|
|
|
21
21
|
var useButtonState = function useButtonState() {
|
|
22
22
|
var _React$useState = React__default.useState(false),
|
|
@@ -51,11 +51,37 @@ var useLinkState = function useLinkState() {
|
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
var _excluded = ["children", "wrap"];
|
|
54
|
+
var _excluded = ["children", "wrap", "justify", "isReversed"];
|
|
55
|
+
var HorizontalView = function HorizontalView(_ref) {
|
|
56
|
+
var children = _ref.children,
|
|
57
|
+
_ref$wrap = _ref.wrap,
|
|
58
|
+
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
59
|
+
_ref$justify = _ref.justify,
|
|
60
|
+
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
61
|
+
_ref$isReversed = _ref.isReversed,
|
|
62
|
+
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
63
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
64
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
65
|
+
display: "flex",
|
|
66
|
+
flexWrap: wrap,
|
|
67
|
+
flexDirection: isReversed ? 'row-reverse' : 'row',
|
|
68
|
+
justifyContent: justify
|
|
69
|
+
}, props), children);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Horizontal layout aligns all the elements in a container on the horizontal axis.
|
|
74
|
+
*/
|
|
75
|
+
var HorizontalComponent = function HorizontalComponent(props) {
|
|
76
|
+
return /*#__PURE__*/React__default.createElement(HorizontalView, Object.assign({}, props));
|
|
77
|
+
};
|
|
78
|
+
var Horizontal = HorizontalComponent;
|
|
79
|
+
|
|
80
|
+
var _excluded$1 = ["children", "wrap"];
|
|
55
81
|
var CenterView = function CenterView(_ref) {
|
|
56
82
|
var children = _ref.children,
|
|
57
83
|
wrap = _ref.wrap,
|
|
58
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
84
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
59
85
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
60
86
|
display: "flex",
|
|
61
87
|
justifyContent: "center",
|
|
@@ -72,11 +98,11 @@ var CenterComponent = function CenterComponent(props) {
|
|
|
72
98
|
};
|
|
73
99
|
var Center = CenterComponent;
|
|
74
100
|
|
|
75
|
-
var _excluded$
|
|
101
|
+
var _excluded$2 = ["size", "color"];
|
|
76
102
|
var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
77
103
|
var _ref$size = _ref.size,
|
|
78
104
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
79
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
105
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
80
106
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
81
107
|
width: size + "px",
|
|
82
108
|
height: size + "px"
|
|
@@ -112,11 +138,11 @@ var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
|
112
138
|
})))))));
|
|
113
139
|
};
|
|
114
140
|
|
|
115
|
-
var _excluded$
|
|
141
|
+
var _excluded$3 = ["size", "color"];
|
|
116
142
|
var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
117
143
|
var _ref$size = _ref.size,
|
|
118
144
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
119
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
145
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
120
146
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
121
147
|
width: size + "px",
|
|
122
148
|
height: size + "px"
|
|
@@ -154,13 +180,13 @@ var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
|
154
180
|
})))))));
|
|
155
181
|
};
|
|
156
182
|
|
|
157
|
-
var _excluded$
|
|
183
|
+
var _excluded$4 = ["size", "color"];
|
|
158
184
|
var CheckSvg = function CheckSvg(_ref) {
|
|
159
185
|
var _ref$size = _ref.size,
|
|
160
186
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
161
187
|
_ref$color = _ref.color,
|
|
162
188
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
163
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
189
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
164
190
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
165
191
|
width: size + "px",
|
|
166
192
|
height: size + "px"
|
|
@@ -190,13 +216,13 @@ var CheckSvg = function CheckSvg(_ref) {
|
|
|
190
216
|
}))));
|
|
191
217
|
};
|
|
192
218
|
|
|
193
|
-
var _excluded$
|
|
219
|
+
var _excluded$5 = ["size", "color"];
|
|
194
220
|
var CloseSvg = function CloseSvg(_ref) {
|
|
195
221
|
var _ref$size = _ref.size,
|
|
196
222
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
197
223
|
_ref$color = _ref.color,
|
|
198
224
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
199
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
225
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
200
226
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
201
227
|
width: size + "px",
|
|
202
228
|
height: size + "px"
|
|
@@ -221,13 +247,13 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
221
247
|
}))));
|
|
222
248
|
};
|
|
223
249
|
|
|
224
|
-
var _excluded$
|
|
250
|
+
var _excluded$6 = ["size", "color"];
|
|
225
251
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
226
252
|
var _ref$size = _ref.size,
|
|
227
253
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
228
254
|
_ref$color = _ref.color,
|
|
229
255
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
230
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
256
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
231
257
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
232
258
|
width: size + "px",
|
|
233
259
|
height: size + "px"
|
|
@@ -256,13 +282,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
256
282
|
}))));
|
|
257
283
|
};
|
|
258
284
|
|
|
259
|
-
var _excluded$
|
|
285
|
+
var _excluded$7 = ["size", "color"];
|
|
260
286
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
261
287
|
var _ref$size = _ref.size,
|
|
262
288
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
263
289
|
_ref$color = _ref.color,
|
|
264
290
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
265
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
291
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
266
292
|
return /*#__PURE__*/React__default.createElement(Center, {
|
|
267
293
|
width: size + "px",
|
|
268
294
|
height: size + "px"
|
|
@@ -301,7 +327,7 @@ var IconSizes = {
|
|
|
301
327
|
'6xl': 64
|
|
302
328
|
};
|
|
303
329
|
|
|
304
|
-
var _excluded$
|
|
330
|
+
var _excluded$8 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
|
|
305
331
|
var LinkView = function LinkView(_ref) {
|
|
306
332
|
var children = _ref.children,
|
|
307
333
|
_ref$href = _ref.href,
|
|
@@ -323,7 +349,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
323
349
|
} : _ref$styles,
|
|
324
350
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
325
351
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
326
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
352
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
327
353
|
var handleHover = function handleHover() {
|
|
328
354
|
if (underline === 'hover') setIsHovered(true);
|
|
329
355
|
};
|
|
@@ -445,7 +471,7 @@ var IconSizes$1 = {
|
|
|
445
471
|
}
|
|
446
472
|
};
|
|
447
473
|
|
|
448
|
-
var _excluded$
|
|
474
|
+
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoader", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick"];
|
|
449
475
|
var ButtonView = function ButtonView(_ref) {
|
|
450
476
|
var _props$onClick;
|
|
451
477
|
var icon = _ref.icon,
|
|
@@ -459,8 +485,8 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
459
485
|
isFilled = _ref$isFilled === void 0 ? false : _ref$isFilled,
|
|
460
486
|
_ref$isIconRounded = _ref.isIconRounded,
|
|
461
487
|
isIconRounded = _ref$isIconRounded === void 0 ? false : _ref$isIconRounded,
|
|
462
|
-
_ref$
|
|
463
|
-
|
|
488
|
+
_ref$isLoader = _ref.isLoader,
|
|
489
|
+
isLoader = _ref$isLoader === void 0 ? false : _ref$isLoader,
|
|
464
490
|
_ref$isDisabled = _ref.isDisabled,
|
|
465
491
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
466
492
|
_ref$size = _ref.size,
|
|
@@ -475,8 +501,8 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
475
501
|
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape,
|
|
476
502
|
_ref$onClick = _ref.onClick,
|
|
477
503
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
478
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
479
|
-
var isActive = !(isDisabled ||
|
|
504
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
505
|
+
var isActive = !(isDisabled || isLoader);
|
|
480
506
|
var defaultNativeProps = {
|
|
481
507
|
disabled: !isActive
|
|
482
508
|
};
|
|
@@ -513,7 +539,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
513
539
|
var changePadding = {
|
|
514
540
|
padding: isIconRounded ? IconSizes$1[size].padding : ButtonSizes[size].padding
|
|
515
541
|
};
|
|
516
|
-
var content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon && iconPosition === 'left' && !
|
|
542
|
+
var content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon && iconPosition === 'left' && !isLoader && icon, children, icon && iconPosition === 'right' && !isLoader && icon);
|
|
517
543
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
518
544
|
gap: 8,
|
|
519
545
|
as: "button",
|
|
@@ -604,7 +630,7 @@ var HeadingSizes = {
|
|
|
604
630
|
}
|
|
605
631
|
};
|
|
606
632
|
|
|
607
|
-
var _excluded$
|
|
633
|
+
var _excluded$a = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
608
634
|
var LabelView = function LabelView(_ref) {
|
|
609
635
|
var children = _ref.children,
|
|
610
636
|
heading = _ref.heading,
|
|
@@ -618,7 +644,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
618
644
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
619
645
|
_ref$size = _ref.size,
|
|
620
646
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
621
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
647
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
622
648
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
623
649
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
624
650
|
as: "label",
|
|
@@ -690,7 +716,7 @@ var IconSizes$2 = {
|
|
|
690
716
|
'6xl': 60
|
|
691
717
|
};
|
|
692
718
|
|
|
693
|
-
var _excluded$
|
|
719
|
+
var _excluded$b = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
|
|
694
720
|
var CheckboxView = function CheckboxView(_ref) {
|
|
695
721
|
var id = _ref.id,
|
|
696
722
|
icon = _ref.icon,
|
|
@@ -725,7 +751,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
725
751
|
checkbox: {},
|
|
726
752
|
label: {}
|
|
727
753
|
} : _ref$styles,
|
|
728
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
754
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
729
755
|
var handleHover = function handleHover() {
|
|
730
756
|
return setIsHovered(!isHovered);
|
|
731
757
|
};
|
|
@@ -2269,7 +2295,7 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2269
2295
|
};
|
|
2270
2296
|
};
|
|
2271
2297
|
|
|
2272
|
-
var _excluded$
|
|
2298
|
+
var _excluded$c = ["children", "wrap", "justify", "isReversed"];
|
|
2273
2299
|
var VerticalView = function VerticalView(_ref) {
|
|
2274
2300
|
var children = _ref.children,
|
|
2275
2301
|
_ref$wrap = _ref.wrap,
|
|
@@ -2278,7 +2304,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2278
2304
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2279
2305
|
_ref$isReversed = _ref.isReversed,
|
|
2280
2306
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2281
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2307
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2282
2308
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
2283
2309
|
display: "flex",
|
|
2284
2310
|
flexWrap: wrap,
|
|
@@ -2295,7 +2321,127 @@ var VerticalComponent = function VerticalComponent(props) {
|
|
|
2295
2321
|
};
|
|
2296
2322
|
var Vertical = VerticalComponent;
|
|
2297
2323
|
|
|
2298
|
-
var
|
|
2324
|
+
var HeadingSizes$1 = {
|
|
2325
|
+
h1: {
|
|
2326
|
+
fontSize: 96,
|
|
2327
|
+
lineHeight: 112,
|
|
2328
|
+
letterSpacing: -1.5
|
|
2329
|
+
},
|
|
2330
|
+
h2: {
|
|
2331
|
+
fontSize: 60,
|
|
2332
|
+
lineHeight: 71,
|
|
2333
|
+
letterSpacing: -0.5
|
|
2334
|
+
},
|
|
2335
|
+
h3: {
|
|
2336
|
+
fontSize: 48,
|
|
2337
|
+
lineHeight: 57,
|
|
2338
|
+
letterSpacing: 0
|
|
2339
|
+
},
|
|
2340
|
+
h4: {
|
|
2341
|
+
fontSize: 34,
|
|
2342
|
+
lineHeight: 40,
|
|
2343
|
+
letterSpacing: 0.25
|
|
2344
|
+
},
|
|
2345
|
+
h5: {
|
|
2346
|
+
fontSize: 24,
|
|
2347
|
+
lineHeight: 28,
|
|
2348
|
+
letterSpacing: 0
|
|
2349
|
+
},
|
|
2350
|
+
h6: {
|
|
2351
|
+
fontSize: 20,
|
|
2352
|
+
lineHeight: 24,
|
|
2353
|
+
letterSpacing: 0.15
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
var _excluded$d = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2358
|
+
var TextContent = function TextContent(_ref) {
|
|
2359
|
+
var children = _ref.children,
|
|
2360
|
+
isSub = _ref.isSub,
|
|
2361
|
+
isSup = _ref.isSup;
|
|
2362
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, typeof children === 'string' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isSub && /*#__PURE__*/React__default.createElement("sup", null, children), isSup && /*#__PURE__*/React__default.createElement("sup", null, children), !isSub && !isSup && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children)) : children);
|
|
2363
|
+
};
|
|
2364
|
+
var TruncateText = function TruncateText(_ref2) {
|
|
2365
|
+
var text = _ref2.text,
|
|
2366
|
+
_ref2$maxLines = _ref2.maxLines,
|
|
2367
|
+
maxLines = _ref2$maxLines === void 0 ? 1 : _ref2$maxLines;
|
|
2368
|
+
var containerRef = React.useRef(null);
|
|
2369
|
+
var _useState = React.useState(text),
|
|
2370
|
+
content = _useState[0],
|
|
2371
|
+
setContent = _useState[1];
|
|
2372
|
+
React.useEffect(function () {
|
|
2373
|
+
var textContent = content;
|
|
2374
|
+
var textNode = containerRef.current;
|
|
2375
|
+
if (textNode) {
|
|
2376
|
+
var contentHeight = textNode.offsetHeight;
|
|
2377
|
+
var comLineHeight = getComputedStyle(textNode).lineHeight;
|
|
2378
|
+
var lineHeight = comLineHeight !== 'normal' ? parseFloat(comLineHeight) : 20;
|
|
2379
|
+
var maxHeight = Math.ceil(lineHeight * maxLines);
|
|
2380
|
+
if (contentHeight > maxHeight) {
|
|
2381
|
+
textContent = textContent.slice(0, -1);
|
|
2382
|
+
} else if (contentHeight === maxHeight) {
|
|
2383
|
+
if (content.length !== text.length) {
|
|
2384
|
+
textContent = textContent.slice(0, -3) + '...';
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
setContent(textContent);
|
|
2388
|
+
}
|
|
2389
|
+
}, [maxLines, text, containerRef, content]);
|
|
2390
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2391
|
+
ref: containerRef
|
|
2392
|
+
}, content);
|
|
2393
|
+
};
|
|
2394
|
+
var TextView = function TextView(_ref3) {
|
|
2395
|
+
var children = _ref3.children,
|
|
2396
|
+
heading = _ref3.heading,
|
|
2397
|
+
maxLines = _ref3.maxLines,
|
|
2398
|
+
_ref3$isItalic = _ref3.isItalic,
|
|
2399
|
+
isItalic = _ref3$isItalic === void 0 ? false : _ref3$isItalic,
|
|
2400
|
+
_ref3$isUnderlined = _ref3.isUnderlined,
|
|
2401
|
+
isUnderlined = _ref3$isUnderlined === void 0 ? false : _ref3$isUnderlined,
|
|
2402
|
+
_ref3$isSub = _ref3.isSub,
|
|
2403
|
+
isSub = _ref3$isSub === void 0 ? false : _ref3$isSub,
|
|
2404
|
+
_ref3$isSup = _ref3.isSup,
|
|
2405
|
+
isSup = _ref3$isSup === void 0 ? false : _ref3$isSup,
|
|
2406
|
+
_ref3$isStriked = _ref3.isStriked,
|
|
2407
|
+
isStriked = _ref3$isStriked === void 0 ? false : _ref3$isStriked,
|
|
2408
|
+
_ref3$isTruncated = _ref3.isTruncated,
|
|
2409
|
+
isTruncated = _ref3$isTruncated === void 0 ? false : _ref3$isTruncated,
|
|
2410
|
+
_ref3$weight = _ref3.weight,
|
|
2411
|
+
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2412
|
+
_ref3$size = _ref3.size,
|
|
2413
|
+
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2414
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$d);
|
|
2415
|
+
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2416
|
+
var noLineBreak = isSub || isSup ? {
|
|
2417
|
+
display: 'inline'
|
|
2418
|
+
} : {};
|
|
2419
|
+
var fontSize = appStudio.Typography.fontSizes[size];
|
|
2420
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
2421
|
+
role: "text",
|
|
2422
|
+
fontSize: fontSize,
|
|
2423
|
+
lineHeight: appStudio.Typography.lineHeights[size],
|
|
2424
|
+
fontStyle: isItalic ? 'italic' : 'normal',
|
|
2425
|
+
fontWeight: appStudio.Typography.fontWeights[weight],
|
|
2426
|
+
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
2427
|
+
}, noLineBreak, headingStyles, props), isTruncated && maxLines && typeof children === 'string' ? /*#__PURE__*/React__default.createElement(TruncateText, {
|
|
2428
|
+
text: children,
|
|
2429
|
+
maxLines: maxLines
|
|
2430
|
+
}) : /*#__PURE__*/React__default.createElement(TextContent, Object.assign({
|
|
2431
|
+
isSub: isSub,
|
|
2432
|
+
isSup: isSup
|
|
2433
|
+
}, props), children));
|
|
2434
|
+
};
|
|
2435
|
+
|
|
2436
|
+
var TextComponent = function TextComponent(props) {
|
|
2437
|
+
return /*#__PURE__*/React__default.createElement(TextView, Object.assign({}, props));
|
|
2438
|
+
};
|
|
2439
|
+
/**
|
|
2440
|
+
* The Text component is a simple component that renders a text string or paragraphs as a DOM element in the UI. It is a <p> tag by default.
|
|
2441
|
+
*/
|
|
2442
|
+
var Text = TextComponent;
|
|
2443
|
+
|
|
2444
|
+
var _excluded$e = ["children", "styles", "error"];
|
|
2299
2445
|
var HelperText = function HelperText(_ref) {
|
|
2300
2446
|
var children = _ref.children,
|
|
2301
2447
|
_ref$styles = _ref.styles,
|
|
@@ -2304,7 +2450,7 @@ var HelperText = function HelperText(_ref) {
|
|
|
2304
2450
|
} : _ref$styles,
|
|
2305
2451
|
_ref$error = _ref.error,
|
|
2306
2452
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2307
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2453
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2308
2454
|
return /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2309
2455
|
size: "xs",
|
|
2310
2456
|
marginVertical: 0,
|
|
@@ -2313,14 +2459,14 @@ var HelperText = function HelperText(_ref) {
|
|
|
2313
2459
|
}, styles['helperText'], props), children);
|
|
2314
2460
|
};
|
|
2315
2461
|
|
|
2316
|
-
var _excluded$
|
|
2462
|
+
var _excluded$f = ["children", "helperText", "error", "styles"];
|
|
2317
2463
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2318
2464
|
var children = _ref.children,
|
|
2319
2465
|
helperText = _ref.helperText,
|
|
2320
2466
|
_ref$error = _ref.error,
|
|
2321
2467
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2322
2468
|
styles = _ref.styles,
|
|
2323
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2469
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
2324
2470
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2325
2471
|
gap: 5,
|
|
2326
2472
|
position: "relative"
|
|
@@ -2378,33 +2524,7 @@ var PaddingWithoutLabel = {
|
|
|
2378
2524
|
paddingRight: 35
|
|
2379
2525
|
};
|
|
2380
2526
|
|
|
2381
|
-
var _excluded$
|
|
2382
|
-
var HorizontalView = function HorizontalView(_ref) {
|
|
2383
|
-
var children = _ref.children,
|
|
2384
|
-
_ref$wrap = _ref.wrap,
|
|
2385
|
-
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
2386
|
-
_ref$justify = _ref.justify,
|
|
2387
|
-
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2388
|
-
_ref$isReversed = _ref.isReversed,
|
|
2389
|
-
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2390
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2391
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
2392
|
-
display: "flex",
|
|
2393
|
-
flexWrap: wrap,
|
|
2394
|
-
flexDirection: isReversed ? 'row-reverse' : 'row',
|
|
2395
|
-
justifyContent: justify
|
|
2396
|
-
}, props), children);
|
|
2397
|
-
};
|
|
2398
|
-
|
|
2399
|
-
/**
|
|
2400
|
-
* Horizontal layout aligns all the elements in a container on the horizontal axis.
|
|
2401
|
-
*/
|
|
2402
|
-
var HorizontalComponent = function HorizontalComponent(props) {
|
|
2403
|
-
return /*#__PURE__*/React__default.createElement(HorizontalView, Object.assign({}, props));
|
|
2404
|
-
};
|
|
2405
|
-
var Horizontal = HorizontalComponent;
|
|
2406
|
-
|
|
2407
|
-
var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2527
|
+
var _excluded$g = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2408
2528
|
var FieldContent = function FieldContent(_ref) {
|
|
2409
2529
|
var shadow = _ref.shadow,
|
|
2410
2530
|
children = _ref.children,
|
|
@@ -2432,7 +2552,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2432
2552
|
styles = _ref$styles === void 0 ? {
|
|
2433
2553
|
pickerBox: {}
|
|
2434
2554
|
} : _ref$styles,
|
|
2435
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2555
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2436
2556
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2437
2557
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2438
2558
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -2452,10 +2572,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2452
2572
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2453
2573
|
};
|
|
2454
2574
|
|
|
2455
|
-
var _excluded$
|
|
2575
|
+
var _excluded$h = ["children"];
|
|
2456
2576
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2457
2577
|
var children = _ref.children,
|
|
2458
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2578
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2459
2579
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2460
2580
|
gap: 10,
|
|
2461
2581
|
top: "50%",
|
|
@@ -2467,7 +2587,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2467
2587
|
}, props), children);
|
|
2468
2588
|
};
|
|
2469
2589
|
|
|
2470
|
-
var _excluded$
|
|
2590
|
+
var _excluded$i = ["children", "size", "error", "color", "styles"];
|
|
2471
2591
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2472
2592
|
var children = _ref.children,
|
|
2473
2593
|
_ref$size = _ref.size,
|
|
@@ -2480,7 +2600,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2480
2600
|
styles = _ref$styles === void 0 ? {
|
|
2481
2601
|
label: {}
|
|
2482
2602
|
} : _ref$styles,
|
|
2483
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2603
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2484
2604
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
2485
2605
|
top: 4,
|
|
2486
2606
|
zIndex: 1000,
|
|
@@ -2493,10 +2613,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2493
2613
|
}, styles['label'], props), children);
|
|
2494
2614
|
};
|
|
2495
2615
|
|
|
2496
|
-
var _excluded$
|
|
2616
|
+
var _excluded$j = ["children"];
|
|
2497
2617
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2498
2618
|
var children = _ref.children,
|
|
2499
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2619
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2500
2620
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2501
2621
|
width: "100%"
|
|
2502
2622
|
}, props), children);
|
|
@@ -2510,7 +2630,7 @@ var IconSizes$3 = {
|
|
|
2510
2630
|
xl: 16
|
|
2511
2631
|
};
|
|
2512
2632
|
|
|
2513
|
-
var _excluded$
|
|
2633
|
+
var _excluded$k = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setSelected", "styles"];
|
|
2514
2634
|
var CountryList = function CountryList(props) {
|
|
2515
2635
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
2516
2636
|
as: "ul"
|
|
@@ -2650,7 +2770,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
2650
2770
|
helperText: {},
|
|
2651
2771
|
box: {}
|
|
2652
2772
|
} : _ref3$styles,
|
|
2653
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2773
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$k);
|
|
2654
2774
|
var _useTheme = appStudio.useTheme(),
|
|
2655
2775
|
getColor = _useTheme.getColor;
|
|
2656
2776
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -2788,7 +2908,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
2788
2908
|
};
|
|
2789
2909
|
};
|
|
2790
2910
|
|
|
2791
|
-
var _excluded$
|
|
2911
|
+
var _excluded$l = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
2792
2912
|
var DatePickerContent = function DatePickerContent(props) {
|
|
2793
2913
|
return /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
2794
2914
|
type: "date"
|
|
@@ -2836,7 +2956,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
2836
2956
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
2837
2957
|
onChange = _ref.onChange,
|
|
2838
2958
|
onChangeText = _ref.onChangeText,
|
|
2839
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2959
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2840
2960
|
var isWithLabel = !!(isFocused && label);
|
|
2841
2961
|
var handleHover = function handleHover() {
|
|
2842
2962
|
return setIsHovered(!isHovered);
|
|
@@ -2929,48 +3049,260 @@ var usePasswordState = function usePasswordState() {
|
|
|
2929
3049
|
};
|
|
2930
3050
|
};
|
|
2931
3051
|
|
|
2932
|
-
var
|
|
2933
|
-
var
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
*/
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
3052
|
+
var useTextFieldState = function useTextFieldState(_ref) {
|
|
3053
|
+
var label = _ref.label,
|
|
3054
|
+
placeholder = _ref.placeholder,
|
|
3055
|
+
value = _ref.value;
|
|
3056
|
+
var _useState = React.useState(label != null ? label : placeholder),
|
|
3057
|
+
hint = _useState[0],
|
|
3058
|
+
setHint = _useState[1];
|
|
3059
|
+
var _useState2 = React.useState(false),
|
|
3060
|
+
isFocused = _useState2[0],
|
|
3061
|
+
setIsFocused = _useState2[1];
|
|
3062
|
+
var _useState3 = React.useState(false),
|
|
3063
|
+
isHovered = _useState3[0],
|
|
3064
|
+
setIsHovered = _useState3[1];
|
|
3065
|
+
var _useState4 = React.useState(value || ''),
|
|
3066
|
+
inputValue = _useState4[0],
|
|
3067
|
+
setInputValue = _useState4[1];
|
|
3068
|
+
return {
|
|
3069
|
+
hint: hint,
|
|
3070
|
+
setHint: setHint,
|
|
3071
|
+
isFocused: isFocused,
|
|
3072
|
+
setIsFocused: setIsFocused,
|
|
3073
|
+
isHovered: isHovered,
|
|
3074
|
+
setIsHovered: setIsHovered,
|
|
3075
|
+
inputValue: inputValue,
|
|
3076
|
+
setInputValue: setInputValue
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
var _excluded$m = ["id", "name", "label", "value", "hint", "inputValue", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setInputValue", "onClick", "onFocus", "onBlur"];
|
|
3081
|
+
var TextFieldInput = function TextFieldInput(props) {
|
|
3082
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3083
|
+
type: "text"
|
|
3084
|
+
}, props));
|
|
3085
|
+
};
|
|
3086
|
+
var TextFieldView = function TextFieldView(_ref) {
|
|
3087
|
+
var id = _ref.id,
|
|
3088
|
+
name = _ref.name,
|
|
3089
|
+
label = _ref.label,
|
|
3090
|
+
hint = _ref.hint,
|
|
3091
|
+
inputValue = _ref.inputValue,
|
|
3092
|
+
onChange = _ref.onChange,
|
|
3093
|
+
leftChild = _ref.leftChild,
|
|
3094
|
+
rightChild = _ref.rightChild,
|
|
3095
|
+
helperText = _ref.helperText,
|
|
3096
|
+
placeholder = _ref.placeholder,
|
|
3097
|
+
onChangeText = _ref.onChangeText,
|
|
3098
|
+
_ref$shadow = _ref.shadow,
|
|
3099
|
+
shadow = _ref$shadow === void 0 ? {} : _ref$shadow,
|
|
3100
|
+
_ref$styles = _ref.styles,
|
|
3101
|
+
styles = _ref$styles === void 0 ? {
|
|
3102
|
+
box: {},
|
|
3103
|
+
field: {},
|
|
3104
|
+
label: {},
|
|
3105
|
+
helperText: {},
|
|
3106
|
+
text: {}
|
|
3107
|
+
} : _ref$styles,
|
|
3108
|
+
_ref$size = _ref.size,
|
|
3109
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3110
|
+
_ref$shape = _ref.shape,
|
|
3111
|
+
shape = _ref$shape === void 0 ? 'default' : _ref$shape,
|
|
3112
|
+
_ref$variant = _ref.variant,
|
|
3113
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
3114
|
+
_ref$colorScheme = _ref.colorScheme,
|
|
3115
|
+
colorScheme = _ref$colorScheme === void 0 ? 'theme.primary' : _ref$colorScheme,
|
|
3116
|
+
_ref$error = _ref.error,
|
|
3117
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
3118
|
+
_ref$isFocused = _ref.isFocused,
|
|
3119
|
+
isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused,
|
|
3120
|
+
_ref$isHovered = _ref.isHovered,
|
|
3121
|
+
isHovered = _ref$isHovered === void 0 ? false : _ref$isHovered,
|
|
3122
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
3123
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3124
|
+
_ref$isReadOnly = _ref.isReadOnly,
|
|
3125
|
+
isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly,
|
|
3126
|
+
_ref$isClearable = _ref.isClearable,
|
|
3127
|
+
isClearable = _ref$isClearable === void 0 ? true : _ref$isClearable,
|
|
3128
|
+
_ref$isAutoFocus = _ref.isAutoFocus,
|
|
3129
|
+
isAutoFocus = _ref$isAutoFocus === void 0 ? false : _ref$isAutoFocus,
|
|
3130
|
+
_ref$setHint = _ref.setHint,
|
|
3131
|
+
setHint = _ref$setHint === void 0 ? function () {} : _ref$setHint,
|
|
3132
|
+
_ref$setIsFocused = _ref.setIsFocused,
|
|
3133
|
+
setIsFocused = _ref$setIsFocused === void 0 ? function () {} : _ref$setIsFocused,
|
|
3134
|
+
_ref$setIsHovered = _ref.setIsHovered,
|
|
3135
|
+
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3136
|
+
_ref$setInputValue = _ref.setInputValue,
|
|
3137
|
+
setInputValue = _ref$setInputValue === void 0 ? function () {} : _ref$setInputValue,
|
|
3138
|
+
onFocus = _ref.onFocus,
|
|
3139
|
+
_ref$onBlur = _ref.onBlur,
|
|
3140
|
+
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3141
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
3142
|
+
var _useTheme = appStudio.useTheme(),
|
|
3143
|
+
getColor = _useTheme.getColor;
|
|
3144
|
+
var IconColor = getColor('color.blueGray.700');
|
|
3145
|
+
var isWithLabel = !!(isFocused && label);
|
|
3146
|
+
React.useMemo(function () {
|
|
3147
|
+
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
3148
|
+
}, [inputValue, isFocused, label, placeholder]);
|
|
3149
|
+
var fieldStyles = Object.assign({
|
|
3150
|
+
margin: 0,
|
|
3151
|
+
paddingVertical: 8,
|
|
3152
|
+
padddingHorizontal: 0,
|
|
3153
|
+
width: '100%',
|
|
3154
|
+
heigth: '100%',
|
|
3155
|
+
border: 'none',
|
|
3156
|
+
on: {
|
|
3157
|
+
focus: {
|
|
3158
|
+
outline: 'none'
|
|
3159
|
+
}
|
|
3160
|
+
},
|
|
3161
|
+
fontSize: appStudio.Typography.fontSizes[size],
|
|
3162
|
+
backgroundColor: 'transparent',
|
|
3163
|
+
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3164
|
+
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3165
|
+
}, styles['field']);
|
|
3166
|
+
var handleFocus = function handleFocus() {
|
|
3167
|
+
setIsFocused(true);
|
|
3168
|
+
if (onFocus) onFocus();
|
|
3169
|
+
};
|
|
3170
|
+
var handleHover = function handleHover() {
|
|
3171
|
+
return setIsHovered(!isHovered);
|
|
3172
|
+
};
|
|
3173
|
+
var handleBlur = function handleBlur(event) {
|
|
3174
|
+
onBlur(event);
|
|
3175
|
+
setIsFocused(false);
|
|
3176
|
+
};
|
|
3177
|
+
var handleChange = function handleChange(event) {
|
|
3178
|
+
if (typeof event === 'string') {
|
|
3179
|
+
//for ios and android
|
|
3180
|
+
setInputValue(event);
|
|
3181
|
+
if (onChangeText) onChangeText(event);
|
|
3182
|
+
} else {
|
|
3183
|
+
//Web
|
|
3184
|
+
setInputValue(event.target.value);
|
|
3185
|
+
if (onChange) onChange(event);
|
|
3186
|
+
}
|
|
3187
|
+
};
|
|
3188
|
+
var handleClear = function handleClear() {
|
|
3189
|
+
setInputValue('');
|
|
3190
|
+
//Web
|
|
3191
|
+
if (onChange) {
|
|
3192
|
+
onBlur({
|
|
3193
|
+
target: {
|
|
3194
|
+
name: name
|
|
3195
|
+
}
|
|
3196
|
+
});
|
|
3197
|
+
onChange({
|
|
3198
|
+
target: {
|
|
3199
|
+
name: name,
|
|
3200
|
+
value: ''
|
|
3201
|
+
}
|
|
3202
|
+
});
|
|
3203
|
+
}
|
|
3204
|
+
//for ios and android
|
|
3205
|
+
if (typeof document === 'undefined' && onChangeText) onChangeText('');
|
|
3206
|
+
};
|
|
3207
|
+
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
3208
|
+
helperText: helperText,
|
|
3209
|
+
error: error,
|
|
3210
|
+
styles: styles
|
|
3211
|
+
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3212
|
+
label: label,
|
|
3213
|
+
size: size,
|
|
3214
|
+
error: error,
|
|
3215
|
+
shape: shape,
|
|
3216
|
+
styles: styles,
|
|
3217
|
+
shadow: shadow,
|
|
3218
|
+
variant: variant,
|
|
3219
|
+
value: inputValue,
|
|
3220
|
+
color: colorScheme,
|
|
3221
|
+
isHovered: isHovered,
|
|
3222
|
+
isDisabled: isDisabled,
|
|
3223
|
+
isReadOnly: isReadOnly,
|
|
3224
|
+
isFocused: isFocused,
|
|
3225
|
+
isWithLabel: isWithLabel,
|
|
3226
|
+
colorScheme: colorScheme,
|
|
3227
|
+
onMouseEnter: handleHover,
|
|
3228
|
+
onMouseLeave: handleHover
|
|
3229
|
+
}, leftChild, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && /*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3230
|
+
htmlFor: id,
|
|
3231
|
+
color: colorScheme,
|
|
3232
|
+
error: error
|
|
3233
|
+
}, styles), label), /*#__PURE__*/React__default.createElement(TextFieldInput, Object.assign({
|
|
3234
|
+
id: id,
|
|
3235
|
+
name: name,
|
|
3236
|
+
value: inputValue,
|
|
3237
|
+
readOnly: isReadOnly,
|
|
3238
|
+
disabled: isDisabled,
|
|
3239
|
+
autoFocus: isAutoFocus,
|
|
3240
|
+
placeholder: hint,
|
|
3241
|
+
onFocus: handleFocus,
|
|
3242
|
+
onBlur: handleBlur,
|
|
3243
|
+
autoComplete: "off"
|
|
3244
|
+
}, fieldStyles, props, {
|
|
3245
|
+
onChange: handleChange
|
|
3246
|
+
}, onChangeText && {
|
|
3247
|
+
onChangeText: handleChange
|
|
3248
|
+
}))), (rightChild || isClearable && inputValue) && /*#__PURE__*/React__default.createElement(FieldIcons, null, rightChild && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, rightChild), isClearable && inputValue && !isReadOnly && !isDisabled && /*#__PURE__*/React__default.createElement(CloseSvg, {
|
|
3249
|
+
size: appStudio.Typography.fontSizes[size],
|
|
3250
|
+
color: IconColor,
|
|
3251
|
+
onClick: handleClear
|
|
3252
|
+
}))));
|
|
3253
|
+
};
|
|
3254
|
+
|
|
3255
|
+
var TextFieldComponent = function TextFieldComponent(props) {
|
|
3256
|
+
var textFieldStates = useTextFieldState(props);
|
|
3257
|
+
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, props));
|
|
3258
|
+
};
|
|
3259
|
+
/**
|
|
3260
|
+
* TextField is used to capture text data from users.
|
|
3261
|
+
*/
|
|
3262
|
+
var TextField = TextFieldComponent;
|
|
3263
|
+
|
|
3264
|
+
var _excluded$n = ["name", "visibleIcon", "hiddenIcon", "isDisabled", "isVisible", "setIsVisible"];
|
|
3265
|
+
var PasswordView = function PasswordView(_ref) {
|
|
3266
|
+
var name = _ref.name,
|
|
3267
|
+
visibleIcon = _ref.visibleIcon,
|
|
3268
|
+
hiddenIcon = _ref.hiddenIcon,
|
|
3269
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
3270
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3271
|
+
_ref$isVisible = _ref.isVisible,
|
|
3272
|
+
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3273
|
+
_ref$setIsVisible = _ref.setIsVisible,
|
|
3274
|
+
setIsVisible = _ref$setIsVisible === void 0 ? function () {} : _ref$setIsVisible,
|
|
3275
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
3276
|
+
return /*#__PURE__*/React__default.createElement(TextField, Object.assign({
|
|
3277
|
+
name: name,
|
|
3278
|
+
type: isVisible ? 'text' : 'password',
|
|
3279
|
+
rightChild: /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
3280
|
+
onClick: function onClick() {
|
|
3281
|
+
if (!isDisabled) setIsVisible(!isVisible);
|
|
3282
|
+
}
|
|
3283
|
+
}, isVisible ? visibleIcon : hiddenIcon),
|
|
3284
|
+
isClearable: false
|
|
3285
|
+
}, props));
|
|
3286
|
+
};
|
|
3287
|
+
|
|
3288
|
+
var PasswordComponent = function PasswordComponent(props) {
|
|
3289
|
+
var passwordState = usePasswordState();
|
|
3290
|
+
return /*#__PURE__*/React__default.createElement(PasswordView, Object.assign({}, passwordState, props));
|
|
3291
|
+
};
|
|
3292
|
+
/**
|
|
3293
|
+
* To allow users to securely enter sensitive information
|
|
3294
|
+
*/
|
|
3295
|
+
var Password = PasswordComponent;
|
|
3296
|
+
|
|
3297
|
+
var useSelectState = function useSelectState(_ref) {
|
|
3298
|
+
var placeholder = _ref.placeholder,
|
|
3299
|
+
isMulti = _ref.isMulti,
|
|
3300
|
+
options = _ref.options;
|
|
3301
|
+
var defaultSelected = placeholder ? isMulti ? [] : '' : options[0];
|
|
3302
|
+
var _React$useState = React__default.useState(true),
|
|
3303
|
+
hide = _React$useState[0],
|
|
3304
|
+
setHide = _React$useState[1];
|
|
3305
|
+
var _React$useState2 = React__default.useState(false),
|
|
2974
3306
|
isHovered = _React$useState2[0],
|
|
2975
3307
|
setIsHovered = _React$useState2[1];
|
|
2976
3308
|
var _React$useState3 = React__default.useState(false),
|
|
@@ -3008,7 +3340,7 @@ var IconSizes$4 = {
|
|
|
3008
3340
|
xl: 16
|
|
3009
3341
|
};
|
|
3010
3342
|
|
|
3011
|
-
var _excluded$
|
|
3343
|
+
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3012
3344
|
_excluded2 = ["id", "name", "selected", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3013
3345
|
_excluded3 = ["option", "size", "removeOption"],
|
|
3014
3346
|
_excluded4 = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setSelected", "setIsHovered", "setIsFocused"];
|
|
@@ -3020,7 +3352,7 @@ var Item = function Item(_ref) {
|
|
|
3020
3352
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3021
3353
|
_ref$callback = _ref.callback,
|
|
3022
3354
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3023
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3355
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3024
3356
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3025
3357
|
return callback(option);
|
|
3026
3358
|
};
|
|
@@ -3490,7 +3822,7 @@ var SliderPadding = {
|
|
|
3490
3822
|
}
|
|
3491
3823
|
};
|
|
3492
3824
|
|
|
3493
|
-
var _excluded$
|
|
3825
|
+
var _excluded$p = ["id", "name", "inActiveChild", "activeChild", "shadow", "size", "colorScheme", "on", "isHovered", "isChecked", "isDisabled", "isReadOnly", "onChange", "onValueChange", "setOn", "setIsHovered", "styles"];
|
|
3494
3826
|
var SwitchContent = function SwitchContent(props) {
|
|
3495
3827
|
return /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3496
3828
|
type: "checkbox"
|
|
@@ -3526,7 +3858,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
3526
3858
|
slider: {},
|
|
3527
3859
|
circle: {}
|
|
3528
3860
|
} : _ref$styles,
|
|
3529
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3861
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3530
3862
|
var handleToggle = function handleToggle(event) {
|
|
3531
3863
|
if (!isReadOnly) {
|
|
3532
3864
|
setOn(!on);
|
|
@@ -3602,7 +3934,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
3602
3934
|
};
|
|
3603
3935
|
};
|
|
3604
3936
|
|
|
3605
|
-
var _excluded$
|
|
3937
|
+
var _excluded$q = ["id", "name", "hint", "error", "value", "label", "shadow", "inputValue", "helperText", "placeholder", "defaultValue", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setInputValue", "setIsFocused", "setIsHovered", "styles"];
|
|
3606
3938
|
var TextAreaView = function TextAreaView(_ref) {
|
|
3607
3939
|
var id = _ref.id,
|
|
3608
3940
|
name = _ref.name,
|
|
@@ -3660,7 +3992,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
3660
3992
|
helperText: {},
|
|
3661
3993
|
field: {}
|
|
3662
3994
|
} : _ref$styles,
|
|
3663
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3995
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3664
3996
|
var isWithLabel = !!(isFocused && label);
|
|
3665
3997
|
React.useMemo(function () {
|
|
3666
3998
|
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
@@ -3759,218 +4091,6 @@ var TextAreaComponent = function TextAreaComponent(props) {
|
|
|
3759
4091
|
*/
|
|
3760
4092
|
var TextArea = TextAreaComponent;
|
|
3761
4093
|
|
|
3762
|
-
var useTextFieldState = function useTextFieldState(_ref) {
|
|
3763
|
-
var label = _ref.label,
|
|
3764
|
-
placeholder = _ref.placeholder,
|
|
3765
|
-
value = _ref.value;
|
|
3766
|
-
var _useState = React.useState(label != null ? label : placeholder),
|
|
3767
|
-
hint = _useState[0],
|
|
3768
|
-
setHint = _useState[1];
|
|
3769
|
-
var _useState2 = React.useState(false),
|
|
3770
|
-
isFocused = _useState2[0],
|
|
3771
|
-
setIsFocused = _useState2[1];
|
|
3772
|
-
var _useState3 = React.useState(false),
|
|
3773
|
-
isHovered = _useState3[0],
|
|
3774
|
-
setIsHovered = _useState3[1];
|
|
3775
|
-
var _useState4 = React.useState(value || ''),
|
|
3776
|
-
inputValue = _useState4[0],
|
|
3777
|
-
setInputValue = _useState4[1];
|
|
3778
|
-
return {
|
|
3779
|
-
hint: hint,
|
|
3780
|
-
setHint: setHint,
|
|
3781
|
-
isFocused: isFocused,
|
|
3782
|
-
setIsFocused: setIsFocused,
|
|
3783
|
-
isHovered: isHovered,
|
|
3784
|
-
setIsHovered: setIsHovered,
|
|
3785
|
-
inputValue: inputValue,
|
|
3786
|
-
setInputValue: setInputValue
|
|
3787
|
-
};
|
|
3788
|
-
};
|
|
3789
|
-
|
|
3790
|
-
var _excluded$p = ["id", "name", "label", "value", "hint", "inputValue", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setInputValue", "onClick", "onFocus", "onBlur"];
|
|
3791
|
-
var TextFieldInput = function TextFieldInput(props) {
|
|
3792
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3793
|
-
type: "text"
|
|
3794
|
-
}, props));
|
|
3795
|
-
};
|
|
3796
|
-
var TextFieldView = function TextFieldView(_ref) {
|
|
3797
|
-
var id = _ref.id,
|
|
3798
|
-
name = _ref.name,
|
|
3799
|
-
label = _ref.label,
|
|
3800
|
-
hint = _ref.hint,
|
|
3801
|
-
inputValue = _ref.inputValue,
|
|
3802
|
-
onChange = _ref.onChange,
|
|
3803
|
-
leftChild = _ref.leftChild,
|
|
3804
|
-
rightChild = _ref.rightChild,
|
|
3805
|
-
helperText = _ref.helperText,
|
|
3806
|
-
placeholder = _ref.placeholder,
|
|
3807
|
-
onChangeText = _ref.onChangeText,
|
|
3808
|
-
_ref$shadow = _ref.shadow,
|
|
3809
|
-
shadow = _ref$shadow === void 0 ? {} : _ref$shadow,
|
|
3810
|
-
_ref$styles = _ref.styles,
|
|
3811
|
-
styles = _ref$styles === void 0 ? {
|
|
3812
|
-
box: {},
|
|
3813
|
-
field: {},
|
|
3814
|
-
label: {},
|
|
3815
|
-
helperText: {},
|
|
3816
|
-
text: {}
|
|
3817
|
-
} : _ref$styles,
|
|
3818
|
-
_ref$size = _ref.size,
|
|
3819
|
-
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3820
|
-
_ref$shape = _ref.shape,
|
|
3821
|
-
shape = _ref$shape === void 0 ? 'default' : _ref$shape,
|
|
3822
|
-
_ref$variant = _ref.variant,
|
|
3823
|
-
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
3824
|
-
_ref$colorScheme = _ref.colorScheme,
|
|
3825
|
-
colorScheme = _ref$colorScheme === void 0 ? 'theme.primary' : _ref$colorScheme,
|
|
3826
|
-
_ref$error = _ref.error,
|
|
3827
|
-
error = _ref$error === void 0 ? false : _ref$error,
|
|
3828
|
-
_ref$isFocused = _ref.isFocused,
|
|
3829
|
-
isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused,
|
|
3830
|
-
_ref$isHovered = _ref.isHovered,
|
|
3831
|
-
isHovered = _ref$isHovered === void 0 ? false : _ref$isHovered,
|
|
3832
|
-
_ref$isDisabled = _ref.isDisabled,
|
|
3833
|
-
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3834
|
-
_ref$isReadOnly = _ref.isReadOnly,
|
|
3835
|
-
isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly,
|
|
3836
|
-
_ref$isClearable = _ref.isClearable,
|
|
3837
|
-
isClearable = _ref$isClearable === void 0 ? true : _ref$isClearable,
|
|
3838
|
-
_ref$isAutoFocus = _ref.isAutoFocus,
|
|
3839
|
-
isAutoFocus = _ref$isAutoFocus === void 0 ? false : _ref$isAutoFocus,
|
|
3840
|
-
_ref$setHint = _ref.setHint,
|
|
3841
|
-
setHint = _ref$setHint === void 0 ? function () {} : _ref$setHint,
|
|
3842
|
-
_ref$setIsFocused = _ref.setIsFocused,
|
|
3843
|
-
setIsFocused = _ref$setIsFocused === void 0 ? function () {} : _ref$setIsFocused,
|
|
3844
|
-
_ref$setIsHovered = _ref.setIsHovered,
|
|
3845
|
-
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3846
|
-
_ref$setInputValue = _ref.setInputValue,
|
|
3847
|
-
setInputValue = _ref$setInputValue === void 0 ? function () {} : _ref$setInputValue,
|
|
3848
|
-
onFocus = _ref.onFocus,
|
|
3849
|
-
_ref$onBlur = _ref.onBlur,
|
|
3850
|
-
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3851
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3852
|
-
var _useTheme = appStudio.useTheme(),
|
|
3853
|
-
getColor = _useTheme.getColor;
|
|
3854
|
-
var IconColor = getColor('color.blueGray.700');
|
|
3855
|
-
var isWithLabel = !!(isFocused && label);
|
|
3856
|
-
React.useMemo(function () {
|
|
3857
|
-
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
3858
|
-
}, [inputValue, isFocused, label, placeholder]);
|
|
3859
|
-
var fieldStyles = Object.assign({
|
|
3860
|
-
margin: 0,
|
|
3861
|
-
paddingVertical: 8,
|
|
3862
|
-
padddingHorizontal: 0,
|
|
3863
|
-
width: '100%',
|
|
3864
|
-
heigth: '100%',
|
|
3865
|
-
border: 'none',
|
|
3866
|
-
on: {
|
|
3867
|
-
focus: {
|
|
3868
|
-
outline: 'none'
|
|
3869
|
-
}
|
|
3870
|
-
},
|
|
3871
|
-
fontSize: appStudio.Typography.fontSizes[size],
|
|
3872
|
-
backgroundColor: 'transparent',
|
|
3873
|
-
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3874
|
-
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3875
|
-
}, styles['field']);
|
|
3876
|
-
var handleFocus = function handleFocus() {
|
|
3877
|
-
setIsFocused(true);
|
|
3878
|
-
if (onFocus) onFocus();
|
|
3879
|
-
};
|
|
3880
|
-
var handleHover = function handleHover() {
|
|
3881
|
-
return setIsHovered(!isHovered);
|
|
3882
|
-
};
|
|
3883
|
-
var handleBlur = function handleBlur(event) {
|
|
3884
|
-
onBlur(event);
|
|
3885
|
-
setIsFocused(false);
|
|
3886
|
-
};
|
|
3887
|
-
var handleChange = function handleChange(event) {
|
|
3888
|
-
if (typeof event === 'string') {
|
|
3889
|
-
//for ios and android
|
|
3890
|
-
setInputValue(event);
|
|
3891
|
-
if (onChangeText) onChangeText(event);
|
|
3892
|
-
} else {
|
|
3893
|
-
//Web
|
|
3894
|
-
setInputValue(event.target.value);
|
|
3895
|
-
if (onChange) onChange(event);
|
|
3896
|
-
}
|
|
3897
|
-
};
|
|
3898
|
-
var handleClear = function handleClear() {
|
|
3899
|
-
setInputValue('');
|
|
3900
|
-
//Web
|
|
3901
|
-
if (onChange) {
|
|
3902
|
-
onBlur({
|
|
3903
|
-
target: {
|
|
3904
|
-
name: name
|
|
3905
|
-
}
|
|
3906
|
-
});
|
|
3907
|
-
onChange({
|
|
3908
|
-
target: {
|
|
3909
|
-
name: name,
|
|
3910
|
-
value: ''
|
|
3911
|
-
}
|
|
3912
|
-
});
|
|
3913
|
-
}
|
|
3914
|
-
//for ios and android
|
|
3915
|
-
if (typeof document === 'undefined' && onChangeText) onChangeText('');
|
|
3916
|
-
};
|
|
3917
|
-
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
3918
|
-
helperText: helperText,
|
|
3919
|
-
error: error,
|
|
3920
|
-
styles: styles
|
|
3921
|
-
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3922
|
-
label: label,
|
|
3923
|
-
size: size,
|
|
3924
|
-
error: error,
|
|
3925
|
-
shape: shape,
|
|
3926
|
-
styles: styles,
|
|
3927
|
-
shadow: shadow,
|
|
3928
|
-
variant: variant,
|
|
3929
|
-
value: inputValue,
|
|
3930
|
-
color: colorScheme,
|
|
3931
|
-
isHovered: isHovered,
|
|
3932
|
-
isDisabled: isDisabled,
|
|
3933
|
-
isReadOnly: isReadOnly,
|
|
3934
|
-
isFocused: isFocused,
|
|
3935
|
-
isWithLabel: isWithLabel,
|
|
3936
|
-
colorScheme: colorScheme,
|
|
3937
|
-
onMouseEnter: handleHover,
|
|
3938
|
-
onMouseLeave: handleHover
|
|
3939
|
-
}, leftChild, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && /*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3940
|
-
htmlFor: id,
|
|
3941
|
-
color: colorScheme,
|
|
3942
|
-
error: error
|
|
3943
|
-
}, styles), label), /*#__PURE__*/React__default.createElement(TextFieldInput, Object.assign({
|
|
3944
|
-
id: id,
|
|
3945
|
-
name: name,
|
|
3946
|
-
value: inputValue,
|
|
3947
|
-
readOnly: isReadOnly,
|
|
3948
|
-
disabled: isDisabled,
|
|
3949
|
-
autoFocus: isAutoFocus,
|
|
3950
|
-
placeholder: hint,
|
|
3951
|
-
onFocus: handleFocus,
|
|
3952
|
-
onBlur: handleBlur,
|
|
3953
|
-
autoComplete: "off"
|
|
3954
|
-
}, fieldStyles, props, {
|
|
3955
|
-
onChange: handleChange
|
|
3956
|
-
}, onChangeText && {
|
|
3957
|
-
onChangeText: handleChange
|
|
3958
|
-
}))), (rightChild || isClearable && inputValue) && /*#__PURE__*/React__default.createElement(FieldIcons, null, rightChild && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, rightChild), isClearable && inputValue && !isReadOnly && !isDisabled && /*#__PURE__*/React__default.createElement(CloseSvg, {
|
|
3959
|
-
size: appStudio.Typography.fontSizes[size],
|
|
3960
|
-
color: IconColor,
|
|
3961
|
-
onClick: handleClear
|
|
3962
|
-
}))));
|
|
3963
|
-
};
|
|
3964
|
-
|
|
3965
|
-
var TextFieldComponent = function TextFieldComponent(props) {
|
|
3966
|
-
var textFieldStates = useTextFieldState(props);
|
|
3967
|
-
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, props));
|
|
3968
|
-
};
|
|
3969
|
-
/**
|
|
3970
|
-
* TextField is used to capture text data from users.
|
|
3971
|
-
*/
|
|
3972
|
-
var TextField = TextFieldComponent;
|
|
3973
|
-
|
|
3974
4094
|
var DefaultSizes = {
|
|
3975
4095
|
xs: 14,
|
|
3976
4096
|
sm: 18,
|
|
@@ -3989,7 +4109,7 @@ var DefaultSpeeds = {
|
|
|
3989
4109
|
slow: 300
|
|
3990
4110
|
};
|
|
3991
4111
|
|
|
3992
|
-
var _excluded$
|
|
4112
|
+
var _excluded$r = ["size", "speed", "color"],
|
|
3993
4113
|
_excluded2$1 = ["size", "speed", "color"],
|
|
3994
4114
|
_excluded3$1 = ["size", "speed", "color"],
|
|
3995
4115
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -4000,7 +4120,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
4000
4120
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
4001
4121
|
_ref$color = _ref.color,
|
|
4002
4122
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
4003
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4123
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
4004
4124
|
var theme = appStudio.useTheme();
|
|
4005
4125
|
var colorStyle = theme.getColor(color);
|
|
4006
4126
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -4166,13 +4286,13 @@ var LoaderView = function LoaderView(_ref4) {
|
|
|
4166
4286
|
}, children));
|
|
4167
4287
|
};
|
|
4168
4288
|
|
|
4169
|
-
var
|
|
4289
|
+
var LoaderComponent = function LoaderComponent(props) {
|
|
4170
4290
|
return /*#__PURE__*/React__default.createElement(LoaderView, Object.assign({}, props));
|
|
4171
4291
|
};
|
|
4172
4292
|
/**
|
|
4173
4293
|
* It gives the user an insight about an action being processed. It may have an undefined waiting time or display the process length.
|
|
4174
4294
|
*/
|
|
4175
|
-
var
|
|
4295
|
+
var Loader = LoaderComponent;
|
|
4176
4296
|
|
|
4177
4297
|
var ContainerShapes = {
|
|
4178
4298
|
sharp: {
|
|
@@ -4210,7 +4330,7 @@ var HeaderIconSizes = {
|
|
|
4210
4330
|
xl: 28
|
|
4211
4331
|
};
|
|
4212
4332
|
|
|
4213
|
-
var _excluded$
|
|
4333
|
+
var _excluded$s = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4214
4334
|
_excluded2$2 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4215
4335
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4216
4336
|
_excluded4$2 = ["children"],
|
|
@@ -4226,7 +4346,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4226
4346
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4227
4347
|
_ref$position = _ref.position,
|
|
4228
4348
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4229
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4349
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4230
4350
|
var setOpen = useModalStore.useModalStore(function (state) {
|
|
4231
4351
|
return state.setOpen;
|
|
4232
4352
|
});
|
|
@@ -4368,126 +4488,6 @@ Modal.Header = ModalHeader;
|
|
|
4368
4488
|
Modal.Body = ModalBody;
|
|
4369
4489
|
Modal.Footer = ModalFooter;
|
|
4370
4490
|
|
|
4371
|
-
var HeadingSizes$1 = {
|
|
4372
|
-
h1: {
|
|
4373
|
-
fontSize: 96,
|
|
4374
|
-
lineHeight: 112,
|
|
4375
|
-
letterSpacing: -1.5
|
|
4376
|
-
},
|
|
4377
|
-
h2: {
|
|
4378
|
-
fontSize: 60,
|
|
4379
|
-
lineHeight: 71,
|
|
4380
|
-
letterSpacing: -0.5
|
|
4381
|
-
},
|
|
4382
|
-
h3: {
|
|
4383
|
-
fontSize: 48,
|
|
4384
|
-
lineHeight: 57,
|
|
4385
|
-
letterSpacing: 0
|
|
4386
|
-
},
|
|
4387
|
-
h4: {
|
|
4388
|
-
fontSize: 34,
|
|
4389
|
-
lineHeight: 40,
|
|
4390
|
-
letterSpacing: 0.25
|
|
4391
|
-
},
|
|
4392
|
-
h5: {
|
|
4393
|
-
fontSize: 24,
|
|
4394
|
-
lineHeight: 28,
|
|
4395
|
-
letterSpacing: 0
|
|
4396
|
-
},
|
|
4397
|
-
h6: {
|
|
4398
|
-
fontSize: 20,
|
|
4399
|
-
lineHeight: 24,
|
|
4400
|
-
letterSpacing: 0.15
|
|
4401
|
-
}
|
|
4402
|
-
};
|
|
4403
|
-
|
|
4404
|
-
var _excluded$s = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
4405
|
-
var TextContent = function TextContent(_ref) {
|
|
4406
|
-
var children = _ref.children,
|
|
4407
|
-
isSub = _ref.isSub,
|
|
4408
|
-
isSup = _ref.isSup;
|
|
4409
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, typeof children === 'string' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isSub && /*#__PURE__*/React__default.createElement("sup", null, children), isSup && /*#__PURE__*/React__default.createElement("sup", null, children), !isSub && !isSup && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children)) : children);
|
|
4410
|
-
};
|
|
4411
|
-
var TruncateText = function TruncateText(_ref2) {
|
|
4412
|
-
var text = _ref2.text,
|
|
4413
|
-
_ref2$maxLines = _ref2.maxLines,
|
|
4414
|
-
maxLines = _ref2$maxLines === void 0 ? 1 : _ref2$maxLines;
|
|
4415
|
-
var containerRef = React.useRef(null);
|
|
4416
|
-
var _useState = React.useState(text),
|
|
4417
|
-
content = _useState[0],
|
|
4418
|
-
setContent = _useState[1];
|
|
4419
|
-
React.useEffect(function () {
|
|
4420
|
-
var textContent = content;
|
|
4421
|
-
var textNode = containerRef.current;
|
|
4422
|
-
if (textNode) {
|
|
4423
|
-
var contentHeight = textNode.offsetHeight;
|
|
4424
|
-
var comLineHeight = getComputedStyle(textNode).lineHeight;
|
|
4425
|
-
var lineHeight = comLineHeight !== 'normal' ? parseFloat(comLineHeight) : 20;
|
|
4426
|
-
var maxHeight = Math.ceil(lineHeight * maxLines);
|
|
4427
|
-
if (contentHeight > maxHeight) {
|
|
4428
|
-
textContent = textContent.slice(0, -1);
|
|
4429
|
-
} else if (contentHeight === maxHeight) {
|
|
4430
|
-
if (content.length !== text.length) {
|
|
4431
|
-
textContent = textContent.slice(0, -3) + '...';
|
|
4432
|
-
}
|
|
4433
|
-
}
|
|
4434
|
-
setContent(textContent);
|
|
4435
|
-
}
|
|
4436
|
-
}, [maxLines, text, containerRef, content]);
|
|
4437
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
4438
|
-
ref: containerRef
|
|
4439
|
-
}, content);
|
|
4440
|
-
};
|
|
4441
|
-
var TextView = function TextView(_ref3) {
|
|
4442
|
-
var children = _ref3.children,
|
|
4443
|
-
heading = _ref3.heading,
|
|
4444
|
-
maxLines = _ref3.maxLines,
|
|
4445
|
-
_ref3$isItalic = _ref3.isItalic,
|
|
4446
|
-
isItalic = _ref3$isItalic === void 0 ? false : _ref3$isItalic,
|
|
4447
|
-
_ref3$isUnderlined = _ref3.isUnderlined,
|
|
4448
|
-
isUnderlined = _ref3$isUnderlined === void 0 ? false : _ref3$isUnderlined,
|
|
4449
|
-
_ref3$isSub = _ref3.isSub,
|
|
4450
|
-
isSub = _ref3$isSub === void 0 ? false : _ref3$isSub,
|
|
4451
|
-
_ref3$isSup = _ref3.isSup,
|
|
4452
|
-
isSup = _ref3$isSup === void 0 ? false : _ref3$isSup,
|
|
4453
|
-
_ref3$isStriked = _ref3.isStriked,
|
|
4454
|
-
isStriked = _ref3$isStriked === void 0 ? false : _ref3$isStriked,
|
|
4455
|
-
_ref3$isTruncated = _ref3.isTruncated,
|
|
4456
|
-
isTruncated = _ref3$isTruncated === void 0 ? false : _ref3$isTruncated,
|
|
4457
|
-
_ref3$weight = _ref3.weight,
|
|
4458
|
-
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
4459
|
-
_ref3$size = _ref3.size,
|
|
4460
|
-
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
4461
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$s);
|
|
4462
|
-
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
4463
|
-
var noLineBreak = isSub || isSup ? {
|
|
4464
|
-
display: 'inline'
|
|
4465
|
-
} : {};
|
|
4466
|
-
var fontSize = appStudio.Typography.fontSizes[size];
|
|
4467
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
4468
|
-
role: "text",
|
|
4469
|
-
fontSize: fontSize,
|
|
4470
|
-
lineHeight: appStudio.Typography.lineHeights[size],
|
|
4471
|
-
fontStyle: isItalic ? 'italic' : 'normal',
|
|
4472
|
-
fontWeight: appStudio.Typography.fontWeights[weight],
|
|
4473
|
-
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
4474
|
-
}, noLineBreak, headingStyles, props), isTruncated && maxLines && typeof children === 'string' ? /*#__PURE__*/React__default.createElement(TruncateText, {
|
|
4475
|
-
text: children,
|
|
4476
|
-
maxLines: maxLines
|
|
4477
|
-
}) : /*#__PURE__*/React__default.createElement(TextContent, Object.assign({
|
|
4478
|
-
isSub: isSub,
|
|
4479
|
-
isSup: isSup
|
|
4480
|
-
}, props), children));
|
|
4481
|
-
};
|
|
4482
|
-
|
|
4483
|
-
var TextComponent = function TextComponent(props) {
|
|
4484
|
-
return /*#__PURE__*/React__default.createElement(TextView, Object.assign({}, props));
|
|
4485
|
-
};
|
|
4486
|
-
/**
|
|
4487
|
-
* The Text component is a simple component that renders a text string or paragraphs as a DOM element in the UI. It is a <p> tag by default.
|
|
4488
|
-
*/
|
|
4489
|
-
var Text = TextComponent;
|
|
4490
|
-
|
|
4491
4491
|
Object.defineProperty(exports, 'View', {
|
|
4492
4492
|
enumerable: true,
|
|
4493
4493
|
get: function () {
|
|
@@ -4501,7 +4501,7 @@ exports.CountryPicker = CountryPicker;
|
|
|
4501
4501
|
exports.DatePicker = DatePicker;
|
|
4502
4502
|
exports.Horizontal = Horizontal;
|
|
4503
4503
|
exports.Link = Link;
|
|
4504
|
-
exports.
|
|
4504
|
+
exports.Loader = Loader;
|
|
4505
4505
|
exports.Modal = Modal;
|
|
4506
4506
|
exports.Password = Password;
|
|
4507
4507
|
exports.Select = Select;
|