@wavelengthusaf/components 2.3.5 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
206
206
  var ContextProvider = REACT_PROVIDER_TYPE;
207
207
  var Element = REACT_ELEMENT_TYPE;
208
208
  var ForwardRef2 = REACT_FORWARD_REF_TYPE;
209
- var Fragment14 = REACT_FRAGMENT_TYPE;
209
+ var Fragment15 = REACT_FRAGMENT_TYPE;
210
210
  var Lazy = REACT_LAZY_TYPE;
211
211
  var Memo2 = REACT_MEMO_TYPE;
212
212
  var Portal = REACT_PORTAL_TYPE;
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
265
265
  exports.ContextProvider = ContextProvider;
266
266
  exports.Element = Element;
267
267
  exports.ForwardRef = ForwardRef2;
268
- exports.Fragment = Fragment14;
268
+ exports.Fragment = Fragment15;
269
269
  exports.Lazy = Lazy;
270
270
  exports.Memo = Memo2;
271
271
  exports.Portal = Portal;
@@ -2903,6 +2903,422 @@ function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id }) {
2903
2903
  }
2904
2904
  }
2905
2905
 
2906
+ // src/components/buttons/WavelengthButton/WavelengthStyledButton.tsx
2907
+ var _styledcomponents = require('styled-components'); var _styledcomponents2 = _interopRequireDefault(_styledcomponents);
2908
+
2909
+ var ButtonPresets = {
2910
+ default: {
2911
+ width: "130px",
2912
+ height: "45px",
2913
+ display: "flex",
2914
+ flexDirection: "row",
2915
+ alignItems: "center",
2916
+ justifyContent: "center",
2917
+ borderRadius: "8px",
2918
+ border: "none",
2919
+ fontSize: "",
2920
+ fontWeight: 600,
2921
+ color: "",
2922
+ margin: "",
2923
+ padding: "",
2924
+ backgroundColor: "",
2925
+ hover: {
2926
+ backgroundColor: "",
2927
+ color: "",
2928
+ cursor: "pointer",
2929
+ width: "",
2930
+ height: "",
2931
+ border: "",
2932
+ fontSize: ""
2933
+ },
2934
+ disabled: {
2935
+ cursor: "",
2936
+ opacity: ""
2937
+ },
2938
+ active: {
2939
+ backgroundColor: "",
2940
+ boxShadow: "",
2941
+ transition: "",
2942
+ border: ""
2943
+ }
2944
+ },
2945
+ ewdms_primary: {
2946
+ width: "130px",
2947
+ height: "45px",
2948
+ display: "flex",
2949
+ flexDirection: "row",
2950
+ alignItems: "center",
2951
+ justifyContent: "center",
2952
+ borderRadius: "8px",
2953
+ border: "none",
2954
+ fontSize: "16px",
2955
+ fontWeight: 600,
2956
+ color: "white",
2957
+ margin: "",
2958
+ padding: "12px 32px",
2959
+ backgroundColor: "rgba(26, 128, 131, 1)",
2960
+ hover: {
2961
+ backgroundColor: "rgba(38, 186, 190, 1)",
2962
+ color: "rgba(247, 247, 249, 1)",
2963
+ cursor: "pointer",
2964
+ width: "",
2965
+ height: "",
2966
+ border: "",
2967
+ fontSize: ""
2968
+ },
2969
+ disabled: {
2970
+ cursor: "not-allowed",
2971
+ opacity: "0.4"
2972
+ },
2973
+ active: {
2974
+ backgroundColor: "#67a8aa",
2975
+ boxShadow: "",
2976
+ transition: "background-color 0.2s ease-in",
2977
+ border: ""
2978
+ }
2979
+ },
2980
+ ewdms_secondary: {
2981
+ width: "130px",
2982
+ height: "45px",
2983
+ display: "flex",
2984
+ flexDirection: "row",
2985
+ alignItems: "center",
2986
+ justifyContent: "center",
2987
+ borderRadius: "8px",
2988
+ border: "1px solid rgba(26, 128, 131, 1)",
2989
+ fontSize: "16px",
2990
+ fontWeight: 600,
2991
+ margin: "",
2992
+ color: "rgba(26, 128, 131, 1)",
2993
+ padding: "12px 32px",
2994
+ backgroundColor: "transparent",
2995
+ hover: {
2996
+ backgroundColor: "rgba(26, 128, 131, 0.1)",
2997
+ color: "rgba(26, 128, 131, 1)",
2998
+ cursor: "pointer",
2999
+ width: "",
3000
+ height: "",
3001
+ border: "",
3002
+ fontSize: ""
3003
+ },
3004
+ disabled: {
3005
+ cursor: "not-allowed",
3006
+ opacity: "0.4"
3007
+ },
3008
+ active: {
3009
+ backgroundColor: "#bad7da",
3010
+ boxShadow: "",
3011
+ transition: "background-color 0.2s ease-in",
3012
+ border: ""
3013
+ }
3014
+ },
3015
+ ewdms_tertiary: {
3016
+ width: "130px",
3017
+ height: "45px",
3018
+ display: "flex",
3019
+ margin: "",
3020
+ flexDirection: "row",
3021
+ alignItems: "center",
3022
+ justifyContent: "center",
3023
+ borderRadius: "8px",
3024
+ border: "none",
3025
+ fontSize: "16px",
3026
+ fontWeight: 600,
3027
+ color: "rgba(26, 128, 131, 1)",
3028
+ padding: "12px 32px",
3029
+ backgroundColor: "transparent",
3030
+ hover: {
3031
+ backgroundColor: "rgba(26, 128, 131, 0.1)",
3032
+ color: "rgba(26, 128, 131, 1)",
3033
+ cursor: "pointer",
3034
+ width: "",
3035
+ height: "",
3036
+ border: "",
3037
+ fontSize: ""
3038
+ },
3039
+ disabled: {
3040
+ cursor: "not-allowed",
3041
+ opacity: "0.4"
3042
+ },
3043
+ active: {
3044
+ backgroundColor: "#445C71",
3045
+ boxShadow: "",
3046
+ transition: "background-color 0.2s ease-in",
3047
+ border: ""
3048
+ }
3049
+ },
3050
+ channel_one_launch: {
3051
+ width: "62px",
3052
+ height: "24px",
3053
+ display: "flex",
3054
+ margin: "",
3055
+ flexDirection: "row",
3056
+ alignItems: "center",
3057
+ justifyContent: "center",
3058
+ borderRadius: "20px",
3059
+ border: "none",
3060
+ fontSize: "10px",
3061
+ fontWeight: 700,
3062
+ color: "white",
3063
+ padding: "0px 0px",
3064
+ backgroundColor: "#24A818",
3065
+ hover: {
3066
+ height: "28px",
3067
+ border: "0.5px solid white",
3068
+ fontSize: "12px",
3069
+ width: "72px",
3070
+ backgroundColor: "",
3071
+ color: "",
3072
+ cursor: "pointer"
3073
+ },
3074
+ disabled: {
3075
+ cursor: "not-allowed",
3076
+ opacity: "0.4"
3077
+ },
3078
+ active: {
3079
+ backgroundColor: "#6FC36E",
3080
+ boxShadow: "",
3081
+ transition: "background-color 0.2s ease-in",
3082
+ border: ""
3083
+ }
3084
+ },
3085
+ channel_one_request: {
3086
+ width: "100px",
3087
+ height: "24px",
3088
+ display: "flex",
3089
+ flexDirection: "row",
3090
+ alignItems: "center",
3091
+ margin: "",
3092
+ justifyContent: "center",
3093
+ borderRadius: "20px",
3094
+ border: "none",
3095
+ fontSize: "10px",
3096
+ fontWeight: 700,
3097
+ color: "white",
3098
+ padding: "0px 0px",
3099
+ backgroundColor: "#1D31E4",
3100
+ hover: {
3101
+ height: "28px",
3102
+ border: "0.5px solid white",
3103
+ fontSize: "12px",
3104
+ width: "110px",
3105
+ backgroundColor: "",
3106
+ color: "",
3107
+ cursor: "pointer"
3108
+ },
3109
+ disabled: {
3110
+ cursor: "not-allowed",
3111
+ opacity: "0.4"
3112
+ },
3113
+ active: {
3114
+ backgroundColor: "#5D78ED",
3115
+ boxShadow: "",
3116
+ transition: "background-color 0.2s ease-in",
3117
+ border: ""
3118
+ }
3119
+ },
3120
+ channel_one_pending: {
3121
+ width: "62px",
3122
+ height: "24px",
3123
+ display: "flex",
3124
+ flexDirection: "row",
3125
+ alignItems: "center",
3126
+ justifyContent: "center",
3127
+ borderRadius: "20px",
3128
+ border: "none",
3129
+ fontSize: "10px",
3130
+ fontWeight: 700,
3131
+ color: "white",
3132
+ padding: "0px 0px",
3133
+ margin: "",
3134
+ backgroundColor: "#F88805",
3135
+ hover: {
3136
+ height: "28px",
3137
+ border: "0.5px solid white",
3138
+ fontSize: "12px",
3139
+ width: "72px",
3140
+ backgroundColor: "",
3141
+ color: "",
3142
+ cursor: "pointer"
3143
+ },
3144
+ disabled: {
3145
+ cursor: "not-allowed",
3146
+ opacity: "0.4"
3147
+ },
3148
+ active: {
3149
+ backgroundColor: "#FAAD68",
3150
+ boxShadow: "",
3151
+ transition: "background-color 0.2s ease-in",
3152
+ border: ""
3153
+ }
3154
+ },
3155
+ channel_one_disabled: {
3156
+ width: "100px",
3157
+ height: "24px",
3158
+ display: "flex",
3159
+ margin: "",
3160
+ flexDirection: "row",
3161
+ alignItems: "center",
3162
+ justifyContent: "center",
3163
+ borderRadius: "20px",
3164
+ border: "none",
3165
+ fontSize: "10px",
3166
+ fontWeight: 700,
3167
+ color: "white",
3168
+ padding: "0px 0px",
3169
+ backgroundColor: "#9E9E9E",
3170
+ hover: {
3171
+ height: "",
3172
+ border: "",
3173
+ fontSize: "",
3174
+ width: "",
3175
+ backgroundColor: "",
3176
+ color: "",
3177
+ cursor: ""
3178
+ },
3179
+ disabled: {
3180
+ cursor: "not-allowed",
3181
+ opacity: "0.4"
3182
+ },
3183
+ active: {
3184
+ backgroundColor: "",
3185
+ boxShadow: "",
3186
+ transition: "",
3187
+ border: ""
3188
+ }
3189
+ },
3190
+ channel_one_transparent: {
3191
+ width: "70px",
3192
+ height: "25px",
3193
+ display: "flex",
3194
+ flexDirection: "row",
3195
+ alignItems: "center",
3196
+ margin: "",
3197
+ justifyContent: "center",
3198
+ borderRadius: "6px",
3199
+ border: "1px solid white",
3200
+ fontSize: "10px",
3201
+ fontWeight: 500,
3202
+ color: "white",
3203
+ padding: "0px !important",
3204
+ backgroundColor: "transparent",
3205
+ hover: {
3206
+ height: "",
3207
+ border: "",
3208
+ fontSize: "",
3209
+ width: "",
3210
+ backgroundColor: "",
3211
+ color: "",
3212
+ cursor: "pointer"
3213
+ },
3214
+ disabled: {
3215
+ cursor: "",
3216
+ opacity: ""
3217
+ },
3218
+ active: {
3219
+ backgroundColor: "rgba(255, 255, 255, 0.22)",
3220
+ boxShadow: "",
3221
+ transition: "background-color 0.2s ease-in",
3222
+ border: ""
3223
+ }
3224
+ },
3225
+ brewery: {
3226
+ width: "138px",
3227
+ height: "44px",
3228
+ display: "flex",
3229
+ flexDirection: "row",
3230
+ alignItems: "center",
3231
+ justifyContent: "center",
3232
+ borderRadius: "6px",
3233
+ border: "none",
3234
+ fontSize: "16px",
3235
+ margin: "",
3236
+ fontWeight: 500,
3237
+ color: "white",
3238
+ padding: "12px 16px",
3239
+ backgroundColor: "#D16A2F",
3240
+ hover: {
3241
+ height: "",
3242
+ border: "",
3243
+ fontSize: "",
3244
+ width: "",
3245
+ backgroundColor: "#D16A2F",
3246
+ color: "",
3247
+ cursor: "pointer"
3248
+ },
3249
+ disabled: {
3250
+ cursor: "not-allowed",
3251
+ opacity: "0.4"
3252
+ },
3253
+ active: {
3254
+ backgroundColor: "",
3255
+ boxShadow: "0 0 5px black",
3256
+ transition: "",
3257
+ border: ""
3258
+ }
3259
+ }
3260
+ };
3261
+ var Button3 = _styledcomponents2.default.button`
3262
+ ${({ type }) => {
3263
+ const preset = ButtonPresets[type];
3264
+ return `
3265
+ width: ${preset.width};
3266
+ height: ${preset.height};
3267
+ display: ${preset.display};
3268
+ flex-direction: ${preset.flexDirection};
3269
+ align-items: ${preset.alignItems};
3270
+ justify-content: ${preset.justifyContent};
3271
+ border-radius: ${preset.borderRadius};
3272
+ border: ${preset.border};
3273
+ font-size: ${preset.fontSize};
3274
+ font-weight: ${preset.fontWeight};
3275
+ color: ${preset.color};
3276
+ padding: ${preset.padding};
3277
+ background-color: ${preset.backgroundColor};
3278
+ margin: ${preset.margin};
3279
+
3280
+ &:hover {
3281
+ background-color: ${preset.hover.backgroundColor};
3282
+ color: ${preset.hover.color};
3283
+ cursor: ${preset.hover.cursor};
3284
+ width:${preset.hover.width};
3285
+ height:${preset.hover.height};
3286
+ border:${preset.hover.border};
3287
+ font-size:${preset.hover.fontSize};
3288
+ }
3289
+
3290
+ &:disabled {
3291
+ cursor: ${preset.disabled.cursor};
3292
+ opacity: ${preset.disabled.opacity};
3293
+ }
3294
+ &:active {
3295
+ background-color: ${preset.active.backgroundColor};
3296
+ box-shadow: ${preset.active.boxShadow};
3297
+ border: ${preset.active.border};
3298
+ transition: ${preset.active.transition};
3299
+ }
3300
+
3301
+ `;
3302
+ }}
3303
+
3304
+ ${({ styles }) => styles && { ...styles }}
3305
+ ${({ hoverstyles }) => hoverstyles && {
3306
+ "&:hover": { ...hoverstyles }
3307
+ }}
3308
+ ${({ activestyles }) => activestyles && {
3309
+ "&:active": { ...activestyles }
3310
+ }}
3311
+ ${({ disabledstyles }) => disabledstyles && {
3312
+ "&:disabled": { ...disabledstyles }
3313
+ }}
3314
+ `;
3315
+ function WavelengthStyledButton({ type = "default", styles, children, disabled = false, hoverstyles, icon, onClick, disabledstyles, activestyles }) {
3316
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button3, { type, styles, hoverstyles, disabledstyles, disabled, activestyles, onClick, children: [
3317
+ icon,
3318
+ children
3319
+ ] });
3320
+ }
3321
+
2906
3322
  // src/components/containers/WavelengthBox/WavelengthBox.tsx
