@apexcura/ui-components 0.0.12-Beta73 → 0.0.12-Beta75

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/dist/index.d.mts CHANGED
@@ -20,6 +20,7 @@ type ElementType = {
20
20
  suffix?: React.ReactNode;
21
21
  maxLength?: number;
22
22
  fieldNames?: any[];
23
+ fields?: any[];
23
24
  options?: any[];
24
25
  onChange?: (value: string | number | boolean | object | any[]) => void;
25
26
  dropDownOptions?: any[];
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ type ElementType = {
20
20
  suffix?: React.ReactNode;
21
21
  maxLength?: number;
22
22
  fieldNames?: any[];
23
+ fields?: any[];
23
24
  options?: any[];
24
25
  onChange?: (value: string | number | boolean | object | any[]) => void;
25
26
  dropDownOptions?: any[];
package/dist/index.js CHANGED
@@ -574,13 +574,13 @@ var Profile = (props) => /* @__PURE__ */ import_react16.default.createElement("d
574
574
 
575
575
  // src/Components/Navbar.tsx
576
576
  var Navbar = (props) => {
577
- return /* @__PURE__ */ import_react17.default.createElement("div", { className: ` ${props.className}` }, props.fields && props.fields.map((field) => {
578
- if (field.element === "span") {
579
- return /* @__PURE__ */ import_react17.default.createElement("span", { className: field.className }, field.label);
580
- } else if (field.element === "notifications") {
581
- return /* @__PURE__ */ import_react17.default.createElement(Notification, { ...field });
582
- } else if (field.name === "profile") {
583
- return /* @__PURE__ */ import_react17.default.createElement(Profile, { ...field });
577
+ return /* @__PURE__ */ import_react17.default.createElement("div", { className: ` ${props.className}` }, props.items && props.items.map((item) => {
578
+ if (item.element === "span") {
579
+ return /* @__PURE__ */ import_react17.default.createElement("span", { className: item.className }, item.label);
580
+ } else if (item.element === "notifications") {
581
+ return /* @__PURE__ */ import_react17.default.createElement(Notification, { ...item });
582
+ } else if (item.name === "profile") {
583
+ return /* @__PURE__ */ import_react17.default.createElement(Profile, { ...item });
584
584
  }
585
585
  return null;
586
586
  }));
package/dist/index.mjs CHANGED
@@ -525,13 +525,13 @@ var Profile = (props) => /* @__PURE__ */ React15.createElement("div", { classNam
525
525
 
526
526
  // src/Components/Navbar.tsx
527
527
  var Navbar = (props) => {
528
- return /* @__PURE__ */ React16.createElement("div", { className: ` ${props.className}` }, props.fields && props.fields.map((field) => {
529
- if (field.element === "span") {
530
- return /* @__PURE__ */ React16.createElement("span", { className: field.className }, field.label);
531
- } else if (field.element === "notifications") {
532
- return /* @__PURE__ */ React16.createElement(Notification, { ...field });
533
- } else if (field.name === "profile") {
534
- return /* @__PURE__ */ React16.createElement(Profile, { ...field });
528
+ return /* @__PURE__ */ React16.createElement("div", { className: ` ${props.className}` }, props.items && props.items.map((item) => {
529
+ if (item.element === "span") {
530
+ return /* @__PURE__ */ React16.createElement("span", { className: item.className }, item.label);
531
+ } else if (item.element === "notifications") {
532
+ return /* @__PURE__ */ React16.createElement(Notification, { ...item });
533
+ } else if (item.name === "profile") {
534
+ return /* @__PURE__ */ React16.createElement(Profile, { ...item });
535
535
  }
536
536
  return null;
537
537
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta73",
3
+ "version": "0.0.12-Beta75",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",