opus-toolkit-components 0.6.8 → 0.6.9

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.
@@ -602,14 +602,70 @@ __webpack_require__.d(__webpack_exports__, {
602
602
  var external_react_ = __webpack_require__(155);
603
603
  var external_react_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_react_, 2);
604
604
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
605
+ ;// ./node_modules/@heroicons/react/24/outline/esm/PencilSquareIcon.js
606
+
607
+ function PencilSquareIcon({
608
+ title,
609
+ titleId,
610
+ ...props
611
+ }, svgRef) {
612
+ return /*#__PURE__*/external_react_.createElement("svg", Object.assign({
613
+ xmlns: "http://www.w3.org/2000/svg",
614
+ fill: "none",
615
+ viewBox: "0 0 24 24",
616
+ strokeWidth: 1.5,
617
+ stroke: "currentColor",
618
+ "aria-hidden": "true",
619
+ "data-slot": "icon",
620
+ ref: svgRef,
621
+ "aria-labelledby": titleId
622
+ }, props), title ? /*#__PURE__*/external_react_.createElement("title", {
623
+ id: titleId
624
+ }, title) : null, /*#__PURE__*/external_react_.createElement("path", {
625
+ strokeLinecap: "round",
626
+ strokeLinejoin: "round",
627
+ d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
628
+ }));
629
+ }
630
+ const ForwardRef = /*#__PURE__*/ external_react_.forwardRef(PencilSquareIcon);
631
+ /* harmony default export */ const esm_PencilSquareIcon = (ForwardRef);
632
+ ;// ./node_modules/@heroicons/react/24/outline/esm/ChevronDownIcon.js
633
+
634
+ function ChevronDownIcon({
635
+ title,
636
+ titleId,
637
+ ...props
638
+ }, svgRef) {
639
+ return /*#__PURE__*/external_react_.createElement("svg", Object.assign({
640
+ xmlns: "http://www.w3.org/2000/svg",
641
+ fill: "none",
642
+ viewBox: "0 0 24 24",
643
+ strokeWidth: 1.5,
644
+ stroke: "currentColor",
645
+ "aria-hidden": "true",
646
+ "data-slot": "icon",
647
+ ref: svgRef,
648
+ "aria-labelledby": titleId
649
+ }, props), title ? /*#__PURE__*/external_react_.createElement("title", {
650
+ id: titleId
651
+ }, title) : null, /*#__PURE__*/external_react_.createElement("path", {
652
+ strokeLinecap: "round",
653
+ strokeLinejoin: "round",
654
+ d: "m19.5 8.25-7.5 7.5-7.5-7.5"
655
+ }));
656
+ }
657
+ const ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon);
658
+ /* harmony default export */ const esm_ChevronDownIcon = (ChevronDownIcon_ForwardRef);
605
659
  ;// ./src/components/Accordions/Accordion.js
606
660
 
661
+
607
662
  const Accordion = _ref => {
608
663
  let {
609
664
  title,
610
665
  handleToggle,
611
666
  activeIndex,
612
667
  index,
668
+ isPreview,
613
669
  children
614
670
  } = _ref;
615
671
  const [internalActiveIndex, setInternalActiveIndex] = (0,external_react_.useState)(null);
@@ -638,19 +694,19 @@ const Accordion = _ref => {
638
694
  className: "accordion-item rounded-lg",
639
695
  key: index
640
696
  }, /*#__PURE__*/external_react_default().createElement("div", {
641
- className: "accordion-header flex justify-between p-3",
642
- onClick: toggle // Handle both internal and external toggles
643
- ,
644
- style: {
645
- cursor: "pointer"
646
- }
697
+ className: "accordion-header flex justify-between items-center p-3 cursor-pointer",
698
+ onClick: toggle
647
699
  }, /*#__PURE__*/external_react_default().createElement("h2", {
648
700
  className: "text-1xl text-[--color-text-strong]"
649
- }, title), /*#__PURE__*/external_react_default().createElement("div", {
650
- className: "text-[--color-text-strong]"
651
- }, isActive ? "-" : "+"))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
701
+ }, title), isPreview ? /*#__PURE__*/external_react_default().createElement(esm_PencilSquareIcon, {
702
+ className: "w-5 h-5 text-[--color-text-strong]"
703
+ }) : /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
704
+ className: "w-4 h-4 text-[--color-text-strong] transition-transform transform ".concat(isActive ? "rotate-180" : "rotate-0")
705
+ }))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
706
+ className: "accordion-body text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
707
+ }, children.content), isPreview && activeIndex !== index && /*#__PURE__*/external_react_default().createElement("div", {
652
708
  className: "accordion-body text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
653
- }, children));
709
+ }, children.preview));
654
710
  };
655
711
  /* harmony default export */ const Accordions_Accordion = (Accordion);
656
712
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
@@ -3650,8 +3706,8 @@ function CalendarIcon({
3650
3706
  d: "M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"
3651
3707
  }));
3652
3708
  }
3653
- const ForwardRef = /*#__PURE__*/ external_react_.forwardRef(CalendarIcon);
3654
- /* harmony default export */ const esm_CalendarIcon = (ForwardRef);
3709
+ const CalendarIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(CalendarIcon);
3710
+ /* harmony default export */ const esm_CalendarIcon = (CalendarIcon_ForwardRef);
3655
3711
  // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Forms/Datepickers/datepicker.scss
3656
3712
  var datepicker = __webpack_require__(117);
3657
3713
  ;// ./src/components/Forms/Datepickers/datepicker.scss
@@ -12089,7 +12145,7 @@ let portal_force_root_e=(0,external_react_.createContext)(!1);function portal_fo
12089
12145
 
12090
12146
  ;// ./node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js
12091
12147
 
12092
- function ChevronDownIcon({
12148
+ function ChevronDownIcon_ChevronDownIcon({
12093
12149
  title,
12094
12150
  titleId,
12095
12151
  ...props
@@ -12110,8 +12166,8 @@ function ChevronDownIcon({
12110
12166
  clipRule: "evenodd"
12111
12167
  }));
12112
12168
  }
12113
- const ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon);
12114
- /* harmony default export */ const esm_ChevronDownIcon = (ChevronDownIcon_ForwardRef);
12169
+ const esm_ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon_ChevronDownIcon);
12170
+ /* harmony default export */ const solid_esm_ChevronDownIcon = (esm_ChevronDownIcon_ForwardRef);
12115
12171
  ;// ./src/components/Forms/Dropdowns/Dropdown.jsx
12116
12172
 
12117
12173
 
@@ -12170,7 +12226,7 @@ function Dropdown(_ref) {
12170
12226
  className: "flex items-center gap-2"
12171
12227
  }, Icon && /*#__PURE__*/external_react_default().createElement(Icon, {
12172
12228
  className: "h-5 w-5 text-[--color-text-weak]"
12173
- }), " ", /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
12229
+ }), " ", /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(solid_esm_ChevronDownIcon, {
12174
12230
  "aria-hidden": "true",
12175
12231
  className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(isOpen ? 'rotate-180' : 'rotate-0')
12176
12232
  }))), /*#__PURE__*/external_react_default().createElement(gt, {
@@ -12343,4 +12399,4 @@ function Loader(_ref) {
12343
12399
  /******/ })()
12344
12400
  ;
12345
12401
  });
12346
- //# sourceMappingURL=main.f37f23b50e28b868a025.js.map
12402
+ //# sourceMappingURL=main.01162d2b524d404b7f6f.js.map