opus-toolkit-components 0.6.8 → 0.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.
|
@@ -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);
|
|
@@ -633,24 +689,25 @@ const Accordion = _ref => {
|
|
|
633
689
|
}
|
|
634
690
|
}, [activeIndex]);
|
|
635
691
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
692
|
+
id: "accordion-".concat(index),
|
|
636
693
|
className: "accordion rounded-md bg-[--color-primary-bg] border border-[--color-stroke] w-full"
|
|
637
694
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
638
695
|
className: "accordion-item rounded-lg",
|
|
639
696
|
key: index
|
|
640
697
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
641
|
-
className: "accordion-header flex justify-between p-3",
|
|
642
|
-
onClick: toggle
|
|
643
|
-
,
|
|
644
|
-
style: {
|
|
645
|
-
cursor: "pointer"
|
|
646
|
-
}
|
|
698
|
+
className: "accordion-header flex justify-between items-center p-3 cursor-pointer",
|
|
699
|
+
onClick: toggle
|
|
647
700
|
}, /*#__PURE__*/external_react_default().createElement("h2", {
|
|
648
701
|
className: "text-1xl text-[--color-text-strong]"
|
|
649
|
-
}, title), /*#__PURE__*/external_react_default().createElement(
|
|
650
|
-
className: "text-[--color-text-strong]"
|
|
651
|
-
}
|
|
702
|
+
}, title), isPreview ? /*#__PURE__*/external_react_default().createElement(esm_PencilSquareIcon, {
|
|
703
|
+
className: "w-5 h-5 text-[--color-text-strong]"
|
|
704
|
+
}) : /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
|
|
705
|
+
className: "w-4 h-4 text-[--color-text-strong] transition-transform transform ".concat(isActive ? "rotate-180" : "rotate-0")
|
|
706
|
+
}))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
|
|
707
|
+
className: "accordion-body text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
|
|
708
|
+
}, children.content), isPreview && activeIndex !== index && /*#__PURE__*/external_react_default().createElement("div", {
|
|
652
709
|
className: "accordion-body text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
|
|
653
|
-
}, children));
|
|
710
|
+
}, children.preview));
|
|
654
711
|
};
|
|
655
712
|
/* harmony default export */ const Accordions_Accordion = (Accordion);
|
|
656
713
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
@@ -3650,8 +3707,8 @@ function CalendarIcon({
|
|
|
3650
3707
|
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
3708
|
}));
|
|
3652
3709
|
}
|
|
3653
|
-
const
|
|
3654
|
-
/* harmony default export */ const esm_CalendarIcon = (
|
|
3710
|
+
const CalendarIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(CalendarIcon);
|
|
3711
|
+
/* harmony default export */ const esm_CalendarIcon = (CalendarIcon_ForwardRef);
|
|
3655
3712
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Forms/Datepickers/datepicker.scss
|
|
3656
3713
|
var datepicker = __webpack_require__(117);
|
|
3657
3714
|
;// ./src/components/Forms/Datepickers/datepicker.scss
|
|
@@ -12089,7 +12146,7 @@ let portal_force_root_e=(0,external_react_.createContext)(!1);function portal_fo
|
|
|
12089
12146
|
|
|
12090
12147
|
;// ./node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js
|
|
12091
12148
|
|
|
12092
|
-
function
|
|
12149
|
+
function ChevronDownIcon_ChevronDownIcon({
|
|
12093
12150
|
title,
|
|
12094
12151
|
titleId,
|
|
12095
12152
|
...props
|
|
@@ -12110,8 +12167,8 @@ function ChevronDownIcon({
|
|
|
12110
12167
|
clipRule: "evenodd"
|
|
12111
12168
|
}));
|
|
12112
12169
|
}
|
|
12113
|
-
const
|
|
12114
|
-
/* harmony default export */ const
|
|
12170
|
+
const esm_ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon_ChevronDownIcon);
|
|
12171
|
+
/* harmony default export */ const solid_esm_ChevronDownIcon = (esm_ChevronDownIcon_ForwardRef);
|
|
12115
12172
|
;// ./src/components/Forms/Dropdowns/Dropdown.jsx
|
|
12116
12173
|
|
|
12117
12174
|
|
|
@@ -12170,7 +12227,7 @@ function Dropdown(_ref) {
|
|
|
12170
12227
|
className: "flex items-center gap-2"
|
|
12171
12228
|
}, Icon && /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
12172
12229
|
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(
|
|
12230
|
+
}), " ", /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(solid_esm_ChevronDownIcon, {
|
|
12174
12231
|
"aria-hidden": "true",
|
|
12175
12232
|
className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(isOpen ? 'rotate-180' : 'rotate-0')
|
|
12176
12233
|
}))), /*#__PURE__*/external_react_default().createElement(gt, {
|
|
@@ -12343,4 +12400,4 @@ function Loader(_ref) {
|
|
|
12343
12400
|
/******/ })()
|
|
12344
12401
|
;
|
|
12345
12402
|
});
|
|
12346
|
-
//# sourceMappingURL=main.
|
|
12403
|
+
//# sourceMappingURL=main.98cd993fcd00ffc115be.js.map
|