pollination-react-io 1.69.0 → 1.70.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/build/index.esm.js
CHANGED
@@ -15793,11 +15793,11 @@ var SettingsButton = function (_a) {
|
|
15793
15793
|
var css_248z$d = "";
|
15794
15794
|
styleInject(css_248z$d);
|
15795
15795
|
|
15796
|
-
var css_248z$c = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n --primary3: #000;\n --success: #46A758;\n --warning: #F76809;\n --danger: #FF4616;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n@keyframes Animation {\n 0% {\n background-position: 200%;\n }\n 50% {\n background-position: 100%;\n }\n 100% {\n background-position: 0%;\n }\n}\n.loading {\n background: linear-gradient(45deg, transparent, var(--primary), 12%, transparent);\n background-size: 200%;\n animation: Animation 3s ease infinite;\n}\n\n@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}\n\n.text-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.text-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.text-input-disabled:hover {\n box-shadow: none;\n}\n\n.text-input input {\n width: 100%;\n color: var(--slate12);\n}\n\n.text-input input::placeholder {\n color: var(--slate10);\n}\n\n.text-input i svg {\n fill: var(--primary);\n}\n\n.text-input button,\n.text-input input {\n display: flex;\n padding: 9px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n line-height: 1.5rem;\n}\n\n.text-input button:first-child,\n.text-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.text-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.text-input button:not(:last-child),\n.text-input input:not(:last-child) {\n border-right: none;\n}\n\n.text-input button:focus-visible,\n.text-input input:focus-visible {\n outline: none;\n}\n\n.text-input button:focus,\n.text-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.text-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
15796
|
+
var css_248z$c = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n --primary3: #000;\n --success: #46A758;\n --warning: #F76809;\n --danger: #FF4616;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n@keyframes Animation {\n 0% {\n background-position: 200%;\n }\n 50% {\n background-position: 100%;\n }\n 100% {\n background-position: 0%;\n }\n}\n.loading {\n background: linear-gradient(45deg, transparent, var(--primary), 12%, transparent);\n background-size: 200%;\n animation: Animation 3s ease infinite;\n}\n\n@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}\n\n.text-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.text-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.text-input-disabled:hover {\n box-shadow: none;\n}\n\n.text-input input {\n width: 100%;\n color: var(--slate12);\n}\n\n.text-input input::placeholder {\n color: var(--slate10);\n}\n\n.text-input i svg {\n fill: var(--primary);\n}\n\n.text-input button,\n.text-input textarea,\n.text-input input {\n display: flex;\n padding: 9px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n line-height: 1.5rem;\n}\n\n.text-input button:first-child,\n.text-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.text-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.text-input button:not(:last-child),\n.text-input input:not(:last-child) {\n border-right: none;\n}\n\n.text-input textarea:not(:last-child) {\n border-right: none;\n}\n\n.text-input button:focus-visible,\n.text-input input:focus-visible {\n outline: none;\n}\n\n.text-input textarea:focus-visible {\n outline: none;\n}\n\n.text-input button:focus,\n.text-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.text-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
15797
15797
|
styleInject(css_248z$c);
|
15798
15798
|
|
15799
15799
|
var TextInput = function (_a) {
|
15800
|
-
var _b = _a.inputProps, inputProps = _b === void 0 ? { placeholder: 'Input some text...' } : _b, _c = _a.icon, icon = _c === void 0 ? React__default.createElement(CursorText$1, null) : _c, hidden = _a.hidden, style = _a.style, reset = _a.reset;
|
15800
|
+
var _b = _a.inputProps, inputProps = _b === void 0 ? { placeholder: 'Input some text...' } : _b, _c = _a.icon, icon = _c === void 0 ? React__default.createElement(CursorText$1, null) : _c, hidden = _a.hidden, style = _a.style, reset = _a.reset, _d = _a.asTextArea, asTextArea = _d === void 0 ? false : _d;
|
15801
15801
|
return (React__default.createElement("div", { className: hidden ? undefined : 'text-input', style: __assign(__assign({ width: '100%' }, style), { position: 'relative' }) },
|
15802
15802
|
!hidden && icon && (React__default.createElement("i", { style: {
|
15803
15803
|
position: 'absolute',
|
@@ -15810,12 +15810,18 @@ var TextInput = function (_a) {
|
|
15810
15810
|
zIndex: 20,
|
15811
15811
|
fill: inputProps.disabled ? 'var(--slate11)' : 'var(--primary)'
|
15812
15812
|
} }, icon)),
|
15813
|
-
React__default.createElement("input", __assign({ style: {
|
15813
|
+
!asTextArea && React__default.createElement("input", __assign({ style: {
|
15814
15814
|
paddingLeft: 34,
|
15815
15815
|
borderRadius: 4,
|
15816
15816
|
flex: 12,
|
15817
15817
|
width: '100%'
|
15818
15818
|
} }, inputProps, { type: hidden ? 'hidden' : undefined })),
|
15819
|
+
asTextArea && React__default.createElement("textarea", __assign({ style: {
|
15820
|
+
paddingLeft: 34,
|
15821
|
+
borderRadius: 4,
|
15822
|
+
flex: 12,
|
15823
|
+
width: '100%'
|
15824
|
+
} }, inputProps)),
|
15819
15825
|
!hidden && typeof inputProps.defaultValue !== 'undefined' && !inputProps.disabled &&
|
15820
15826
|
React__default.createElement("button", { type: 'button', onClick: reset, style: {
|
15821
15827
|
background: 'white'
|
@@ -44927,7 +44933,7 @@ var RecipeForm = function (_a) {
|
|
44927
44933
|
React__default.createElement(TextInput, { inputProps: __assign(__assign({}, register('study-name')), { defaultValue: "".concat(recipe.metadata.name, " study") }), icon: localStudyWarning ? React__default.createElement(ExclamationTriangle$1, null) : undefined, reset: function () { return handleReset({ name: 'study-name',
|
44928
44934
|
default: "".concat(recipe.metadata.name, " study") }); } })),
|
44929
44935
|
React__default.createElement(FormInput, { name: 'study-description', description: 'Study description is a optional field.', errorMessage: errors['studydescription'] ? (_c = errors['study-description']) === null || _c === void 0 ? void 0 : _c.message : undefined },
|
44930
|
-
React__default.createElement(TextInput, { inputProps: __assign(__assign({}, register('study-description')), { defaultValue: '' }), reset: function () { return handleReset({ name: 'study-description',
|
44936
|
+
React__default.createElement(TextInput, { inputProps: __assign(__assign({}, register('study-description')), { defaultValue: '' }), asTextArea: true, reset: function () { return handleReset({ name: 'study-description',
|
44931
44937
|
default: '' }); } })))),
|
44932
44938
|
React__default.createElement(Tabs, { forceRenderTabPanel: true },
|
44933
44939
|
React__default.createElement(TabList, { style: {
|
@@ -49852,7 +49858,7 @@ var FileCard = function (_a) {
|
|
49852
49858
|
border: '1px solid var(--slate9)',
|
49853
49859
|
// @ts-ignore
|
49854
49860
|
highlight: 'var(--slate7)'
|
49855
|
-
}, hbjson: CADdata.data, buttonLabel: label, defaultAction: Action$1.
|
49861
|
+
}, hbjson: CADdata.data, buttonLabel: label, defaultAction: Action$1.preview, optionsConfig: {
|
49856
49862
|
add: true,
|
49857
49863
|
delete: false,
|
49858
49864
|
'subscribe-preview': false,
|
@@ -49865,7 +49871,7 @@ var FileCard = function (_a) {
|
|
49865
49871
|
border: '1px solid var(--slate9)',
|
49866
49872
|
// @ts-ignore
|
49867
49873
|
highlight: 'var(--slate7)'
|
49868
|
-
}, results: CADdata.data, buttonLabel: label, defaultAction: Action$1.
|
49874
|
+
}, results: CADdata.data, buttonLabel: label, defaultAction: Action$1.preview, optionsConfig: {
|
49869
49875
|
add: true,
|
49870
49876
|
delete: false,
|
49871
49877
|
'subscribe-preview': false,
|