opus-toolkit-components 1.5.2 → 1.5.4
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 +527 -399
- 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
|
|
|
@@ -556,6 +575,19 @@ ___CSS_LOADER_EXPORT___.push([module.id, ``, "",{"version":3,"sources":[],"names
|
|
|
556
575
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
557
576
|
|
|
558
577
|
|
|
578
|
+
/***/ }),
|
|
579
|
+
|
|
580
|
+
/***/ 848:
|
|
581
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
if (true) {
|
|
586
|
+
module.exports = __webpack_require__(20);
|
|
587
|
+
} else // removed by dead control flow
|
|
588
|
+
{}
|
|
589
|
+
|
|
590
|
+
|
|
559
591
|
/***/ }),
|
|
560
592
|
|
|
561
593
|
/***/ 908:
|
|
@@ -764,8 +796,11 @@ function ChevronDownIcon({
|
|
|
764
796
|
}
|
|
765
797
|
const ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon);
|
|
766
798
|
/* harmony default export */ const esm_ChevronDownIcon = (ChevronDownIcon_ForwardRef);
|
|
799
|
+
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
800
|
+
var jsx_runtime = __webpack_require__(848);
|
|
767
801
|
;// ./src/components/Pills/Pill.jsx
|
|
768
802
|
|
|
803
|
+
|
|
769
804
|
const statusClasses = {
|
|
770
805
|
primary: 'bg-[--color-primary-btn] text-[--color-white]',
|
|
771
806
|
danger: 'bg-[--color-util-red] text-[--color-white]',
|
|
@@ -783,11 +818,12 @@ const Pill = _ref => {
|
|
|
783
818
|
} = _ref;
|
|
784
819
|
const baseClasses = 'inline-flex items-center gap-1 text-xs font-medium px-3 py-1 rounded-full';
|
|
785
820
|
const statusClass = statusClasses[status] || statusClasses.info;
|
|
786
|
-
return /*#__PURE__*/
|
|
787
|
-
className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className)
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
821
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
822
|
+
className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className),
|
|
823
|
+
children: [Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
824
|
+
className: "w-4 h-4"
|
|
825
|
+
}), text]
|
|
826
|
+
});
|
|
791
827
|
};
|
|
792
828
|
/* harmony default export */ const Pills_Pill = (Pill);
|
|
793
829
|
;// ./src/utils/getDataCy.js
|
|
@@ -803,11 +839,16 @@ const getDataCy = function () {
|
|
|
803
839
|
};
|
|
804
840
|
;// ./src/components/Text/Text.jsx
|
|
805
841
|
const _excluded = ["variant", "as", "className", "color", "children", "name", "dataCy"];
|
|
806
|
-
function
|
|
842
|
+
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; }
|
|
843
|
+
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; }
|
|
844
|
+
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; }
|
|
845
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
846
|
+
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); }
|
|
807
847
|
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; }
|
|
808
848
|
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; }
|
|
809
849
|
|
|
810
850
|
|
|
851
|
+
|
|
811
852
|
const variantMap = {
|
|
812
853
|
h1: "text-4xl font-bold leading-tight",
|
|
813
854
|
h2: "text-3xl leading-snug",
|
|
@@ -845,19 +886,22 @@ function Text(_ref) {
|
|
|
845
886
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
846
887
|
const Component = as || elementMap[variant] || "p";
|
|
847
888
|
const variantClass = variantMap[variant] || variantMap.body;
|
|
848
|
-
return /*#__PURE__*/
|
|
889
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, _objectSpread(_objectSpread({
|
|
849
890
|
className: "".concat(variantClass, " ").concat(color, " ").concat(className),
|
|
850
891
|
"data-cy": getDataCy({
|
|
851
892
|
name,
|
|
852
893
|
dataCy
|
|
853
894
|
})
|
|
854
|
-
}, rest),
|
|
895
|
+
}, rest), {}, {
|
|
896
|
+
children: children
|
|
897
|
+
}));
|
|
855
898
|
}
|
|
856
899
|
;// ./src/components/Accordions/Accordion.jsx
|
|
857
900
|
|
|
858
901
|
|
|
859
902
|
|
|
860
903
|
|
|
904
|
+
|
|
861
905
|
const Accordion = _ref => {
|
|
862
906
|
let {
|
|
863
907
|
title,
|
|
@@ -895,43 +939,52 @@ const Accordion = _ref => {
|
|
|
895
939
|
setInternalActiveIndex(activeIndex);
|
|
896
940
|
}
|
|
897
941
|
}, [activeIndex]);
|
|
898
|
-
return /*#__PURE__*/
|
|
942
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
899
943
|
id: "accordion-".concat(index),
|
|
900
|
-
className: "accordion w-full border border-[--color-stroke] shadow-lg ".concat(disabled ? "pointer-events-none opacity-50" : "", " rounded-lg")
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
944
|
+
className: "accordion w-full border border-[--color-stroke] shadow-lg ".concat(disabled ? "pointer-events-none opacity-50" : "", " rounded-lg"),
|
|
945
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
946
|
+
className: "accordion-item",
|
|
947
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
948
|
+
onClick: !isPreview && !isLocked ? toggle : null,
|
|
949
|
+
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, " "),
|
|
950
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
951
|
+
className: "flex items-center justify-between gap-2",
|
|
952
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
953
|
+
as: "h2",
|
|
954
|
+
variant: "h2",
|
|
955
|
+
className: "text-h4 mx-4 my-2 text-[--color-text-strong]",
|
|
956
|
+
children: title
|
|
957
|
+
})
|
|
958
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
959
|
+
className: "flex items-center gap-4",
|
|
960
|
+
children: [isPill && /*#__PURE__*/(0,jsx_runtime.jsx)(Pills_Pill, {
|
|
961
|
+
text: pillText,
|
|
962
|
+
status: pillStatus,
|
|
963
|
+
icon: pillIcon
|
|
964
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
965
|
+
className: "border-0 ".concat(!isLocked && "cursor-pointer border-l-2", " border-solid border-[--color-stroke] p-4"),
|
|
966
|
+
onClick: !isLocked ? toggle : null // toggle only here
|
|
967
|
+
,
|
|
968
|
+
children: isPreview && !isLocked ? /*#__PURE__*/(0,jsx_runtime.jsx)(esm_PencilSquareIcon, {
|
|
969
|
+
className: "h-5 w-5 text-[--color-text-strong]",
|
|
970
|
+
onClick: e => {
|
|
971
|
+
e.stopPropagation(); // prevent toggle from firing on pencil click
|
|
972
|
+
onExitPreview(); // trigger exit preview
|
|
973
|
+
}
|
|
974
|
+
}) : !isLocked ? /*#__PURE__*/(0,jsx_runtime.jsx)(esm_ChevronDownIcon, {
|
|
975
|
+
className: "h-4 w-4 transform text-[--color-text-strong] transition-transform ".concat(isActive ? "rotate-180" : "rotate-0")
|
|
976
|
+
}) : null
|
|
977
|
+
})]
|
|
978
|
+
})]
|
|
979
|
+
})
|
|
980
|
+
}, index), isActive && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
981
|
+
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]",
|
|
982
|
+
children: content
|
|
983
|
+
}), isPreview && activeIndex !== index && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
984
|
+
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]",
|
|
985
|
+
children: preview
|
|
986
|
+
})]
|
|
987
|
+
});
|
|
935
988
|
};
|
|
936
989
|
/* harmony default export */ const Accordions_Accordion = (Accordion);
|
|
937
990
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
@@ -1215,22 +1268,22 @@ var IconContext = external_react_.createContext && /*#__PURE__*/external_react_.
|
|
|
1215
1268
|
var iconBase_excluded = ["attr", "size", "title"];
|
|
1216
1269
|
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; }
|
|
1217
1270
|
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; }
|
|
1218
|
-
function
|
|
1219
|
-
function
|
|
1220
|
-
function
|
|
1221
|
-
function
|
|
1222
|
-
function
|
|
1223
|
-
function
|
|
1271
|
+
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); }
|
|
1272
|
+
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; }
|
|
1273
|
+
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; }
|
|
1274
|
+
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; }
|
|
1275
|
+
function iconBase_toPropertyKey(t) { var i = iconBase_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
1276
|
+
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); }
|
|
1224
1277
|
|
|
1225
1278
|
|
|
1226
1279
|
function Tree2Element(tree) {
|
|
1227
|
-
return tree && tree.map((node, i) => /*#__PURE__*/external_react_.createElement(node.tag,
|
|
1280
|
+
return tree && tree.map((node, i) => /*#__PURE__*/external_react_.createElement(node.tag, iconBase_objectSpread({
|
|
1228
1281
|
key: i
|
|
1229
1282
|
}, node.attr), Tree2Element(node.child)));
|
|
1230
1283
|
}
|
|
1231
1284
|
function iconBase_GenIcon(data) {
|
|
1232
|
-
return props => /*#__PURE__*/external_react_.createElement(IconBase,
|
|
1233
|
-
attr:
|
|
1285
|
+
return props => /*#__PURE__*/external_react_.createElement(IconBase, _extends({
|
|
1286
|
+
attr: iconBase_objectSpread({}, data.attr)
|
|
1234
1287
|
}, props), Tree2Element(data.child));
|
|
1235
1288
|
}
|
|
1236
1289
|
function IconBase(props) {
|
|
@@ -1245,13 +1298,13 @@ function IconBase(props) {
|
|
|
1245
1298
|
var className;
|
|
1246
1299
|
if (conf.className) className = conf.className;
|
|
1247
1300
|
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
1248
|
-
return /*#__PURE__*/external_react_.createElement("svg",
|
|
1301
|
+
return /*#__PURE__*/external_react_.createElement("svg", _extends({
|
|
1249
1302
|
stroke: "currentColor",
|
|
1250
1303
|
fill: "currentColor",
|
|
1251
1304
|
strokeWidth: "0"
|
|
1252
1305
|
}, conf.attr, attr, svgProps, {
|
|
1253
1306
|
className: className,
|
|
1254
|
-
style:
|
|
1307
|
+
style: iconBase_objectSpread(iconBase_objectSpread({
|
|
1255
1308
|
color: props.color || conf.color
|
|
1256
1309
|
}, conf.style), props.style),
|
|
1257
1310
|
height: computedSize,
|
|
@@ -3768,6 +3821,7 @@ function AiTwotoneWarning (props) {
|
|
|
3768
3821
|
// Import a spinner icon
|
|
3769
3822
|
|
|
3770
3823
|
// test 2 for Husky
|
|
3824
|
+
|
|
3771
3825
|
function Button(_ref) {
|
|
3772
3826
|
let {
|
|
3773
3827
|
type = "button",
|
|
@@ -3811,7 +3865,7 @@ function Button(_ref) {
|
|
|
3811
3865
|
|
|
3812
3866
|
// Main button class names
|
|
3813
3867
|
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 ");
|
|
3814
|
-
return /*#__PURE__*/
|
|
3868
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("button", {
|
|
3815
3869
|
type: type,
|
|
3816
3870
|
title: title,
|
|
3817
3871
|
name: name,
|
|
@@ -3823,22 +3877,25 @@ function Button(_ref) {
|
|
|
3823
3877
|
dataCy
|
|
3824
3878
|
}),
|
|
3825
3879
|
onClick: !isSaving && state !== "disabled" ? onClick : null,
|
|
3826
|
-
disabled: isSaving || state === "disabled"
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3880
|
+
disabled: isSaving || state === "disabled",
|
|
3881
|
+
children: [isSaving ? /*#__PURE__*/(0,jsx_runtime.jsx)(AiOutlineLoading3Quarters, {
|
|
3882
|
+
className: iconClassNames
|
|
3883
|
+
}) : iconPosition === "left" && Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
3884
|
+
className: iconClassNames
|
|
3885
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
3886
|
+
className: isSaving ? "ml-2" : "",
|
|
3887
|
+
children: isSaving ? savingText : text
|
|
3888
|
+
}), !isSaving && iconPosition === "right" && Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
3889
|
+
className: iconClassNames
|
|
3890
|
+
})]
|
|
3891
|
+
});
|
|
3836
3892
|
}
|
|
3837
3893
|
;// ./node_modules/clsx/dist/clsx.mjs
|
|
3838
3894
|
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);
|
|
3839
3895
|
;// ./src/components/Cards/Card.jsx
|
|
3840
3896
|
|
|
3841
3897
|
|
|
3898
|
+
|
|
3842
3899
|
function Card(_ref) {
|
|
3843
3900
|
let {
|
|
3844
3901
|
intent,
|
|
@@ -3857,9 +3914,10 @@ function Card(_ref) {
|
|
|
3857
3914
|
};
|
|
3858
3915
|
const resolvedIntent = intent || 'default';
|
|
3859
3916
|
const cardClasses = dist_clsx('p-5', 'rounded-lg', 'shadow-lg', 'border-2 border-solid border-[--color-stroke]', intentClasses[resolvedIntent], className);
|
|
3860
|
-
return /*#__PURE__*/
|
|
3861
|
-
className: cardClasses
|
|
3862
|
-
|
|
3917
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
3918
|
+
className: cardClasses,
|
|
3919
|
+
children: children
|
|
3920
|
+
});
|
|
3863
3921
|
}
|
|
3864
3922
|
;// ./src/components/Forms/Inputs/Input.jsx
|
|
3865
3923
|
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; }
|
|
@@ -3870,6 +3928,7 @@ function Input_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var
|
|
|
3870
3928
|
|
|
3871
3929
|
|
|
3872
3930
|
|
|
3931
|
+
|
|
3873
3932
|
const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
|
|
3874
3933
|
let {
|
|
3875
3934
|
label,
|
|
@@ -3903,52 +3962,59 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
|
|
|
3903
3962
|
} = _ref;
|
|
3904
3963
|
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' : '');
|
|
3905
3964
|
const iconClasses = "h-5 w-5 ".concat(isAnimated ? 'transition-transform duration-200 group-focus-within:scale-125' : '', " text-[--color-text-weak]");
|
|
3906
|
-
return /*#__PURE__*/
|
|
3907
|
-
className: "flex flex-col mb-4"
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3965
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3966
|
+
className: "flex flex-col mb-4",
|
|
3967
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
3968
|
+
as: "label",
|
|
3969
|
+
variant: "label",
|
|
3970
|
+
htmlFor: name,
|
|
3971
|
+
className: "mb-1 flex items-center",
|
|
3972
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
3973
|
+
as: "span",
|
|
3974
|
+
variant: "small",
|
|
3975
|
+
className: "text-[--color-util-red] ml-1",
|
|
3976
|
+
children: "*"
|
|
3977
|
+
})]
|
|
3978
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3979
|
+
className: "".concat(inputClasses, " relative"),
|
|
3980
|
+
children: [Icon && iconPosition === 'left' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
3981
|
+
className: "absolute left-3 flex items-center pointer-events-none",
|
|
3982
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
3983
|
+
className: iconClasses
|
|
3984
|
+
})
|
|
3985
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
3986
|
+
id: name,
|
|
3987
|
+
ref: ref,
|
|
3988
|
+
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"),
|
|
3989
|
+
type: type,
|
|
3990
|
+
name: name,
|
|
3991
|
+
placeholder: placeholder,
|
|
3992
|
+
onChange: onChange,
|
|
3993
|
+
value: value,
|
|
3994
|
+
title: title,
|
|
3995
|
+
tabIndex: tabIndex,
|
|
3996
|
+
required: required,
|
|
3997
|
+
disabled: disabled,
|
|
3998
|
+
"data-cy": getDataCy({
|
|
3999
|
+
name,
|
|
4000
|
+
dataCy
|
|
4001
|
+
}),
|
|
4002
|
+
"aria-invalid": !isValid,
|
|
4003
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined
|
|
4004
|
+
}), Icon && iconPosition === 'right' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4005
|
+
className: "absolute right-3 flex items-center pointer-events-none",
|
|
4006
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4007
|
+
className: iconClasses
|
|
4008
|
+
})
|
|
4009
|
+
})]
|
|
4010
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4011
|
+
as: "span",
|
|
4012
|
+
variant: "small",
|
|
4013
|
+
id: "".concat(name, "-error"),
|
|
4014
|
+
className: "text-[--color-util-red]",
|
|
4015
|
+
children: errorMessage
|
|
4016
|
+
}), shouldRenderCustomComponent && customComponent && /*#__PURE__*/external_react_default().createElement(customComponent, Input_objectSpread({}, customComponentProps))]
|
|
4017
|
+
});
|
|
3952
4018
|
});
|
|
3953
4019
|
/* harmony default export */ const Inputs_Input = (Input);
|
|
3954
4020
|
;// ./node_modules/@heroicons/react/24/outline/esm/CalendarIcon.js
|
|
@@ -4013,6 +4079,7 @@ var datepicker_update = injectStylesIntoStyleTag_default()(datepicker/* default
|
|
|
4013
4079
|
|
|
4014
4080
|
|
|
4015
4081
|
|
|
4082
|
+
|
|
4016
4083
|
function DatePicker(_ref) {
|
|
4017
4084
|
let {
|
|
4018
4085
|
initialDate = '',
|
|
@@ -4073,51 +4140,57 @@ function DatePicker(_ref) {
|
|
|
4073
4140
|
inputRef.current.showPicker();
|
|
4074
4141
|
}
|
|
4075
4142
|
};
|
|
4076
|
-
return /*#__PURE__*/
|
|
4077
|
-
className: "relative flex flex-col mb-4"
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4143
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4144
|
+
className: "relative flex flex-col mb-4",
|
|
4145
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
4146
|
+
as: "label",
|
|
4147
|
+
variant: "label",
|
|
4148
|
+
htmlFor: name,
|
|
4149
|
+
className: "mb-1",
|
|
4150
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4151
|
+
className: "text-[--color-util-red] ml-1",
|
|
4152
|
+
children: "*"
|
|
4153
|
+
})]
|
|
4154
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4155
|
+
type: "date",
|
|
4156
|
+
id: name,
|
|
4157
|
+
name: name,
|
|
4158
|
+
ref: inputRef,
|
|
4159
|
+
value: selectedDate,
|
|
4160
|
+
title: title,
|
|
4161
|
+
onChange: handleDateChange,
|
|
4162
|
+
required: required,
|
|
4163
|
+
disabled: disabled,
|
|
4164
|
+
"data-cy": getDataCy({
|
|
4165
|
+
name,
|
|
4166
|
+
dataCy
|
|
4167
|
+
}),
|
|
4168
|
+
"aria-invalid": !isValid,
|
|
4169
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
|
|
4170
|
+
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)
|
|
4171
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
4172
|
+
type: "button",
|
|
4173
|
+
onClick: handleIconClick,
|
|
4174
|
+
className: "absolute top-1/2 mt-1 right-3 transform datepicker-icon-button",
|
|
4175
|
+
"aria-label": "Open date picker",
|
|
4176
|
+
disabled: disabled,
|
|
4177
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_CalendarIcon, {
|
|
4178
|
+
className: "w-5 h-5 ".concat(disabled ? 'text-[--color-text-disabled]' : 'text-[--color-text-weak] hover:text-[--color-primary-btn-hover]', " transition")
|
|
4179
|
+
})
|
|
4180
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4181
|
+
as: "span",
|
|
4182
|
+
id: "".concat(name, "-error"),
|
|
4183
|
+
variant: "small",
|
|
4184
|
+
className: "text-[--color-util-red]",
|
|
4185
|
+
children: errorMessage
|
|
4186
|
+
})]
|
|
4187
|
+
});
|
|
4116
4188
|
}
|
|
4117
4189
|
;// ./src/components/Forms/Radios/RadioButton.jsx
|
|
4118
4190
|
|
|
4119
4191
|
|
|
4120
4192
|
|
|
4193
|
+
|
|
4121
4194
|
const RadioButton = _ref => {
|
|
4122
4195
|
let {
|
|
4123
4196
|
label,
|
|
@@ -4157,48 +4230,53 @@ const RadioButton = _ref => {
|
|
|
4157
4230
|
};
|
|
4158
4231
|
onChange === null || onChange === void 0 || onChange(event);
|
|
4159
4232
|
};
|
|
4160
|
-
return /*#__PURE__*/
|
|
4161
|
-
className: "mb-4 flex flex-col ".concat(className)
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4233
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4234
|
+
className: "mb-4 flex flex-col ".concat(className),
|
|
4235
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
4236
|
+
as: "label",
|
|
4237
|
+
variant: "label",
|
|
4238
|
+
className: "mb-2 flex items-center text-[--color-text-strong]",
|
|
4239
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4240
|
+
as: "span",
|
|
4241
|
+
variant: "small",
|
|
4242
|
+
className: "ml-1 text-[--color-util-red]",
|
|
4243
|
+
children: "*"
|
|
4244
|
+
})]
|
|
4245
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4246
|
+
className: "flex flex-wrap gap-4 md:flex-nowrap md:gap-0 md:space-x-4",
|
|
4247
|
+
children: options.map(option => {
|
|
4248
|
+
const id = "".concat(name, "-").concat(option.value);
|
|
4249
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
|
|
4250
|
+
htmlFor: id,
|
|
4251
|
+
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"),
|
|
4252
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4253
|
+
id: id,
|
|
4254
|
+
type: "radio",
|
|
4255
|
+
tabIndex: tabIndex,
|
|
4256
|
+
title: title,
|
|
4257
|
+
name: name,
|
|
4258
|
+
value: option.value,
|
|
4259
|
+
checked: selectedValue === option.value,
|
|
4260
|
+
onChange: () => handleChange(option),
|
|
4261
|
+
className: "hidden",
|
|
4262
|
+
disabled: disabled,
|
|
4263
|
+
"data-cy": getDataCy({
|
|
4264
|
+
name,
|
|
4265
|
+
value: option.value,
|
|
4266
|
+
dataCy
|
|
4267
|
+
}),
|
|
4268
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined
|
|
4269
|
+
}), option.label]
|
|
4270
|
+
}, option.value);
|
|
4271
|
+
})
|
|
4272
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4273
|
+
as: "span",
|
|
4274
|
+
variant: "small",
|
|
4275
|
+
id: "".concat(name, "-error"),
|
|
4276
|
+
className: "text-[--color-util-red]",
|
|
4277
|
+
children: errorMessage
|
|
4278
|
+
})]
|
|
4279
|
+
});
|
|
4202
4280
|
};
|
|
4203
4281
|
RadioButton.displayName = "RadioButton";
|
|
4204
4282
|
/* harmony default export */ const Radios_RadioButton = (RadioButton);
|
|
@@ -4206,6 +4284,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
4206
4284
|
|
|
4207
4285
|
|
|
4208
4286
|
|
|
4287
|
+
|
|
4209
4288
|
function Checkbox(_ref) {
|
|
4210
4289
|
let {
|
|
4211
4290
|
label,
|
|
@@ -4221,39 +4300,43 @@ function Checkbox(_ref) {
|
|
|
4221
4300
|
const id = "checkbox-".concat(name);
|
|
4222
4301
|
const errorId = "".concat(id, "-error");
|
|
4223
4302
|
const showError = !isValid && errorMessage;
|
|
4224
|
-
return /*#__PURE__*/
|
|
4225
|
-
className: "flex flex-col mb-4"
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4303
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4304
|
+
className: "flex flex-col mb-4",
|
|
4305
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
4306
|
+
className: "flex items-center",
|
|
4307
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", {
|
|
4308
|
+
id: id,
|
|
4309
|
+
type: "checkbox",
|
|
4310
|
+
name: name,
|
|
4311
|
+
checked: value,
|
|
4312
|
+
onChange: onChange,
|
|
4313
|
+
disabled: disabled,
|
|
4314
|
+
title: title,
|
|
4315
|
+
"data-cy": getDataCy({
|
|
4316
|
+
name,
|
|
4317
|
+
dataCy
|
|
4318
|
+
}),
|
|
4319
|
+
"aria-invalid": !isValid,
|
|
4320
|
+
"aria-describedby": showError ? errorId : undefined,
|
|
4321
|
+
"aria-disabled": disabled,
|
|
4322
|
+
style: {
|
|
4323
|
+
accentColor: 'var(--color-primary-btn)'
|
|
4324
|
+
},
|
|
4325
|
+
className: "\n mr-2 \n rounded-sm\n ".concat(disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer')
|
|
4326
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4327
|
+
variant: "label",
|
|
4328
|
+
as: "label",
|
|
4329
|
+
htmlFor: id,
|
|
4330
|
+
children: label
|
|
4331
|
+
})]
|
|
4332
|
+
}), !isValid && errorMessage && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
4333
|
+
id: errorId,
|
|
4334
|
+
variant: "small",
|
|
4335
|
+
as: "span",
|
|
4336
|
+
className: "text-[--color-util-red] mt-1",
|
|
4337
|
+
children: errorMessage
|
|
4338
|
+
})]
|
|
4339
|
+
});
|
|
4257
4340
|
}
|
|
4258
4341
|
// 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
|
|
4259
4342
|
var table = __webpack_require__(494);
|
|
@@ -4287,6 +4370,7 @@ var table_update = injectStylesIntoStyleTag_default()(table/* default */.A, tabl
|
|
|
4287
4370
|
;// ./src/components/Tables/Table.jsx
|
|
4288
4371
|
|
|
4289
4372
|
|
|
4373
|
+
|
|
4290
4374
|
function Table(_ref) {
|
|
4291
4375
|
let {
|
|
4292
4376
|
data = [],
|
|
@@ -4298,28 +4382,34 @@ function Table(_ref) {
|
|
|
4298
4382
|
headCellClassName = '',
|
|
4299
4383
|
rowKeyExtractor = (row, index) => index
|
|
4300
4384
|
} = _ref;
|
|
4301
|
-
return /*#__PURE__*/
|
|
4302
|
-
className: "wrapper w-full ".concat(className)
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4385
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4386
|
+
className: "wrapper w-full ".concat(className),
|
|
4387
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
4388
|
+
className: "\r min-w-full \r table-auto \r text-left \r border-collapse \r table",
|
|
4389
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("thead", {
|
|
4390
|
+
className: "hidden sm:table-header-group",
|
|
4391
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
4392
|
+
className: "bg-[--color-table-head-bg] ".concat(headRowClassName),
|
|
4393
|
+
children: data.map(column => /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
4394
|
+
className: "\n border-b border-[--color-stroke] \n py-2 px-4 \n text-sm font-normal text-[--color-table-head-txt] ".concat(headCellClassName),
|
|
4395
|
+
children: column.header
|
|
4396
|
+
}, column.key))
|
|
4397
|
+
})
|
|
4398
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
4399
|
+
children: rows.map((row, index) => {
|
|
4400
|
+
const backgroundClass = index % 2 === 0 ? 'bg-[--color-table-row-bg-even]' : 'bg-[--color-table-row-bg-odd]';
|
|
4401
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
4402
|
+
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),
|
|
4403
|
+
children: data.map(column => /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
4404
|
+
className: "\n block sm:table-cell \n lg:px-4 lg:py-2 \n text-sm text-[--color-text-weak] ".concat(cellClassName),
|
|
4405
|
+
"data-label": column.header,
|
|
4406
|
+
children: column.render ? column.render(row) : row[column.key]
|
|
4407
|
+
}, column.key))
|
|
4408
|
+
}, rowKeyExtractor(row, index));
|
|
4409
|
+
})
|
|
4410
|
+
})]
|
|
4411
|
+
})
|
|
4412
|
+
});
|
|
4323
4413
|
}
|
|
4324
4414
|
;// ./node_modules/@react-aria/utils/dist/useLayoutEffect.mjs
|
|
4325
4415
|
|
|
@@ -12868,6 +12958,7 @@ const esm_ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(
|
|
|
12868
12958
|
|
|
12869
12959
|
|
|
12870
12960
|
|
|
12961
|
+
|
|
12871
12962
|
function Dropdown(_ref) {
|
|
12872
12963
|
let {
|
|
12873
12964
|
items = [],
|
|
@@ -12903,63 +12994,77 @@ function Dropdown(_ref) {
|
|
|
12903
12994
|
};
|
|
12904
12995
|
onChange === null || onChange === void 0 || onChange(event);
|
|
12905
12996
|
};
|
|
12906
|
-
return /*#__PURE__*/
|
|
12907
|
-
className: "flex flex-col mb-4 ".concat(className)
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12997
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
12998
|
+
className: "flex flex-col mb-4 ".concat(className),
|
|
12999
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Text, {
|
|
13000
|
+
as: "label",
|
|
13001
|
+
variant: "label",
|
|
13002
|
+
className: "mb-1",
|
|
13003
|
+
htmlFor: name,
|
|
13004
|
+
children: [label, required && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
13005
|
+
className: "ml-1 text-[--color-util-red]",
|
|
13006
|
+
children: "*"
|
|
13007
|
+
})]
|
|
13008
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lo, {
|
|
13009
|
+
children: _ref2 => {
|
|
13010
|
+
let {
|
|
13011
|
+
open
|
|
13012
|
+
} = _ref2;
|
|
13013
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13014
|
+
className: "relative",
|
|
13015
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(ft, {
|
|
13016
|
+
id: name,
|
|
13017
|
+
name: name,
|
|
13018
|
+
title: title,
|
|
13019
|
+
"aria-invalid": !isValid,
|
|
13020
|
+
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
|
|
13021
|
+
tabIndex: tabIndex,
|
|
13022
|
+
disabled: disabled,
|
|
13023
|
+
"data-cy": getDataCy({
|
|
13024
|
+
name,
|
|
13025
|
+
dataCy
|
|
13026
|
+
}),
|
|
13027
|
+
className: inputClasses,
|
|
13028
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13029
|
+
className: "flex items-center gap-2",
|
|
13030
|
+
children: [Icon && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
13031
|
+
className: "h-5 w-5 text-[--color-text-weak]"
|
|
13032
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
13033
|
+
children: selectedItem ? selectedItem.label : placeholder
|
|
13034
|
+
})]
|
|
13035
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(solid_esm_ChevronDownIcon, {
|
|
13036
|
+
"aria-hidden": "true",
|
|
13037
|
+
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')
|
|
13038
|
+
})]
|
|
13039
|
+
}), !disabled && /*#__PURE__*/(0,jsx_runtime.jsx)(yt, {
|
|
13040
|
+
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 ",
|
|
13041
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13042
|
+
className: "py-1",
|
|
13043
|
+
children: items.map((item, index) => /*#__PURE__*/(0,jsx_runtime.jsx)(gt, {
|
|
13044
|
+
children: _ref3 => {
|
|
13045
|
+
let {
|
|
13046
|
+
active
|
|
13047
|
+
} = _ref3;
|
|
13048
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
13049
|
+
type: "button",
|
|
13050
|
+
onClick: () => handleSelect(item),
|
|
13051
|
+
className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-strong] ".concat(active ? 'bg-[--color-input-bg]' : ''),
|
|
13052
|
+
children: item.label
|
|
13053
|
+
});
|
|
13054
|
+
}
|
|
13055
|
+
}, index))
|
|
13056
|
+
})
|
|
13057
|
+
})]
|
|
13058
|
+
});
|
|
13059
|
+
}
|
|
13060
|
+
}), !isValid && /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
13061
|
+
as: "span",
|
|
13062
|
+
variant: "small",
|
|
13063
|
+
id: "".concat(name, "-error"),
|
|
13064
|
+
className: "text-[--color-util-red] mt-1",
|
|
13065
|
+
children: errorMessage
|
|
13066
|
+
})]
|
|
13067
|
+
});
|
|
12963
13068
|
}
|
|
12964
13069
|
// 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
|
|
12965
13070
|
var navbar = __webpack_require__(908);
|
|
@@ -13003,6 +13108,7 @@ var c247_icon_only_2x_png_default = /*#__PURE__*/__webpack_require__.n(c247_icon
|
|
|
13003
13108
|
// Default logo variants
|
|
13004
13109
|
|
|
13005
13110
|
|
|
13111
|
+
|
|
13006
13112
|
const Navbar = _ref => {
|
|
13007
13113
|
let {
|
|
13008
13114
|
children,
|
|
@@ -13010,21 +13116,24 @@ const Navbar = _ref => {
|
|
|
13010
13116
|
className = "",
|
|
13011
13117
|
maxWidth = "1200px"
|
|
13012
13118
|
} = _ref;
|
|
13013
|
-
return /*#__PURE__*/
|
|
13014
|
-
className: "navbar w-full bg-[--color-primary-bg] p-4 shadow-lg ".concat(className)
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13119
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("nav", {
|
|
13120
|
+
className: "navbar w-full bg-[--color-primary-bg] p-4 shadow-lg ".concat(className),
|
|
13121
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13122
|
+
className: "mx-auto flex w-full items-center justify-between",
|
|
13123
|
+
style: {
|
|
13124
|
+
maxWidth
|
|
13125
|
+
},
|
|
13126
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13127
|
+
src: logo || (c247_icon_only_png_default()),
|
|
13128
|
+
srcSet: "".concat((c247_icon_only_png_default()), " 1x, ").concat((c247_icon_only_2x_png_default()), " 2x"),
|
|
13129
|
+
alt: "Navbar Logo",
|
|
13130
|
+
className: "nav-logo h-10 w-auto"
|
|
13131
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13132
|
+
className: "right-content text-[--color-text-strong]",
|
|
13133
|
+
children: children
|
|
13134
|
+
})]
|
|
13135
|
+
})
|
|
13136
|
+
});
|
|
13028
13137
|
};
|
|
13029
13138
|
/* harmony default export */ const Navbar_Navbar = (Navbar);
|
|
13030
13139
|
;// external "opus-toolkit-styles/assets/logos/c247-loader.gif"
|
|
@@ -13046,20 +13155,23 @@ function Loader(_ref) {
|
|
|
13046
13155
|
customLoader,
|
|
13047
13156
|
className = ''
|
|
13048
13157
|
} = _ref;
|
|
13049
|
-
return isLoading && /*#__PURE__*/
|
|
13050
|
-
className: "fixed inset-0 z-50 flex items-center justify-center"
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13158
|
+
return isLoading && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13159
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
13160
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13161
|
+
className: "absolute inset-0 bg-[--color-primary-bg] opacity-70"
|
|
13162
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13163
|
+
className: "relative z-10 flex flex-col items-center",
|
|
13164
|
+
children: [customLoader ? customLoader : /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13165
|
+
src: (c247_loader_gif_default()),
|
|
13166
|
+
alt: "Loading",
|
|
13167
|
+
className: "h-60"
|
|
13168
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
|
|
13169
|
+
variant: "h4",
|
|
13170
|
+
className: "mt-4 animate-pulse text-center",
|
|
13171
|
+
children: loaderText
|
|
13172
|
+
})]
|
|
13173
|
+
})]
|
|
13174
|
+
});
|
|
13063
13175
|
}
|
|
13064
13176
|
;// ./node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js
|
|
13065
13177
|
|
|
@@ -13090,6 +13202,7 @@ const XMarkIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(XMarkIcon)
|
|
|
13090
13202
|
|
|
13091
13203
|
|
|
13092
13204
|
|
|
13205
|
+
|
|
13093
13206
|
const Modal = _ref => {
|
|
13094
13207
|
let {
|
|
13095
13208
|
isOpen,
|
|
@@ -13116,39 +13229,48 @@ const Modal = _ref => {
|
|
|
13116
13229
|
|
|
13117
13230
|
// ✅ Conditional render *after* hooks
|
|
13118
13231
|
if (!isOpen) return null;
|
|
13119
|
-
return /*#__PURE__*/
|
|
13120
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13232
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13233
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",
|
|
13234
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13235
|
+
role: "dialog",
|
|
13236
|
+
"aria-modal": "true",
|
|
13237
|
+
"aria-labelledby": "modal-title",
|
|
13238
|
+
"aria-describedby": "modal-description",
|
|
13239
|
+
className: "relative w-11/12 max-w-fit rounded-lg bg-[--color-primary-bg] p-6 shadow-xl ".concat(className),
|
|
13240
|
+
children: [isLoading && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13241
|
+
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"),
|
|
13242
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Loader, {
|
|
13243
|
+
isLoading: true,
|
|
13244
|
+
loaderText: loaderText,
|
|
13245
|
+
className: "relative z-20 h-[110px] w-[150px]"
|
|
13246
|
+
})
|
|
13247
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13248
|
+
className: "relative z-0 flex justify-end pb-3",
|
|
13249
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
13250
|
+
onClick: onClose,
|
|
13251
|
+
className: "text-[--color-text-strong] hover:cursor-pointer",
|
|
13252
|
+
"aria-label": "Close modal",
|
|
13253
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_XMarkIcon, {
|
|
13254
|
+
width: "24px",
|
|
13255
|
+
className: "text-[--color-text-strong]"
|
|
13256
|
+
})
|
|
13257
|
+
})
|
|
13258
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13259
|
+
className: "relative z-0 border-b border-[--color-stroke] pb-4 text-[--color-text-strong] ".concat(headerClassName),
|
|
13260
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13261
|
+
id: "modal-title",
|
|
13262
|
+
children: header
|
|
13263
|
+
})
|
|
13264
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13265
|
+
id: "modal-description",
|
|
13266
|
+
className: "relative z-0 my-4 text-[--color-text-weak]",
|
|
13267
|
+
children: body
|
|
13268
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13269
|
+
className: "relative z-0 text-[--color-text-weak] ".concat(footerClassName),
|
|
13270
|
+
children: footer
|
|
13271
|
+
})]
|
|
13272
|
+
})
|
|
13273
|
+
});
|
|
13152
13274
|
};
|
|
13153
13275
|
/* harmony default export */ const Modals_Modal = (Modal);
|
|
13154
13276
|
;// external "opus-toolkit-styles/assets/logos/footer-logo-group.png"
|
|
@@ -13163,6 +13285,7 @@ var footer_logo_group_2x_png_default = /*#__PURE__*/__webpack_require__.n(footer
|
|
|
13163
13285
|
|
|
13164
13286
|
|
|
13165
13287
|
|
|
13288
|
+
|
|
13166
13289
|
const CookieBanner = _ref => {
|
|
13167
13290
|
let {
|
|
13168
13291
|
logo,
|
|
@@ -13194,35 +13317,40 @@ const CookieBanner = _ref => {
|
|
|
13194
13317
|
}
|
|
13195
13318
|
}, [imageLoaded, render]);
|
|
13196
13319
|
if (!render) return null;
|
|
13197
|
-
return /*#__PURE__*/
|
|
13320
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Card, {
|
|
13198
13321
|
intent: intent,
|
|
13199
|
-
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", " ")
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13322
|
+
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", " "),
|
|
13323
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13324
|
+
className: "items-center md:flex",
|
|
13325
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
13326
|
+
className: "flex-shrink-1 mr-4",
|
|
13327
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
13328
|
+
src: logo || (footer_logo_group_png_default()),
|
|
13329
|
+
srcSet: "".concat((footer_logo_group_png_default()), " 1x, ").concat((footer_logo_group_2x_png_default()), " 2x"),
|
|
13330
|
+
alt: "C247 Logo",
|
|
13331
|
+
className: "w-full object-contain",
|
|
13332
|
+
onLoad: () => setImageLoaded(true)
|
|
13333
|
+
})
|
|
13334
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
13335
|
+
className: "mr-4",
|
|
13336
|
+
children: policyTxt
|
|
13337
|
+
})]
|
|
13338
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
13339
|
+
className: "flex items-center space-x-4",
|
|
13340
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Button, {
|
|
13341
|
+
rank: "primary",
|
|
13342
|
+
text: "Accept",
|
|
13343
|
+
onClick: onAccept
|
|
13344
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Button, {
|
|
13345
|
+
rank: "secondary",
|
|
13346
|
+
text: linkTxt,
|
|
13347
|
+
onClick: e => {
|
|
13348
|
+
e.preventDefault();
|
|
13349
|
+
onLearnMore();
|
|
13350
|
+
}
|
|
13351
|
+
})]
|
|
13352
|
+
})]
|
|
13353
|
+
});
|
|
13226
13354
|
};
|
|
13227
13355
|
/* harmony default export */ const Cookie = (CookieBanner);
|
|
13228
13356
|
;// ./src/index.js
|