@wavelengthusaf/components 2.9.3 → 2.10.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 Fragment13 = 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 = Fragment13;
269
269
  exports.Lazy = Lazy;
270
270
  exports.Memo = Memo2;
271
271
  exports.Portal = Portal;
@@ -1182,6 +1182,48 @@ var require_react_is2 = __commonJS({
1182
1182
  }
1183
1183
  });
1184
1184
 
1185
+ // src/web-components/sample-component.ts
1186
+ var template = document.createElement("template");
1187
+ template.innerHTML = `
1188
+ <style>
1189
+ :host {
1190
+ display: block;
1191
+ /* Define component defaults here */
1192
+ }
1193
+ </style>
1194
+ <div class="content">
1195
+ <slot></slot> <!-- Enables user-defined inner HTML -->
1196
+ </div>
1197
+ `;
1198
+ var SampleComponent = class extends HTMLElement {
1199
+ // List of attributes to observe for changes
1200
+ static get observedAttributes() {
1201
+ return ["test-prop"];
1202
+ }
1203
+ constructor() {
1204
+ super();
1205
+ this.shadow = this.attachShadow({ mode: "open" });
1206
+ this.shadow.append(template.content.cloneNode(true));
1207
+ }
1208
+ // Called when component is inserted into the DOM
1209
+ connectedCallback() {
1210
+ this.updateComponent();
1211
+ }
1212
+ // Called when observed attributes change
1213
+ attributeChangedCallback() {
1214
+ this.updateComponent();
1215
+ }
1216
+ // Main update logic; Your component's functionality will go here and/or in other methods that you have below
1217
+ updateComponent() {
1218
+ const prop = this.getAttribute("test-prop") || "";
1219
+ const container = this.shadow.querySelector(".content");
1220
+ if (container) container.textContent = prop;
1221
+ }
1222
+ };
1223
+ if (!customElements.get("sample-component")) {
1224
+ customElements.define("sample-component", SampleComponent);
1225
+ }
1226
+
1185
1227
  // src/web-components/wavelength-banner.ts
1186
1228
  var WavelengthBanner = class extends HTMLElement {
1187
1229
  static get observedAttributes() {
@@ -1238,6 +1280,78 @@ if (!customElements.get("wavelength-banner")) {
1238
1280
  }
1239
1281
 
1240
1282
  // src/web-components/wavelength-button.ts
1283
+ var buttonTemplate = document.createElement("template");
1284
+ buttonTemplate.innerHTML = `
1285
+ <style>
1286
+ :host {
1287
+ display: inline-flex;
1288
+ }
1289
+
1290
+ button {
1291
+ display: inline-flex;
1292
+ align-items: center;
1293
+ justify-content: center;
1294
+ position: relative;
1295
+ overflow: hidden;
1296
+ border: none;
1297
+ border-radius: 0.25rem;
1298
+ cursor: pointer;
1299
+ font-family: "Roboto", "Helvetica", "Arial", sans-serif;
1300
+ font-weight: 500;
1301
+ font-size: 0.875rem;
1302
+ letter-spacing: 0.02857rem;
1303
+ text-transform: uppercase;
1304
+ user-select: none;
1305
+ white-space: normal;
1306
+ word-break: break-word;
1307
+ text-align: center;
1308
+ height: auto;
1309
+ }
1310
+
1311
+ button .ripple {
1312
+ position: absolute;
1313
+ border-radius: 50%;
1314
+ transform: scale(0);
1315
+ animation: ripple 600ms linear;
1316
+ pointer-events: none;
1317
+ z-index: 0;
1318
+ }
1319
+
1320
+ button .label {
1321
+ position: relative;
1322
+ z-index: 1;
1323
+ display: block;
1324
+ width: 100%;
1325
+ }
1326
+
1327
+ @keyframes ripple {
1328
+ to {
1329
+ transform: scale(4);
1330
+ opacity: 0;
1331
+ }
1332
+ }
1333
+
1334
+ button.contained {
1335
+ box-shadow: 0rem 0.125rem 0.25rem -0.063rem #000000;
1336
+ }
1337
+
1338
+ button.contained:hover,
1339
+ button.outlined:hover,
1340
+ button.text:hover {
1341
+ opacity: 0.96;
1342
+ transition: background-color 300ms ease-in-out;
1343
+ }
1344
+
1345
+ button:disabled {
1346
+ opacity: 0.5;
1347
+ pointer-events: none;
1348
+ }
1349
+ </style>
1350
+
1351
+ <button>
1352
+ <span class="label"><slot>LABEL</slot></span>
1353
+ </button>
1354
+ `;
1241
1355
  var WavelengthButton = class extends HTMLElement {
1242
1356
  constructor() {
1243
1357
  super();
@@ -1246,76 +1360,14 @@ var WavelengthButton = class extends HTMLElement {
1246
1360
  this.handleHoverOut = () => {
1247
1361
  };
1248
1362
  const shadow = this.attachShadow({ mode: "open" });
1249
- this.button = document.createElement("button");
1250
- const style3 = document.createElement("style");
1251
- style3.textContent = `
1252
- :host {
1253
- display: inline-flex;
1254
- }
1255
-
1256
- button {
1257
- display: inline-flex;
1258
- align-items: center;
1259
- justify-content: center;
1260
- position: relative;
1261
- overflow: hidden;
1262
- border: none;
1263
- border-radius: 0.25rem;
1264
- cursor: pointer;
1265
- font-family: "Roboto", "Helvetica", "Arial", sans-serif;
1266
- font-weight: 500;
1267
- font-size: 0.875rem;
1268
- letter-spacing: 0.02857rem;
1269
- text-transform: uppercase;
1270
- user-select: none;
1271
- white-space: normal;
1272
- word-break: break-word;
1273
- text-align: center;
1274
- height: auto;
1275
- }
1276
-
1277
- button .ripple {
1278
- position: absolute;
1279
- border-radius: 50%;
1280
- transform: scale(0);
1281
- animation: ripple 600ms linear;
1282
- pointer-events: none;
1283
- z-index: 0;
1284
- }
1285
-
1286
- button .label {
1287
- position: relative;
1288
- z-index: 1;
1289
- display: block;
1290
- width: 100%;
1291
- }
1292
-
1293
- @keyframes ripple {
1294
- to {
1295
- transform: scale(4);
1296
- opacity: 0;
1297
- }
1298
- }
1299
-
1300
- button.contained {
1301
- box-shadow: 0rem 0.125rem 0.25rem -0.063rem #000000;
1302
- }
1303
-
1304
- button.contained:hover,
1305
- button.outlined:hover,
1306
- button.text:hover {
1307
- opacity: 0.96;
1308
- transition: background-color 300ms ease-in-out;
1309
- }
1310
-
1311
- button:disabled {
1312
- opacity: 0.5;
1313
- pointer-events: none;
1314
- }
1315
- `;
1316
- this.button.addEventListener("click", this.handleRipple.bind(this));
1317
- shadow.appendChild(style3);
1318
- shadow.appendChild(this.button);
1363
+ shadow.appendChild(buttonTemplate.content.cloneNode(true));
1364
+ this.button = shadow.querySelector("button");
1365
+ this.button.addEventListener("click", (event) => {
1366
+ this.handleRipple(event);
1367
+ if (!this.getAttribute("href")) {
1368
+ this.dispatchEvent(new MouseEvent("click", { bubbles: true, composed: true }));
1369
+ }
1370
+ });
1319
1371
  }
1320
1372
  static get observedAttributes() {
1321
1373
  return ["variant", "size", "margin", "padding", "color-one", "color-two", "font-size", "disabled", "border-radius", "href", "width", "height", "box-shadow", "target"];
@@ -1352,15 +1404,8 @@ var WavelengthButton = class extends HTMLElement {
1352
1404
  } else {
1353
1405
  this.applyPresetSize(size);
1354
1406
  }
1355
- if (width2) {
1356
- this.button.style.width = width2;
1357
- }
1358
- if (height2) {
1359
- this.button.style.height = height2;
1360
- } else {
1361
- this.button.style.height = "auto";
1362
- }
1363
- this.button.innerHTML = `<span class="label"><slot>LABEL</slot></span>`;
1407
+ if (width2) this.button.style.width = width2;
1408
+ this.button.style.height = height2;
1364
1409
  if (variant === "contained") {
1365
1410
  this.button.style.backgroundColor = colorOne;
1366
1411
  this.button.style.color = colorTwo;
@@ -1371,7 +1416,7 @@ var WavelengthButton = class extends HTMLElement {
1371
1416
  this.button.style.color = colorOne;
1372
1417
  this.button.style.border = `0.063rem solid ${colorOne}`;
1373
1418
  this.button.style.boxShadow = boxShadow || "none";
1374
- } else if (variant === "text") {
1419
+ } else {
1375
1420
  this.button.style.backgroundColor = "transparent";
1376
1421
  this.button.style.color = colorOne;
1377
1422
  this.button.style.border = "none";
@@ -1388,7 +1433,7 @@ var WavelengthButton = class extends HTMLElement {
1388
1433
  this.handleHoverIn = () => {
1389
1434
  if (variant === "contained") {
1390
1435
  this.button.style.backgroundColor = this.shadeColor(colorOne, -15);
1391
- } else if (variant === "outlined" || variant === "text") {
1436
+ } else {
1392
1437
  this.button.style.backgroundColor = this.hexToRgba(colorOne, 0.05);
1393
1438
  }
1394
1439
  };
@@ -1441,24 +1486,17 @@ var WavelengthButton = class extends HTMLElement {
1441
1486
  if (this.button.disabled) return;
1442
1487
  const variant = this.getAttribute("variant") || "outlined";
1443
1488
  const colorOne = this.getAttribute("color-one") || "#1976D2";
1444
- let rippleColor = "rgba(0,0,0,0.2)";
1445
- if (variant === "contained") {
1446
- rippleColor = this.hexToRgba(this.shadeColor(colorOne, 40), 0.6);
1447
- } else {
1448
- rippleColor = this.hexToRgba(this.shadeColor(colorOne, -40), 0.3);
1449
- }
1450
1489
  const ripple = document.createElement("span");
1451
1490
  ripple.className = "ripple";
1452
- ripple.style.backgroundColor = rippleColor;
1491
+ const color2 = variant === "contained" ? this.hexToRgba(this.shadeColor(colorOne, 40), 0.6) : this.hexToRgba(this.shadeColor(colorOne, -40), 0.3);
1492
+ ripple.style.backgroundColor = color2;
1453
1493
  const rect = this.button.getBoundingClientRect();
1454
1494
  const size = Math.max(rect.width, rect.height);
1455
1495
  ripple.style.width = ripple.style.height = `${size}px`;
1456
1496
  ripple.style.left = `${event.clientX - rect.left - size / 2}px`;
1457
1497
  ripple.style.top = `${event.clientY - rect.top - size / 2}px`;
1458
1498
  this.button.appendChild(ripple);
1459
- setTimeout(() => {
1460
- ripple.remove();
1461
- }, 600);
1499
+ setTimeout(() => ripple.remove(), 600);
1462
1500
  }
1463
1501
  };
1464
1502
  if (!customElements.get("wavelength-button")) {
@@ -1675,13 +1713,14 @@ var WavelengthButton2 = ({
1675
1713
  setAttr("href", href);
1676
1714
  setAttr("target", target);
1677
1715
  setAttr("box-shadow", boxShadow);
1678
- disabled ? el.setAttribute("disabled", "") : el.removeAttribute("disabled");
1716
+ if (disabled) el.setAttribute("disabled", "");
1717
+ else el.removeAttribute("disabled");
1679
1718
  const handleClick = (e) => {
1680
1719
  _optionalChain([onClick, 'optionalCall', _17 => _17(e)]);
1681
1720
  };
1682
1721
  el.addEventListener("click", handleClick);
1683
1722
  return () => el.removeEventListener("click", handleClick);
1684
- }, [variant, size, height2, width2, margin2, padding2, colorOne, colorTwo, fontSize, borderRadius2, disabled, href, onClick]);
1723
+ }, [variant, size, height2, width2, margin2, padding2, colorOne, colorTwo, fontSize, borderRadius2, disabled, href, onClick, boxShadow, target]);
1685
1724
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-button", { ref, className, style: style3, ...rest, children });
1686
1725
  };
1687
1726
 
@@ -3707,7 +3746,6 @@ function WavelengthStyledButton({ type = "default", styles, children, disabled =
3707
3746
  children
3708
3747
  ] });
3709
3748
  }
3710
- var WavelengthStyledButton_default = WavelengthStyledButton;
3711
3749
 
3712
3750
  // src/themes/WavelengthAppTheme.tsx
3713
3751
 
@@ -5208,325 +5246,6 @@ function WavelengthCommentDisplay(props) {
5208
5246
  );
5209
5247
  }
5210
5248
 
5211
- // src/components/PageComponents/WavelengthPermissionAlert.tsx
5212
-
5213
- function WavelengthPermissionAlert({
5214
- dataTestId,
5215
- height: height2 = "112px",
5216
- width: width2 = "314px",
5217
- backgroundColor: backgroundColor2 = "white",
5218
- permission,
5219
- applicationName,
5220
- requestorName,
5221
- dateOfRequest,
5222
- onDismiss,
5223
- unit = "No Unit"
5224
- }) {
5225
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5226
- "div",
5227
- {
5228
- "data-testid": dataTestId,
5229
- style: {
5230
- width: width2,
5231
- height: height2,
5232
- backgroundColor: backgroundColor2,
5233
- border: "1px solid #5F5F5F",
5234
- borderRadius: "12px",
5235
- display: "flex",
5236
- flexDirection: "column",
5237
- padding: "8px 12px",
5238
- gap: "8px",
5239
- fontSize: "14px",
5240
- fontWeight: 400,
5241
- boxSizing: "border-box",
5242
- fontFamily: "roboto"
5243
- },
5244
- children: [
5245
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "20px", fontWeight: 400 }, children: permission }),
5246
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { letterSpacing: "-6%" }, children: [
5247
- "Application: ",
5248
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: 600, marginLeft: "4px" }, children: applicationName })
5249
- ] }),
5250
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { letterSpacing: "-6%" }, children: [
5251
- "Requestor:",
5252
- " ",
5253
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { fontWeight: 600, marginLeft: "4px" }, children: [
5254
- requestorName,
5255
- ", ",
5256
- "" + unit
5257
- ] })
5258
- ] }),
5259
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "space-between" }, children: [
5260
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { letterSpacing: "-6%" }, children: [
5261
- "Date of Request: ",
5262
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: 600, marginLeft: "4px" }, children: dateOfRequest })
5263
- ] }),
5264
- " ",
5265
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: "", style: { color: "black", fontWeight: 600 }, onClick: onDismiss, children: "Dismiss" }),
5266
- " "
5267
- ] })
5268
- ]
5269
- }
5270
- ) });
5271
- }
5272
-
5273
- // src/components/PageComponents/WavelengthAccessAlert.tsx
5274
- var _Check = require('@mui/icons-material/Check'); var _Check2 = _interopRequireDefault(_Check);
5275
- var _NotInterested = require('@mui/icons-material/NotInterested'); var _NotInterested2 = _interopRequireDefault(_NotInterested);
5276
-
5277
- function WavelengthAccessAlert({
5278
- height: height2 = "100px",
5279
- dataTestId,
5280
- width: width2 = "244px",
5281
- time = "2m ago",
5282
- access = "Access Request",
5283
- appNickname = "App Nickname",
5284
- appLogo = "wings",
5285
- appAdmin = "app.admin.1",
5286
- requestorName = "joes.user.1"
5287
- }) {
5288
- if (access === "Access Request") {
5289
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5290
- "div",
5291
- {
5292
- "data-testid": dataTestId,
5293
- style: {
5294
- width: width2,
5295
- height: height2,
5296
- border: "1px solid rgba(0, 0, 0, 0.6)",
5297
- borderRadius: "6px",
5298
- position: "relative",
5299
- padding: "8px 10px 2px 10px",
5300
- display: "grid",
5301
- gridTemplateColumns: "1fr 3fr 2fr",
5302
- gridTemplateRows: "1fr 1fr 1fr",
5303
- boxSizing: "border-box"
5304
- },
5305
- children: [
5306
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "8px", fontWeight: 400, position: "absolute", top: "5px", right: "12px" }, children: time }),
5307
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontWeight: 700, fontSize: "12px", color: "rgba(248, 136, 5, 1)", marginTop: "5px", marginLeft: "5px", gridArea: "1/2/1/3" }, children: access }),
5308
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridArea: "2/1/3/2" }, children: [
5309
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLogo_default, { name: appLogo, width: 22 }),
5310
- " "
5311
- ] }),
5312
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "column", gridArea: "2/2/3/4", fontSize: "10px", gap: "4px", marginLeft: "5px" }, children: [
5313
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "label", { htmlFor: "", children: [
5314
- "Requestor: ",
5315
- requestorName
5316
- ] }),
5317
- " ",
5318
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", children: appNickname })
5319
- ] }),
5320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5321
- WavelengthStyledButton_default,
5322
- {
5323
- type: "default",
5324
- styles: { backgroundColor: "rgba(143, 143, 143, 1)", marginTop: "5px", borderRadius: "5px", height: "22px", width: "44px", gridArea: "3/4/3/4", color: "white" },
5325
- children: "clear"
5326
- }
5327
- )
5328
- ]
5329
- }
5330
- );
5331
- } else if (access === "Access Granted") {
5332
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5333
- "div",
5334
- {
5335
- "data-testid": dataTestId,
5336
- style: {
5337
- width: width2,
5338
- height: height2,
5339
- border: "1px solid rgba(0, 0, 0, 0.6)",
5340
- borderRadius: "6px",
5341
- position: "relative",
5342
- padding: "8px 10px 2px 10px",
5343
- display: "grid",
5344
- gridTemplateColumns: "1fr 3fr 2fr",
5345
- gridTemplateRows: "1fr 1fr 1fr",
5346
- boxSizing: "border-box"
5347
- },
5348
- children: [
5349
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "8px", fontWeight: 400, position: "absolute", top: "5px", right: "12px" }, children: time }),
5350
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontWeight: 700, fontSize: "12px", marginTop: "5px", marginLeft: "5px", gridArea: "1/2/1/4", display: "flex", alignItems: "center" }, children: [
5351
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Check2.default, { fontSize: "small", sx: { color: "rgba(36, 226, 32, 1)", width: "16px" } }),
5352
- access
5353
- ] }),
5354
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridArea: "2/1/3/2" }, children: [
5355
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLogo_default, { name: appLogo, width: 22 }),
5356
- " "
5357
- ] }),
5358
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "column", gridArea: "2/2/3/4", fontSize: "10px", marginLeft: "5px" }, children: [
5359
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontWeight: 700, fontSize: "10px" }, children: appNickname }),
5360
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", style: { marginTop: "5px" }, children: appAdmin }),
5361
- " ",
5362
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", children: "Added you as a user" })
5363
- ] }),
5364
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WavelengthStyledButton_default, { type: "default", styles: { backgroundColor: "rgba(143, 143, 143, 1)", borderRadius: "5px", height: "22px", width: "44px", gridArea: "3/4/3/4", color: "white" }, children: "clear" })
5365
- ]
5366
- }
5367
- );
5368
- } else {
5369
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5370
- "div",
5371
- {
5372
- "data-testid": dataTestId,
5373
- style: {
5374
- width: width2,
5375
- height: height2,
5376
- border: "1px solid rgba(0, 0, 0, 0.6)",
5377
- borderRadius: "6px",
5378
- position: "relative",
5379
- padding: "8px 10px 2px 10px",
5380
- display: "grid",
5381
- gridTemplateColumns: "1fr 3fr 2fr",
5382
- gridTemplateRows: "1fr 1fr 1fr",
5383
- boxSizing: "border-box"
5384
- },
5385
- children: [
5386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "8px", fontWeight: 400, position: "absolute", top: "5px", right: "12px" }, children: time }),
5387
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontWeight: 700, fontSize: "12px", marginTop: "5px", marginLeft: "5px", gridArea: "1/2/1/4", display: "flex", alignItems: "center" }, children: [
5388
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _NotInterested2.default, { fontSize: "small", sx: { color: "rgba(234, 30, 30, 1)", width: "16px" } }),
5389
- access
5390
- ] }),
5391
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridArea: "2/1/3/2" }, children: [
5392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLogo_default, { name: appLogo, width: 22 }),
5393
- " "
5394
- ] }),
5395
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "column", gridArea: "2/2/3/4", fontSize: "10px", marginLeft: "5px" }, children: [
5396
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontWeight: 700, fontSize: "10px" }, children: appNickname }),
5397
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", style: { marginTop: "5px" }, children: appAdmin }),
5398
- " ",
5399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", children: "Denied your request" })
5400
- ] }),
5401
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WavelengthStyledButton_default, { type: "default", styles: { backgroundColor: "rgba(143, 143, 143, 1)", borderRadius: "5px", height: "22px", width: "44px", gridArea: "3/4/3/4", color: "white" }, children: "clear" })
5402
- ]
5403
- }
5404
- );
5405
- }
5406
- }
5407
-
5408
- // src/components/PageComponents/WavelengthAlert.tsx
5409
- var _Close = require('@mui/icons-material/Close'); var _Close2 = _interopRequireDefault(_Close);
5410
-
5411
- var _Notifications = require('@mui/icons-material/Notifications'); var _Notifications2 = _interopRequireDefault(_Notifications);
5412
-
5413
- function WavelengthAlert({
5414
- viewed,
5415
- width: width2 = "320px",
5416
- height: height2,
5417
- backgroundColor: backgroundColor2 = "#FBFBFB",
5418
- appName,
5419
- alertType = "Access Requested",
5420
- alertDescription = "Keenan Ray has requested to be added as a User to your App",
5421
- datatestid,
5422
- variant,
5423
- timeStamp,
5424
- url,
5425
- initiator,
5426
- id,
5427
- onClose
5428
- }) {
5429
- const viewedStyles = viewed ? {
5430
- backgroundColor: "#DFDCDC",
5431
- border: "1px solid #A0A2A3",
5432
- iconColor: "#A0A2A3"
5433
- } : {
5434
- backgroundColor: backgroundColor2,
5435
- border: "1px solid rgba(2, 136, 209, 1)",
5436
- iconColor: "rgba(2, 136, 209, 1)"
5437
- };
5438
- const baseContainerStyle = {
5439
- width: width2,
5440
- height: height2 || "fit-content",
5441
- backgroundColor: viewedStyles.backgroundColor,
5442
- fontFamily: "Roboto, sans-serif",
5443
- border: viewedStyles.border,
5444
- borderRadius: "4px",
5445
- display: "flex",
5446
- flexDirection: "row",
5447
- boxSizing: "border-box",
5448
- alignItems: "flex-start",
5449
- padding: "12px 16px 10px 16px",
5450
- color: "#1E4620",
5451
- position: variant === "civilized" ? "relative" : void 0
5452
- };
5453
- const iconStyle = {
5454
- width: "24px",
5455
- padding: "0px",
5456
- color: viewedStyles.iconColor
5457
- };
5458
- if (variant === "caveman") {
5459
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "alert", id, "data-testid": datatestid, style: baseContainerStyle, children: [
5460
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Notifications2.default, { sx: iconStyle }),
5461
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href: url, style: { display: "flex", flexDirection: "column", gap: "4px", width: "250px", marginLeft: "12px", textDecoration: "none", color: baseContainerStyle.color }, children: [
5462
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { style: { fontSize: "1rem", lineHeight: "150%", letterSpacing: "0.15px", fontWeight: 550 }, children: timeStamp }),
5463
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5464
- "div",
5465
- {
5466
- style: {
5467
- fontSize: ".875rem",
5468
- fontWeight: 400,
5469
- lineHeight: "143%",
5470
- display: "-webkit-box",
5471
- WebkitLineClamp: 2,
5472
- WebkitBoxOrient: "vertical",
5473
- overflow: "hidden",
5474
- textOverflow: "ellipsis"
5475
- },
5476
- children: alertType
5477
- }
5478
- )
5479
- ] }),
5480
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { padding: "0px", width: "20px" }, onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {}) })
5481
- ] });
5482
- } else if (variant === "basic") {
5483
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "alert", id, "data-testid": datatestid, style: baseContainerStyle, children: [
5484
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Notifications2.default, { sx: iconStyle }),
5485
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href: url, style: { display: "flex", flexDirection: "column", gap: "4px", width: "250px", marginLeft: "12px", textDecoration: "none", color: baseContainerStyle.color }, children: [
5486
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { style: { fontSize: "14px", lineHeight: "150%", letterSpacing: "0.15px", fontWeight: 500 }, children: timeStamp }),
5487
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "16px", fontWeight: 550, lineHeight: "24px" }, children: alertType }),
5488
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize: "14px", lineHeight: "20px", fontWeight: 400 }, children: [
5489
- "App: ",
5490
- appName
5491
- ] })
5492
- ] }),
5493
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { padding: "0px", width: "20px" }, onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {}) })
5494
- ] });
5495
- } else {
5496
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "alert", id, "data-testid": datatestid, style: baseContainerStyle, children: [
5497
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Notifications2.default, { sx: iconStyle }),
5498
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href: url, style: { display: "flex", flexDirection: "column", gap: "7px", width: "250px", marginLeft: "12px", textDecoration: "none", color: baseContainerStyle.color }, children: [
5499
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { style: { fontSize: "16px", lineHeight: "24px", letterSpacing: "0.15px", fontWeight: 550 }, children: alertType }),
5500
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "20px", letterSpacing: "0.25px", width: "200px" }, children: alertDescription }),
5501
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize: "14px", lineHeight: "20px", fontWeight: 400 }, children: [
5502
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: 550 }, children: "Initiator: " }),
5503
- " ",
5504
- initiator
5505
- ] })
5506
- ] }),
5507
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5508
- "div",
5509
- {
5510
- style: {
5511
- textAlign: "center",
5512
- display: "flex",
5513
- flexDirection: "column",
5514
- position: "absolute",
5515
- right: "15px",
5516
- bottom: "12px"
5517
- },
5518
- className: "icon-btn-container",
5519
- children: [
5520
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { padding: "3px" }, onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.SvgIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "#4E4E4F", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z" }) }) }) }),
5521
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "11px" }, children: "Dismiss" })
5522
- ]
5523
- }
5524
- ),
5525
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { top: "6px", right: "15px", position: "absolute", fontSize: "11px", color: "#797979" }, children: timeStamp })
5526
- ] });
5527
- }
5528
- }
5529
-
5530
5249
  // src/components/footers/WavelengthFooter/WavelengthFooter.tsx
5531
5250
 
5532
5251
 
@@ -5758,7 +5477,7 @@ function WavelengthConfirmationModal(props) {
5758
5477
 
5759
5478
  // src/components/modals/WavelengthContentModal.tsx
5760
5479
 
5761
-
5480
+ var _Close = require('@mui/icons-material/Close'); var _Close2 = _interopRequireDefault(_Close);
5762
5481
 
5763
5482
  function WavelengthContentModal(props) {
5764
5483
  const { show, setShow, handleContentModalOnConfirmProp } = props;
@@ -7177,7 +6896,25 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
7177
6896
  ] });
7178
6897
  };
7179
6898
 
6899
+ // src/components/samples/SampleComponent.tsx
6900
+
7180
6901
 
6902
+ var SampleComponent2 = ({
6903
+ testProp,
6904
+ children,
6905
+ ...rest
6906
+ // This rest operator includes className, style, onClick, etc.
6907
+ }) => {
6908
+ const ref = _react.useRef.call(void 0, null);
6909
+ _react.useEffect.call(void 0, () => {
6910
+ const el = ref.current;
6911
+ if (!el) return;
6912
+ if (testProp !== void 0) {
6913
+ el.setAttribute("test-prop", testProp);
6914
+ }
6915
+ }, [testProp]);
6916
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "sample-component", { ref, ...rest, children });
6917
+ };
7181
6918
 
7182
6919
 
7183
6920
 
@@ -7227,7 +6964,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
7227
6964
 
7228
6965
 
7229
6966
 
7230
- 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.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner2; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton2; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; 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 = WavelengthTitleBar2; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
6967
+ 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.SampleComponent = SampleComponent2; exports.SearchTextField = SearchTextField; exports.SliderCardCarousel = SliderCardCarousel; exports.TestSnackbar = TestSnackbar; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner2; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton2; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; 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.WavelengthProgressBar = WavelengthProgressBar; 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 = WavelengthTitleBar2; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
7231
6968
  /*! Bundled license information:
7232
6969
 
7233
6970
  react-is/cjs/react-is.production.min.js: