@apexcura/ui-components 0.0.11-Beta140 → 0.0.11-Beta142

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.css CHANGED
@@ -335,12 +335,15 @@ video {
335
335
  .visible {
336
336
  visibility: visible;
337
337
  }
338
- .\!m-\[10px\] {
339
- margin: 10px !important;
340
- }
341
338
  .m-\[10px\] {
342
339
  margin: 10px;
343
340
  }
341
+ .ml-\[-7px\] {
342
+ margin-left: -7px;
343
+ }
344
+ .mt-\[-10px\] {
345
+ margin-top: -10px;
346
+ }
344
347
  .flex {
345
348
  display: flex;
346
349
  }
@@ -353,8 +356,11 @@ video {
353
356
  .w-\[126px\] {
354
357
  width: 126px;
355
358
  }
356
- .\!rounded-\[8px\] {
357
- border-radius: 8px !important;
359
+ .w-full {
360
+ width: 100%;
361
+ }
362
+ .justify-between {
363
+ justify-content: space-between;
358
364
  }
359
365
  .rounded-\[8px\] {
360
366
  border-radius: 8px;
@@ -362,30 +368,23 @@ video {
362
368
  .rounded-full {
363
369
  border-radius: 9999px;
364
370
  }
365
- .\!border {
366
- border-width: 1px !important;
367
- }
368
371
  .border {
369
372
  border-width: 1px;
370
373
  }
371
374
  .border-none {
372
375
  border-style: none;
373
376
  }
374
- .\!border-\[\#B8A4DE\] {
375
- --tw-border-opacity: 1 !important;
376
- border-color: rgb(184 164 222 / var(--tw-border-opacity)) !important;
377
- }
378
377
  .border-\[\#919191\] {
379
378
  --tw-border-opacity: 1;
380
379
  border-color: rgb(145 145 145 / var(--tw-border-opacity));
381
380
  }
382
- .border-\[\#E2D6F8\] {
381
+ .border-\[\#B8A4DE\] {
383
382
  --tw-border-opacity: 1;
384
- border-color: rgb(226 214 248 / var(--tw-border-opacity));
383
+ border-color: rgb(184 164 222 / var(--tw-border-opacity));
385
384
  }
386
- .\!bg-\[\#E2D6F8\] {
387
- --tw-bg-opacity: 1 !important;
388
- background-color: rgb(226 214 248 / var(--tw-bg-opacity)) !important;
385
+ .bg-\[\#E2D6F8\] {
386
+ --tw-bg-opacity: 1;
387
+ background-color: rgb(226 214 248 / var(--tw-bg-opacity));
389
388
  }
390
389
  .bg-\[\#F2F2F2\] {
391
390
  --tw-bg-opacity: 1;
@@ -395,38 +394,29 @@ video {
395
394
  --tw-bg-opacity: 1;
396
395
  background-color: rgb(107 33 168 / var(--tw-bg-opacity));
397
396
  }
398
- .bg-red-500 {
399
- --tw-bg-opacity: 1;
400
- background-color: rgb(239 68 68 / var(--tw-bg-opacity));
401
- }
402
397
  .p-\[6px\] {
403
398
  padding: 6px;
404
399
  }
405
- .\!text-center {
406
- text-align: center !important;
400
+ .pl-\[3px\] {
401
+ padding-left: 3px;
407
402
  }
408
403
  .text-center {
409
404
  text-align: center;
410
405
  }
406
+ .text-\[10px\] {
407
+ font-size: 10px;
408
+ }
411
409
  .italic {
412
410
  font-style: italic;
413
411
  }
414
- .\!text-black {
415
- --tw-text-opacity: 1 !important;
416
- color: rgb(0 0 0 / var(--tw-text-opacity)) !important;
412
+ .text-black {
413
+ --tw-text-opacity: 1;
414
+ color: rgb(0 0 0 / var(--tw-text-opacity));
417
415
  }
418
416
  .text-white {
419
417
  --tw-text-opacity: 1;
420
418
  color: rgb(255 255 255 / var(--tw-text-opacity));
421
419
  }
422
- .\!shadow-\[0px_0px_1px_1px_\#919191\] {
423
- --tw-shadow: 0px 0px 1px 1px #919191 !important;
424
- --tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color) !important;
425
- box-shadow:
426
- var(--tw-ring-offset-shadow, 0 0 #0000),
427
- var(--tw-ring-shadow, 0 0 #0000),
428
- var(--tw-shadow) !important;
429
- }
430
420
  .shadow-\[0px_0px_1px_1px_\#919191\] {
431
421
  --tw-shadow: 0px 0px 1px 1px #919191;
432
422
  --tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
package/dist/index.d.mts CHANGED
@@ -40,8 +40,6 @@ type ElementType = {
40
40
  icon?: React.JSX.Element;
41
41
  placement?: string;
42
42
  profileImage?: string;
43
- subContainerClassName?: string;
44
- countClassName?: string;
45
43
  buttonClassName?: string;
46
44
  profileImageClassName?: string;
47
45
  profileSubClassName?: string;
package/dist/index.d.ts CHANGED
@@ -40,8 +40,6 @@ type ElementType = {
40
40
  icon?: React.JSX.Element;
41
41
  placement?: string;
42
42
  profileImage?: string;
43
- subContainerClassName?: string;
44
- countClassName?: string;
45
43
  buttonClassName?: string;
46
44
  profileImageClassName?: string;
47
45
  profileSubClassName?: string;
package/dist/index.js CHANGED
@@ -188,8 +188,8 @@ var SelectElement = (props) => {
188
188
  var import_react6 = __toESM(require("react"));
189
189
  var import_antd6 = require("antd");
190
190
  var containerClassName = " ";
191
- var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
192
- var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
191
+ var radioDefaultStyle = "bg-[#F2F2F2] border border-[#919191] rounded-[8px] m-[10px] hover:bg-[#F2F2F2] text-center text-black shadow-[0px_0px_1px_1px_#919191]";
192
+ var radioSelectedDefaultStyle = "bg-[#E2D6F8] border border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center text-black shadow-[0px_0px_1px_1px_#919191]";
193
193
  var RadioElement = (props) => {
194
194
  const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
195
195
  const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
@@ -205,7 +205,7 @@ var RadioElement = (props) => {
205
205
  }
206
206
  };
207
207
  const getButtonStyle = (option) => {
208
- return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
208
+ return selectedValue === option.value ? `${radioSelectedDefaultStyle} ${option.selectedClassName}` : `${radioDefaultStyle} ${option.className}`;
209
209
  };
210
210
  return /* @__PURE__ */ import_react6.default.createElement("div", { className: containerClassName }, /* @__PURE__ */ import_react6.default.createElement("p", null, props.label), /* @__PURE__ */ import_react6.default.createElement(
211
211
  import_antd6.Radio.Group,
@@ -534,13 +534,15 @@ var AddMoreTable = (props) => {
534
534
  // src/Components/Sidebar.tsx
535
535
  var import_react14 = __toESM(require("react"));
536
536
  var Sidebar = (props) => {
537
- const handleChange = (e) => {
537
+ const handleChange = (item) => {
538
538
  if (props.onChange) {
539
- props.onChange(e.target.item);
539
+ props.onChange(item);
540
540
  }
541
541
  };
542
542
  return /* @__PURE__ */ import_react14.default.createElement("div", { className: props.className, key: props.name }, /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement("img", { src: props.img, alt: "logo" })), /* @__PURE__ */ import_react14.default.createElement("ul", { className: props.listClassName }, props.items?.map((item) => {
543
- return /* @__PURE__ */ import_react14.default.createElement("li", { onChange: handleChange, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ import_react14.default.createElement("span", null, item.icon), /* @__PURE__ */ import_react14.default.createElement("span", null, item.label));
543
+ return /* @__PURE__ */ import_react14.default.createElement("li", { onClick: () => {
544
+ handleChange(item);
545
+ }, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ import_react14.default.createElement("span", null, item.icon), /* @__PURE__ */ import_react14.default.createElement("span", null, item.label));
544
546
  })));
545
547
  };
546
548
 
@@ -552,7 +554,7 @@ var import_react15 = __toESM(require("react"));
552
554
  var import_antd12 = require("antd");
553
555
  var Notification = (props) => /* @__PURE__ */ import_react15.default.createElement(import_antd12.Popover, { className: props.notification.className, content: props.notification.items?.map((eachItem) => {
554
556
  return /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement("p", null, eachItem.text), /* @__PURE__ */ import_react15.default.createElement("p", null, eachItem.time));
555
- }), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ import_react15.default.createElement(import_antd12.Button, { className: props.notification.buttonClassName }, /* @__PURE__ */ import_react15.default.createElement("span", null, props.notification.icon), /* @__PURE__ */ import_react15.default.createElement("span", { className: props.notification.countClassName }, props.notification.count)));
557
+ }), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ import_react15.default.createElement(import_antd12.Badge, { count: props.notification.count }), /* @__PURE__ */ import_react15.default.createElement(import_antd12.Avatar, { ...props.notification.icon }));
556
558
 
557
559
  // src/Components/Profile.tsx
558
560
  var import_react16 = __toESM(require("react"));
@@ -560,8 +562,9 @@ var Profile = (props) => /* @__PURE__ */ import_react16.default.createElement("d
560
562
 
561
563
  // src/Components/Navbar.tsx
562
564
  var Navbar = (props) => {
563
- const test = "flex flex-end bg-red-500 border border-[#E2D6F8]";
564
- return /* @__PURE__ */ import_react17.default.createElement("div", { className: `${test} ${props.subContainerClassName}` }, /* @__PURE__ */ import_react17.default.createElement("span", { className: props.dashboard.className }, props.dashboard.label), /* @__PURE__ */ import_react17.default.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ import_react17.default.createElement(Notification, { ...props }), /* @__PURE__ */ import_react17.default.createElement(Profile, { ...props })));
565
+ const test = "w-full flex justify-between";
566
+ const dashboradClass = "text-xl,text-default-600";
567
+ return /* @__PURE__ */ import_react17.default.createElement("div", { className: `${test}` }, /* @__PURE__ */ import_react17.default.createElement("div", { className: `${dashboradClass} ${props.dashboard.className}` }, props.dashboard.label), /* @__PURE__ */ import_react17.default.createElement("div", { className: "flex" }, /* @__PURE__ */ import_react17.default.createElement(Notification, { ...props }), /* @__PURE__ */ import_react17.default.createElement(Profile, { ...props })));
565
568
  };
566
569
  // Annotate the CommonJS export names for ESM import in node:
567
570
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -139,8 +139,8 @@ var SelectElement = (props) => {
139
139
  import React6, { useState as useState2 } from "react";
140
140
  import { Radio } from "antd";
141
141
  var containerClassName = " ";
142
- var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
143
- var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
142
+ var radioDefaultStyle = "bg-[#F2F2F2] border border-[#919191] rounded-[8px] m-[10px] hover:bg-[#F2F2F2] text-center text-black shadow-[0px_0px_1px_1px_#919191]";
143
+ var radioSelectedDefaultStyle = "bg-[#E2D6F8] border border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center text-black shadow-[0px_0px_1px_1px_#919191]";
144
144
  var RadioElement = (props) => {
145
145
  const [isDisabled, setIsDisabled] = useState2(props.disabled);
146
146
  const [selectedValue, setSelectedValue] = useState2(props.value);
@@ -156,7 +156,7 @@ var RadioElement = (props) => {
156
156
  }
157
157
  };
158
158
  const getButtonStyle = (option) => {
159
- return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
159
+ return selectedValue === option.value ? `${radioSelectedDefaultStyle} ${option.selectedClassName}` : `${radioDefaultStyle} ${option.className}`;
160
160
  };
161
161
  return /* @__PURE__ */ React6.createElement("div", { className: containerClassName }, /* @__PURE__ */ React6.createElement("p", null, props.label), /* @__PURE__ */ React6.createElement(
162
162
  Radio.Group,
@@ -485,13 +485,15 @@ var AddMoreTable = (props) => {
485
485
  // src/Components/Sidebar.tsx
486
486
  import React13 from "react";
487
487
  var Sidebar = (props) => {
488
- const handleChange = (e) => {
488
+ const handleChange = (item) => {
489
489
  if (props.onChange) {
490
- props.onChange(e.target.item);
490
+ props.onChange(item);
491
491
  }
492
492
  };
493
493
  return /* @__PURE__ */ React13.createElement("div", { className: props.className, key: props.name }, /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("img", { src: props.img, alt: "logo" })), /* @__PURE__ */ React13.createElement("ul", { className: props.listClassName }, props.items?.map((item) => {
494
- return /* @__PURE__ */ React13.createElement("li", { onChange: handleChange, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ React13.createElement("span", null, item.icon), /* @__PURE__ */ React13.createElement("span", null, item.label));
494
+ return /* @__PURE__ */ React13.createElement("li", { onClick: () => {
495
+ handleChange(item);
496
+ }, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ React13.createElement("span", null, item.icon), /* @__PURE__ */ React13.createElement("span", null, item.label));
495
497
  })));
496
498
  };
497
499
 
@@ -500,10 +502,10 @@ import React16 from "react";
500
502
 
501
503
  // src/Components/Notofication.tsx
502
504
  import React14 from "react";
503
- import { Button as Button4, Popover } from "antd";
505
+ import { Popover, Avatar, Badge } from "antd";
504
506
  var Notification = (props) => /* @__PURE__ */ React14.createElement(Popover, { className: props.notification.className, content: props.notification.items?.map((eachItem) => {
505
507
  return /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.createElement("p", null, eachItem.text), /* @__PURE__ */ React14.createElement("p", null, eachItem.time));
506
- }), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ React14.createElement(Button4, { className: props.notification.buttonClassName }, /* @__PURE__ */ React14.createElement("span", null, props.notification.icon), /* @__PURE__ */ React14.createElement("span", { className: props.notification.countClassName }, props.notification.count)));
508
+ }), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ React14.createElement(Badge, { count: props.notification.count }), /* @__PURE__ */ React14.createElement(Avatar, { ...props.notification.icon }));
507
509
 
508
510
  // src/Components/Profile.tsx
509
511
  import React15 from "react";
@@ -511,8 +513,9 @@ var Profile = (props) => /* @__PURE__ */ React15.createElement("div", { classNam
511
513
 
512
514
  // src/Components/Navbar.tsx
513
515
  var Navbar = (props) => {
514
- const test = "flex flex-end bg-red-500 border border-[#E2D6F8]";
515
- return /* @__PURE__ */ React16.createElement("div", { className: `${test} ${props.subContainerClassName}` }, /* @__PURE__ */ React16.createElement("span", { className: props.dashboard.className }, props.dashboard.label), /* @__PURE__ */ React16.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ React16.createElement(Notification, { ...props }), /* @__PURE__ */ React16.createElement(Profile, { ...props })));
516
+ const test = "w-full flex justify-between";
517
+ const dashboradClass = "text-xl,text-default-600";
518
+ return /* @__PURE__ */ React16.createElement("div", { className: `${test}` }, /* @__PURE__ */ React16.createElement("div", { className: `${dashboradClass} ${props.dashboard.className}` }, props.dashboard.label), /* @__PURE__ */ React16.createElement("div", { className: "flex" }, /* @__PURE__ */ React16.createElement(Notification, { ...props }), /* @__PURE__ */ React16.createElement(Profile, { ...props })));
516
519
  };
517
520
  export {
518
521
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta140",
3
+ "version": "0.0.11-Beta142",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",