@pingux/astro 1.2.0-alpha.9 → 1.3.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/CHANGELOG.md +81 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +35 -22
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +148 -169
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +25 -30
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +29 -14
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +8 -5
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +20 -17
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +2 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +20 -1
- package/lib/cjs/components/ArrayField/ArrayField.js +213 -0
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +223 -0
- package/lib/cjs/components/ArrayField/ArrayField.test.js +208 -0
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +61 -0
- package/lib/cjs/components/ArrayField/index.js +27 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +3 -3
- package/lib/cjs/components/Button/Button.js +14 -2
- package/lib/cjs/components/Button/Button.stories.js +33 -33
- package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -1
- package/lib/cjs/components/CodeView/CodeView.js +3 -3
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +5 -3
- package/lib/cjs/components/Input/Input.js +3 -11
- package/lib/cjs/components/Input/Input.test.js +14 -2
- package/lib/cjs/components/Link/Link.js +2 -1
- package/lib/cjs/components/ListView/ListView.js +9 -13
- package/lib/cjs/components/ListView/ListView.stories.js +3 -0
- package/lib/cjs/components/ListViewItem/ListViewItem.js +15 -3
- package/lib/cjs/components/Loader/Loader.stories.js +3 -3
- package/lib/cjs/components/Modal/Modal.js +3 -0
- package/lib/cjs/components/Modal/Modal.stories.js +12 -67
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +10 -2
- package/lib/cjs/components/NavBar/NavBar.js +30 -4
- package/lib/cjs/components/NavBar/NavBar.stories.js +70 -463
- package/lib/cjs/components/NavBar/NavBar.test.js +51 -1
- package/lib/cjs/components/NavBarSection/NavBarItem.js +137 -0
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +96 -0
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +98 -0
- package/lib/cjs/components/NavBarSection/NavBarSection.js +10 -8
- package/lib/cjs/components/NavBarSection/index.js +28 -1
- package/lib/cjs/components/NumberField/NumberField.js +30 -10
- package/lib/cjs/components/NumberField/NumberField.test.js +7 -0
- package/lib/cjs/components/PageHeader/PageHeader.js +3 -0
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +6 -1
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +9 -5
- package/lib/cjs/components/RockerButton/RockerButton.js +14 -22
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +5 -9
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -22
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +5 -14
- package/lib/cjs/components/SearchField/SearchField.stories.js +1 -15
- package/lib/cjs/components/SelectField/SelectField.stories.js +3 -55
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +8 -1
- package/lib/cjs/components/Tabs/Tabs.stories.js +1 -15
- package/lib/cjs/components/TextAreaField/TextAreaField.js +54 -9
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +31 -52
- package/lib/cjs/components/TextAreaField/TextAreaField.test.js +12 -0
- package/lib/cjs/context/AccordionGridContext/index.js +20 -0
- package/lib/cjs/context/NavBarContext/index.js +20 -0
- package/lib/cjs/hooks/index.js +9 -0
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +2 -1
- package/lib/cjs/hooks/useField/useField.js +7 -2
- package/lib/cjs/{components/AccordionGridGroup/AccordionGridContext.js → hooks/useNavBarPress/index.js} +7 -6
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +38 -0
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +42 -0
- package/lib/cjs/hooks/useRockerButton/useRockerButton.js +4 -6
- package/lib/cjs/index.js +80 -58
- package/lib/cjs/recipes/ConditionalFilter.stories.js +7 -3
- package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +1 -1
- package/lib/cjs/styles/forms/checkbox.js +0 -1
- package/lib/cjs/styles/forms/input.js +1 -1
- package/lib/cjs/styles/forms/label.js +3 -0
- package/lib/cjs/styles/forms/radio.js +1 -1
- package/lib/cjs/styles/forms/switch.js +3 -1
- package/lib/cjs/styles/variants/accordion.js +39 -7
- package/lib/cjs/styles/variants/boxes.js +14 -25
- package/lib/cjs/styles/variants/buttons.js +27 -1
- package/lib/cjs/styles/variants/codeView.js +91 -0
- package/lib/cjs/styles/variants/navBar.js +68 -0
- package/lib/cjs/styles/variants/separator.js +2 -1
- package/lib/cjs/styles/variants/text.js +3 -1
- package/lib/cjs/styles/variants/variants.js +3 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +35 -22
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +143 -166
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +24 -25
- package/lib/components/AccordionGridItem/AccordionGridItem.js +29 -15
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +8 -6
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +22 -18
- package/lib/components/AccordionGroup/AccordionGroup.js +2 -1
- package/lib/components/AccordionGroup/AccordionGroup.test.js +16 -2
- package/lib/components/ArrayField/ArrayField.js +179 -0
- package/lib/components/ArrayField/ArrayField.stories.js +196 -0
- package/lib/components/ArrayField/ArrayField.test.js +185 -0
- package/lib/components/ArrayField/ArrayFieldDeleteButton.js +43 -0
- package/lib/components/ArrayField/index.js +2 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +3 -3
- package/lib/components/Button/Button.js +15 -3
- package/lib/components/Button/Button.stories.js +17 -15
- package/lib/components/CheckboxField/CheckboxField.js +4 -1
- package/lib/components/CodeView/CodeView.js +2 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +5 -3
- package/lib/components/Input/Input.js +2 -10
- package/lib/components/Input/Input.test.js +11 -2
- package/lib/components/Link/Link.js +2 -1
- package/lib/components/ListView/ListView.js +9 -12
- package/lib/components/ListView/ListView.stories.js +3 -0
- package/lib/components/ListViewItem/ListViewItem.js +14 -3
- package/lib/components/Loader/Loader.stories.js +1 -1
- package/lib/components/Modal/Modal.js +4 -1
- package/lib/components/Modal/Modal.stories.js +11 -60
- package/lib/components/MultivaluesField/MultivaluesField.js +9 -2
- package/lib/components/NavBar/NavBar.js +25 -4
- package/lib/components/NavBar/NavBar.stories.js +71 -462
- package/lib/components/NavBar/NavBar.test.js +39 -2
- package/lib/components/NavBarSection/NavBarItem.js +111 -0
- package/lib/components/NavBarSection/NavBarItemButton.js +69 -0
- package/lib/components/NavBarSection/NavBarItemHeader.js +1 -1
- package/lib/components/NavBarSection/NavBarItemLink.js +71 -0
- package/lib/components/NavBarSection/NavBarSection.js +9 -8
- package/lib/components/NavBarSection/index.js +4 -1
- package/lib/components/NumberField/NumberField.js +32 -12
- package/lib/components/NumberField/NumberField.test.js +5 -0
- package/lib/components/PageHeader/PageHeader.js +2 -0
- package/lib/components/PageHeader/PageHeader.stories.js +5 -1
- package/lib/components/RadioGroupField/RadioGroupField.js +9 -5
- package/lib/components/RockerButton/RockerButton.js +14 -21
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +5 -9
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +2 -17
- package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +5 -11
- package/lib/components/SearchField/SearchField.stories.js +0 -11
- package/lib/components/SelectField/SelectField.stories.js +2 -50
- package/lib/components/SelectFieldBase/SelectFieldBase.js +8 -1
- package/lib/components/Tabs/Tabs.stories.js +0 -11
- package/lib/components/TextAreaField/TextAreaField.js +54 -10
- package/lib/components/TextAreaField/TextAreaField.stories.js +26 -42
- package/lib/components/TextAreaField/TextAreaField.test.js +13 -0
- package/lib/context/AccordionGridContext/index.js +5 -0
- package/lib/context/NavBarContext/index.js +5 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.js +2 -1
- package/lib/hooks/useField/useField.js +7 -2
- package/lib/hooks/useNavBarPress/index.js +1 -0
- package/lib/hooks/useNavBarPress/useNavBarPress.js +27 -0
- package/lib/hooks/useNavBarPress/useNavBarPress.test.js +36 -0
- package/lib/hooks/useRockerButton/useRockerButton.js +4 -6
- package/lib/index.js +2 -0
- package/lib/recipes/ConditionalFilter.stories.js +7 -3
- package/lib/recipes/RadioButtonsWithLinks.stories.js +1 -1
- package/lib/styles/forms/checkbox.js +0 -1
- package/lib/styles/forms/input.js +1 -1
- package/lib/styles/forms/label.js +3 -0
- package/lib/styles/forms/radio.js +1 -1
- package/lib/styles/forms/switch.js +3 -1
- package/lib/styles/variants/accordion.js +26 -5
- package/lib/styles/variants/boxes.js +14 -25
- package/lib/styles/variants/buttons.js +27 -1
- package/lib/styles/variants/codeView.js +91 -0
- package/lib/styles/variants/navBar.js +46 -0
- package/lib/styles/variants/separator.js +2 -1
- package/lib/styles/variants/text.js +3 -1
- package/lib/styles/variants/variants.js +2 -0
- package/package.json +4 -2
- package/lib/cjs/layouts/ListLayout.stories.js +0 -895
- package/lib/cjs/layouts/SchemaFormLayout.stories.js +0 -139
- package/lib/cjs/recipes/ArrayField.stories.js +0 -169
- package/lib/components/AccordionGridGroup/AccordionGridContext.js +0 -2
- package/lib/layouts/ListLayout.stories.js +0 -866
- package/lib/layouts/SchemaFormLayout.stories.js +0 -107
- package/lib/recipes/ArrayField.stories.js +0 -134
@@ -1,107 +0,0 @@
|
|
1
|
-
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
|
-
import React from 'react';
|
3
|
-
import Earth from 'mdi-react/EarthIcon';
|
4
|
-
import Cog from 'mdi-react/CogOutlineIcon';
|
5
|
-
import Button from '../components/Button/Button';
|
6
|
-
import Box from '../components/Box/Box';
|
7
|
-
import Icon from '../components/Icon/Icon';
|
8
|
-
import Text from '../components/Text/Text';
|
9
|
-
import Separator from '../components/Separator/Separator';
|
10
|
-
import TextField from '../components/TextField/TextField';
|
11
|
-
import TextAreaField from '../components/TextAreaField/TextAreaField';
|
12
|
-
import RadioGroupField from '../components/RadioGroupField/RadioGroupField';
|
13
|
-
import RadioField from '../components/RadioField/RadioField';
|
14
|
-
import Tabs from '../components/Tabs/Tabs';
|
15
|
-
import Tab from '../components/Tab/Tab';
|
16
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
17
|
-
export default {
|
18
|
-
title: 'Layouts/SchemaForms'
|
19
|
-
};
|
20
|
-
export var Default = function Default() {
|
21
|
-
var _React$useState = React.useState(true),
|
22
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
23
|
-
visible = _React$useState2[0],
|
24
|
-
setVisible = _React$useState2[1];
|
25
|
-
|
26
|
-
return ___EmotionJSX(Box, {
|
27
|
-
bg: "accent.99"
|
28
|
-
}, ___EmotionJSX(Separator, {
|
29
|
-
margin: "0"
|
30
|
-
}), ___EmotionJSX(Box, {
|
31
|
-
isRow: true,
|
32
|
-
p: "sm"
|
33
|
-
}, ___EmotionJSX(Box, {
|
34
|
-
isRow: true,
|
35
|
-
mr: "auto"
|
36
|
-
}, ___EmotionJSX(Box, {
|
37
|
-
mr: "sm"
|
38
|
-
}, ___EmotionJSX(Text, {
|
39
|
-
variant: "label"
|
40
|
-
}, "Form Builder"), ___EmotionJSX(Text, {
|
41
|
-
variant: "title"
|
42
|
-
}, "Standard Registration")), ___EmotionJSX(Button, {
|
43
|
-
variant: "inline",
|
44
|
-
alignContent: "center"
|
45
|
-
}, "Preview")), ___EmotionJSX(Box, {
|
46
|
-
isRow: true,
|
47
|
-
alignItem: "center"
|
48
|
-
}, ___EmotionJSX(Text, {
|
49
|
-
variant: "base",
|
50
|
-
mr: "lg",
|
51
|
-
color: "active",
|
52
|
-
alignSelf: "center"
|
53
|
-
}, "Cancel"), ___EmotionJSX(Button, {
|
54
|
-
bg: "active",
|
55
|
-
color: "white"
|
56
|
-
}, "Save and Close"))), ___EmotionJSX(Separator, {
|
57
|
-
margin: "0"
|
58
|
-
}), ___EmotionJSX(Box, {
|
59
|
-
isRow: true,
|
60
|
-
bg: "white"
|
61
|
-
}, ___EmotionJSX(Box, {
|
62
|
-
flexGrow: 1,
|
63
|
-
p: "md"
|
64
|
-
}, ___EmotionJSX(Box, {
|
65
|
-
onClick: function onClick() {
|
66
|
-
return !visible ? setVisible(!visible) : '';
|
67
|
-
}
|
68
|
-
}, ___EmotionJSX(Tabs, {
|
69
|
-
tabListProps: {
|
70
|
-
justifyContent: 'center'
|
71
|
-
}
|
72
|
-
}, ___EmotionJSX(Tab, {
|
73
|
-
key: "Tab 1",
|
74
|
-
title: "Tab 1",
|
75
|
-
icon: ___EmotionJSX(Icon, {
|
76
|
-
icon: Earth,
|
77
|
-
size: 20,
|
78
|
-
color: "active",
|
79
|
-
mb: 10
|
80
|
-
})
|
81
|
-
}), ___EmotionJSX(Tab, {
|
82
|
-
key: "Tab 2",
|
83
|
-
title: "Tab 2",
|
84
|
-
icon: ___EmotionJSX(Icon, {
|
85
|
-
icon: Cog,
|
86
|
-
size: 20,
|
87
|
-
color: "active",
|
88
|
-
mb: 10
|
89
|
-
})
|
90
|
-
})), ___EmotionJSX(TextField, {
|
91
|
-
mt: "lg",
|
92
|
-
mb: "lg",
|
93
|
-
label: "Form Name"
|
94
|
-
}), ___EmotionJSX(TextAreaField, {
|
95
|
-
mb: "lg",
|
96
|
-
label: "Description"
|
97
|
-
}), ___EmotionJSX(RadioGroupField, {
|
98
|
-
label: "Required Fields",
|
99
|
-
variant: "radioGroupBasic"
|
100
|
-
}, ___EmotionJSX(RadioField, {
|
101
|
-
value: "A",
|
102
|
-
label: "Option A"
|
103
|
-
}), ___EmotionJSX(RadioField, {
|
104
|
-
value: "B",
|
105
|
-
label: "Option B"
|
106
|
-
}))))));
|
107
|
-
};
|
@@ -1,134 +0,0 @@
|
|
1
|
-
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
2
|
-
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
3
|
-
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
4
|
-
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
5
|
-
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
6
|
-
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
7
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
8
|
-
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
9
|
-
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
10
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
11
|
-
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
12
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
13
|
-
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
14
|
-
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
15
|
-
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
17
|
-
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source), true)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context3; _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
19
|
-
|
20
|
-
import React, { useCallback, useState } from 'react';
|
21
|
-
import TrashIcon from 'mdi-react/TrashIcon';
|
22
|
-
import { v4 as uuid } from 'uuid';
|
23
|
-
import { Box, Button, Icon, Text, TextField, IconButton } from '../index';
|
24
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
25
|
-
export default {
|
26
|
-
title: 'Recipes/ArrayField'
|
27
|
-
};
|
28
|
-
export var Default = function Default() {
|
29
|
-
var createEmptyField = useCallback(function () {
|
30
|
-
return {
|
31
|
-
id: uuid(),
|
32
|
-
value: '',
|
33
|
-
'aria-label': 'array field input'
|
34
|
-
};
|
35
|
-
}, []);
|
36
|
-
|
37
|
-
var _useState = useState([createEmptyField()]),
|
38
|
-
_useState2 = _slicedToArray(_useState, 2),
|
39
|
-
fieldValues = _useState2[0],
|
40
|
-
setFieldValues = _useState2[1];
|
41
|
-
|
42
|
-
var mapArrayFieldWithNewValue = useCallback(function (arrValues, newValue, fieldId) {
|
43
|
-
return _mapInstanceProperty(arrValues).call(arrValues, function (fieldValue) {
|
44
|
-
if (fieldValue.id === fieldId) {
|
45
|
-
return _objectSpread(_objectSpread({}, fieldValue), {}, {
|
46
|
-
value: newValue
|
47
|
-
});
|
48
|
-
}
|
49
|
-
|
50
|
-
return fieldValue;
|
51
|
-
});
|
52
|
-
}, []);
|
53
|
-
var onFieldValueChange = useCallback(function (_ref, fieldId) {
|
54
|
-
var newValue = _ref.target.value;
|
55
|
-
setFieldValues(function (oldValues) {
|
56
|
-
return mapArrayFieldWithNewValue(oldValues, newValue, fieldId);
|
57
|
-
});
|
58
|
-
}, []);
|
59
|
-
var onFieldDelete = useCallback(function (fieldId) {
|
60
|
-
setFieldValues(function (oldValues) {
|
61
|
-
return _filterInstanceProperty(oldValues).call(oldValues, function (_ref2) {
|
62
|
-
var id = _ref2.id;
|
63
|
-
return id !== fieldId;
|
64
|
-
});
|
65
|
-
});
|
66
|
-
}, []);
|
67
|
-
var onFieldAdd = useCallback(function () {
|
68
|
-
setFieldValues(function (oldValues) {
|
69
|
-
var _context;
|
70
|
-
|
71
|
-
return _concatInstanceProperty(_context = []).call(_context, oldValues, [createEmptyField()]);
|
72
|
-
});
|
73
|
-
}, []);
|
74
|
-
|
75
|
-
var DeleteButton = function DeleteButton(_ref3) {
|
76
|
-
var id = _ref3.id;
|
77
|
-
return ___EmotionJSX(IconButton, {
|
78
|
-
onPress: function onPress() {
|
79
|
-
return onFieldDelete(id);
|
80
|
-
},
|
81
|
-
isDisabled: fieldValues.length === 1,
|
82
|
-
sx: {
|
83
|
-
position: 'absolute',
|
84
|
-
right: -30,
|
85
|
-
top: 5,
|
86
|
-
width: 'auto'
|
87
|
-
},
|
88
|
-
type: "delete",
|
89
|
-
title: "Delete Field"
|
90
|
-
}, ___EmotionJSX(Icon, {
|
91
|
-
icon: TrashIcon,
|
92
|
-
size: 20,
|
93
|
-
color: "black"
|
94
|
-
}));
|
95
|
-
};
|
96
|
-
|
97
|
-
return ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
98
|
-
variant: "label"
|
99
|
-
}, "Redirected URIs"), _mapInstanceProperty(fieldValues).call(fieldValues, function (_ref4) {
|
100
|
-
var id = _ref4.id,
|
101
|
-
value = _ref4.value,
|
102
|
-
otherFieldProps = _objectWithoutProperties(_ref4, ["id", "value"]);
|
103
|
-
|
104
|
-
return ___EmotionJSX(Box, {
|
105
|
-
isRow: true,
|
106
|
-
mb: "sm",
|
107
|
-
alignItems: "center",
|
108
|
-
key: id
|
109
|
-
}, ___EmotionJSX(TextField, _extends({
|
110
|
-
value: value,
|
111
|
-
onChange: function onChange(e) {
|
112
|
-
return onFieldValueChange(e, id);
|
113
|
-
},
|
114
|
-
mr: "xs",
|
115
|
-
slots: {
|
116
|
-
inContainer: ___EmotionJSX(DeleteButton, {
|
117
|
-
id: id
|
118
|
-
})
|
119
|
-
},
|
120
|
-
title: "Text Field"
|
121
|
-
}, otherFieldProps)));
|
122
|
-
}), ___EmotionJSX(Button, {
|
123
|
-
variant: "text",
|
124
|
-
onPress: onFieldAdd,
|
125
|
-
role: "button",
|
126
|
-
title: "Add Field Button",
|
127
|
-
sx: {
|
128
|
-
width: 'fit-content'
|
129
|
-
}
|
130
|
-
}, ___EmotionJSX(Text, {
|
131
|
-
variant: "label",
|
132
|
-
color: "active"
|
133
|
-
}, "+ Add")));
|
134
|
-
};
|