@overmap-ai/core 1.0.53-attachment-creation-flows.0 → 1.0.53-attachment-creation-flows.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/dist/overmap-core.js +639 -443
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +516 -320
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
(function(global2, factory) {
|
|
8
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react/jsx-runtime"), require("@overmap-ai/blocks"), require("dependency-graph"), require("@redux-offline/redux-offline"), require("@redux-offline/redux-offline/lib/defaults"), require("localforage"), require("redux-persist-migrate"), require("@reduxjs/toolkit"), require("superagent"), require("react-redux"), require("file-saver"), require("uuid"), require("color"), require("jwt-decode"), require("@redux-offline/redux-offline/lib/constants"), require("idb"), require("formik"), require("lodash.get"), require("linkify-react"), require("@hello-pangea/dnd"), require("qr-scanner"), require("xlsx"), require("react-pdf"), require("react-pdf/dist/Page/AnnotationLayer.css"), require("react-pdf/dist/Page/TextLayer.css"), require("react-
|
|
9
|
-
})(this, function(exports2, React, jsxRuntime, blocks, dependencyGraph, reduxOffline, offlineConfig, localforage, createMigration, toolkit, request, reactRedux, saveAs, uuid, ColorCls, jwtDecode, constants, idb, formik, get, Linkify, dnd, QrScannerAPI, xlsx, reactPdf, AnnotationLayer_css, TextLayer_css,
|
|
8
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react/jsx-runtime"), require("@overmap-ai/blocks"), require("dependency-graph"), require("@redux-offline/redux-offline"), require("@redux-offline/redux-offline/lib/defaults"), require("localforage"), require("redux-persist-migrate"), require("@reduxjs/toolkit"), require("superagent"), require("react-redux"), require("file-saver"), require("uuid"), require("color"), require("jwt-decode"), require("@redux-offline/redux-offline/lib/constants"), require("idb"), require("formik"), require("react-dom"), require("lodash.get"), require("linkify-react"), require("@hello-pangea/dnd"), require("qr-scanner"), require("xlsx"), require("react-pdf"), require("react-pdf/dist/Page/AnnotationLayer.css"), require("react-pdf/dist/Page/TextLayer.css"), require("react-sketch-canvas"), require("lodash.set"), require("lodash.clonedeep")) : typeof define === "function" && define.amd ? define(["exports", "react", "react/jsx-runtime", "@overmap-ai/blocks", "dependency-graph", "@redux-offline/redux-offline", "@redux-offline/redux-offline/lib/defaults", "localforage", "redux-persist-migrate", "@reduxjs/toolkit", "superagent", "react-redux", "file-saver", "uuid", "color", "jwt-decode", "@redux-offline/redux-offline/lib/constants", "idb", "formik", "react-dom", "lodash.get", "linkify-react", "@hello-pangea/dnd", "qr-scanner", "xlsx", "react-pdf", "react-pdf/dist/Page/AnnotationLayer.css", "react-pdf/dist/Page/TextLayer.css", "react-sketch-canvas", "lodash.set", "lodash.clonedeep"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["overmap-core"] = {}, global2.React, global2.jsxRuntime, global2.blocks, global2.dependencyGraph, global2.reduxOffline, global2.offlineConfig, global2.localforage, global2.createMigration, global2.toolkit, global2.request, global2.reactRedux, global2.saveAs, global2.uuid, global2.ColorCls, global2.jwtDecode, global2.constants, global2.idb, global2.formik, global2.ReactDOM, global2.get, global2.Linkify, global2.dnd, global2.QrScannerAPI, global2.xlsx, global2.reactPdf, null, null, global2.reactSketchCanvas, global2.set, global2.cloneDeep));
|
|
9
|
+
})(this, function(exports2, React, jsxRuntime, blocks, dependencyGraph, reduxOffline, offlineConfig, localforage, createMigration, toolkit, request, reactRedux, saveAs, uuid, ColorCls, jwtDecode, constants, idb, formik, ReactDOM, get, Linkify, dnd, QrScannerAPI, xlsx, reactPdf, AnnotationLayer_css, TextLayer_css, reactSketchCanvas, set, cloneDeep) {
|
|
10
10
|
var _a;
|
|
11
11
|
"use strict";
|
|
12
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -6229,7 +6229,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6229
6229
|
// Basic CRUD functions
|
|
6230
6230
|
// TODO: Once all models are represented in `Created<TModel>`, use `Created` in `OptimisticModelResult`, so we don't
|
|
6231
6231
|
// have to repeat it for all optimistic model results (all optimistic results are created).
|
|
6232
|
-
add(issue,
|
|
6232
|
+
add(issue, issueType = null) {
|
|
6233
6233
|
const { store } = this.client;
|
|
6234
6234
|
const dateWithoutMilliseconds = /* @__PURE__ */ new Date();
|
|
6235
6235
|
const state = store.getState();
|
|
@@ -6256,7 +6256,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6256
6256
|
url: "/issues/",
|
|
6257
6257
|
queryParams: {
|
|
6258
6258
|
workspace_id: workspaceId,
|
|
6259
|
-
...
|
|
6259
|
+
...issueType ? { issue_type: issueType } : {}
|
|
6260
6260
|
},
|
|
6261
6261
|
payload: issuePayload,
|
|
6262
6262
|
blockers: [
|
|
@@ -6393,7 +6393,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6393
6393
|
this.client.store.dispatch(updateIssue(issueToBeUpdated));
|
|
6394
6394
|
this.client.store.dispatch(removeIssueUpdate(offlineIssueUpdate.offline_id));
|
|
6395
6395
|
});
|
|
6396
|
-
const fullIssue =
|
|
6396
|
+
const fullIssue = state.issueReducer.issues[issue.offline_id];
|
|
6397
6397
|
return [fullIssue, promise];
|
|
6398
6398
|
}
|
|
6399
6399
|
async remove(id) {
|
|
@@ -6444,14 +6444,15 @@ var __publicField = (obj, key, value) => {
|
|
|
6444
6444
|
class IssueTypeService extends BaseApiService {
|
|
6445
6445
|
add(payload) {
|
|
6446
6446
|
const { store } = this.client;
|
|
6447
|
-
const
|
|
6447
|
+
const state = store.getState();
|
|
6448
|
+
const activeOrganizationId = state.organizationReducer.activeOrganizationId;
|
|
6448
6449
|
if (!activeOrganizationId) {
|
|
6449
6450
|
throw new Error(`No active organization, got ${activeOrganizationId} for activeOrganizationId.`);
|
|
6450
6451
|
}
|
|
6451
6452
|
const offlineIssueType = offline({
|
|
6452
6453
|
...payload,
|
|
6453
6454
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6454
|
-
created_by:
|
|
6455
|
+
created_by: state.userReducer.currentUser.id,
|
|
6455
6456
|
organization: activeOrganizationId
|
|
6456
6457
|
});
|
|
6457
6458
|
store.dispatch(addIssueType(offlineIssueType));
|
|
@@ -6504,11 +6505,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6504
6505
|
}
|
|
6505
6506
|
delete(issueTypeId) {
|
|
6506
6507
|
const { store } = this.client;
|
|
6507
|
-
const
|
|
6508
|
+
const state = store.getState();
|
|
6509
|
+
const issueTypeToDelete = state.issueTypeReducer.issueTypes[issueTypeId];
|
|
6508
6510
|
if (!issueTypeToDelete) {
|
|
6509
6511
|
throw new Error(`IssueType with offline_id ${issueTypeId} does not exist in the store.`);
|
|
6510
6512
|
}
|
|
6511
|
-
const issuesOfIssueType = selectIssuesOfIssueType(issueTypeId)(
|
|
6513
|
+
const issuesOfIssueType = selectIssuesOfIssueType(issueTypeId)(state) ?? [];
|
|
6512
6514
|
store.dispatch(removeIssueType(issueTypeId));
|
|
6513
6515
|
store.dispatch(removeIssues(issuesOfIssueType.map((issue) => issue.offline_id)));
|
|
6514
6516
|
const promise = this.enqueueRequest({
|
|
@@ -8878,260 +8880,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8878
8880
|
{ ...rest, "aria-labelledby": labelId }
|
|
8879
8881
|
];
|
|
8880
8882
|
};
|
|
8881
|
-
const truthyValues = [true, "true"];
|
|
8882
|
-
const BooleanInput = React.memo((props) => {
|
|
8883
|
-
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
8884
|
-
let [{ helpText, label }] = useFormikInput(props);
|
|
8885
|
-
helpText = showInputOnly ? null : helpText;
|
|
8886
|
-
label = showInputOnly ? "" : label;
|
|
8887
|
-
const color = blocks.useSeverityColor(severity);
|
|
8888
|
-
const value = truthyValues.includes(fieldProps.value);
|
|
8889
|
-
return /* @__PURE__ */ jsxRuntime.jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8890
|
-
InputWithLabel,
|
|
8891
|
-
{
|
|
8892
|
-
size,
|
|
8893
|
-
severity,
|
|
8894
|
-
inputId,
|
|
8895
|
-
labelId,
|
|
8896
|
-
label,
|
|
8897
|
-
image: showInputOnly ? void 0 : field.image,
|
|
8898
|
-
flexProps: { direction: "row-reverse", justify: "end", align: "center", gap: "2" },
|
|
8899
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8900
|
-
blocks.Checkbox,
|
|
8901
|
-
{
|
|
8902
|
-
...rest,
|
|
8903
|
-
...fieldProps,
|
|
8904
|
-
id: inputId,
|
|
8905
|
-
color,
|
|
8906
|
-
value: value.toString(),
|
|
8907
|
-
checked: value,
|
|
8908
|
-
onCheckedChange: fieldProps.onChange,
|
|
8909
|
-
onChange: void 0,
|
|
8910
|
-
onBlur: void 0
|
|
8911
|
-
}
|
|
8912
|
-
)
|
|
8913
|
-
}
|
|
8914
|
-
) });
|
|
8915
|
-
});
|
|
8916
|
-
BooleanInput.displayName = "BooleanInput";
|
|
8917
|
-
var DefaultContext = {
|
|
8918
|
-
color: void 0,
|
|
8919
|
-
size: void 0,
|
|
8920
|
-
className: void 0,
|
|
8921
|
-
style: void 0,
|
|
8922
|
-
attr: void 0
|
|
8923
|
-
};
|
|
8924
|
-
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
8925
|
-
var _excluded = ["attr", "size", "title"];
|
|
8926
|
-
function _objectWithoutProperties(source, excluded) {
|
|
8927
|
-
if (source == null)
|
|
8928
|
-
return {};
|
|
8929
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
8930
|
-
var key, i;
|
|
8931
|
-
if (Object.getOwnPropertySymbols) {
|
|
8932
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
8933
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
8934
|
-
key = sourceSymbolKeys[i];
|
|
8935
|
-
if (excluded.indexOf(key) >= 0)
|
|
8936
|
-
continue;
|
|
8937
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
8938
|
-
continue;
|
|
8939
|
-
target[key] = source[key];
|
|
8940
|
-
}
|
|
8941
|
-
}
|
|
8942
|
-
return target;
|
|
8943
|
-
}
|
|
8944
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
8945
|
-
if (source == null)
|
|
8946
|
-
return {};
|
|
8947
|
-
var target = {};
|
|
8948
|
-
for (var key in source) {
|
|
8949
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8950
|
-
if (excluded.indexOf(key) >= 0)
|
|
8951
|
-
continue;
|
|
8952
|
-
target[key] = source[key];
|
|
8953
|
-
}
|
|
8954
|
-
}
|
|
8955
|
-
return target;
|
|
8956
|
-
}
|
|
8957
|
-
function _extends$1() {
|
|
8958
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8959
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
8960
|
-
var source = arguments[i];
|
|
8961
|
-
for (var key in source) {
|
|
8962
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8963
|
-
target[key] = source[key];
|
|
8964
|
-
}
|
|
8965
|
-
}
|
|
8966
|
-
}
|
|
8967
|
-
return target;
|
|
8968
|
-
};
|
|
8969
|
-
return _extends$1.apply(this, arguments);
|
|
8970
|
-
}
|
|
8971
|
-
function ownKeys(e, r) {
|
|
8972
|
-
var t = Object.keys(e);
|
|
8973
|
-
if (Object.getOwnPropertySymbols) {
|
|
8974
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
8975
|
-
r && (o = o.filter(function(r2) {
|
|
8976
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
8977
|
-
})), t.push.apply(t, o);
|
|
8978
|
-
}
|
|
8979
|
-
return t;
|
|
8980
|
-
}
|
|
8981
|
-
function _objectSpread(e) {
|
|
8982
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
8983
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
8984
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
8985
|
-
_defineProperty(e, r2, t[r2]);
|
|
8986
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
8987
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
8988
|
-
});
|
|
8989
|
-
}
|
|
8990
|
-
return e;
|
|
8991
|
-
}
|
|
8992
|
-
function _defineProperty(obj, key, value) {
|
|
8993
|
-
key = _toPropertyKey(key);
|
|
8994
|
-
if (key in obj) {
|
|
8995
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
8996
|
-
} else {
|
|
8997
|
-
obj[key] = value;
|
|
8998
|
-
}
|
|
8999
|
-
return obj;
|
|
9000
|
-
}
|
|
9001
|
-
function _toPropertyKey(t) {
|
|
9002
|
-
var i = _toPrimitive(t, "string");
|
|
9003
|
-
return "symbol" == typeof i ? i : i + "";
|
|
9004
|
-
}
|
|
9005
|
-
function _toPrimitive(t, r) {
|
|
9006
|
-
if ("object" != typeof t || !t)
|
|
9007
|
-
return t;
|
|
9008
|
-
var e = t[Symbol.toPrimitive];
|
|
9009
|
-
if (void 0 !== e) {
|
|
9010
|
-
var i = e.call(t, r || "default");
|
|
9011
|
-
if ("object" != typeof i)
|
|
9012
|
-
return i;
|
|
9013
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9014
|
-
}
|
|
9015
|
-
return ("string" === r ? String : Number)(t);
|
|
9016
|
-
}
|
|
9017
|
-
function Tree2Element(tree) {
|
|
9018
|
-
return tree && tree.map((node, i) => /* @__PURE__ */ React.createElement(node.tag, _objectSpread({
|
|
9019
|
-
key: i
|
|
9020
|
-
}, node.attr), Tree2Element(node.child)));
|
|
9021
|
-
}
|
|
9022
|
-
function GenIcon(data) {
|
|
9023
|
-
return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends$1({
|
|
9024
|
-
attr: _objectSpread({}, data.attr)
|
|
9025
|
-
}, props), Tree2Element(data.child));
|
|
9026
|
-
}
|
|
9027
|
-
function IconBase(props) {
|
|
9028
|
-
var elem = (conf) => {
|
|
9029
|
-
var {
|
|
9030
|
-
attr,
|
|
9031
|
-
size,
|
|
9032
|
-
title: title2
|
|
9033
|
-
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
9034
|
-
var computedSize = size || conf.size || "1em";
|
|
9035
|
-
var className;
|
|
9036
|
-
if (conf.className)
|
|
9037
|
-
className = conf.className;
|
|
9038
|
-
if (props.className)
|
|
9039
|
-
className = (className ? className + " " : "") + props.className;
|
|
9040
|
-
return /* @__PURE__ */ React.createElement("svg", _extends$1({
|
|
9041
|
-
stroke: "currentColor",
|
|
9042
|
-
fill: "currentColor",
|
|
9043
|
-
strokeWidth: "0"
|
|
9044
|
-
}, conf.attr, attr, svgProps, {
|
|
9045
|
-
className,
|
|
9046
|
-
style: _objectSpread(_objectSpread({
|
|
9047
|
-
color: props.color || conf.color
|
|
9048
|
-
}, conf.style), props.style),
|
|
9049
|
-
height: computedSize,
|
|
9050
|
-
width: computedSize,
|
|
9051
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9052
|
-
}), title2 && /* @__PURE__ */ React.createElement("title", null, title2), props.children);
|
|
9053
|
-
};
|
|
9054
|
-
return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
9055
|
-
}
|
|
9056
|
-
function RiArrowDownLine(props) {
|
|
9057
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
|
|
9058
|
-
}
|
|
9059
|
-
function RiArrowUpLine(props) {
|
|
9060
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
|
|
9061
|
-
}
|
|
9062
|
-
function RiCalendarLine(props) {
|
|
9063
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
|
|
9064
|
-
}
|
|
9065
|
-
function RiQrCodeLine(props) {
|
|
9066
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M16 17V16H13V13H16V15H18V17H17V19H15V21H13V18H15V17H16ZM21 21H17V19H19V17H21V21ZM3 3H11V11H3V3ZM5 5V9H9V5H5ZM13 3H21V11H13V3ZM15 5V9H19V5H15ZM3 13H11V21H3V13ZM5 15V19H9V15H5ZM18 13H21V15H18V13ZM6 6H8V8H6V6ZM6 16H8V18H6V16ZM16 6H18V8H16V6Z" }, "child": [] }] })(props);
|
|
9067
|
-
}
|
|
9068
|
-
function RiFileCopyLine(props) {
|
|
9069
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
|
|
9070
|
-
}
|
|
9071
|
-
function RiAlignJustify(props) {
|
|
9072
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
|
|
9073
|
-
}
|
|
9074
|
-
function RiHashtag(props) {
|
|
9075
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
|
|
9076
|
-
}
|
|
9077
|
-
function RiInputField(props) {
|
|
9078
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
|
|
9079
|
-
}
|
|
9080
|
-
function RiListCheck(props) {
|
|
9081
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
|
|
9082
|
-
}
|
|
9083
|
-
function RiImageLine(props) {
|
|
9084
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
|
|
9085
|
-
}
|
|
9086
|
-
function RiCheckboxCircleLine(props) {
|
|
9087
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
9088
|
-
}
|
|
9089
|
-
function RiCheckboxLine(props) {
|
|
9090
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
9091
|
-
}
|
|
9092
|
-
function RiDeleteBin2Line(props) {
|
|
9093
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
|
|
9094
|
-
}
|
|
9095
|
-
function RiMenuFoldLine(props) {
|
|
9096
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
|
|
9097
|
-
}
|
|
9098
|
-
function RiUpload2Line(props) {
|
|
9099
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
|
|
9100
|
-
}
|
|
9101
|
-
const emptyBooleanField = {
|
|
9102
|
-
...emptyBaseField,
|
|
9103
|
-
type: "boolean"
|
|
9104
|
-
};
|
|
9105
|
-
const _BooleanField = class _BooleanField extends BaseField {
|
|
9106
|
-
constructor(options) {
|
|
9107
|
-
super({ ...options, type: "boolean" });
|
|
9108
|
-
__publicField(this, "onlyValidateAfterTouched", false);
|
|
9109
|
-
}
|
|
9110
|
-
// if a BooleanField is required, `false` is considered blank
|
|
9111
|
-
isBlank(value) {
|
|
9112
|
-
return this.required && !value;
|
|
9113
|
-
}
|
|
9114
|
-
getValueFromChangeEvent(event) {
|
|
9115
|
-
if (typeof event === "boolean")
|
|
9116
|
-
return event;
|
|
9117
|
-
return event.target.checked;
|
|
9118
|
-
}
|
|
9119
|
-
serialize() {
|
|
9120
|
-
return super._serialize();
|
|
9121
|
-
}
|
|
9122
|
-
static deserialize(data) {
|
|
9123
|
-
if (data.type !== "boolean")
|
|
9124
|
-
throw new Error("Type mismatch.");
|
|
9125
|
-
return new _BooleanField(data);
|
|
9126
|
-
}
|
|
9127
|
-
getInput(props) {
|
|
9128
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BooleanInput, { ...props, field: this });
|
|
9129
|
-
}
|
|
9130
|
-
};
|
|
9131
|
-
__publicField(_BooleanField, "fieldTypeName", "Checkbox");
|
|
9132
|
-
__publicField(_BooleanField, "fieldTypeDescription", "Perfect for both optional and required yes/no questions.");
|
|
9133
|
-
__publicField(_BooleanField, "Icon", RiCheckboxCircleLine);
|
|
9134
|
-
let BooleanField = _BooleanField;
|
|
9135
8883
|
function getDefaultExportFromCjs(x) {
|
|
9136
8884
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
9137
8885
|
}
|
|
@@ -9184,8 +8932,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9184
8932
|
})(classnames);
|
|
9185
8933
|
var classnamesExports = classnames.exports;
|
|
9186
8934
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
9187
|
-
function _extends() {
|
|
9188
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8935
|
+
function _extends$1() {
|
|
8936
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
9189
8937
|
for (var i = 1; i < arguments.length; i++) {
|
|
9190
8938
|
var source = arguments[i];
|
|
9191
8939
|
for (var key in source) {
|
|
@@ -9196,7 +8944,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9196
8944
|
}
|
|
9197
8945
|
return target;
|
|
9198
8946
|
};
|
|
9199
|
-
return _extends.apply(this, arguments);
|
|
8947
|
+
return _extends$1.apply(this, arguments);
|
|
9200
8948
|
}
|
|
9201
8949
|
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
9202
8950
|
return function handleEvent(event) {
|
|
@@ -9327,11 +9075,11 @@ var __publicField = (obj, key, value) => {
|
|
|
9327
9075
|
} else
|
|
9328
9076
|
return child;
|
|
9329
9077
|
});
|
|
9330
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
9078
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
9331
9079
|
ref: forwardedRef
|
|
9332
9080
|
}), /* @__PURE__ */ React.isValidElement(newElement) ? /* @__PURE__ */ React.cloneElement(newElement, void 0, newChildren) : null);
|
|
9333
9081
|
}
|
|
9334
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
9082
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
9335
9083
|
ref: forwardedRef
|
|
9336
9084
|
}), children);
|
|
9337
9085
|
});
|
|
@@ -9409,7 +9157,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9409
9157
|
React.useEffect(() => {
|
|
9410
9158
|
window[Symbol.for("radix-ui")] = true;
|
|
9411
9159
|
}, []);
|
|
9412
|
-
return /* @__PURE__ */ React.createElement(Comp, _extends({}, primitiveProps, {
|
|
9160
|
+
return /* @__PURE__ */ React.createElement(Comp, _extends$1({}, primitiveProps, {
|
|
9413
9161
|
ref: forwardedRef
|
|
9414
9162
|
}));
|
|
9415
9163
|
});
|
|
@@ -9968,9 +9716,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9968
9716
|
return React__namespace.createElement("div", { ...insetProps, ref: forwardedRef, className: classNames("rt-Inset", className, withBreakpoints(side, "rt-r-side"), withBreakpoints(clip, "rt-r-clip"), withBreakpoints(p, "rt-r-p"), withBreakpoints(px, "rt-r-px"), withBreakpoints(py, "rt-r-py"), withBreakpoints(pt, "rt-r-pt"), withBreakpoints(pr, "rt-r-pr"), withBreakpoints(pb, "rt-r-pb"), withBreakpoints(pl, "rt-r-pl"), withMarginProps(marginProps)) });
|
|
9969
9717
|
});
|
|
9970
9718
|
Inset.displayName = "Inset";
|
|
9971
|
-
const sizes$
|
|
9719
|
+
const sizes$9 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9972
9720
|
const headingPropDefs = {
|
|
9973
|
-
size: { type: "enum", values: sizes$
|
|
9721
|
+
size: { type: "enum", values: sizes$9, default: "6", responsive: true },
|
|
9974
9722
|
weight: { ...weightProp, default: "bold" },
|
|
9975
9723
|
align: alignProp,
|
|
9976
9724
|
trim: trimProp,
|
|
@@ -9983,9 +9731,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9983
9731
|
return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, { "data-accent-color": color, ...headingProps, ref: forwardedRef, className: classNames("rt-Heading", className, withBreakpoints(size, "rt-r-size"), withBreakpoints(weight, "rt-r-weight"), withBreakpoints(align, "rt-r-ta"), withBreakpoints(trim, "rt-r-lt"), { "rt-high-contrast": highContrast }, withMarginProps(marginProps)) }, asChild ? children : React__namespace.createElement(Tag, null, children));
|
|
9984
9732
|
});
|
|
9985
9733
|
Heading.displayName = "Heading";
|
|
9986
|
-
const sizes$
|
|
9734
|
+
const sizes$8 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9987
9735
|
const textPropDefs = {
|
|
9988
|
-
size: { type: "enum", values: sizes$
|
|
9736
|
+
size: { type: "enum", values: sizes$8, default: void 0, responsive: true },
|
|
9989
9737
|
weight: weightProp,
|
|
9990
9738
|
align: alignProp,
|
|
9991
9739
|
trim: trimProp,
|
|
@@ -9998,11 +9746,11 @@ var __publicField = (obj, key, value) => {
|
|
|
9998
9746
|
return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, { "data-accent-color": color, ...textProps, ref: forwardedRef, className: classNames("rt-Text", className, withBreakpoints(size, "rt-r-size"), withBreakpoints(weight, "rt-r-weight"), withBreakpoints(align, "rt-r-ta"), withBreakpoints(trim, "rt-r-lt"), { "rt-high-contrast": highContrast }, withMarginProps(marginProps)) }, asChild ? children : React__namespace.createElement(Tag, null, children));
|
|
9999
9747
|
});
|
|
10000
9748
|
Text.displayName = "Text";
|
|
10001
|
-
const sizes$
|
|
10002
|
-
const variants$
|
|
9749
|
+
const sizes$7 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9750
|
+
const variants$5 = ["solid", "soft", "outline", "ghost"];
|
|
10003
9751
|
const codePropDefs = {
|
|
10004
|
-
size: { type: "enum", values: sizes$
|
|
10005
|
-
variant: { type: "enum", values: variants$
|
|
9752
|
+
size: { type: "enum", values: sizes$7, default: void 0, responsive: true },
|
|
9753
|
+
variant: { type: "enum", values: variants$5, default: "soft" },
|
|
10006
9754
|
weight: weightProp,
|
|
10007
9755
|
color: colorProp,
|
|
10008
9756
|
highContrast: highContrastProp
|
|
@@ -10032,6 +9780,202 @@ var __publicField = (obj, key, value) => {
|
|
|
10032
9780
|
value
|
|
10033
9781
|
]);
|
|
10034
9782
|
}
|
|
9783
|
+
const $e698a72e93240346$var$CHECKBOX_NAME = "Checkbox";
|
|
9784
|
+
const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($e698a72e93240346$var$CHECKBOX_NAME);
|
|
9785
|
+
const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
|
|
9786
|
+
const $e698a72e93240346$export$48513f6b9f8ce62d = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
9787
|
+
const { __scopeCheckbox, name, checked: checkedProp, defaultChecked, required, disabled, value = "on", onCheckedChange, ...checkboxProps } = props;
|
|
9788
|
+
const [button, setButton] = React.useState(null);
|
|
9789
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
9790
|
+
forwardedRef,
|
|
9791
|
+
(node) => setButton(node)
|
|
9792
|
+
);
|
|
9793
|
+
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
|
9794
|
+
const isFormControl = button ? Boolean(button.closest("form")) : true;
|
|
9795
|
+
const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
9796
|
+
prop: checkedProp,
|
|
9797
|
+
defaultProp: defaultChecked,
|
|
9798
|
+
onChange: onCheckedChange
|
|
9799
|
+
});
|
|
9800
|
+
const initialCheckedStateRef = React.useRef(checked);
|
|
9801
|
+
React.useEffect(() => {
|
|
9802
|
+
const form = button === null || button === void 0 ? void 0 : button.form;
|
|
9803
|
+
if (form) {
|
|
9804
|
+
const reset = () => setChecked(initialCheckedStateRef.current);
|
|
9805
|
+
form.addEventListener("reset", reset);
|
|
9806
|
+
return () => form.removeEventListener("reset", reset);
|
|
9807
|
+
}
|
|
9808
|
+
}, [
|
|
9809
|
+
button,
|
|
9810
|
+
setChecked
|
|
9811
|
+
]);
|
|
9812
|
+
return /* @__PURE__ */ React.createElement($e698a72e93240346$var$CheckboxProvider, {
|
|
9813
|
+
scope: __scopeCheckbox,
|
|
9814
|
+
state: checked,
|
|
9815
|
+
disabled
|
|
9816
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
|
|
9817
|
+
type: "button",
|
|
9818
|
+
role: "checkbox",
|
|
9819
|
+
"aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? "mixed" : checked,
|
|
9820
|
+
"aria-required": required,
|
|
9821
|
+
"data-state": $e698a72e93240346$var$getState(checked),
|
|
9822
|
+
"data-disabled": disabled ? "" : void 0,
|
|
9823
|
+
disabled,
|
|
9824
|
+
value
|
|
9825
|
+
}, checkboxProps, {
|
|
9826
|
+
ref: composedRefs,
|
|
9827
|
+
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
|
|
9828
|
+
if (event.key === "Enter")
|
|
9829
|
+
event.preventDefault();
|
|
9830
|
+
}),
|
|
9831
|
+
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event) => {
|
|
9832
|
+
setChecked(
|
|
9833
|
+
(prevChecked) => $e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
|
|
9834
|
+
);
|
|
9835
|
+
if (isFormControl) {
|
|
9836
|
+
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
9837
|
+
if (!hasConsumerStoppedPropagationRef.current)
|
|
9838
|
+
event.stopPropagation();
|
|
9839
|
+
}
|
|
9840
|
+
})
|
|
9841
|
+
})), isFormControl && /* @__PURE__ */ React.createElement($e698a72e93240346$var$BubbleInput, {
|
|
9842
|
+
control: button,
|
|
9843
|
+
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
9844
|
+
name,
|
|
9845
|
+
value,
|
|
9846
|
+
checked,
|
|
9847
|
+
required,
|
|
9848
|
+
disabled,
|
|
9849
|
+
style: {
|
|
9850
|
+
transform: "translateX(-100%)"
|
|
9851
|
+
}
|
|
9852
|
+
}));
|
|
9853
|
+
});
|
|
9854
|
+
const $e698a72e93240346$var$INDICATOR_NAME = "CheckboxIndicator";
|
|
9855
|
+
const $e698a72e93240346$export$59aad738f51d1c05 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
9856
|
+
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
9857
|
+
const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
|
|
9858
|
+
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
9859
|
+
present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
|
|
9860
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
9861
|
+
"data-state": $e698a72e93240346$var$getState(context.state),
|
|
9862
|
+
"data-disabled": context.disabled ? "" : void 0
|
|
9863
|
+
}, indicatorProps, {
|
|
9864
|
+
ref: forwardedRef,
|
|
9865
|
+
style: {
|
|
9866
|
+
pointerEvents: "none",
|
|
9867
|
+
...props.style
|
|
9868
|
+
}
|
|
9869
|
+
})));
|
|
9870
|
+
});
|
|
9871
|
+
const $e698a72e93240346$var$BubbleInput = (props) => {
|
|
9872
|
+
const { control, checked, bubbles = true, ...inputProps } = props;
|
|
9873
|
+
const ref = React.useRef(null);
|
|
9874
|
+
const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
|
|
9875
|
+
const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control);
|
|
9876
|
+
React.useEffect(() => {
|
|
9877
|
+
const input = ref.current;
|
|
9878
|
+
const inputProto = window.HTMLInputElement.prototype;
|
|
9879
|
+
const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
|
|
9880
|
+
const setChecked = descriptor.set;
|
|
9881
|
+
if (prevChecked !== checked && setChecked) {
|
|
9882
|
+
const event = new Event("click", {
|
|
9883
|
+
bubbles
|
|
9884
|
+
});
|
|
9885
|
+
input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
|
|
9886
|
+
setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
|
|
9887
|
+
input.dispatchEvent(event);
|
|
9888
|
+
}
|
|
9889
|
+
}, [
|
|
9890
|
+
prevChecked,
|
|
9891
|
+
checked,
|
|
9892
|
+
bubbles
|
|
9893
|
+
]);
|
|
9894
|
+
return /* @__PURE__ */ React.createElement("input", _extends$1({
|
|
9895
|
+
type: "checkbox",
|
|
9896
|
+
"aria-hidden": true,
|
|
9897
|
+
defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
|
|
9898
|
+
}, inputProps, {
|
|
9899
|
+
tabIndex: -1,
|
|
9900
|
+
ref,
|
|
9901
|
+
style: {
|
|
9902
|
+
...props.style,
|
|
9903
|
+
...controlSize,
|
|
9904
|
+
position: "absolute",
|
|
9905
|
+
pointerEvents: "none",
|
|
9906
|
+
opacity: 0,
|
|
9907
|
+
margin: 0
|
|
9908
|
+
}
|
|
9909
|
+
}));
|
|
9910
|
+
};
|
|
9911
|
+
function $e698a72e93240346$var$isIndeterminate(checked) {
|
|
9912
|
+
return checked === "indeterminate";
|
|
9913
|
+
}
|
|
9914
|
+
function $e698a72e93240346$var$getState(checked) {
|
|
9915
|
+
return $e698a72e93240346$var$isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
9916
|
+
}
|
|
9917
|
+
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
9918
|
+
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
9919
|
+
const sizes$6 = ["1", "2", "3"];
|
|
9920
|
+
const variants$4 = ["classic", "surface", "soft"];
|
|
9921
|
+
const checkboxPropDefs = {
|
|
9922
|
+
size: { type: "enum", values: sizes$6, default: "2", responsive: true },
|
|
9923
|
+
variant: { type: "enum", values: variants$4, default: "surface" },
|
|
9924
|
+
color: colorProp,
|
|
9925
|
+
highContrast: highContrastProp
|
|
9926
|
+
};
|
|
9927
|
+
const ThickCheckIcon = React__namespace.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9928
|
+
return React__namespace.createElement(
|
|
9929
|
+
"svg",
|
|
9930
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9931
|
+
React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })
|
|
9932
|
+
);
|
|
9933
|
+
});
|
|
9934
|
+
ThickCheckIcon.displayName = "ThickCheckIcon";
|
|
9935
|
+
const ChevronDownIcon = React__namespace.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9936
|
+
return React__namespace.createElement(
|
|
9937
|
+
"svg",
|
|
9938
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9939
|
+
React__namespace.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })
|
|
9940
|
+
);
|
|
9941
|
+
});
|
|
9942
|
+
ChevronDownIcon.displayName = "ChevronDownIcon";
|
|
9943
|
+
const ThickChevronRightIcon = React__namespace.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9944
|
+
return React__namespace.createElement(
|
|
9945
|
+
"svg",
|
|
9946
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9947
|
+
React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })
|
|
9948
|
+
);
|
|
9949
|
+
});
|
|
9950
|
+
ThickChevronRightIcon.displayName = "ThickChevronRightIcon";
|
|
9951
|
+
const InfoCircledIcon = React__namespace.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9952
|
+
return React__namespace.createElement(
|
|
9953
|
+
"svg",
|
|
9954
|
+
{ width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9955
|
+
React__namespace.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fill: color, fillRule: "evenodd", clipRule: "evenodd" })
|
|
9956
|
+
);
|
|
9957
|
+
});
|
|
9958
|
+
InfoCircledIcon.displayName = "InfoCircledIcon";
|
|
9959
|
+
const Checkbox = React__namespace.forwardRef((props, forwardedRef) => {
|
|
9960
|
+
const { rest: marginRest, ...marginProps } = extractMarginProps(props);
|
|
9961
|
+
const { className, style, size = checkboxPropDefs.size.default, variant = checkboxPropDefs.variant.default, color = checkboxPropDefs.color.default, highContrast = checkboxPropDefs.highContrast.default, ...checkboxProps } = marginRest;
|
|
9962
|
+
return React__namespace.createElement(
|
|
9963
|
+
"span",
|
|
9964
|
+
{ className: classNames("rt-CheckboxRoot", className, withBreakpoints(size, "rt-r-size"), withMarginProps(marginProps)), style },
|
|
9965
|
+
React__namespace.createElement(
|
|
9966
|
+
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
9967
|
+
{ "data-accent-color": color, ...checkboxProps, ref: forwardedRef, className: classNames("rt-reset", "rt-CheckboxButton", `rt-variant-${variant}`, {
|
|
9968
|
+
"rt-high-contrast": highContrast
|
|
9969
|
+
}) },
|
|
9970
|
+
React__namespace.createElement(
|
|
9971
|
+
$e698a72e93240346$export$adb584737d712b70,
|
|
9972
|
+
{ className: "rt-CheckboxIndicator" },
|
|
9973
|
+
React__namespace.createElement(ThickCheckIcon, { className: "rt-CheckboxIndicatorIcon" })
|
|
9974
|
+
)
|
|
9975
|
+
)
|
|
9976
|
+
);
|
|
9977
|
+
});
|
|
9978
|
+
Checkbox.displayName = "Checkbox";
|
|
10035
9979
|
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
10036
9980
|
const PROVIDER_NAME = name + "CollectionProvider";
|
|
10037
9981
|
const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
|
|
@@ -10123,7 +10067,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10123
10067
|
scope: props.__scopeRovingFocusGroup
|
|
10124
10068
|
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
10125
10069
|
scope: props.__scopeRovingFocusGroup
|
|
10126
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
|
|
10070
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$1({}, props, {
|
|
10127
10071
|
ref: forwardedRef
|
|
10128
10072
|
}))));
|
|
10129
10073
|
});
|
|
@@ -10179,7 +10123,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10179
10123
|
),
|
|
10180
10124
|
[]
|
|
10181
10125
|
)
|
|
10182
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10126
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10183
10127
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
10184
10128
|
"data-orientation": orientation
|
|
10185
10129
|
}, groupProps, {
|
|
@@ -10249,7 +10193,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10249
10193
|
id,
|
|
10250
10194
|
focusable,
|
|
10251
10195
|
active
|
|
10252
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
10196
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
10253
10197
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
10254
10198
|
"data-orientation": context.orientation
|
|
10255
10199
|
}, itemProps, {
|
|
@@ -10389,7 +10333,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10389
10333
|
onScrollbarYEnabledChange: setScrollbarYEnabled,
|
|
10390
10334
|
onCornerWidthChange: setCornerWidth,
|
|
10391
10335
|
onCornerHeightChange: setCornerHeight
|
|
10392
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10336
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10393
10337
|
dir: direction
|
|
10394
10338
|
}, scrollAreaProps, {
|
|
10395
10339
|
ref: composedRefs,
|
|
@@ -10412,7 +10356,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10412
10356
|
dangerouslySetInnerHTML: {
|
|
10413
10357
|
__html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`
|
|
10414
10358
|
}
|
|
10415
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10359
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10416
10360
|
"data-radix-scroll-area-viewport": ""
|
|
10417
10361
|
}, viewportProps, {
|
|
10418
10362
|
ref: composedRefs,
|
|
@@ -10456,16 +10400,16 @@ var __publicField = (obj, key, value) => {
|
|
|
10456
10400
|
onScrollbarXEnabledChange,
|
|
10457
10401
|
onScrollbarYEnabledChange
|
|
10458
10402
|
]);
|
|
10459
|
-
return context.type === "hover" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends({}, scrollbarProps, {
|
|
10403
|
+
return context.type === "hover" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$1({}, scrollbarProps, {
|
|
10460
10404
|
ref: forwardedRef,
|
|
10461
10405
|
forceMount
|
|
10462
|
-
})) : context.type === "scroll" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends({}, scrollbarProps, {
|
|
10406
|
+
})) : context.type === "scroll" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$1({}, scrollbarProps, {
|
|
10463
10407
|
ref: forwardedRef,
|
|
10464
10408
|
forceMount
|
|
10465
|
-
})) : context.type === "auto" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({}, scrollbarProps, {
|
|
10409
|
+
})) : context.type === "auto" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({}, scrollbarProps, {
|
|
10466
10410
|
ref: forwardedRef,
|
|
10467
10411
|
forceMount
|
|
10468
|
-
})) : context.type === "always" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({}, scrollbarProps, {
|
|
10412
|
+
})) : context.type === "always" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({}, scrollbarProps, {
|
|
10469
10413
|
ref: forwardedRef
|
|
10470
10414
|
})) : null;
|
|
10471
10415
|
});
|
|
@@ -10501,7 +10445,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10501
10445
|
]);
|
|
10502
10446
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10503
10447
|
present: forceMount || visible
|
|
10504
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({
|
|
10448
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({
|
|
10505
10449
|
"data-state": visible ? "visible" : "hidden"
|
|
10506
10450
|
}, scrollbarProps, {
|
|
10507
10451
|
ref: forwardedRef
|
|
@@ -10571,7 +10515,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10571
10515
|
]);
|
|
10572
10516
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10573
10517
|
present: forceMount || state !== "hidden"
|
|
10574
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
|
|
10518
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
|
|
10575
10519
|
"data-state": state === "hidden" ? "hidden" : "visible"
|
|
10576
10520
|
}, scrollbarProps, {
|
|
10577
10521
|
ref: forwardedRef,
|
|
@@ -10601,7 +10545,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10601
10545
|
$57acba87d6e25586$var$useResizeObserver(context.content, handleResize);
|
|
10602
10546
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10603
10547
|
present: forceMount || visible
|
|
10604
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
|
|
10548
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
|
|
10605
10549
|
"data-state": visible ? "visible" : "hidden"
|
|
10606
10550
|
}, scrollbarProps, {
|
|
10607
10551
|
ref: forwardedRef
|
|
@@ -10635,7 +10579,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10635
10579
|
return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir);
|
|
10636
10580
|
}
|
|
10637
10581
|
if (orientation === "horizontal")
|
|
10638
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends({}, commonProps, {
|
|
10582
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$1({}, commonProps, {
|
|
10639
10583
|
ref: forwardedRef,
|
|
10640
10584
|
onThumbPositionChange: () => {
|
|
10641
10585
|
if (context.viewport && thumbRef.current) {
|
|
@@ -10654,7 +10598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10654
10598
|
}
|
|
10655
10599
|
}));
|
|
10656
10600
|
if (orientation === "vertical")
|
|
10657
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends({}, commonProps, {
|
|
10601
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$1({}, commonProps, {
|
|
10658
10602
|
ref: forwardedRef,
|
|
10659
10603
|
onThumbPositionChange: () => {
|
|
10660
10604
|
if (context.viewport && thumbRef.current) {
|
|
@@ -10686,7 +10630,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10686
10630
|
}, [
|
|
10687
10631
|
ref
|
|
10688
10632
|
]);
|
|
10689
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
|
|
10633
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
|
|
10690
10634
|
"data-orientation": "horizontal"
|
|
10691
10635
|
}, scrollbarProps, {
|
|
10692
10636
|
ref: composeRefs,
|
|
@@ -10734,7 +10678,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10734
10678
|
}, [
|
|
10735
10679
|
ref
|
|
10736
10680
|
]);
|
|
10737
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
|
|
10681
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
|
|
10738
10682
|
"data-orientation": "vertical"
|
|
10739
10683
|
}, scrollbarProps, {
|
|
10740
10684
|
ref: composeRefs,
|
|
@@ -10830,7 +10774,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10830
10774
|
onThumbPointerUp: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),
|
|
10831
10775
|
onThumbPositionChange: handleThumbPositionChange,
|
|
10832
10776
|
onThumbPointerDown: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)
|
|
10833
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, scrollbarProps, {
|
|
10777
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, scrollbarProps, {
|
|
10834
10778
|
ref: composeRefs,
|
|
10835
10779
|
style: {
|
|
10836
10780
|
position: "absolute",
|
|
@@ -10867,7 +10811,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10867
10811
|
const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea);
|
|
10868
10812
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10869
10813
|
present: forceMount || scrollbarContext.hasThumb
|
|
10870
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends({
|
|
10814
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$1({
|
|
10871
10815
|
ref: forwardedRef
|
|
10872
10816
|
}, thumbProps)));
|
|
10873
10817
|
});
|
|
@@ -10907,7 +10851,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10907
10851
|
debounceScrollEnd,
|
|
10908
10852
|
onThumbPositionChange
|
|
10909
10853
|
]);
|
|
10910
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10854
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10911
10855
|
"data-state": scrollbarContext.hasThumb ? "visible" : "hidden"
|
|
10912
10856
|
}, thumbProps, {
|
|
10913
10857
|
ref: composedRef,
|
|
@@ -10934,7 +10878,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10934
10878
|
const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea);
|
|
10935
10879
|
const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);
|
|
10936
10880
|
const hasCorner = context.type !== "scroll" && hasBothScrollbarsVisible;
|
|
10937
|
-
return hasCorner ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends({}, props, {
|
|
10881
|
+
return hasCorner ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$1({}, props, {
|
|
10938
10882
|
ref: forwardedRef
|
|
10939
10883
|
})) : null;
|
|
10940
10884
|
});
|
|
@@ -10956,7 +10900,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10956
10900
|
context.onCornerWidthChange(width);
|
|
10957
10901
|
setWidth(width);
|
|
10958
10902
|
});
|
|
10959
|
-
return hasSize ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, cornerProps, {
|
|
10903
|
+
return hasSize ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, cornerProps, {
|
|
10960
10904
|
ref: forwardedRef,
|
|
10961
10905
|
style: {
|
|
10962
10906
|
width: width1,
|
|
@@ -11217,7 +11161,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11217
11161
|
scope: props.__scopeSlider
|
|
11218
11162
|
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$Collection.Slot, {
|
|
11219
11163
|
scope: props.__scopeSlider
|
|
11220
|
-
}, /* @__PURE__ */ React.createElement(SliderOrientation, _extends({
|
|
11164
|
+
}, /* @__PURE__ */ React.createElement(SliderOrientation, _extends$1({
|
|
11221
11165
|
"aria-disabled": disabled,
|
|
11222
11166
|
"data-disabled": disabled ? "" : void 0
|
|
11223
11167
|
}, sliderProps, {
|
|
@@ -11299,7 +11243,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11299
11243
|
endEdge: isSlidingFromLeft ? "right" : "left",
|
|
11300
11244
|
direction: isSlidingFromLeft ? 1 : -1,
|
|
11301
11245
|
size: "width"
|
|
11302
|
-
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderImpl, _extends({
|
|
11246
|
+
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
|
|
11303
11247
|
dir: direction,
|
|
11304
11248
|
"data-orientation": "horizontal"
|
|
11305
11249
|
}, sliderProps, {
|
|
@@ -11359,7 +11303,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11359
11303
|
endEdge: isSlidingFromBottom ? "top" : "bottom",
|
|
11360
11304
|
size: "height",
|
|
11361
11305
|
direction: isSlidingFromBottom ? 1 : -1
|
|
11362
|
-
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderImpl, _extends({
|
|
11306
|
+
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
|
|
11363
11307
|
"data-orientation": "vertical"
|
|
11364
11308
|
}, sliderProps, {
|
|
11365
11309
|
ref,
|
|
@@ -11392,7 +11336,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11392
11336
|
const $faa2e61a3361514f$var$SliderImpl = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11393
11337
|
const { __scopeSlider, onSlideStart, onSlideMove, onSlideEnd, onHomeKeyDown, onEndKeyDown, onStepKeyDown, ...sliderProps } = props;
|
|
11394
11338
|
const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$SLIDER_NAME, __scopeSlider);
|
|
11395
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, sliderProps, {
|
|
11339
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, sliderProps, {
|
|
11396
11340
|
ref: forwardedRef,
|
|
11397
11341
|
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
|
|
11398
11342
|
if (event.key === "Home") {
|
|
@@ -11433,7 +11377,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11433
11377
|
const $faa2e61a3361514f$export$105594979f116971 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11434
11378
|
const { __scopeSlider, ...trackProps } = props;
|
|
11435
11379
|
const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$TRACK_NAME, __scopeSlider);
|
|
11436
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11380
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11437
11381
|
"data-disabled": context.disabled ? "" : void 0,
|
|
11438
11382
|
"data-orientation": context.orientation
|
|
11439
11383
|
}, trackProps, {
|
|
@@ -11453,7 +11397,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11453
11397
|
);
|
|
11454
11398
|
const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;
|
|
11455
11399
|
const offsetEnd = 100 - Math.max(...percentages);
|
|
11456
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11400
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11457
11401
|
"data-orientation": context.orientation,
|
|
11458
11402
|
"data-disabled": context.disabled ? "" : void 0
|
|
11459
11403
|
}, rangeProps, {
|
|
@@ -11482,7 +11426,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11482
11426
|
thumb
|
|
11483
11427
|
]
|
|
11484
11428
|
);
|
|
11485
|
-
return /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends({}, props, {
|
|
11429
|
+
return /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends$1({}, props, {
|
|
11486
11430
|
ref: composedRefs,
|
|
11487
11431
|
index: index2
|
|
11488
11432
|
}));
|
|
@@ -11521,7 +11465,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11521
11465
|
}
|
|
11522
11466
|
}, /* @__PURE__ */ React.createElement($faa2e61a3361514f$var$Collection.ItemSlot, {
|
|
11523
11467
|
scope: props.__scopeSlider
|
|
11524
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11468
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11525
11469
|
role: "slider",
|
|
11526
11470
|
"aria-label": props["aria-label"] || label,
|
|
11527
11471
|
"aria-valuemin": context.min,
|
|
@@ -11561,7 +11505,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11561
11505
|
prevValue,
|
|
11562
11506
|
value
|
|
11563
11507
|
]);
|
|
11564
|
-
return /* @__PURE__ */ React.createElement("input", _extends({
|
|
11508
|
+
return /* @__PURE__ */ React.createElement("input", _extends$1({
|
|
11565
11509
|
style: {
|
|
11566
11510
|
display: "none"
|
|
11567
11511
|
}
|
|
@@ -11780,7 +11724,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11780
11724
|
scope: __scopeAvatar,
|
|
11781
11725
|
imageLoadingStatus,
|
|
11782
11726
|
onImageLoadingStatusChange: setImageLoadingStatus
|
|
11783
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, avatarProps, {
|
|
11727
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, avatarProps, {
|
|
11784
11728
|
ref: forwardedRef
|
|
11785
11729
|
})));
|
|
11786
11730
|
});
|
|
@@ -11801,7 +11745,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11801
11745
|
imageLoadingStatus,
|
|
11802
11746
|
handleLoadingStatusChange
|
|
11803
11747
|
]);
|
|
11804
|
-
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends({}, imageProps, {
|
|
11748
|
+
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends$1({}, imageProps, {
|
|
11805
11749
|
ref: forwardedRef,
|
|
11806
11750
|
src
|
|
11807
11751
|
})) : null;
|
|
@@ -11822,7 +11766,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11822
11766
|
}, [
|
|
11823
11767
|
delayMs
|
|
11824
11768
|
]);
|
|
11825
|
-
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, fallbackProps, {
|
|
11769
|
+
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, fallbackProps, {
|
|
11826
11770
|
ref: forwardedRef
|
|
11827
11771
|
})) : null;
|
|
11828
11772
|
});
|
|
@@ -11926,7 +11870,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11926
11870
|
orientation,
|
|
11927
11871
|
dir: direction,
|
|
11928
11872
|
activationMode
|
|
11929
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11873
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
11930
11874
|
dir: direction,
|
|
11931
11875
|
"data-orientation": orientation
|
|
11932
11876
|
}, tabsProps, {
|
|
@@ -11938,13 +11882,13 @@ var __publicField = (obj, key, value) => {
|
|
|
11938
11882
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
11939
11883
|
const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);
|
|
11940
11884
|
const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);
|
|
11941
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
|
|
11885
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$1({
|
|
11942
11886
|
asChild: true
|
|
11943
11887
|
}, rovingFocusGroupScope, {
|
|
11944
11888
|
orientation: context.orientation,
|
|
11945
11889
|
dir: context.dir,
|
|
11946
11890
|
loop
|
|
11947
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11891
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
11948
11892
|
role: "tablist",
|
|
11949
11893
|
"aria-orientation": context.orientation
|
|
11950
11894
|
}, listProps, {
|
|
@@ -11959,12 +11903,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11959
11903
|
const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);
|
|
11960
11904
|
const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);
|
|
11961
11905
|
const isSelected = value === context.value;
|
|
11962
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
|
|
11906
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$1({
|
|
11963
11907
|
asChild: true
|
|
11964
11908
|
}, rovingFocusGroupScope, {
|
|
11965
11909
|
focusable: !disabled,
|
|
11966
11910
|
active: isSelected
|
|
11967
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
11911
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
|
|
11968
11912
|
type: "button",
|
|
11969
11913
|
role: "tab",
|
|
11970
11914
|
"aria-selected": isSelected,
|
|
@@ -12014,7 +11958,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12014
11958
|
{
|
|
12015
11959
|
present: forceMount || isSelected
|
|
12016
11960
|
},
|
|
12017
|
-
({ present }) => /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11961
|
+
({ present }) => /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
12018
11962
|
"data-state": isSelected ? "active" : "inactive",
|
|
12019
11963
|
"data-orientation": context.orientation,
|
|
12020
11964
|
role: "tabpanel",
|
|
@@ -12074,6 +12018,260 @@ var __publicField = (obj, key, value) => {
|
|
|
12074
12018
|
Trigger: TabsTrigger,
|
|
12075
12019
|
Content: TabsContent
|
|
12076
12020
|
});
|
|
12021
|
+
const truthyValues = [true, "true"];
|
|
12022
|
+
const BooleanInput = React.memo((props) => {
|
|
12023
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
12024
|
+
let [{ helpText, label }] = useFormikInput(props);
|
|
12025
|
+
helpText = showInputOnly ? null : helpText;
|
|
12026
|
+
label = showInputOnly ? "" : label;
|
|
12027
|
+
const color = blocks.useSeverityColor(severity);
|
|
12028
|
+
const value = truthyValues.includes(fieldProps.value);
|
|
12029
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12030
|
+
InputWithLabel,
|
|
12031
|
+
{
|
|
12032
|
+
size,
|
|
12033
|
+
severity,
|
|
12034
|
+
inputId,
|
|
12035
|
+
labelId,
|
|
12036
|
+
label,
|
|
12037
|
+
image: showInputOnly ? void 0 : field.image,
|
|
12038
|
+
flexProps: { direction: "row-reverse", justify: "end", align: "center", gap: "2" },
|
|
12039
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12040
|
+
Checkbox,
|
|
12041
|
+
{
|
|
12042
|
+
...rest,
|
|
12043
|
+
...fieldProps,
|
|
12044
|
+
id: inputId,
|
|
12045
|
+
color,
|
|
12046
|
+
value: value.toString(),
|
|
12047
|
+
checked: value,
|
|
12048
|
+
onCheckedChange: fieldProps.onChange,
|
|
12049
|
+
onChange: void 0,
|
|
12050
|
+
onBlur: void 0
|
|
12051
|
+
}
|
|
12052
|
+
)
|
|
12053
|
+
}
|
|
12054
|
+
) });
|
|
12055
|
+
});
|
|
12056
|
+
BooleanInput.displayName = "BooleanInput";
|
|
12057
|
+
var DefaultContext = {
|
|
12058
|
+
color: void 0,
|
|
12059
|
+
size: void 0,
|
|
12060
|
+
className: void 0,
|
|
12061
|
+
style: void 0,
|
|
12062
|
+
attr: void 0
|
|
12063
|
+
};
|
|
12064
|
+
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
12065
|
+
var _excluded = ["attr", "size", "title"];
|
|
12066
|
+
function _objectWithoutProperties(source, excluded) {
|
|
12067
|
+
if (source == null)
|
|
12068
|
+
return {};
|
|
12069
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
12070
|
+
var key, i;
|
|
12071
|
+
if (Object.getOwnPropertySymbols) {
|
|
12072
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
12073
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12074
|
+
key = sourceSymbolKeys[i];
|
|
12075
|
+
if (excluded.indexOf(key) >= 0)
|
|
12076
|
+
continue;
|
|
12077
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
12078
|
+
continue;
|
|
12079
|
+
target[key] = source[key];
|
|
12080
|
+
}
|
|
12081
|
+
}
|
|
12082
|
+
return target;
|
|
12083
|
+
}
|
|
12084
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
12085
|
+
if (source == null)
|
|
12086
|
+
return {};
|
|
12087
|
+
var target = {};
|
|
12088
|
+
for (var key in source) {
|
|
12089
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12090
|
+
if (excluded.indexOf(key) >= 0)
|
|
12091
|
+
continue;
|
|
12092
|
+
target[key] = source[key];
|
|
12093
|
+
}
|
|
12094
|
+
}
|
|
12095
|
+
return target;
|
|
12096
|
+
}
|
|
12097
|
+
function _extends() {
|
|
12098
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
12099
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12100
|
+
var source = arguments[i];
|
|
12101
|
+
for (var key in source) {
|
|
12102
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12103
|
+
target[key] = source[key];
|
|
12104
|
+
}
|
|
12105
|
+
}
|
|
12106
|
+
}
|
|
12107
|
+
return target;
|
|
12108
|
+
};
|
|
12109
|
+
return _extends.apply(this, arguments);
|
|
12110
|
+
}
|
|
12111
|
+
function ownKeys(e, r) {
|
|
12112
|
+
var t = Object.keys(e);
|
|
12113
|
+
if (Object.getOwnPropertySymbols) {
|
|
12114
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
12115
|
+
r && (o = o.filter(function(r2) {
|
|
12116
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
12117
|
+
})), t.push.apply(t, o);
|
|
12118
|
+
}
|
|
12119
|
+
return t;
|
|
12120
|
+
}
|
|
12121
|
+
function _objectSpread(e) {
|
|
12122
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12123
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
12124
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
12125
|
+
_defineProperty(e, r2, t[r2]);
|
|
12126
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
12127
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
12128
|
+
});
|
|
12129
|
+
}
|
|
12130
|
+
return e;
|
|
12131
|
+
}
|
|
12132
|
+
function _defineProperty(obj, key, value) {
|
|
12133
|
+
key = _toPropertyKey(key);
|
|
12134
|
+
if (key in obj) {
|
|
12135
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12136
|
+
} else {
|
|
12137
|
+
obj[key] = value;
|
|
12138
|
+
}
|
|
12139
|
+
return obj;
|
|
12140
|
+
}
|
|
12141
|
+
function _toPropertyKey(t) {
|
|
12142
|
+
var i = _toPrimitive(t, "string");
|
|
12143
|
+
return "symbol" == typeof i ? i : i + "";
|
|
12144
|
+
}
|
|
12145
|
+
function _toPrimitive(t, r) {
|
|
12146
|
+
if ("object" != typeof t || !t)
|
|
12147
|
+
return t;
|
|
12148
|
+
var e = t[Symbol.toPrimitive];
|
|
12149
|
+
if (void 0 !== e) {
|
|
12150
|
+
var i = e.call(t, r || "default");
|
|
12151
|
+
if ("object" != typeof i)
|
|
12152
|
+
return i;
|
|
12153
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12154
|
+
}
|
|
12155
|
+
return ("string" === r ? String : Number)(t);
|
|
12156
|
+
}
|
|
12157
|
+
function Tree2Element(tree) {
|
|
12158
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React.createElement(node.tag, _objectSpread({
|
|
12159
|
+
key: i
|
|
12160
|
+
}, node.attr), Tree2Element(node.child)));
|
|
12161
|
+
}
|
|
12162
|
+
function GenIcon(data) {
|
|
12163
|
+
return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends({
|
|
12164
|
+
attr: _objectSpread({}, data.attr)
|
|
12165
|
+
}, props), Tree2Element(data.child));
|
|
12166
|
+
}
|
|
12167
|
+
function IconBase(props) {
|
|
12168
|
+
var elem = (conf) => {
|
|
12169
|
+
var {
|
|
12170
|
+
attr,
|
|
12171
|
+
size,
|
|
12172
|
+
title: title2
|
|
12173
|
+
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
12174
|
+
var computedSize = size || conf.size || "1em";
|
|
12175
|
+
var className;
|
|
12176
|
+
if (conf.className)
|
|
12177
|
+
className = conf.className;
|
|
12178
|
+
if (props.className)
|
|
12179
|
+
className = (className ? className + " " : "") + props.className;
|
|
12180
|
+
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
12181
|
+
stroke: "currentColor",
|
|
12182
|
+
fill: "currentColor",
|
|
12183
|
+
strokeWidth: "0"
|
|
12184
|
+
}, conf.attr, attr, svgProps, {
|
|
12185
|
+
className,
|
|
12186
|
+
style: _objectSpread(_objectSpread({
|
|
12187
|
+
color: props.color || conf.color
|
|
12188
|
+
}, conf.style), props.style),
|
|
12189
|
+
height: computedSize,
|
|
12190
|
+
width: computedSize,
|
|
12191
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12192
|
+
}), title2 && /* @__PURE__ */ React.createElement("title", null, title2), props.children);
|
|
12193
|
+
};
|
|
12194
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
12195
|
+
}
|
|
12196
|
+
function RiArrowDownLine(props) {
|
|
12197
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
|
|
12198
|
+
}
|
|
12199
|
+
function RiArrowUpLine(props) {
|
|
12200
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
|
|
12201
|
+
}
|
|
12202
|
+
function RiCalendarLine(props) {
|
|
12203
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
|
|
12204
|
+
}
|
|
12205
|
+
function RiQrCodeLine(props) {
|
|
12206
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M16 17V16H13V13H16V15H18V17H17V19H15V21H13V18H15V17H16ZM21 21H17V19H19V17H21V21ZM3 3H11V11H3V3ZM5 5V9H9V5H5ZM13 3H21V11H13V3ZM15 5V9H19V5H15ZM3 13H11V21H3V13ZM5 15V19H9V15H5ZM18 13H21V15H18V13ZM6 6H8V8H6V6ZM6 16H8V18H6V16ZM16 6H18V8H16V6Z" }, "child": [] }] })(props);
|
|
12207
|
+
}
|
|
12208
|
+
function RiFileCopyLine(props) {
|
|
12209
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
|
|
12210
|
+
}
|
|
12211
|
+
function RiAlignJustify(props) {
|
|
12212
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
|
|
12213
|
+
}
|
|
12214
|
+
function RiHashtag(props) {
|
|
12215
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
|
|
12216
|
+
}
|
|
12217
|
+
function RiInputField(props) {
|
|
12218
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
|
|
12219
|
+
}
|
|
12220
|
+
function RiListCheck(props) {
|
|
12221
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
|
|
12222
|
+
}
|
|
12223
|
+
function RiImageLine(props) {
|
|
12224
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
|
|
12225
|
+
}
|
|
12226
|
+
function RiCheckboxCircleLine(props) {
|
|
12227
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
12228
|
+
}
|
|
12229
|
+
function RiCheckboxLine(props) {
|
|
12230
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
12231
|
+
}
|
|
12232
|
+
function RiDeleteBin2Line(props) {
|
|
12233
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
|
|
12234
|
+
}
|
|
12235
|
+
function RiMenuFoldLine(props) {
|
|
12236
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
|
|
12237
|
+
}
|
|
12238
|
+
function RiUpload2Line(props) {
|
|
12239
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
|
|
12240
|
+
}
|
|
12241
|
+
const emptyBooleanField = {
|
|
12242
|
+
...emptyBaseField,
|
|
12243
|
+
type: "boolean"
|
|
12244
|
+
};
|
|
12245
|
+
const _BooleanField = class _BooleanField extends BaseField {
|
|
12246
|
+
constructor(options) {
|
|
12247
|
+
super({ ...options, type: "boolean" });
|
|
12248
|
+
__publicField(this, "onlyValidateAfterTouched", false);
|
|
12249
|
+
}
|
|
12250
|
+
// if a BooleanField is required, `false` is considered blank
|
|
12251
|
+
isBlank(value) {
|
|
12252
|
+
return this.required && !value;
|
|
12253
|
+
}
|
|
12254
|
+
getValueFromChangeEvent(event) {
|
|
12255
|
+
if (typeof event === "boolean")
|
|
12256
|
+
return event;
|
|
12257
|
+
return event.target.checked;
|
|
12258
|
+
}
|
|
12259
|
+
serialize() {
|
|
12260
|
+
return super._serialize();
|
|
12261
|
+
}
|
|
12262
|
+
static deserialize(data) {
|
|
12263
|
+
if (data.type !== "boolean")
|
|
12264
|
+
throw new Error("Type mismatch.");
|
|
12265
|
+
return new _BooleanField(data);
|
|
12266
|
+
}
|
|
12267
|
+
getInput(props) {
|
|
12268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BooleanInput, { ...props, field: this });
|
|
12269
|
+
}
|
|
12270
|
+
};
|
|
12271
|
+
__publicField(_BooleanField, "fieldTypeName", "Checkbox");
|
|
12272
|
+
__publicField(_BooleanField, "fieldTypeDescription", "Perfect for both optional and required yes/no questions.");
|
|
12273
|
+
__publicField(_BooleanField, "Icon", RiCheckboxCircleLine);
|
|
12274
|
+
let BooleanField = _BooleanField;
|
|
12077
12275
|
const NumberInput = React.memo((props) => {
|
|
12078
12276
|
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
12079
12277
|
let [{ helpText, label }] = useFormikInput(props);
|
|
@@ -13179,7 +13377,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13179
13377
|
] }),
|
|
13180
13378
|
value && /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "jade", size: "1", children: /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiCheckLine", style: { verticalAlign: "bottom" } }) })
|
|
13181
13379
|
] }),
|
|
13182
|
-
value && /* @__PURE__ */ jsxRuntime.jsx(Card, { children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { width: "max-content", gap: "2", align: "center", children: [
|
|
13380
|
+
!!value && /* @__PURE__ */ jsxRuntime.jsx(Card, { children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { width: "max-content", gap: "2", align: "center", children: [
|
|
13183
13381
|
/* @__PURE__ */ jsxRuntime.jsx(Code, { color: "gray", highContrast: true, children: value }),
|
|
13184
13382
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13185
13383
|
blocks.IconButton,
|
|
@@ -13219,9 +13417,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13219
13417
|
}
|
|
13220
13418
|
);
|
|
13221
13419
|
setIsScannerLoading(true);
|
|
13222
|
-
qrScanner.start().
|
|
13223
|
-
setIsScannerLoading(false);
|
|
13224
|
-
}).catch(() => {
|
|
13420
|
+
void qrScanner.start().finally(() => {
|
|
13225
13421
|
setIsScannerLoading(false);
|
|
13226
13422
|
});
|
|
13227
13423
|
}, [onQrScan]);
|