opus-toolkit-components 0.6.7 → 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,17 +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
|
|
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),
|
|
650
|
-
className: "
|
|
651
|
-
},
|
|
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", {
|
|
708
|
+
className: "accordion-body text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
|
|
709
|
+
}, children.preview));
|
|
652
710
|
};
|
|
653
711
|
/* harmony default export */ const Accordions_Accordion = (Accordion);
|
|
654
712
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
@@ -3648,8 +3706,8 @@ function CalendarIcon({
|
|
|
3648
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"
|
|
3649
3707
|
}));
|
|
3650
3708
|
}
|
|
3651
|
-
const
|
|
3652
|
-
/* harmony default export */ const esm_CalendarIcon = (
|
|
3709
|
+
const CalendarIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(CalendarIcon);
|
|
3710
|
+
/* harmony default export */ const esm_CalendarIcon = (CalendarIcon_ForwardRef);
|
|
3653
3711
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Forms/Datepickers/datepicker.scss
|
|
3654
3712
|
var datepicker = __webpack_require__(117);
|
|
3655
3713
|
;// ./src/components/Forms/Datepickers/datepicker.scss
|
|
@@ -12087,7 +12145,7 @@ let portal_force_root_e=(0,external_react_.createContext)(!1);function portal_fo
|
|
|
12087
12145
|
|
|
12088
12146
|
;// ./node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js
|
|
12089
12147
|
|
|
12090
|
-
function
|
|
12148
|
+
function ChevronDownIcon_ChevronDownIcon({
|
|
12091
12149
|
title,
|
|
12092
12150
|
titleId,
|
|
12093
12151
|
...props
|
|
@@ -12108,8 +12166,8 @@ function ChevronDownIcon({
|
|
|
12108
12166
|
clipRule: "evenodd"
|
|
12109
12167
|
}));
|
|
12110
12168
|
}
|
|
12111
|
-
const
|
|
12112
|
-
/* harmony default export */ const
|
|
12169
|
+
const esm_ChevronDownIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(ChevronDownIcon_ChevronDownIcon);
|
|
12170
|
+
/* harmony default export */ const solid_esm_ChevronDownIcon = (esm_ChevronDownIcon_ForwardRef);
|
|
12113
12171
|
;// ./src/components/Forms/Dropdowns/Dropdown.jsx
|
|
12114
12172
|
|
|
12115
12173
|
|
|
@@ -12168,7 +12226,7 @@ function Dropdown(_ref) {
|
|
|
12168
12226
|
className: "flex items-center gap-2"
|
|
12169
12227
|
}, Icon && /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
12170
12228
|
className: "h-5 w-5 text-[--color-text-weak]"
|
|
12171
|
-
}), " ", /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(
|
|
12229
|
+
}), " ", /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(solid_esm_ChevronDownIcon, {
|
|
12172
12230
|
"aria-hidden": "true",
|
|
12173
12231
|
className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(isOpen ? 'rotate-180' : 'rotate-0')
|
|
12174
12232
|
}))), /*#__PURE__*/external_react_default().createElement(gt, {
|
|
@@ -12341,4 +12399,4 @@ function Loader(_ref) {
|
|
|
12341
12399
|
/******/ })()
|
|
12342
12400
|
;
|
|
12343
12401
|
});
|
|
12344
|
-
//# sourceMappingURL=main.
|
|
12402
|
+
//# sourceMappingURL=main.01162d2b524d404b7f6f.js.map
|