2907
3323
  var _Grid = require('@mui/material/Grid'); var _Grid2 = _interopRequireDefault(_Grid);
2908
3324
 
@@ -2996,7 +3412,7 @@ var _ListItem = require('@mui/material/ListItem'); var _ListItem2 = _interopRequ
2996
3412
  var _Popper = require('@mui/material/Popper'); var _Popper2 = _interopRequireDefault(_Popper);
2997
3413
  var _Autocomplete = require('@mui/material/Autocomplete'); var _Autocomplete2 = _interopRequireDefault(_Autocomplete);
2998
3414
  var _ListItemText = require('@mui/material/ListItemText'); var _ListItemText2 = _interopRequireDefault(_ListItemText);
2999
- var _styledcomponents = require('styled-components'); var _styledcomponents2 = _interopRequireDefault(_styledcomponents);
3415
+
3000
3416
 
3001
3417
 
3002
3418
  var CustomPopper = (props) => {
@@ -4197,6 +4613,70 @@ function WavelengthSpinningLogo({ svg = /* @__PURE__ */ _jsxruntime.jsx.call(voi
4197
4613
  return loadingSymbol;
4198
4614
  }
4199
4615
 
4616
+ // src/components/PageComponents/WavelengthDragAndDrop.tsx
4617
+
4618
+ function WavelengthDragAndDrop({
4619
+ width: width2 = "550px",
4620
+ height: height2 = "230px",
4621
+ onFilesSelected,
4622
+ border: border2,
4623
+ textColor,
4624
+ fontSize = "12px",
4625
+ allowedFileMIME,
4626
+ allowedFileExtensions,
4627
+ backgroundColor: backgroundColor2 = "transparent"
4628
+ }) {
4629
+ const handleFileChange = (event) => {
4630
+ const selectedFiles = event.target.files;
4631
+ if (selectedFiles && selectedFiles.length > 0) {
4632
+ const newFiles = Array.from(selectedFiles);
4633
+ onFilesSelected(newFiles);
4634
+ }
4635
+ };
4636
+ const handleDrop = (event) => {
4637
+ event.preventDefault();
4638
+ const droppedFiles = event.dataTransfer.files;
4639
+ if (droppedFiles.length > 0) {
4640
+ const newFiles = Array.from(droppedFiles);
4641
+ const allowedTypes = allowedFileMIME ? allowedFileMIME : "*/*";
4642
+ const validFiles = newFiles.filter((file) => allowedTypes === "*/*" || allowedTypes.includes(file.type));
4643
+ if (validFiles.length > 0) {
4644
+ onFilesSelected(validFiles);
4645
+ } else {
4646
+ alert(`Invalid file type`);
4647
+ }
4648
+ }
4649
+ };
4650
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4651
+ "div",
4652
+ {
4653
+ style: {
4654
+ backgroundColor: backgroundColor2,
4655
+ border: border2 ? border2 : "1px dashed rgba(14, 178, 178, 1)",
4656
+ borderRadius: "8px",
4657
+ paddingTop: "10px",
4658
+ boxSizing: "border-box",
4659
+ width: width2,
4660
+ height: height2,
4661
+ cursor: "pointer",
4662
+ display: "flex",
4663
+ flexDirection: "column",
4664
+ justifyContent: "center",
4665
+ alignItems: "center",
4666
+ overflow: "scroll"
4667
+ },
4668
+ onDrop: handleDrop,
4669
+ onDragOver: (event) => event.preventDefault(),
4670
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize, color: textColor }, children: [
4671
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "file", hidden: true, multiple: true, id: "browse", onChange: handleFileChange, accept: allowedFileExtensions }),
4672
+ "Drag File here or",
4673
+ " ",
4674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "browse", style: { textDecoration: "underline", cursor: "pointer" }, children: "select from files" })
4675
+ ] })
4676
+ }
4677
+ );
4678
+ }
4679
+
4200
4680
  // src/components/footers/WavelengthFooter/WavelengthFooter.tsx
4201
4681
 
4202
4682
  var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
@@ -4435,21 +4915,40 @@ function WavelengthPlaneTrail({ trailDir = "right", id }) {
4435
4915
 
4436
4916
 
4437
4917
  function WavelengthConfirmationModal(props) {
4438
- const { show, setShow, handleConfirmationModalOnConfirmProp, id } = props;
4918
+ const { show, setShow, id } = props;
4439
4919
  const handleClose = () => {
4440
4920
  setShow(false);
4441
4921
  };
4442
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Dialog, { id, "data-testid": "testId-WavelengthConfirmationModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", children: [
4443
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: _optionalChain([props, 'access', _7 => _7.textObj, 'optionalAccess', _8 => _8.title]) }),
4444
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _9 => _9.textObj, 'optionalAccess', _10 => _10.dialog]) }) }),
4445
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: [
4446
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthConfirmationModalCancelButton", onClick: handleClose, children: "Nevermind" }),
4447
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Button, { "data-testid": "testId-WavelengthConfirmationModalConfirmButton", onClick: handleConfirmationModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: [
4448
- "Yes, ",
4449
- _optionalChain([props, 'access', _11 => _11.textObj, 'optionalAccess', _12 => _12.purpose])
4450
- ] })
4451
- ] })
4452
- ] });
4922
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4923
+ _material.Box,
4924
+ {
4925
+ sx: {
4926
+ position: "absolute",
4927
+ top: "50%",
4928
+ left: "50%",
4929
+ transform: "translate(-50%, -50%)",
4930
+ width: props.width || "451px",
4931
+ // Custom width
4932
+ height: props.height || "256px",
4933
+ // Custom height
4934
+ boxSizing: "border-box",
4935
+ bgcolor: props.backgroundColor || "background.paper",
4936
+ borderRadius: "16px",
4937
+ color: props.textColor || "black",
4938
+ boxShadow: 24,
4939
+ padding: "32px",
4940
+ overflow: "scroll"
4941
+ },
4942
+ children: [
4943
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: _optionalChain([props, 'access', _7 => _7.textObj, 'optionalAccess', _8 => _8.title]) }),
4944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: _optionalChain([props, 'access', _9 => _9.textObj, 'optionalAccess', _10 => _10.dialog]) }),
4945
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
4946
+ props.cacelButton,
4947
+ props.submitButton
4948
+ ] })
4949
+ ]
4950
+ }
4951
+ ) });
4453
4952
  }
4454
4953
 
4455
4954
  // src/components/modals/WavelengthContentModal.tsx
@@ -4463,11 +4962,11 @@ function WavelengthContentModal(props) {
4463
4962
  };
4464
4963
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Dialog, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", children: [
4465
4964
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { display: "flex", alignItems: "center", children: [
4466
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _13 => _13.textObj, 'optionalAccess', _14 => _14.title]) }),
4965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _11 => _11.textObj, 'optionalAccess', _12 => _12.title]) }),
4467
4966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { onClick: handleClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {}) }) })
4468
4967
  ] }) }),
4469
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _15 => _15.textObj, 'optionalAccess', _16 => _16.dialog]) }) }),
4470
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access', _17 => _17.textObj, 'optionalAccess', _18 => _18.purpose]) }) })
4968
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _13 => _13.textObj, 'optionalAccess', _14 => _14.dialog]) }) }),
4969
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access', _15 => _15.textObj, 'optionalAccess', _16 => _16.purpose]) }) })
4471
4970
  ] });
4472
4971
  }
4473
4972
 
@@ -4584,7 +5083,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
4584
5083
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
4585
5084
  }
4586
5085
  } else if (items.itemType === "link") {
4587
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { style: { textDecoration: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: "", children: items.label }) }, index);
5086
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { style: { textDecoration: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor || "", children: items.label }) }, index);
4588
5087
  } else {
4589
5088
  if (items.link) {
4590
5089
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { href: items.link, children: items.label }, index);
@@ -4681,7 +5180,7 @@ function WavelengthDropdown({
4681
5180
  borderBottomRightRadius: "8px",
4682
5181
  borderTopRightRadius: "0px",
4683
5182
  borderTopLeftRadius: "0px",
4684
- boxShadow: _optionalChain([menuSx, 'optionalAccess', _19 => _19.boxShadow]),
5183
+ boxShadow: _optionalChain([menuSx, 'optionalAccess', _17 => _17.boxShadow]),
4685
5184
  width: myMenusx.width,
4686
5185
  backgroundColor: `${myMenusx.backgroundColor}`
4687
5186
  },
@@ -5363,6 +5862,67 @@ function DefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, bo
5363
5862
  }
5364
5863
  }
5365
5864
 
5865
+ // src/components/TextField/WavelengthTextField.tsx
5866
+
5867
+
5868
+
5869
+ function WavelengthTextField(props) {
5870
+ const [hasError, setHasError] = _react.useState.call(void 0, false);
5871
+ const handleChange = _react.useCallback.call(void 0,
5872
+ (event) => {
5873
+ const val = event.target.value;
5874
+ if (props.regex) {
5875
+ setHasError(!props.regex.test(val));
5876
+ }
5877
+ },
5878
+ [props.regex]
5879
+ // Ensures function doesn't change unless `regex` does
5880
+ );
5881
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5882
+ _TextField2.default,
5883
+ {
5884
+ type: props.type,
5885
+ required: props.required,
5886
+ label: props.label,
5887
+ onChange: (e) => {
5888
+ handleChange(e);
5889
+ _optionalChain([props, 'access', _18 => _18.onChange, 'optionalCall', _19 => _19(e)]);
5890
+ },
5891
+ error: hasError,
5892
+ helperText: hasError ? "Invalid Input" : "",
5893
+ sx: {
5894
+ "& .MuiInputBase-root": {
5895
+ height: props.height || "51px",
5896
+ width: props.width || "320px",
5897
+ borderRadius: "8px"
5898
+ },
5899
+ "&.MuiTextField-root": {
5900
+ "& label": { color: !hasError ? props.labelColor || "rgba(89, 99, 129, 1)" : "red" },
5901
+ "& .MuiOutlinedInput-root": {
5902
+ "& fieldset": {
5903
+ border: "1px solid",
5904
+ borderColor: !hasError ? props.borderColor || `rgba(89, 99, 129, 1)` : "red"
5905
+ },
5906
+ "&.Mui-focused fieldset": {
5907
+ borderColor: !hasError ? props.focusColor || `rgba(26, 128, 131, 0.1)` : "red"
5908
+ }
5909
+ }
5910
+ }
5911
+ },
5912
+ placeholder: props.placeholder,
5913
+ InputLabelProps: {
5914
+ shrink: true
5915
+ },
5916
+ InputProps: {
5917
+ style: { color: props.textColor || "inherit" }
5918
+ }
5919
+ }
5920
+ ) });
5921
+ }
5922
+
5923
+
5924
+
5925
+
5366
5926
 
5367
5927
 
5368
5928
 
@@ -5404,7 +5964,7 @@ function DefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, bo
5404
5964
 
5405
5965
 
5406
5966
 
5407
- exports.AppLogo = AppLogo; exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.DefaultCarousel = DefaultCarousel; exports.DefaultIcon = DefaultIcon; exports.DefaultPagination = DefaultPagination; exports.ManyPlanesComponent = ManyPlanesComponent; exports.NotAvailablePage = NotAvailablePage; exports.SearchTextField = SearchTextField; exports.SliderCardCarousel = SliderCardCarousel; exports.TestSnackbar = TestSnackbar; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
5967
+ exports.AppLogo = AppLogo; exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.DefaultCarousel = DefaultCarousel; exports.DefaultIcon = DefaultIcon; exports.DefaultPagination = DefaultPagination; exports.ManyPlanesComponent = ManyPlanesComponent; exports.NotAvailablePage = NotAvailablePage; exports.SearchTextField = SearchTextField; exports.SliderCardCarousel = SliderCardCarousel; exports.TestSnackbar = TestSnackbar; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthTextField = WavelengthTextField; exports.WavelengthTitleBar = WavelengthTitleBar; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
5408
5968
  /*! Bundled license information:
5409
5969
 
5410
5970
  react-is/cjs/react-is.production.min.js: