@wavelengthusaf/components 2.5.1 → 2.7.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 CHANGED
@@ -14,6 +14,15 @@ npm install @wavelengthusaf/components
14
14
 
15
15
  ## Release Notes
16
16
 
17
+ ### 2.7.0
18
+
19
+ - 3/24/2025
20
+ - Added a Comment Component
21
+
22
+ ### 2.6.0
23
+
24
+ - Added a new component, WavelengthProgressBar
25
+
17
26
  ### 2.5.1
18
27
 
19
28
  - 03/12/2025
@@ -4677,9 +4677,102 @@ function WavelengthDragAndDrop({
4677
4677
  );
4678
4678
  }
4679
4679
 
4680
+ // src/components/PageComponents/WavelengthProgressBar.tsx
4681
+ var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
4682
+ var _LinearProgress = require('@mui/material/LinearProgress'); var _LinearProgress2 = _interopRequireDefault(_LinearProgress);
4683
+
4684
+ function WavelengthProgressBar({ width: width2 = "425px", height: height2 = "12px", backgroundColor: backgroundColor2, borderRadius: borderRadius2 = "24px", progressColor, value, name, textColor = "inherit" }) {
4685
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
4686
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", width: width2, justifyContent: "space-between", color: textColor }, children: [
4687
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "", children: name }),
4688
+ value === 100 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "label", { htmlFor: "", children: [
4689
+ "Complete! - ",
4690
+ value,
4691
+ "%"
4692
+ ] }),
4693
+ value !== 100 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "label", { htmlFor: "", children: [
4694
+ "Uploading - ",
4695
+ value,
4696
+ "%"
4697
+ ] })
4698
+ ] }),
4699
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Box2.default, { sx: { width: width2, height: "12px", borderRadius: "24px" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4700
+ _LinearProgress2.default,
4701
+ {
4702
+ variant: "determinate",
4703
+ value,
4704
+ style: { backgroundColor: backgroundColor2, height: height2, borderRadius: borderRadius2, border: "2px solid black" },
4705
+ sx: {
4706
+ "& .MuiLinearProgress-bar": {
4707
+ backgroundColor: progressColor,
4708
+ borderRadius: borderRadius2,
4709
+ border: "1px solid black"
4710
+ }
4711
+ }
4712
+ }
4713
+ ) })
4714
+ ] });
4715
+ }
4716
+
4717
+ // src/components/PageComponents/WavelengthCommentDisplay.tsx
4718
+
4719
+ var _CheckCircleOutline = require('@mui/icons-material/CheckCircleOutline'); var _CheckCircleOutline2 = _interopRequireDefault(_CheckCircleOutline);
4720
+ var _CheckCircle = require('@mui/icons-material/CheckCircle'); var _CheckCircle2 = _interopRequireDefault(_CheckCircle);
4721
+
4722
+
4723
+ function WavelengthCommentDisplay(props) {
4724
+ const [selected, setSelected] = _react.useState.call(void 0, false);
4725
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4726
+ "div",
4727
+ {
4728
+ style: {
4729
+ display: "flex",
4730
+ flexDirection: "column",
4731
+ width: props.width || "332px",
4732
+ minHeight: "fit",
4733
+ height: props.height || "fit-content",
4734
+ backgroundColor: props.backgroundColor || "rgba(250, 242, 236, 1)",
4735
+ border: props.border || "1px solid rgba(0, 0, 0, 0.05)",
4736
+ borderRadius: "6px",
4737
+ padding: "12px",
4738
+ color: props.textColor || "black"
4739
+ },
4740
+ children: [
4741
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize: "14px", fontWeight: 600, display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", padding: 0 }, children: [
4742
+ props.author,
4743
+ !selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4744
+ _material.IconButton,
4745
+ {
4746
+ onClick: () => {
4747
+ setSelected(!selected);
4748
+ props.onClick;
4749
+ },
4750
+ style: { padding: "0px" },
4751
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircleOutline2.default, { fontSize: "small" })
4752
+ }
4753
+ ),
4754
+ selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4755
+ _material.IconButton,
4756
+ {
4757
+ onClick: () => {
4758
+ setSelected(!selected);
4759
+ props.onClick;
4760
+ },
4761
+ style: { padding: "0px" },
4762
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircle2.default, { fontSize: "small", sx: { color: props.iconSelectedColor || "rgba(209, 106, 47, 1)" } })
4763
+ }
4764
+ )
4765
+ ] }),
4766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { style: { fontSize: "12px", fontWeight: 400, opacity: 0.6 }, children: props.date }),
4767
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "14px", fontWeight: 400 }, children: props.comments })
4768
+ ]
4769
+ }
4770
+ );
4771
+ }
4772
+
4680
4773
  // src/components/footers/WavelengthFooter/WavelengthFooter.tsx
4681
4774
 
4682
- var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
4775
+
4683
4776
  var _Container = require('@mui/material/Container'); var _Container2 = _interopRequireDefault(_Container);
4684
4777
 
4685
4778
 
@@ -4885,7 +4978,7 @@ function DefaultIcon({ width: width2 = "180", height: height2 = 140 }) {
4885
4978
  var _Divider = require('@mui/material/Divider'); var _Divider2 = _interopRequireDefault(_Divider);
4886
4979
 
4887
4980
 
4888
- function WavelengthPlaneTrail({ trailDir = "right", id }) {
4981
+ function WavelengthPlaneTrail({ trailDir = "right", id, color: color2 }) {
4889
4982
  let direction = "row-reverse";
4890
4983
  let flippy = "";
4891
4984
  if (trailDir !== "right") {
@@ -4903,11 +4996,11 @@ function WavelengthPlaneTrail({ trailDir = "right", id }) {
4903
4996
  "path",
4904
4997
  {
4905
4998
  d: "M4.16662 14.8988L5.76079 14.8988L8.16454 18.1359L18.2616 18.1359L14.1291 4.16669L16.2425 4.16669L24.5075 18.1359L33.985 18.1359C34.5022 18.1359 34.9422 18.3172 35.305 18.68C35.6677 19.0428 35.8491 19.4828 35.8491 20C35.8491 20.5172 35.6677 20.9572 35.305 21.32C34.9422 21.6828 34.5022 21.8642 33.985 21.8642L24.5075 21.8642L16.2425 35.8334L14.1291 35.8334L18.2616 21.8642L8.19662 21.8642L5.76079 25.1013L4.16662 25.1013L5.64329 20L4.16662 14.8988Z",
4906
- fill: palette2.primary
4999
+ fill: color2 ? color2 : palette2.primary
4907
5000
  }
4908
5001
  ) })
4909
5002
  ] }) }),
4910
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Grid2.default, { item: true, style: { width: "75%" }, id: "trailExample", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, { variant: "middle", sx: { bgcolor: palette2.primary } }) })
5003
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Grid2.default, { item: true, style: { width: "75%" }, id: "trailExample", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, { variant: "middle", sx: { bgcolor: color2 ? color2 : palette2.primary } }) })
4911
5004
  ] });
4912
5005
  }
4913
5006
 
@@ -4943,7 +5036,7 @@ function WavelengthConfirmationModal(props) {
4943
5036
  /* @__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
5037
  /* @__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
5038
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
4946
- props.cacelButton,
5039
+ props.cancelButton,
4947
5040
  props.submitButton
4948
5041
  ] })
4949
5042
  ]
@@ -5964,7 +6057,9 @@ function WavelengthTextField(props) {
5964
6057
 
5965
6058
 
5966
6059
 
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;
6060
+
6061
+
6062
+ 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.WavelengthCommentDisplay = WavelengthCommentDisplay; 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.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 = WavelengthTitleBar; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
5968
6063
  /*! Bundled license information:
5969
6064
 
5970
6065
  react-is/cjs/react-is.production.min.js: