opus-toolkit-components 1.5.3 → 1.5.5
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/lib/opus-components.main.js +730 -544
- package/lib/opus-components.main.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,25 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 20:
|
|
16
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
var __webpack_unused_export__;
|
|
19
|
+
/**
|
|
20
|
+
* @license React
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
var f=__webpack_require__(155),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
29
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}__webpack_unused_export__=l;exports.jsx=q;exports.jsxs=q;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/***/ }),
|
|
33
|
+
|
|
15
34
|
/***/ 56:
|
|
16
35
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
17
36
|
|
|
@@ -578,6 +597,19 @@ ___CSS_LOADER_EXPORT___.push([module.id, ``, "",{"version":3,"sources":[],"names
|
|
|
578
597
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
579
598
|
|
|
580
599
|
|
|
600
|
+
/***/ }),
|
|
601
|
+
|
|
602
|
+
/***/ 848:
|
|
603
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
if (true) {
|
|
608
|
+
module.exports = __webpack_require__(20);
|
|
609
|
+
} else // removed by dead control flow
|
|
610
|
+
{}
|
|
611
|
+
|
|
612
|
+
|
|
581
613
|
/***/ }),
|
|
582
614
|
|
|
583
615
|
/***/ 908:
|
|
@@ -1133,8 +1165,11 @@ function ChevronDownIcon({
|
|
|
1133
1165
|
}
|
|
1134
1166
|
const ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon);
|
|
1135
1167
|
/* harmony default export */ const esm_ChevronDownIcon = (ChevronDownIcon_ForwardRef);
|
|
1168
|
+
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
1169
|
+
var jsx_runtime = __webpack_require__(848);
|
|
1136
1170
|
;// ./src/components/Pills/Pill.jsx
|
|
1137
1171
|
|
|
1172
|
+
|
|
1138
1173
|
const statusClasses = {
|
|
1139
1174
|
primary: 'bg-[--color-primary-btn] text-[--color-white]',
|
|
1140
1175
|
danger: 'bg-[--color-util-red] text-[--color-white]',
|
|
@@ -1152,11 +1187,12 @@ const Pill = _ref => {
|
|
|
1152
1187
|
} = _ref;
|
|
1153
1188
|
const baseClasses = 'inline-flex items-center gap-1 text-xs font-medium px-3 py-1 rounded-full';
|
|
1154
1189
|
const statusClass = statusClasses[status] || statusClasses.info;
|
|
1155
|
-
return /*#__PURE__*/
|
|
1156
|
-
className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className)
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1190
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
1191
|
+
className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className),
|
|
1192
|
+
children: [Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
1193
|
+
className: "w-4 h-4"
|
|
1194
|
+
}), text]
|
|
1195
|
+
});
|
|
1160
1196
|
};
|
|
1161
1197
|
/* harmony default export */ const Pills_Pill = (Pill);
|
|
1162
1198
|
;// ./src/utils/getDataCy.js
|
|
@@ -1172,11 +1208,16 @@ const getDataCy = function () {
|
|
|
1172
1208
|
};
|
|
1173
1209
|
;// ./src/components/Text/Text.jsx
|
|
1174
1210
|
const _excluded = ["variant", "as", "className", "color", "children", "name", "dataCy"];
|
|
1175
|
-
function
|
|
1211
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1212
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1213
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1214
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
1215
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1176
1216
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
1177
1217
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
1178
1218
|
|
|
1179
1219
|
|
|
1220
|
+
|
|
1180
1221
|
const variantMap = {
|
|
1181
1222
|
h1: "text-4xl font-bold leading-tight",
|
|
1182
1223
|
h2: "text-3xl leading-snug",
|
|
@@ -1214,19 +1255,22 @@ function Text(_ref) {
|
|
|
1214
1255
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
1215
1256
|
const Component = as || elementMap[variant] || "p";
|
|
1216
1257
|
const variantClass = variantMap[variant] || variantMap.body;
|
|
1217
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, _objectSpread(_objectSpread({
|
|
1218
1259
|
className: "".concat(variantClass, " ").concat(color, " ").concat(className),
|
|
1219
1260
|
"data-cy": getDataCy({
|
|
1220
1261
|
name,
|
|
1221
1262
|
dataCy
|
|
1222
1263
|
})
|
|
1223
|
-
}, rest),
|
|
1264
|
+
}, rest), {}, {
|
|
1265
|
+
children: children
|
|
1266
|
+
}));
|
|
1224
1267
|
}
|
|
1225
1268
|
;// ./src/components/Accordions/Accordion.jsx
|
|
1226
1269
|
|
|
1227
1270
|
|
|
1228
1271
|
|
|
1229
1272
|
|
|
1273
|
+
|
|
1230
1274
|
const Accordion = _ref => {
|
|
1231
1275
|
let {
|
|
1232
1276
|
title,
|
|
@@ -1264,43 +1308,52 @@ const Accordion = _ref => {
|
|
|
1264
1308
|
setInternalActiveIndex(activeIndex);
|
|
1265
1309
|
}
|
|
1266
1310
|
}, [activeIndex]);
|
|
1267
|
-
return /*#__PURE__*/
|
|
1311
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
1268
1312
|
id: "accordion-".concat(index),
|
|
1269
|
-
className: "accordion w-full border border-[--color-stroke] shadow-lg ".concat(disabled ? "pointer-events-none opacity-50" : "", " rounded-lg")
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1313
|
+
className: "accordion w-full border border-[--color-stroke] shadow-lg ".concat(disabled ? "pointer-events-none opacity-50" : "", " rounded-lg"),
|
|
1314
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
1315
|
+
className: "accordion-item",
|
|
1316
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
1317
|
+
onClick: !isPreview && !isLocked ? toggle : null,
|
|
1318
|
+
className: "accordion-header flex items-center justify-between rounded-t-lg bg-[--color-accordion-header] ".concat(isActive || isPreview ? "" : "rounded-b-lg", " hover: ").concat(!isLocked ? "cursor-pointer" : null, " "),
|
|
1319
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
1320
|
+
className: "flex items-center justify-between gap-2",
|
|
1321
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
1322
|
+
as: "h2",
|
|
1323
|
+
variant: "h2",
|
|
1324
|
+
className: "text-h4 mx-4 my-2 text-[--color-text-strong]",
|
|
1325
|
+
children: title
|
|
1326
|
+
})
|
|
1327
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
1328
|
+
className: "flex items-center gap-4",
|
|
1329
|
+
children: [isPill && /*#__PURE__*/(0,jsx_runtime.jsx)(Pills_Pill, {
|
|
1330
|
+
text: pillText,
|
|
1331
|
+
status: pillStatus,
|
|
1332
|
+
icon: pillIcon
|
|
1333
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
1334
|
+
className: "border-0 ".concat(!isLocked && "cursor-pointer border-l-2", " border-solid border-[--color-stroke] p-4"),
|
|
1335
|
+
onClick: !isLocked ? toggle : null // toggle only here
|
|
1336
|
+
,
|
|
1337
|
+
children: isPreview && !isLocked ? /*#__PURE__*/(0,jsx_runtime.jsx)(esm_PencilSquareIcon, {
|
|
1338
|
+
className: "h-5 w-5 text-[--color-text-strong]",
|
|
1339
|
+
onClick: e => {
|
|
1340
|
+
e.stopPropagation(); // prevent toggle from firing on pencil click
|
|
1341
|
+
onExitPreview(); // trigger exit preview
|
|
1342
|
+
}
|
|
1343
|
+
}) : !isLocked ? /*#__PURE__*/(0,jsx_runtime.jsx)(esm_ChevronDownIcon, {
|
|
1344
|
+
className: "h-4 w-4 transform text-[--color-text-strong] transition-transform ".concat(isActive ? "rotate-180" : "rotate-0")
|
|
1345
|
+
}) : null
|
|
1346
|
+
})]
|
|
1347
|
+
})]
|
|
1348
|
+
})
|
|
1349
|
+
}, index), isActive && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
1350
|
+
className: "accordion-body rounded-b-lg border-0 border-t-2 border-solid border-[--color-stroke] bg-[--color-accordion-body] p-3 text-[--color-text-weak]",
|
|
1351
|
+
children: content
|
|
1352
|
+
}), isPreview && activeIndex !== index && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
1353
|
+
className: "accordion-body rounded-b-lg border-0 border-t-2 border-solid border-[--color-stroke] bg-[--color-accordion-body] p-3 text-[--color-text-weak]",
|
|
1354
|
+
children: preview
|
|
1355
|
+
})]
|
|
1356
|
+
});
|
|
1304
1357
|
};
|
|
1305
1358
|
/* harmony default export */ const Accordions_Accordion = (Accordion);
|
|
1306
1359
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
@@ -1584,22 +1637,22 @@ var IconContext = external_react_.createContext && /*#__PURE__*/external_react_.
|
|
|
1584
1637
|
var iconBase_excluded = ["attr", "size", "title"];
|
|
1585
1638
|
function iconBase_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = iconBase_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1586
1639
|
function iconBase_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
1587
|
-
function
|
|
1588
|
-
function
|
|
1589
|
-
function
|
|
1590
|
-
function
|
|
1591
|
-
function
|
|
1592
|
-
function
|
|
1640
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1641
|
+
function iconBase_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1642
|
+
function iconBase_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? iconBase_ownKeys(Object(t), !0).forEach(function (r) { iconBase_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : iconBase_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1643
|
+
function iconBase_defineProperty(obj, key, value) { key = iconBase_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1644
|
+
function iconBase_toPropertyKey(t) { var i = iconBase_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
1645
|
+
function iconBase_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1593
1646
|
|
|
1594
1647
|
|
|
1595
1648
|
function Tree2Element(tree) {
|
|
1596
|
-
return tree && tree.map((node, i) => /*#__PURE__*/external_react_.createElement(node.tag,
|
|
1649
|
+
return tree && tree.map((node, i) => /*#__PURE__*/external_react_.createElement(node.tag, iconBase_objectSpread({
|
|
1597
1650
|
key: i
|
|
1598
1651
|
}, node.attr), Tree2Element(node.child)));
|
|
1599
1652
|
}
|
|
1600
1653
|
function iconBase_GenIcon(data) {
|
|
1601
|
-
return props => /*#__PURE__*/external_react_.createElement(IconBase,
|
|
1602
|
-
attr:
|
|
1654
|
+
return props => /*#__PURE__*/external_react_.createElement(IconBase, _extends({
|
|
1655
|
+
attr: iconBase_objectSpread({}, data.attr)
|
|
1603
1656
|
}, props), Tree2Element(data.child));
|
|
1604
1657
|
}
|
|
1605
1658
|
function IconBase(props) {
|
|
@@ -1614,13 +1667,13 @@ function IconBase(props) {
|
|
|
1614
1667
|
var className;
|
|
1615
1668
|
if (conf.className) className = conf.className;
|
|
1616
1669
|
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
1617
|
-
return /*#__PURE__*/external_react_.createElement("svg",
|
|
1670
|
+
return /*#__PURE__*/external_react_.createElement("svg", _extends({
|
|
1618
1671
|
stroke: "currentColor",
|
|
1619
1672
|
fill: "currentColor",
|
|
1620
1673
|
strokeWidth: "0"
|
|
1621
1674
|
}, conf.attr, attr, svgProps, {
|
|
1622
1675
|
className: className,
|
|
1623
|
-
style:
|
|
1676
|
+
style: iconBase_objectSpread(iconBase_objectSpread({
|
|
1624
1677
|
color: props.color || conf.color
|
|
1625
1678
|
}, conf.style), props.style),
|
|
1626
1679
|
height: computedSize,
|
|
@@ -4137,6 +4190,7 @@ function AiTwotoneWarning (props) {
|
|
|
4137
4190
|
// Import a spinner icon
|
|
4138
4191
|
|
|
4139
4192
|
// test 2 for Husky
|
|
4193
|
+
|
|
4140
4194
|
function Button(_ref) {
|
|
4141
4195
|
let {
|
|
4142
4196
|
type = "button",
|
|
@@ -4180,7 +4234,7 @@ function Button(_ref) {
|
|
|
4180
4234
|
|
|
4181
4235
|
// Main button class names
|
|
4182
4236
|
const classNames = " \n ".concat(state === "disabled" || isSaving ? disabledStyles : rankStyles[rank] || rankStyles.primary, "\n group \n transition \n ease-in-out \n duration-700 \n rounded-md\n hover:shadow-lg\n px-5 \n py-1.5 \n text-").concat(size, " \n flex \n items-center \n justify-center \n whitespace-nowrap // Prevents text wrapping\n ").concat(isFullWidth ? "w-full" : "", "\n ").concat(className, "\n ");
|
|
4183
|
-
return /*#__PURE__*/
|
|
4237
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("button", {
|
|
4184
4238
|
type: type,
|
|
4185
4239
|
title: title,
|
|
4186
4240
|
name: name,
|
|
@@ -4192,22 +4246,25 @@ function Button(_ref) {
|
|
|
4192
4246
|
dataCy
|
|
4193
4247
|
}),
|
|
4194
4248
|
onClick: !isSaving && state !== "disabled" ? onClick : null,
|
|
4195
|
-
disabled: isSaving || state === "disabled"
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4249
|
+
disabled: isSaving || state === "disabled",
|
|
4250
|
+
children: [isSaving ? /*#__PURE__*/(0,jsx_runtime.jsx)(AiOutlineLoading3Quarters, {
|
|
4251
|
+
className: iconClassNames
|
|
4252
|
+
}) : iconPosition === "left" && Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4253
|
+
className: iconClassNames
|
|
4254
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4255
|
+
className: isSaving ? "ml-2" : "",
|
|
4256
|
+
children: isSaving ? savingText : text
|
|
4257
|
+
}), !isSaving && iconPosition === "right" && Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4258
|
+
className: iconClassNames
|
|
4259
|
+
})]
|
|
4260
|
+
});
|
|
4205
4261
|
}
|
|
4206
4262
|
;// ./node_modules/clsx/dist/clsx.mjs
|
|
4207
4263
|
function clsx_r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=clsx_r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=clsx_r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
|
|
4208
4264
|
;// ./src/components/Cards/Card.jsx
|
|
4209
4265
|
|
|
4210
4266
|
|
|
4267
|
+
|
|
4211
4268
|
function Card(_ref) {
|
|
4212
4269
|
let {
|
|
4213
4270
|
intent,
|
|
@@ -4226,9 +4283,10 @@ function Card(_ref) {
|
|
|
4226
4283
|
};
|
|
4227
4284
|
const resolvedIntent = intent || 'default';
|
|
4228
4285
|
const cardClasses = dist_clsx('p-5', 'rounded-lg', 'shadow-lg', 'border-2 border-solid border-[--color-stroke]', intentClasses[resolvedIntent], className);
|
|
4229
|
-
return /*#__PURE__*/
|
|
4230
|
-
className: cardClasses
|
|
4231
|
-
|
|
4286
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4287
|
+
className: cardClasses,
|
|
4288
|
+
children: children
|
|
4289
|
+
});
|
|
4232
4290
|
}
|
|
4233
4291
|
;// ./src/components/Forms/Inputs/Input.jsx
|
|
4234
4292
|
function Input_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -4239,6 +4297,7 @@ function Input_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var
|
|
|
4239
4297
|
|
|
4240
4298
|
|
|
4241
4299
|
|
|
4300
|
+
|
|
4242
4301
|
const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
|
|
4243
4302
|
let {
|
|
4244
4303
|
label,
|
|
@@ -4272,52 +4331,59 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
|
|
|
4272
4331
|
} = _ref;
|
|
4273
4332
|
const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
|
|
4274
4333
|
const iconClasses = "h-5 w-5 ".concat(isAnimated ? 'transition-transform duration-200 group-focus-within:scale-125' : '', " text-[--color-text-weak]");
|
|
4275
|
-
return /*#__PURE__*/
|
|
4276
|
-
className: "flex flex-col mb-4"
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4334
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4335
|
+
className: "flex flex-col mb-4",
|
|
4336
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
4337
|
+
as: "label",
|
|
4338
|
+
variant: "label",
|
|
4339
|
+
htmlFor: name,
|
|
4340
|
+
className: "mb-1 flex items-center",
|
|
4341
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4342
|
+
as: "span",
|
|
4343
|
+
variant: "small",
|
|
4344
|
+
className: "text-[--color-util-red] ml-1",
|
|
4345
|
+
children: "*"
|
|
4346
|
+
})]
|
|
4347
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4348
|
+
className: "".concat(inputClasses, " relative"),
|
|
4349
|
+
children: [Icon && iconPosition === 'left' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4350
|
+
className: "absolute left-3 flex items-center pointer-events-none",
|
|
4351
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4352
|
+
className: iconClasses
|
|
4353
|
+
})
|
|
4354
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4355
|
+
id: name,
|
|
4356
|
+
ref: ref,
|
|
4357
|
+
className: "w-full ".concat(Icon ? iconPosition === 'left' ? 'pl-10' : 'pr-10' : '', " bg-[--color-input-bg] border-none focus:ring-0 focus:outline-none rounded-md py-2 px-3"),
|
|
4358
|
+
type: type,
|
|
4359
|
+
name: name,
|
|
4360
|
+
placeholder: placeholder,
|
|
4361
|
+
onChange: onChange,
|
|
4362
|
+
value: value,
|
|
4363
|
+
title: title,
|
|
4364
|
+
tabIndex: tabIndex,
|
|
4365
|
+
required: required,
|
|
4366
|
+
disabled: disabled,
|
|
4367
|
+
"data-cy": getDataCy({
|
|
4368
|
+
name,
|
|
4369
|
+
dataCy
|
|
4370
|
+
}),
|
|
4371
|
+
"aria-invalid": !isValid,
|
|
4372
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined
|
|
4373
|
+
}), Icon && iconPosition === 'right' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4374
|
+
className: "absolute right-3 flex items-center pointer-events-none",
|
|
4375
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4376
|
+
className: iconClasses
|
|
4377
|
+
})
|
|
4378
|
+
})]
|
|
4379
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4380
|
+
as: "span",
|
|
4381
|
+
variant: "small",
|
|
4382
|
+
id: "".concat(name, "-error"),
|
|
4383
|
+
className: "text-[--color-util-red]",
|
|
4384
|
+
children: errorMessage
|
|
4385
|
+
}), shouldRenderCustomComponent && customComponent && /*#__PURE__*/external_react_default().createElement(customComponent, Input_objectSpread({}, customComponentProps))]
|
|
4386
|
+
});
|
|
4321
4387
|
});
|
|
4322
4388
|
/* harmony default export */ const Inputs_Input = (Input);
|
|
4323
4389
|
;// ./node_modules/@heroicons/react/24/outline/esm/CalendarIcon.js
|
|
@@ -4382,6 +4448,7 @@ var datepicker_update = injectStylesIntoStyleTag_default()(datepicker/* default
|
|
|
4382
4448
|
|
|
4383
4449
|
|
|
4384
4450
|
|
|
4451
|
+
|
|
4385
4452
|
function DatePicker(_ref) {
|
|
4386
4453
|
let {
|
|
4387
4454
|
initialDate = '',
|
|
@@ -4442,51 +4509,57 @@ function DatePicker(_ref) {
|
|
|
4442
4509
|
inputRef.current.showPicker();
|
|
4443
4510
|
}
|
|
4444
4511
|
};
|
|
4445
|
-
return /*#__PURE__*/
|
|
4446
|
-
className: "relative flex flex-col mb-4"
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4512
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4513
|
+
className: "relative flex flex-col mb-4",
|
|
4514
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
4515
|
+
as: "label",
|
|
4516
|
+
variant: "label",
|
|
4517
|
+
htmlFor: name,
|
|
4518
|
+
className: "mb-1",
|
|
4519
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4520
|
+
className: "text-[--color-util-red] ml-1",
|
|
4521
|
+
children: "*"
|
|
4522
|
+
})]
|
|
4523
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4524
|
+
type: "date",
|
|
4525
|
+
id: name,
|
|
4526
|
+
name: name,
|
|
4527
|
+
ref: inputRef,
|
|
4528
|
+
value: selectedDate,
|
|
4529
|
+
title: title,
|
|
4530
|
+
onChange: handleDateChange,
|
|
4531
|
+
required: required,
|
|
4532
|
+
disabled: disabled,
|
|
4533
|
+
"data-cy": getDataCy({
|
|
4534
|
+
name,
|
|
4535
|
+
dataCy
|
|
4536
|
+
}),
|
|
4537
|
+
"aria-invalid": !isValid,
|
|
4538
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
|
|
4539
|
+
className: "w-full py-2 px-3 pr-10 rounded-md bg-[--color-input-bg] border ".concat(isValid ? 'border-[--color-stroke]' : 'border-[--color-util-red]', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '', " ").concat(className)
|
|
4540
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
4541
|
+
type: "button",
|
|
4542
|
+
onClick: handleIconClick,
|
|
4543
|
+
className: "absolute top-1/2 mt-1 right-3 transform datepicker-icon-button",
|
|
4544
|
+
"aria-label": "Open date picker",
|
|
4545
|
+
disabled: disabled,
|
|
4546
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_CalendarIcon, {
|
|
4547
|
+
className: "w-5 h-5 ".concat(disabled ? 'text-[--color-text-disabled]' : 'text-[--color-text-weak] hover:text-[--color-primary-btn-hover]', " transition")
|
|
4548
|
+
})
|
|
4549
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4550
|
+
as: "span",
|
|
4551
|
+
id: "".concat(name, "-error"),
|
|
4552
|
+
variant: "small",
|
|
4553
|
+
className: "text-[--color-util-red]",
|
|
4554
|
+
children: errorMessage
|
|
4555
|
+
})]
|
|
4556
|
+
});
|
|
4485
4557
|
}
|
|
4486
4558
|
;// ./src/components/Forms/Radios/RadioButton.jsx
|
|
4487
4559
|
|
|
4488
4560
|
|
|
4489
4561
|
|
|
4562
|
+
|
|
4490
4563
|
const RadioButton = _ref => {
|
|
4491
4564
|
let {
|
|
4492
4565
|
label,
|
|
@@ -4526,48 +4599,53 @@ const RadioButton = _ref => {
|
|
|
4526
4599
|
};
|
|
4527
4600
|
onChange === null || onChange === void 0 || onChange(event);
|
|
4528
4601
|
};
|
|
4529
|
-
return /*#__PURE__*/
|
|
4530
|
-
className: "mb-4 flex flex-col ".concat(className)
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4602
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4603
|
+
className: "mb-4 flex flex-col ".concat(className),
|
|
4604
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
4605
|
+
as: "label",
|
|
4606
|
+
variant: "label",
|
|
4607
|
+
className: "mb-2 flex items-center text-[--color-text-strong]",
|
|
4608
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4609
|
+
as: "span",
|
|
4610
|
+
variant: "small",
|
|
4611
|
+
className: "ml-1 text-[--color-util-red]",
|
|
4612
|
+
children: "*"
|
|
4613
|
+
})]
|
|
4614
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4615
|
+
className: "flex flex-wrap gap-4 md:flex-nowrap md:gap-0 md:space-x-4",
|
|
4616
|
+
children: options.map(option => {
|
|
4617
|
+
const id = "".concat(name, "-").concat(option.value);
|
|
4618
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
|
|
4619
|
+
htmlFor: id,
|
|
4620
|
+
className: "mb-1 flex items-center whitespace-break-spaces rounded-lg border px-4 py-2 text-center transition duration-200 hover:border-[--color-primary-btn] ".concat(selectedValue === option.value ? "border-[--color-stroke] bg-[--color-primary-btn] text-[--color-white]" : "bg-[--color-input-bg] text-[--color-text-strong] ".concat(!isValid && selectedValue === "" ? "border-[--color-util-red]" : "border-[--color-stroke]"), " ").concat(disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"),
|
|
4621
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4622
|
+
id: id,
|
|
4623
|
+
type: "radio",
|
|
4624
|
+
tabIndex: tabIndex,
|
|
4625
|
+
title: title,
|
|
4626
|
+
name: name,
|
|
4627
|
+
value: option.value,
|
|
4628
|
+
checked: selectedValue === option.value,
|
|
4629
|
+
onChange: () => handleChange(option),
|
|
4630
|
+
className: "hidden",
|
|
4631
|
+
disabled: disabled,
|
|
4632
|
+
"data-cy": getDataCy({
|
|
4633
|
+
name,
|
|
4634
|
+
value: option.value,
|
|
4635
|
+
dataCy
|
|
4636
|
+
}),
|
|
4637
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined
|
|
4638
|
+
}), option.label]
|
|
4639
|
+
}, option.value);
|
|
4640
|
+
})
|
|
4641
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4642
|
+
as: "span",
|
|
4643
|
+
variant: "small",
|
|
4644
|
+
id: "".concat(name, "-error"),
|
|
4645
|
+
className: "text-[--color-util-red]",
|
|
4646
|
+
children: errorMessage
|
|
4647
|
+
})]
|
|
4648
|
+
});
|
|
4571
4649
|
};
|
|
4572
4650
|
RadioButton.displayName = "RadioButton";
|
|
4573
4651
|
/* harmony default export */ const Radios_RadioButton = (RadioButton);
|
|
@@ -4575,6 +4653,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
4575
4653
|
|
|
4576
4654
|
|
|
4577
4655
|
|
|
4656
|
+
|
|
4578
4657
|
function Checkbox(_ref) {
|
|
4579
4658
|
let {
|
|
4580
4659
|
label,
|
|
@@ -4590,39 +4669,43 @@ function Checkbox(_ref) {
|
|
|
4590
4669
|
const id = "checkbox-".concat(name);
|
|
4591
4670
|
const errorId = "".concat(id, "-error");
|
|
4592
4671
|
const showError = !isValid && errorMessage;
|
|
4593
|
-
return /*#__PURE__*/
|
|
4594
|
-
className: "flex flex-col mb-4"
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4672
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4673
|
+
className: "flex flex-col mb-4",
|
|
4674
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4675
|
+
className: "flex items-center",
|
|
4676
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4677
|
+
id: id,
|
|
4678
|
+
type: "checkbox",
|
|
4679
|
+
name: name,
|
|
4680
|
+
checked: value,
|
|
4681
|
+
onChange: onChange,
|
|
4682
|
+
disabled: disabled,
|
|
4683
|
+
title: title,
|
|
4684
|
+
"data-cy": getDataCy({
|
|
4685
|
+
name,
|
|
4686
|
+
dataCy
|
|
4687
|
+
}),
|
|
4688
|
+
"aria-invalid": !isValid,
|
|
4689
|
+
"aria-describedby": showError ? errorId : undefined,
|
|
4690
|
+
"aria-disabled": disabled,
|
|
4691
|
+
style: {
|
|
4692
|
+
accentColor: 'var(--color-primary-btn)'
|
|
4693
|
+
},
|
|
4694
|
+
className: "\n mr-2 \n rounded-sm\n ".concat(disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer')
|
|
4695
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4696
|
+
variant: "label",
|
|
4697
|
+
as: "label",
|
|
4698
|
+
htmlFor: id,
|
|
4699
|
+
children: label
|
|
4700
|
+
})]
|
|
4701
|
+
}), !isValid && errorMessage && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4702
|
+
id: errorId,
|
|
4703
|
+
variant: "small",
|
|
4704
|
+
as: "span",
|
|
4705
|
+
className: "text-[--color-util-red] mt-1",
|
|
4706
|
+
children: errorMessage
|
|
4707
|
+
})]
|
|
4708
|
+
});
|
|
4626
4709
|
}
|
|
4627
4710
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Tables/table.scss
|
|
4628
4711
|
var table = __webpack_require__(494);
|
|
@@ -4656,6 +4739,7 @@ var table_update = injectStylesIntoStyleTag_default()(table/* default */.A, tabl
|
|
|
4656
4739
|
;// ./src/components/Tables/Table.jsx
|
|
4657
4740
|
|
|
4658
4741
|
|
|
4742
|
+
|
|
4659
4743
|
function Table(_ref) {
|
|
4660
4744
|
let {
|
|
4661
4745
|
data = [],
|
|
@@ -4667,28 +4751,34 @@ function Table(_ref) {
|
|
|
4667
4751
|
headCellClassName = '',
|
|
4668
4752
|
rowKeyExtractor = (row, index) => index
|
|
4669
4753
|
} = _ref;
|
|
4670
|
-
return /*#__PURE__*/
|
|
4671
|
-
className: "wrapper w-full ".concat(className)
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4754
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4755
|
+
className: "wrapper w-full ".concat(className),
|
|
4756
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
4757
|
+
className: "\r min-w-full \r table-auto \r text-left \r border-collapse \r table",
|
|
4758
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("thead", {
|
|
4759
|
+
className: "hidden sm:table-header-group",
|
|
4760
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
4761
|
+
className: "bg-[--color-table-head-bg] ".concat(headRowClassName),
|
|
4762
|
+
children: data.map(column => /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
4763
|
+
className: "\n border-b border-[--color-stroke] \n py-2 px-4 \n text-sm font-normal text-[--color-table-head-txt] ".concat(headCellClassName),
|
|
4764
|
+
children: column.header
|
|
4765
|
+
}, column.key))
|
|
4766
|
+
})
|
|
4767
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
4768
|
+
children: rows.map((row, index) => {
|
|
4769
|
+
const backgroundClass = index % 2 === 0 ? 'bg-[--color-table-row-bg-even]' : 'bg-[--color-table-row-bg-odd]';
|
|
4770
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
4771
|
+
className: "block \n sm:table-row \n mb-4 sm:mb-0 \n rounded-lg sm:rounded-none \n border sm:border-0 border-[--color-stroke] \n p-4 sm:p-0 \n shadow-sm sm:shadow-none \n hover:bg-[--color-table-row-bg-hover] ".concat(backgroundClass, " ").concat(rowClassName),
|
|
4772
|
+
children: data.map(column => /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
4773
|
+
className: "\n block sm:table-cell \n lg:px-4 lg:py-2 \n text-sm text-[--color-text-weak] ".concat(cellClassName),
|
|
4774
|
+
"data-label": column.header,
|
|
4775
|
+
children: column.render ? column.render(row) : row[column.key]
|
|
4776
|
+
}, column.key))
|
|
4777
|
+
}, rowKeyExtractor(row, index));
|
|
4778
|
+
})
|
|
4779
|
+
})]
|
|
4780
|
+
})
|
|
4781
|
+
});
|
|
4692
4782
|
}
|
|
4693
4783
|
;// ./node_modules/@react-aria/utils/dist/useLayoutEffect.mjs
|
|
4694
4784
|
|
|
@@ -13237,6 +13327,7 @@ const esm_ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(
|
|
|
13237
13327
|
|
|
13238
13328
|
|
|
13239
13329
|
|
|
13330
|
+
|
|
13240
13331
|
function Dropdown(_ref) {
|
|
13241
13332
|
let {
|
|
13242
13333
|
items = [],
|
|
@@ -13272,63 +13363,77 @@ function Dropdown(_ref) {
|
|
|
13272
13363
|
};
|
|
13273
13364
|
onChange === null || onChange === void 0 || onChange(event);
|
|
13274
13365
|
};
|
|
13275
|
-
return /*#__PURE__*/
|
|
13276
|
-
className: "flex flex-col mb-4 ".concat(className)
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13366
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13367
|
+
className: "flex flex-col mb-4 ".concat(className),
|
|
13368
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
13369
|
+
as: "label",
|
|
13370
|
+
variant: "label",
|
|
13371
|
+
className: "mb-1",
|
|
13372
|
+
htmlFor: name,
|
|
13373
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
13374
|
+
className: "ml-1 text-[--color-util-red]",
|
|
13375
|
+
children: "*"
|
|
13376
|
+
})]
|
|
13377
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lo, {
|
|
13378
|
+
children: _ref2 => {
|
|
13379
|
+
let {
|
|
13380
|
+
open
|
|
13381
|
+
} = _ref2;
|
|
13382
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13383
|
+
className: "relative",
|
|
13384
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(ft, {
|
|
13385
|
+
id: name,
|
|
13386
|
+
name: name,
|
|
13387
|
+
title: title,
|
|
13388
|
+
"aria-invalid": !isValid,
|
|
13389
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
|
|
13390
|
+
tabIndex: tabIndex,
|
|
13391
|
+
disabled: disabled,
|
|
13392
|
+
"data-cy": getDataCy({
|
|
13393
|
+
name,
|
|
13394
|
+
dataCy
|
|
13395
|
+
}),
|
|
13396
|
+
className: inputClasses,
|
|
13397
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13398
|
+
className: "flex items-center gap-2",
|
|
13399
|
+
children: [Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
13400
|
+
className: "h-5 w-5 text-[--color-text-weak]"
|
|
13401
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
13402
|
+
children: selectedItem ? selectedItem.label : placeholder
|
|
13403
|
+
})]
|
|
13404
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(solid_esm_ChevronDownIcon, {
|
|
13405
|
+
"aria-hidden": "true",
|
|
13406
|
+
className: "ml-3 mr-1 h-5 w-5 text-[--color-text-strong] bg-transparent transition-transform duration-200 ".concat(open ? 'rotate-180' : 'rotate-0')
|
|
13407
|
+
})]
|
|
13408
|
+
}), !disabled && /*#__PURE__*/(0,jsx_runtime.jsx)(yt, {
|
|
13409
|
+
className: "\r absolute \r left-0 \r z-10 \r mt-2 \r w-[100%] \r origin-top-right \r rounded-md \r bg-[--color-primary-bg] \r shadow-lg \r ring-1 \r ring-[--color-stroke] \r ring-opacity-1 \r focus:outline-none \r max-h-48 \r overflow-y-auto\r ",
|
|
13410
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13411
|
+
className: "py-1",
|
|
13412
|
+
children: items.map((item, index) => /*#__PURE__*/(0,jsx_runtime.jsx)(gt, {
|
|
13413
|
+
children: _ref3 => {
|
|
13414
|
+
let {
|
|
13415
|
+
active
|
|
13416
|
+
} = _ref3;
|
|
13417
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
13418
|
+
type: "button",
|
|
13419
|
+
onClick: () => handleSelect(item),
|
|
13420
|
+
className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-strong] ".concat(active ? 'bg-[--color-input-bg]' : ''),
|
|
13421
|
+
children: item.label
|
|
13422
|
+
});
|
|
13423
|
+
}
|
|
13424
|
+
}, index))
|
|
13425
|
+
})
|
|
13426
|
+
})]
|
|
13427
|
+
});
|
|
13428
|
+
}
|
|
13429
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
13430
|
+
as: "span",
|
|
13431
|
+
variant: "small",
|
|
13432
|
+
id: "".concat(name, "-error"),
|
|
13433
|
+
className: "text-[--color-util-red] mt-1",
|
|
13434
|
+
children: errorMessage
|
|
13435
|
+
})]
|
|
13436
|
+
});
|
|
13332
13437
|
}
|
|
13333
13438
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Navbar/navbar.scss
|
|
13334
13439
|
var navbar = __webpack_require__(908);
|
|
@@ -13372,6 +13477,7 @@ var c247_icon_only_2x_png_default = /*#__PURE__*/__webpack_require__.n(c247_icon
|
|
|
13372
13477
|
// Default logo variants
|
|
13373
13478
|
|
|
13374
13479
|
|
|
13480
|
+
|
|
13375
13481
|
const Navbar = _ref => {
|
|
13376
13482
|
let {
|
|
13377
13483
|
children,
|
|
@@ -13379,21 +13485,24 @@ const Navbar = _ref => {
|
|
|
13379
13485
|
className = "",
|
|
13380
13486
|
maxWidth = "1200px"
|
|
13381
13487
|
} = _ref;
|
|
13382
|
-
return /*#__PURE__*/
|
|
13383
|
-
className: "navbar w-full bg-[--color-primary-bg] p-4 shadow-lg ".concat(className)
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
|
|
13488
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("nav", {
|
|
13489
|
+
className: "navbar w-full bg-[--color-primary-bg] p-4 shadow-lg ".concat(className),
|
|
13490
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13491
|
+
className: "mx-auto flex w-full items-center justify-between",
|
|
13492
|
+
style: {
|
|
13493
|
+
maxWidth
|
|
13494
|
+
},
|
|
13495
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13496
|
+
src: logo || (c247_icon_only_png_default()),
|
|
13497
|
+
srcSet: "".concat((c247_icon_only_png_default()), " 1x, ").concat((c247_icon_only_2x_png_default()), " 2x"),
|
|
13498
|
+
alt: "Navbar Logo",
|
|
13499
|
+
className: "nav-logo h-10 w-auto"
|
|
13500
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13501
|
+
className: "right-content text-[--color-text-strong]",
|
|
13502
|
+
children: children
|
|
13503
|
+
})]
|
|
13504
|
+
})
|
|
13505
|
+
});
|
|
13397
13506
|
};
|
|
13398
13507
|
/* harmony default export */ const Navbar_Navbar = (Navbar);
|
|
13399
13508
|
;// external "opus-toolkit-styles/assets/logos/c247-loader.gif"
|
|
@@ -13415,20 +13524,23 @@ function Loader(_ref) {
|
|
|
13415
13524
|
customLoader,
|
|
13416
13525
|
className = ''
|
|
13417
13526
|
} = _ref;
|
|
13418
|
-
return isLoading && /*#__PURE__*/
|
|
13419
|
-
className: "fixed inset-0 z-50 flex items-center justify-center"
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13527
|
+
return isLoading && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13528
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
13529
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13530
|
+
className: "absolute inset-0 bg-[--color-primary-bg] opacity-70"
|
|
13531
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13532
|
+
className: "relative z-10 flex flex-col items-center",
|
|
13533
|
+
children: [customLoader ? customLoader : /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13534
|
+
src: (c247_loader_gif_default()),
|
|
13535
|
+
alt: "Loading",
|
|
13536
|
+
className: "h-60"
|
|
13537
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
13538
|
+
variant: "h4",
|
|
13539
|
+
className: "mt-4 animate-pulse text-center",
|
|
13540
|
+
children: loaderText
|
|
13541
|
+
})]
|
|
13542
|
+
})]
|
|
13543
|
+
});
|
|
13432
13544
|
}
|
|
13433
13545
|
;// ./node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js
|
|
13434
13546
|
|
|
@@ -13459,6 +13571,7 @@ const XMarkIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(XMarkIcon)
|
|
|
13459
13571
|
|
|
13460
13572
|
|
|
13461
13573
|
|
|
13574
|
+
|
|
13462
13575
|
const Modal = _ref => {
|
|
13463
13576
|
let {
|
|
13464
13577
|
isOpen,
|
|
@@ -13485,39 +13598,48 @@ const Modal = _ref => {
|
|
|
13485
13598
|
|
|
13486
13599
|
// ✅ Conditional render *after* hooks
|
|
13487
13600
|
if (!isOpen) return null;
|
|
13488
|
-
return /*#__PURE__*/
|
|
13489
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13601
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13602
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",
|
|
13603
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13604
|
+
role: "dialog",
|
|
13605
|
+
"aria-modal": "true",
|
|
13606
|
+
"aria-labelledby": "modal-title",
|
|
13607
|
+
"aria-describedby": "modal-description",
|
|
13608
|
+
className: "relative w-11/12 max-w-fit rounded-lg bg-[--color-primary-bg] p-6 shadow-xl ".concat(className),
|
|
13609
|
+
children: [isLoading && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13610
|
+
className: "absolute inset-0 z-10 flex flex-col items-center justify-center rounded-lg bg-[--color-primary-bg] ".concat(isLoading ? "opacity-1" : "pointer-events-none opacity-0"),
|
|
13611
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Loader, {
|
|
13612
|
+
isLoading: true,
|
|
13613
|
+
loaderText: loaderText,
|
|
13614
|
+
className: "relative z-20 h-[110px] w-[150px]"
|
|
13615
|
+
})
|
|
13616
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13617
|
+
className: "relative z-0 flex justify-end pb-3",
|
|
13618
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
13619
|
+
onClick: onClose,
|
|
13620
|
+
className: "text-[--color-text-strong] hover:cursor-pointer",
|
|
13621
|
+
"aria-label": "Close modal",
|
|
13622
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_XMarkIcon, {
|
|
13623
|
+
width: "24px",
|
|
13624
|
+
className: "text-[--color-text-strong]"
|
|
13625
|
+
})
|
|
13626
|
+
})
|
|
13627
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13628
|
+
className: "relative z-0 border-b border-[--color-stroke] pb-4 text-[--color-text-strong] ".concat(headerClassName),
|
|
13629
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13630
|
+
id: "modal-title",
|
|
13631
|
+
children: header
|
|
13632
|
+
})
|
|
13633
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13634
|
+
id: "modal-description",
|
|
13635
|
+
className: "relative z-0 my-4 text-[--color-text-weak]",
|
|
13636
|
+
children: body
|
|
13637
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13638
|
+
className: "relative z-0 text-[--color-text-weak] ".concat(footerClassName),
|
|
13639
|
+
children: footer
|
|
13640
|
+
})]
|
|
13641
|
+
})
|
|
13642
|
+
});
|
|
13521
13643
|
};
|
|
13522
13644
|
/* harmony default export */ const Modals_Modal = (Modal);
|
|
13523
13645
|
;// external "opus-toolkit-styles/assets/logos/footer-logo-group.png"
|
|
@@ -13532,6 +13654,7 @@ var footer_logo_group_2x_png_default = /*#__PURE__*/__webpack_require__.n(footer
|
|
|
13532
13654
|
|
|
13533
13655
|
|
|
13534
13656
|
|
|
13657
|
+
|
|
13535
13658
|
const CookieBanner = _ref => {
|
|
13536
13659
|
let {
|
|
13537
13660
|
logo,
|
|
@@ -13563,35 +13686,40 @@ const CookieBanner = _ref => {
|
|
|
13563
13686
|
}
|
|
13564
13687
|
}, [imageLoaded, render]);
|
|
13565
13688
|
if (!render) return null;
|
|
13566
|
-
return /*#__PURE__*/
|
|
13689
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Card, {
|
|
13567
13690
|
intent: intent,
|
|
13568
|
-
className: "items-center justify-between space-x-4 p-4 transition-all duration-300 ease-in-out md:flex ".concat(show ? "translate-y-0 opacity-100" : "translate-y-3 opacity-0", " ")
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13691
|
+
className: "items-center justify-between space-x-4 p-4 transition-all duration-300 ease-in-out md:flex ".concat(show ? "translate-y-0 opacity-100" : "translate-y-3 opacity-0", " "),
|
|
13692
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13693
|
+
className: "items-center md:flex",
|
|
13694
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13695
|
+
className: "flex-shrink-1 mr-4",
|
|
13696
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13697
|
+
src: logo || (footer_logo_group_png_default()),
|
|
13698
|
+
srcSet: "".concat((footer_logo_group_png_default()), " 1x, ").concat((footer_logo_group_2x_png_default()), " 2x"),
|
|
13699
|
+
alt: "C247 Logo",
|
|
13700
|
+
className: "w-full object-contain",
|
|
13701
|
+
onLoad: () => setImageLoaded(true)
|
|
13702
|
+
})
|
|
13703
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
13704
|
+
className: "mr-4",
|
|
13705
|
+
children: policyTxt
|
|
13706
|
+
})]
|
|
13707
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13708
|
+
className: "flex items-center space-x-4",
|
|
13709
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Button, {
|
|
13710
|
+
rank: "primary",
|
|
13711
|
+
text: "Accept",
|
|
13712
|
+
onClick: onAccept
|
|
13713
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Button, {
|
|
13714
|
+
rank: "secondary",
|
|
13715
|
+
text: linkTxt,
|
|
13716
|
+
onClick: e => {
|
|
13717
|
+
e.preventDefault();
|
|
13718
|
+
onLearnMore();
|
|
13719
|
+
}
|
|
13720
|
+
})]
|
|
13721
|
+
})]
|
|
13722
|
+
});
|
|
13595
13723
|
};
|
|
13596
13724
|
/* harmony default export */ const Cookie = (CookieBanner);
|
|
13597
13725
|
;// ./node_modules/@heroicons/react/24/outline/esm/ArrowLeftIcon.js
|
|
@@ -22178,6 +22306,11 @@ const support_icon_svg_namespaceObject = require("opus-toolkit-styles/assets/ico
|
|
|
22178
22306
|
;// external "opus-toolkit-styles/assets/icons/task-manage-icon.svg"
|
|
22179
22307
|
const task_manage_icon_svg_namespaceObject = require("opus-toolkit-styles/assets/icons/task-manage-icon.svg");
|
|
22180
22308
|
;// ./src/components/Icon/index.js
|
|
22309
|
+
function Icon_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22310
|
+
function Icon_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Icon_ownKeys(Object(t), !0).forEach(function (r) { Icon_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Icon_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22311
|
+
function Icon_defineProperty(e, r, t) { return (r = Icon_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22312
|
+
function Icon_toPropertyKey(t) { var i = Icon_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22313
|
+
function Icon_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22181
22314
|
// index.js
|
|
22182
22315
|
|
|
22183
22316
|
|
|
@@ -22189,16 +22322,17 @@ const task_manage_icon_svg_namespaceObject = require("opus-toolkit-styles/assets
|
|
|
22189
22322
|
|
|
22190
22323
|
|
|
22191
22324
|
|
|
22192
|
-
|
|
22193
|
-
const
|
|
22194
|
-
const
|
|
22195
|
-
const
|
|
22196
|
-
const
|
|
22197
|
-
const
|
|
22198
|
-
const
|
|
22199
|
-
const
|
|
22200
|
-
const
|
|
22201
|
-
const
|
|
22325
|
+
|
|
22326
|
+
const C247Billing = props => /*#__PURE__*/(0,jsx_runtime.jsx)(billing_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22327
|
+
const C247Dashboard = props => /*#__PURE__*/(0,jsx_runtime.jsx)(dashboard_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22328
|
+
const C247Deployment = props => /*#__PURE__*/(0,jsx_runtime.jsx)(deployment_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22329
|
+
const C247Form = props => /*#__PURE__*/(0,jsx_runtime.jsx)(form_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22330
|
+
const C247Planner = props => /*#__PURE__*/(0,jsx_runtime.jsx)(planner_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22331
|
+
const C247Reports = props => /*#__PURE__*/(0,jsx_runtime.jsx)(reports_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22332
|
+
const C247Screening = props => /*#__PURE__*/(0,jsx_runtime.jsx)(screening_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22333
|
+
const C247Settings = props => /*#__PURE__*/(0,jsx_runtime.jsx)(settings_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22334
|
+
const C247Support = props => /*#__PURE__*/(0,jsx_runtime.jsx)(support_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22335
|
+
const C247Tasks = props => /*#__PURE__*/(0,jsx_runtime.jsx)(task_manage_icon_svg_namespaceObject.ReactComponent, Icon_objectSpread({}, props));
|
|
22202
22336
|
;// ./src/components/Icon/Icon.jsx
|
|
22203
22337
|
// Icon.jsx
|
|
22204
22338
|
|
|
@@ -22215,6 +22349,7 @@ const C247Tasks = props => /*#__PURE__*/React.createElement(task_manage_icon_svg
|
|
|
22215
22349
|
* - className: string
|
|
22216
22350
|
* - color: string
|
|
22217
22351
|
*/
|
|
22352
|
+
|
|
22218
22353
|
const Icon = _ref => {
|
|
22219
22354
|
let {
|
|
22220
22355
|
name,
|
|
@@ -22225,7 +22360,7 @@ const Icon = _ref => {
|
|
|
22225
22360
|
} = _ref;
|
|
22226
22361
|
const IconComponent = library === "hero" ? esm_namespaceObject[name] : Icon_namespaceObject[name];
|
|
22227
22362
|
if (!IconComponent) return null;
|
|
22228
|
-
return /*#__PURE__*/
|
|
22363
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(IconComponent, {
|
|
22229
22364
|
className: className,
|
|
22230
22365
|
width: size,
|
|
22231
22366
|
height: size,
|
|
@@ -22237,11 +22372,16 @@ const Icon = _ref => {
|
|
|
22237
22372
|
/* harmony default export */ const Icon_Icon = (Icon);
|
|
22238
22373
|
;// ./src/components/Sidebar/SidebarItem.jsx
|
|
22239
22374
|
const SidebarItem_excluded = ["menu", "open", "active", "as", "onClick"];
|
|
22240
|
-
function
|
|
22375
|
+
function SidebarItem_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22376
|
+
function SidebarItem_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SidebarItem_ownKeys(Object(t), !0).forEach(function (r) { SidebarItem_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : SidebarItem_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22377
|
+
function SidebarItem_defineProperty(e, r, t) { return (r = SidebarItem_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22378
|
+
function SidebarItem_toPropertyKey(t) { var i = SidebarItem_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22379
|
+
function SidebarItem_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22241
22380
|
function SidebarItem_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = SidebarItem_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22242
22381
|
function SidebarItem_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22243
22382
|
|
|
22244
22383
|
|
|
22384
|
+
|
|
22245
22385
|
function SidebarItem(_ref) {
|
|
22246
22386
|
let {
|
|
22247
22387
|
menu,
|
|
@@ -22251,25 +22391,38 @@ function SidebarItem(_ref) {
|
|
|
22251
22391
|
onClick
|
|
22252
22392
|
} = _ref,
|
|
22253
22393
|
props = SidebarItem_objectWithoutProperties(_ref, SidebarItem_excluded);
|
|
22254
|
-
return /*#__PURE__*/
|
|
22394
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Component, SidebarItem_objectSpread(SidebarItem_objectSpread({
|
|
22255
22395
|
onClick: onClick,
|
|
22256
22396
|
className: "group relative flex cursor-pointer items-center justify-between p-4 transition-all duration-500 ease-in-out ".concat(active ? "bg-[--color-primary-hover]" : "", " ")
|
|
22257
|
-
}, props),
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22397
|
+
}, props), {}, {
|
|
22398
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22399
|
+
className: "absolute left-0 top-0 h-full w-[5px] rounded-r transition-all duration-500 ease-in-out ".concat(active ? "bg-[--color-brand-primary]" : "bg-transparent group-hover:bg-[--color-brand-primary]", " ")
|
|
22400
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22401
|
+
className: "relative flex items-center gap-3",
|
|
22402
|
+
children: [menu.iconProps && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22403
|
+
className: "relative flex items-center",
|
|
22404
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon_Icon, SidebarItem_objectSpread({}, menu.iconProps)), !open && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
22405
|
+
className: "absolute left-full top-1/2 ml-2 -translate-y-1/2 whitespace-nowrap rounded bg-[--color-primary-bg] px-2 py-1 text-xs text-[--color-text-strong] opacity-0 transition-opacity duration-300 group-hover:opacity-100",
|
|
22406
|
+
children: menu.name
|
|
22407
|
+
})]
|
|
22408
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22409
|
+
className: "overflow-hidden whitespace-nowrap transition-all duration-500 ease-in-out ".concat(open ? "ml-2 w-auto translate-y-0 opacity-100" : "ml-0 w-0 translate-y-2 opacity-0", " "),
|
|
22410
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
22411
|
+
as: "span",
|
|
22412
|
+
variant: "label",
|
|
22413
|
+
children: menu.name
|
|
22414
|
+
})
|
|
22415
|
+
})]
|
|
22416
|
+
})]
|
|
22417
|
+
}));
|
|
22271
22418
|
}
|
|
22272
22419
|
;// ./src/components/Sidebar/SidebarGroup.jsx
|
|
22420
|
+
function SidebarGroup_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22421
|
+
function SidebarGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SidebarGroup_ownKeys(Object(t), !0).forEach(function (r) { SidebarGroup_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : SidebarGroup_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22422
|
+
function SidebarGroup_defineProperty(e, r, t) { return (r = SidebarGroup_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22423
|
+
function SidebarGroup_toPropertyKey(t) { var i = SidebarGroup_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22424
|
+
function SidebarGroup_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22425
|
+
|
|
22273
22426
|
|
|
22274
22427
|
|
|
22275
22428
|
|
|
@@ -22284,41 +22437,53 @@ function SidebarGroup(_ref) {
|
|
|
22284
22437
|
toggleSidebar
|
|
22285
22438
|
} = _ref;
|
|
22286
22439
|
const [expanded, setExpanded] = (0,external_react_.useState)(false);
|
|
22287
|
-
return /*#__PURE__*/
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22440
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22441
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22442
|
+
className: "group relative flex cursor-pointer items-center justify-between p-4 transition-all duration-500 ease-in-out",
|
|
22443
|
+
onClick: () => {
|
|
22444
|
+
if (!open) toggleSidebar(true);
|
|
22445
|
+
setExpanded(!expanded);
|
|
22446
|
+
},
|
|
22447
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22448
|
+
className: "absolute left-0 top-0 h-full w-[5px] rounded-r transition-all duration-300 ease-in-out ".concat(expanded || activeItem === menu.key ? "bg-[--color-brand-primary]" : "bg-[--color-stroke] group-hover:bg-[--color-brand-primary]", " ")
|
|
22449
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22450
|
+
className: "flex items-center gap-3",
|
|
22451
|
+
children: [menu.iconProps && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon_Icon, SidebarGroup_objectSpread({}, menu.iconProps)), !open && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
22452
|
+
className: "absolute left-full top-1/2 ml-2 -translate-y-1/2 whitespace-nowrap rounded bg-[--color-primary-bg] px-2 py-1 text-xs text-[--color-text-strong] opacity-0 transition-opacity duration-300 group-hover:opacity-100",
|
|
22453
|
+
children: menu.name
|
|
22454
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22455
|
+
className: "overflow-hidden whitespace-nowrap transition-all duration-500 ease-in-out ".concat(open ? "ml-2 w-auto translate-y-0 opacity-100" : "ml-0 w-0 translate-y-2 opacity-0", " "),
|
|
22456
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
22457
|
+
as: "span",
|
|
22458
|
+
variant: "label",
|
|
22459
|
+
children: menu.name
|
|
22460
|
+
})
|
|
22461
|
+
})]
|
|
22462
|
+
}), open && /*#__PURE__*/(0,jsx_runtime.jsx)(esm_ChevronDownIcon, {
|
|
22463
|
+
className: "h-4 w-4 transition-transform duration-300 ".concat(expanded ? "rotate-180" : "")
|
|
22464
|
+
})]
|
|
22465
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22466
|
+
className: "ml-10 mt-1 overflow-hidden transition-all duration-300 ease-in-out ".concat(expanded && open ? "max-h-96 opacity-100" : "max-h-0 opacity-0"),
|
|
22467
|
+
children: menu.children.map(child => /*#__PURE__*/(0,jsx_runtime.jsx)(SidebarItem, {
|
|
22468
|
+
menu: child,
|
|
22469
|
+
open: open,
|
|
22470
|
+
active: activeItem === child.key,
|
|
22471
|
+
onClick: () => onItemClick(child.key)
|
|
22472
|
+
}, child.id || child.name))
|
|
22473
|
+
})]
|
|
22474
|
+
});
|
|
22315
22475
|
}
|
|
22316
22476
|
;// ./src/components/Link/Link.jsx
|
|
22317
22477
|
const Link_excluded = ["href", "children", "className", "newTab"];
|
|
22318
|
-
function
|
|
22478
|
+
function Link_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22479
|
+
function Link_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Link_ownKeys(Object(t), !0).forEach(function (r) { Link_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Link_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22480
|
+
function Link_defineProperty(e, r, t) { return (r = Link_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22481
|
+
function Link_toPropertyKey(t) { var i = Link_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22482
|
+
function Link_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22319
22483
|
function Link_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = Link_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22320
22484
|
function Link_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22321
22485
|
|
|
22486
|
+
|
|
22322
22487
|
function Link(_ref) {
|
|
22323
22488
|
let {
|
|
22324
22489
|
href,
|
|
@@ -22328,57 +22493,67 @@ function Link(_ref) {
|
|
|
22328
22493
|
} = _ref,
|
|
22329
22494
|
props = Link_objectWithoutProperties(_ref, Link_excluded);
|
|
22330
22495
|
const isExternal = href.startsWith("http");
|
|
22331
|
-
return /*#__PURE__*/
|
|
22496
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", Link_objectSpread(Link_objectSpread({
|
|
22332
22497
|
href: href,
|
|
22333
22498
|
target: newTab || isExternal ? "_blank" : undefined,
|
|
22334
22499
|
rel: newTab || isExternal ? "noopener noreferrer" : undefined,
|
|
22335
22500
|
className: dist_clsx("text-[--color-text-strong] hover:underline", className)
|
|
22336
|
-
}, props),
|
|
22501
|
+
}, props), {}, {
|
|
22502
|
+
children: children
|
|
22503
|
+
}));
|
|
22337
22504
|
}
|
|
22338
22505
|
;// ./src/components/Profile/ProfileCard/ProfileCard.jsx
|
|
22339
22506
|
|
|
22340
22507
|
|
|
22341
22508
|
|
|
22509
|
+
|
|
22342
22510
|
function ProfileCard(_ref) {
|
|
22343
22511
|
let {
|
|
22344
22512
|
user,
|
|
22345
22513
|
href
|
|
22346
22514
|
} = _ref;
|
|
22347
22515
|
const Wrapper = href ? Link : "div";
|
|
22348
|
-
return /*#__PURE__*/
|
|
22516
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Wrapper, {
|
|
22349
22517
|
href: href,
|
|
22350
22518
|
className: "flex transition-all items-center rounded-lg border-2 border-[--color-stroke] px-4 py-2 ".concat(href ? "cursor-pointer hover:bg-[--color-primary-bg-hover] hover:border-[--color-primary]" : "", " "),
|
|
22351
|
-
"data-cy": "profileCard"
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22519
|
+
"data-cy": "profileCard",
|
|
22520
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22521
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
22522
|
+
variant: "body",
|
|
22523
|
+
as: "p",
|
|
22524
|
+
children: user.name
|
|
22525
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
22526
|
+
variant: "caption",
|
|
22527
|
+
as: "p",
|
|
22528
|
+
children: user.role
|
|
22529
|
+
})]
|
|
22530
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(esm_IdentificationIcon, {
|
|
22531
|
+
className: "ml-4 h-6 w-6 text-gray-500"
|
|
22532
|
+
})]
|
|
22533
|
+
});
|
|
22361
22534
|
}
|
|
22362
22535
|
;// ./src/components/Sidebar/SidebarProfile.jsx
|
|
22363
22536
|
|
|
22537
|
+
|
|
22364
22538
|
function SidebarProfile(_ref) {
|
|
22365
22539
|
let {
|
|
22366
22540
|
user,
|
|
22367
22541
|
open,
|
|
22368
22542
|
href
|
|
22369
22543
|
} = _ref;
|
|
22370
|
-
return /*#__PURE__*/
|
|
22371
|
-
className: "mt-auto flex items-center gap-3 p-2 pb-4"
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22544
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22545
|
+
className: "mt-auto flex items-center gap-3 p-2 pb-4",
|
|
22546
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
22547
|
+
src: user.avatar,
|
|
22548
|
+
alt: "profile",
|
|
22549
|
+
className: "h-8 w-8 rounded-full"
|
|
22550
|
+
}), open && /*#__PURE__*/(0,jsx_runtime.jsx)(ProfileCard, {
|
|
22551
|
+
user: user,
|
|
22552
|
+
href: href // ← Passed down cleanly
|
|
22553
|
+
,
|
|
22554
|
+
variant: "sidebar"
|
|
22555
|
+
})]
|
|
22556
|
+
});
|
|
22382
22557
|
}
|
|
22383
22558
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Sidebar/sidebar.scss
|
|
22384
22559
|
var sidebar = __webpack_require__(126);
|
|
@@ -22419,6 +22594,7 @@ var sidebar_update = injectStylesIntoStyleTag_default()(sidebar/* default */.A,
|
|
|
22419
22594
|
|
|
22420
22595
|
|
|
22421
22596
|
|
|
22597
|
+
|
|
22422
22598
|
function Sidebar(_ref) {
|
|
22423
22599
|
let {
|
|
22424
22600
|
menus,
|
|
@@ -22430,70 +22606,80 @@ function Sidebar(_ref) {
|
|
|
22430
22606
|
onSearchChange
|
|
22431
22607
|
} = _ref;
|
|
22432
22608
|
const [open, setOpen] = (0,external_react_.useState)(false);
|
|
22433
|
-
return /*#__PURE__*/
|
|
22434
|
-
className: "flex"
|
|
22435
|
-
|
|
22436
|
-
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22451
|
-
|
|
22452
|
-
|
|
22453
|
-
|
|
22454
|
-
|
|
22455
|
-
|
|
22456
|
-
|
|
22457
|
-
|
|
22458
|
-
|
|
22459
|
-
|
|
22460
|
-
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22464
|
-
|
|
22465
|
-
|
|
22466
|
-
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22470
|
-
|
|
22471
|
-
|
|
22472
|
-
|
|
22473
|
-
|
|
22474
|
-
|
|
22475
|
-
|
|
22476
|
-
|
|
22477
|
-
|
|
22478
|
-
|
|
22479
|
-
|
|
22480
|
-
|
|
22481
|
-
|
|
22482
|
-
|
|
22483
|
-
|
|
22484
|
-
|
|
22485
|
-
|
|
22486
|
-
|
|
22487
|
-
|
|
22488
|
-
|
|
22489
|
-
|
|
22490
|
-
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22494
|
-
|
|
22495
|
-
|
|
22496
|
-
|
|
22609
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22610
|
+
className: "flex",
|
|
22611
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22612
|
+
className: " ".concat(open ? "w-[20rem]" : "w-[3rem]", " transition-width flex min-h-screen flex-col rounded bg-[--color-primary-bg] text-[--color-text-strong] duration-300 ease-in-out"),
|
|
22613
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22614
|
+
className: "flex items-center justify-between p-3 pr-0",
|
|
22615
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
22616
|
+
src: logo || (c247_icon_only_png_default()),
|
|
22617
|
+
srcSet: "".concat((c247_icon_only_png_default()), " 1x, ").concat((c247_icon_only_2x_png_default()), " 2x"),
|
|
22618
|
+
alt: "C247 Logo",
|
|
22619
|
+
className: "sidebar-logo w-75 object-contain"
|
|
22620
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
22621
|
+
className: "rounded-l-lg bg-[--color-primary-btn] p-2 transition-all duration-400 ease-in-out hover:bg-[--color-primary-btn-hover] focus:outline-none ".concat(open ? "translate-x-0 opacity-100" : "translate-x-4 opacity-0", " "),
|
|
22622
|
+
onClick: () => setOpen(!open),
|
|
22623
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_ArrowLeftIcon, {
|
|
22624
|
+
className: "h-5 w-5 text-[--color-white]"
|
|
22625
|
+
})
|
|
22626
|
+
})]
|
|
22627
|
+
}), !open && /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
22628
|
+
className: "p-3 transition-all duration-700 ease-in-out focus:outline-none",
|
|
22629
|
+
onClick: () => setOpen(!open),
|
|
22630
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_Bars3Icon, {
|
|
22631
|
+
className: "h-6 w-6 text-[--color-text-strong] hover:text-[--color-primary-hover]"
|
|
22632
|
+
})
|
|
22633
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("nav", {
|
|
22634
|
+
className: "mt-2 flex-1 space-y-1",
|
|
22635
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22636
|
+
className: "border-b-solid border-b-2 border-[--color-stroke] px-3 pb-2",
|
|
22637
|
+
children: open ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
22638
|
+
className: "flex items-center gap-3 rounded bg-[--color-primary-bg-hover]",
|
|
22639
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(esm_MagnifyingGlassIcon, {
|
|
22640
|
+
className: "mb-2 h-6 w-6 text-[--color-text-strong]"
|
|
22641
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Inputs_Input, {
|
|
22642
|
+
type: "text",
|
|
22643
|
+
placeholder: "Search\u2026",
|
|
22644
|
+
className: "mb-0",
|
|
22645
|
+
value: searchValue,
|
|
22646
|
+
onChange: e => onSearchChange === null || onSearchChange === void 0 ? void 0 : onSearchChange(e.target.value)
|
|
22647
|
+
})]
|
|
22648
|
+
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
22649
|
+
className: "transition-all duration-700 ease-in-out focus:outline-none",
|
|
22650
|
+
onClick: () => setOpen(true),
|
|
22651
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_MagnifyingGlassIcon, {
|
|
22652
|
+
className: "h-6 w-6 text-[--color-text-strong] hover:text-[--color-primary-hover]"
|
|
22653
|
+
})
|
|
22654
|
+
})
|
|
22655
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22656
|
+
className: "menu-item-container",
|
|
22657
|
+
children: menus.map(menu => menu.children ? /*#__PURE__*/(0,jsx_runtime.jsx)(SidebarGroup, {
|
|
22658
|
+
menu: menu,
|
|
22659
|
+
open: open,
|
|
22660
|
+
activeItem: activeItem,
|
|
22661
|
+
onItemClick: onItemClick,
|
|
22662
|
+
toggleSidebar: setOpen
|
|
22663
|
+
}, menu.id || menu.name) : /*#__PURE__*/(0,jsx_runtime.jsx)(SidebarItem, {
|
|
22664
|
+
menu: menu,
|
|
22665
|
+
open: open,
|
|
22666
|
+
active: activeItem === menu.key,
|
|
22667
|
+
onClick: () => onItemClick(menu.key)
|
|
22668
|
+
}, menu.id || menu.name))
|
|
22669
|
+
})]
|
|
22670
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SidebarProfile, {
|
|
22671
|
+
user: user,
|
|
22672
|
+
open: open,
|
|
22673
|
+
href: "/users/".concat(user.id)
|
|
22674
|
+
})]
|
|
22675
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
22676
|
+
className: "flex-1 p-6",
|
|
22677
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
|
|
22678
|
+
className: "text-2xl font-bold text-[--color-text-strong]",
|
|
22679
|
+
children: "Dashboard Content"
|
|
22680
|
+
})
|
|
22681
|
+
})]
|
|
22682
|
+
});
|
|
22497
22683
|
}
|
|
22498
22684
|
;// ./src/index.js
|
|
22499
22685
|
|