@wavelengthusaf/components 2.3.4 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/dist/cjs/index.cjs +596 -46
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +44 -8
- package/dist/components/TextField/WavelengthTextField.d.ts +17 -0
- package/dist/components/TextField/WavelengthTextField.d.ts.map +1 -0
- package/dist/components/buttons/WavelengthButton/WavelengthStyledButton.d.ts +15 -0
- package/dist/components/buttons/WavelengthButton/WavelengthStyledButton.d.ts.map +1 -0
- package/dist/components/modals/WavelengthConfirmationModal.d.ts +7 -1
- package/dist/components/modals/WavelengthConfirmationModal.d.ts.map +1 -1
- package/dist/components/modals/WavelengthDropdown.d.ts +1 -1
- package/dist/components/modals/WavelengthDropdown.d.ts.map +1 -1
- package/dist/components/modals/WavelengthPopUpMenu.d.ts +3 -2
- package/dist/components/modals/WavelengthPopUpMenu.d.ts.map +1 -1
- package/dist/components/search/WavelengthSearch.d.ts +2 -1
- package/dist/components/search/WavelengthSearch.d.ts.map +1 -1
- package/dist/esm/index.d.ts +44 -8
- package/dist/esm/index.js +702 -152
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
|
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 =
|
|
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
|
|
|
@@ -2998,6 +3414,7 @@ var _Autocomplete = require('@mui/material/Autocomplete'); var _Autocomplete2 =
|
|
|
2998
3414
|
var _ListItemText = require('@mui/material/ListItemText'); var _ListItemText2 = _interopRequireDefault(_ListItemText);
|
|
2999
3415
|
|
|
3000
3416
|
|
|
3417
|
+
|
|
3001
3418
|
var CustomPopper = (props) => {
|
|
3002
3419
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3003
3420
|
_Popper2.default,
|
|
@@ -3035,6 +3452,12 @@ var CustomPopper = (props) => {
|
|
|
3035
3452
|
}
|
|
3036
3453
|
);
|
|
3037
3454
|
};
|
|
3455
|
+
var AutocompleteCustomEndAdornment = _styledcomponents2.default.call(void 0, "div")({
|
|
3456
|
+
position: "absolute",
|
|
3457
|
+
right: "12px",
|
|
3458
|
+
top: "50%",
|
|
3459
|
+
transform: "translate(0, -50%)"
|
|
3460
|
+
});
|
|
3038
3461
|
function WavelengthSearch({
|
|
3039
3462
|
id,
|
|
3040
3463
|
mode,
|
|
@@ -3055,7 +3478,8 @@ function WavelengthSearch({
|
|
|
3055
3478
|
textColor,
|
|
3056
3479
|
fontSize,
|
|
3057
3480
|
backgroundColor: backgroundColor2,
|
|
3058
|
-
iconPos = "end"
|
|
3481
|
+
iconPos = "end",
|
|
3482
|
+
clearIconMarginRight
|
|
3059
3483
|
}) {
|
|
3060
3484
|
const palette2 = getPalette();
|
|
3061
3485
|
borderColor2 = borderColor2 ? borderColor2 : "#2D3140";
|
|
@@ -3083,7 +3507,12 @@ function WavelengthSearch({
|
|
|
3083
3507
|
return returnVal;
|
|
3084
3508
|
},
|
|
3085
3509
|
options,
|
|
3086
|
-
sx: {
|
|
3510
|
+
sx: {
|
|
3511
|
+
width: width2,
|
|
3512
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3513
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "45px"
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3087
3516
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3088
3517
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3089
3518
|
_TextField2.default,
|
|
@@ -3095,7 +3524,7 @@ function WavelengthSearch({
|
|
|
3095
3524
|
...params.InputProps,
|
|
3096
3525
|
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3097
3526
|
type: "search",
|
|
3098
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3527
|
+
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { sx: { color: "white" }, children }) })
|
|
3099
3528
|
},
|
|
3100
3529
|
sx: {
|
|
3101
3530
|
"& .MuiInputBase-root": {
|
|
@@ -3148,7 +3577,12 @@ function WavelengthSearch({
|
|
|
3148
3577
|
return returnVal;
|
|
3149
3578
|
},
|
|
3150
3579
|
options,
|
|
3151
|
-
sx: {
|
|
3580
|
+
sx: {
|
|
3581
|
+
width: width2,
|
|
3582
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3583
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3584
|
+
}
|
|
3585
|
+
},
|
|
3152
3586
|
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
3153
3587
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3154
3588
|
_TextField2.default,
|
|
@@ -3160,6 +3594,7 @@ function WavelengthSearch({
|
|
|
3160
3594
|
...params.InputProps,
|
|
3161
3595
|
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3162
3596
|
type: "search",
|
|
3597
|
+
endAdornment: null,
|
|
3163
3598
|
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Icon2.default, { sx: { color: textColor, paddingRight: "0px" }, children }) })
|
|
3164
3599
|
},
|
|
3165
3600
|
sx: {
|
|
@@ -3213,7 +3648,12 @@ function WavelengthSearch({
|
|
|
3213
3648
|
return returnVal;
|
|
3214
3649
|
},
|
|
3215
3650
|
options,
|
|
3216
|
-
sx: {
|
|
3651
|
+
sx: {
|
|
3652
|
+
width: width2,
|
|
3653
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3654
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "50px"
|
|
3655
|
+
}
|
|
3656
|
+
},
|
|
3217
3657
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3218
3658
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3219
3659
|
_TextField2.default,
|
|
@@ -3233,7 +3673,7 @@ function WavelengthSearch({
|
|
|
3233
3673
|
...params.InputProps,
|
|
3234
3674
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3235
3675
|
type: "search",
|
|
3236
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3676
|
+
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3237
3677
|
_IconButton2.default,
|
|
3238
3678
|
{
|
|
3239
3679
|
sx: { color: textColor },
|
|
@@ -3295,7 +3735,12 @@ function WavelengthSearch({
|
|
|
3295
3735
|
return returnVal;
|
|
3296
3736
|
},
|
|
3297
3737
|
options,
|
|
3298
|
-
sx: {
|
|
3738
|
+
sx: {
|
|
3739
|
+
width: width2,
|
|
3740
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3741
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3742
|
+
}
|
|
3743
|
+
},
|
|
3299
3744
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3300
3745
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3301
3746
|
_TextField2.default,
|
|
@@ -3315,6 +3760,7 @@ function WavelengthSearch({
|
|
|
3315
3760
|
...params.InputProps,
|
|
3316
3761
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3317
3762
|
type: "search",
|
|
3763
|
+
endAdornment: null,
|
|
3318
3764
|
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3319
3765
|
_IconButton2.default,
|
|
3320
3766
|
{
|
|
@@ -3380,7 +3826,12 @@ function WavelengthSearch({
|
|
|
3380
3826
|
return returnVal;
|
|
3381
3827
|
},
|
|
3382
3828
|
options,
|
|
3383
|
-
sx: {
|
|
3829
|
+
sx: {
|
|
3830
|
+
width: width2,
|
|
3831
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3832
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3833
|
+
}
|
|
3834
|
+
},
|
|
3384
3835
|
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
3385
3836
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3386
3837
|
_TextField2.default,
|
|
@@ -3397,6 +3848,9 @@ function WavelengthSearch({
|
|
|
3397
3848
|
"& .MuiInputBase-root": {
|
|
3398
3849
|
height: height2
|
|
3399
3850
|
},
|
|
3851
|
+
"& .MuiAutocomplete-endAdornment": {
|
|
3852
|
+
display: "none"
|
|
3853
|
+
},
|
|
3400
3854
|
"&.MuiTextField-root": {
|
|
3401
3855
|
"& label": { color: `${textColor}` },
|
|
3402
3856
|
"& label.Mui-focused": {
|
|
@@ -3444,7 +3898,12 @@ function WavelengthSearch({
|
|
|
3444
3898
|
return returnVal;
|
|
3445
3899
|
},
|
|
3446
3900
|
options,
|
|
3447
|
-
sx: {
|
|
3901
|
+
sx: {
|
|
3902
|
+
width: width2,
|
|
3903
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3904
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3905
|
+
}
|
|
3906
|
+
},
|
|
3448
3907
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3449
3908
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3450
3909
|
_TextField2.default,
|
|
@@ -3462,6 +3921,7 @@ function WavelengthSearch({
|
|
|
3462
3921
|
size,
|
|
3463
3922
|
InputProps: {
|
|
3464
3923
|
...params.InputProps,
|
|
3924
|
+
endAdornment: null,
|
|
3465
3925
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3466
3926
|
type: "search"
|
|
3467
3927
|
},
|
|
@@ -4391,21 +4851,40 @@ function WavelengthPlaneTrail({ trailDir = "right", id }) {
|
|
|
4391
4851
|
|
|
4392
4852
|
|
|
4393
4853
|
function WavelengthConfirmationModal(props) {
|
|
4394
|
-
const { show, setShow,
|
|
4854
|
+
const { show, setShow, id } = props;
|
|
4395
4855
|
const handleClose = () => {
|
|
4396
4856
|
setShow(false);
|
|
4397
4857
|
};
|
|
4398
|
-
return /* @__PURE__ */ _jsxruntime.
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4858
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4859
|
+
_material.Box,
|
|
4860
|
+
{
|
|
4861
|
+
sx: {
|
|
4862
|
+
position: "absolute",
|
|
4863
|
+
top: "50%",
|
|
4864
|
+
left: "50%",
|
|
4865
|
+
transform: "translate(-50%, -50%)",
|
|
4866
|
+
width: props.width || "451px",
|
|
4867
|
+
// Custom width
|
|
4868
|
+
height: props.height || "256px",
|
|
4869
|
+
// Custom height
|
|
4870
|
+
boxSizing: "border-box",
|
|
4871
|
+
bgcolor: props.backgroundColor || "background.paper",
|
|
4872
|
+
borderRadius: "16px",
|
|
4873
|
+
color: props.textColor || "black",
|
|
4874
|
+
boxShadow: 24,
|
|
4875
|
+
padding: "32px",
|
|
4876
|
+
overflow: "scroll"
|
|
4877
|
+
},
|
|
4878
|
+
children: [
|
|
4879
|
+
/* @__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]) }),
|
|
4880
|
+
/* @__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]) }),
|
|
4881
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
4882
|
+
props.cacelButton,
|
|
4883
|
+
props.submitButton
|
|
4884
|
+
] })
|
|
4885
|
+
]
|
|
4886
|
+
}
|
|
4887
|
+
) });
|
|
4409
4888
|
}
|
|
4410
4889
|
|
|
4411
4890
|
// src/components/modals/WavelengthContentModal.tsx
|
|
@@ -4419,11 +4898,11 @@ function WavelengthContentModal(props) {
|
|
|
4419
4898
|
};
|
|
4420
4899
|
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: [
|
|
4421
4900
|
/* @__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: [
|
|
4422
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access',
|
|
4901
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _11 => _11.textObj, 'optionalAccess', _12 => _12.title]) }),
|
|
4423
4902
|
/* @__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, {}) }) })
|
|
4424
4903
|
] }) }),
|
|
4425
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
4426
|
-
/* @__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',
|
|
4904
|
+
/* @__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]) }) }),
|
|
4905
|
+
/* @__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]) }) })
|
|
4427
4906
|
] });
|
|
4428
4907
|
}
|
|
4429
4908
|
|
|
@@ -4434,7 +4913,7 @@ var _MenuItem = require('@mui/material/MenuItem'); var _MenuItem2 = _interopRequ
|
|
|
4434
4913
|
|
|
4435
4914
|
var _Slide = require('@mui/material/Slide'); var _Slide2 = _interopRequireDefault(_Slide);
|
|
4436
4915
|
|
|
4437
|
-
|
|
4916
|
+
|
|
4438
4917
|
|
|
4439
4918
|
|
|
4440
4919
|
|
|
@@ -4445,18 +4924,17 @@ var emailStyle = {
|
|
|
4445
4924
|
marginTop: 8,
|
|
4446
4925
|
marginBottom: 8
|
|
4447
4926
|
};
|
|
4448
|
-
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2,
|
|
4449
|
-
const
|
|
4450
|
-
const Links = _styledcomponents2.default.call(void 0, NavLink)`
|
|
4927
|
+
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, id, border: border2 }) {
|
|
4928
|
+
const Links = _styledcomponents2.default.a`
|
|
4451
4929
|
color: inherit;
|
|
4452
|
-
|
|
4930
|
+
text-decoration: none;
|
|
4453
4931
|
|
|
4454
4932
|
&:hover,
|
|
4455
4933
|
&:focus {
|
|
4456
|
-
color: ${
|
|
4934
|
+
color: ${({ hoverColor }) => hoverColor || "inherit"};
|
|
4457
4935
|
}
|
|
4458
4936
|
&:active {
|
|
4459
|
-
color: ${
|
|
4937
|
+
color: ${({ hoverColor }) => hoverColor || "inherit"};
|
|
4460
4938
|
}
|
|
4461
4939
|
`;
|
|
4462
4940
|
const [anchorEl, setAnchorEl] = React.default.useState(null);
|
|
@@ -4482,7 +4960,12 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4482
4960
|
{
|
|
4483
4961
|
id,
|
|
4484
4962
|
open,
|
|
4485
|
-
sx: {
|
|
4963
|
+
sx: {
|
|
4964
|
+
width: width2,
|
|
4965
|
+
"& .MuiPaper-root": {
|
|
4966
|
+
border: border2
|
|
4967
|
+
}
|
|
4968
|
+
},
|
|
4486
4969
|
onClose: handleClose,
|
|
4487
4970
|
anchorEl,
|
|
4488
4971
|
TransitionComponent: _Slide2.default,
|
|
@@ -4494,7 +4977,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4494
4977
|
if (items.itemType === "header") {
|
|
4495
4978
|
if (items.link) {
|
|
4496
4979
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "
|
|
4980
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
|
|
4498
4981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4499
4982
|
] }, index);
|
|
4500
4983
|
} else {
|
|
@@ -4505,13 +4988,13 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4505
4988
|
}
|
|
4506
4989
|
} else if (items.itemType === "link") {
|
|
4507
4990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
|
|
4509
4992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4510
4993
|
] }, index);
|
|
4511
4994
|
} else {
|
|
4512
4995
|
if (items.link) {
|
|
4513
4996
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4514
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "
|
|
4997
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
4515
4998
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4516
4999
|
] }, index);
|
|
4517
5000
|
} else {
|
|
@@ -4531,18 +5014,18 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4531
5014
|
} else if (items.end === void 0 || items.end === false || items.end === null) {
|
|
4532
5015
|
if (items.itemType === "header") {
|
|
4533
5016
|
if (items.link) {
|
|
4534
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
5017
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }) }, index);
|
|
4535
5018
|
} else {
|
|
4536
5019
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
4537
5020
|
}
|
|
4538
5021
|
} else if (items.itemType === "link") {
|
|
4539
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
5022
|
+
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);
|
|
4540
5023
|
} else {
|
|
4541
5024
|
if (items.link) {
|
|
4542
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
5025
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { href: items.link, children: items.label }, index);
|
|
4543
5026
|
} else {
|
|
4544
5027
|
if (items.email) {
|
|
4545
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5028
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: emailStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.email, hoverColor: items.hoverColor || "blue", children: items.label }) }, index);
|
|
4546
5029
|
} else {
|
|
4547
5030
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
4548
5031
|
}
|
|
@@ -4562,7 +5045,15 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4562
5045
|
|
|
4563
5046
|
var _Grow = require('@mui/material/Grow'); var _Grow2 = _interopRequireDefault(_Grow);
|
|
4564
5047
|
|
|
4565
|
-
function WavelengthDropdown({
|
|
5048
|
+
function WavelengthDropdown({
|
|
5049
|
+
id,
|
|
5050
|
+
options,
|
|
5051
|
+
buttonSx,
|
|
5052
|
+
width: width2 = "190px",
|
|
5053
|
+
buttonText,
|
|
5054
|
+
menuSx = { backgroundColor: "#FCFAF8", borderColor: "blue", width: "190px", boxShadow: "none" },
|
|
5055
|
+
palette: palette2
|
|
5056
|
+
}) {
|
|
4566
5057
|
const [anchorEl, setAnchorEl] = React.default.useState(null);
|
|
4567
5058
|
const open = Boolean(anchorEl);
|
|
4568
5059
|
const handleClick = (event) => {
|
|
@@ -4625,7 +5116,7 @@ function WavelengthDropdown({ id, options, buttonSx, width: width2, buttonText,
|
|
|
4625
5116
|
borderBottomRightRadius: "8px",
|
|
4626
5117
|
borderTopRightRadius: "0px",
|
|
4627
5118
|
borderTopLeftRadius: "0px",
|
|
4628
|
-
boxShadow: _optionalChain([menuSx, 'optionalAccess',
|
|
5119
|
+
boxShadow: _optionalChain([menuSx, 'optionalAccess', _17 => _17.boxShadow]),
|
|
4629
5120
|
width: myMenusx.width,
|
|
4630
5121
|
backgroundColor: `${myMenusx.backgroundColor}`
|
|
4631
5122
|
},
|
|
@@ -4753,8 +5244,8 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
4753
5244
|
width: width2
|
|
4754
5245
|
},
|
|
4755
5246
|
children: [
|
|
4756
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: {
|
|
4757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: sIcon }),
|
|
5247
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
|
|
5248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { marginTop: "5px" }, children: sIcon }),
|
|
4758
5249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
|
|
4759
5250
|
] }),
|
|
4760
5251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
|
|
@@ -5307,6 +5798,65 @@ function DefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, bo
|
|
|
5307
5798
|
}
|
|
5308
5799
|
}
|
|
5309
5800
|
|
|
5801
|
+
// src/components/TextField/WavelengthTextField.tsx
|
|
5802
|
+
|
|
5803
|
+
|
|
5804
|
+
|
|
5805
|
+
function WavelengthTextField(props) {
|
|
5806
|
+
const [hasError, setHasError] = _react.useState.call(void 0, false);
|
|
5807
|
+
const handleChange = _react.useCallback.call(void 0,
|
|
5808
|
+
(event) => {
|
|
5809
|
+
const val = event.target.value;
|
|
5810
|
+
if (props.regex) {
|
|
5811
|
+
setHasError(!props.regex.test(val));
|
|
5812
|
+
}
|
|
5813
|
+
},
|
|
5814
|
+
[props.regex]
|
|
5815
|
+
// Ensures function doesn't change unless `regex` does
|
|
5816
|
+
);
|
|
5817
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5818
|
+
_TextField2.default,
|
|
5819
|
+
{
|
|
5820
|
+
required: props.required,
|
|
5821
|
+
label: props.label,
|
|
5822
|
+
onChange: (e) => {
|
|
5823
|
+
handleChange(e);
|
|
5824
|
+
_optionalChain([props, 'access', _18 => _18.onChange, 'optionalCall', _19 => _19(e)]);
|
|
5825
|
+
},
|
|
5826
|
+
error: hasError,
|
|
5827
|
+
helperText: hasError ? "Invalid Input" : "",
|
|
5828
|
+
sx: {
|
|
5829
|
+
"& .MuiInputBase-root": {
|
|
5830
|
+
height: props.height || "51px",
|
|
5831
|
+
width: props.width || "320px",
|
|
5832
|
+
borderRadius: "8px"
|
|
5833
|
+
},
|
|
5834
|
+
"&.MuiTextField-root": {
|
|
5835
|
+
"& label": { color: !hasError ? props.labelColor || "rgba(89, 99, 129, 1)" : "red" },
|
|
5836
|
+
"& .MuiOutlinedInput-root": {
|
|
5837
|
+
"& fieldset": {
|
|
5838
|
+
border: "1px solid",
|
|
5839
|
+
borderColor: !hasError ? props.borderColor || `rgba(89, 99, 129, 1)` : "red"
|
|
5840
|
+
},
|
|
5841
|
+
"&.Mui-focused fieldset": {
|
|
5842
|
+
borderColor: !hasError ? props.focusColor || `rgba(26, 128, 131, 0.1)` : "red"
|
|
5843
|
+
}
|
|
5844
|
+
}
|
|
5845
|
+
}
|
|
5846
|
+
},
|
|
5847
|
+
placeholder: props.placeholder,
|
|
5848
|
+
InputLabelProps: {
|
|
5849
|
+
shrink: true
|
|
5850
|
+
},
|
|
5851
|
+
InputProps: {
|
|
5852
|
+
style: { color: props.textColor || "inherit" }
|
|
5853
|
+
}
|
|
5854
|
+
}
|
|
5855
|
+
) });
|
|
5856
|
+
}
|
|
5857
|
+
|
|
5858
|
+
|
|
5859
|
+
|
|
5310
5860
|
|
|
5311
5861
|
|
|
5312
5862
|
|
|
@@ -5348,7 +5898,7 @@ function DefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, bo
|
|
|
5348
5898
|
|
|
5349
5899
|
|
|
5350
5900
|
|
|
5351
|
-
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;
|
|
5901
|
+
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.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;
|
|
5352
5902
|
/*! Bundled license information:
|
|
5353
5903
|
|
|
5354
5904
|
react-is/cjs/react-is.production.min.js:
|