opus-toolkit-components 0.7.0 → 0.7.2
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.
|
@@ -588,6 +588,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
588
588
|
Accordion: () => (/* reexport */ Accordions_Accordion),
|
|
589
589
|
Button: () => (/* reexport */ Button),
|
|
590
590
|
Card: () => (/* reexport */ Card),
|
|
591
|
+
Checkbox: () => (/* reexport */ Checkbox),
|
|
591
592
|
DatePicker: () => (/* reexport */ DatePicker),
|
|
592
593
|
Dropdown: () => (/* reexport */ Dropdown),
|
|
593
594
|
Input: () => (/* reexport */ Inputs_Input),
|
|
@@ -695,10 +696,10 @@ const Accordion = _ref => {
|
|
|
695
696
|
className: "accordion-item rounded-lg",
|
|
696
697
|
key: index
|
|
697
698
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
698
|
-
className: "accordion-header flex justify-between items-center
|
|
699
|
+
className: "accordion-header flex justify-between items-center py-2 px-4 cursor-pointer",
|
|
699
700
|
onClick: toggle
|
|
700
701
|
}, /*#__PURE__*/external_react_default().createElement("h2", {
|
|
701
|
-
className: "text-
|
|
702
|
+
className: "text-h4 text-[--color-text-strong]"
|
|
702
703
|
}, title), isPreview ? /*#__PURE__*/external_react_default().createElement(esm_PencilSquareIcon, {
|
|
703
704
|
className: "w-5 h-5 text-[--color-text-strong]"
|
|
704
705
|
}) : /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
|
|
@@ -3873,6 +3874,33 @@ const RadioButton = _ref => {
|
|
|
3873
3874
|
};
|
|
3874
3875
|
RadioButton.displayName = 'RadioButton';
|
|
3875
3876
|
/* harmony default export */ const Radios_RadioButton = (RadioButton);
|
|
3877
|
+
;// ./src/components/Forms/Checkbox/Checkbox.jsx
|
|
3878
|
+
|
|
3879
|
+
function Checkbox(_ref) {
|
|
3880
|
+
let {
|
|
3881
|
+
label,
|
|
3882
|
+
name,
|
|
3883
|
+
onChange,
|
|
3884
|
+
value = false,
|
|
3885
|
+
isValid = true,
|
|
3886
|
+
errorMessage = "",
|
|
3887
|
+
disabled = false
|
|
3888
|
+
} = _ref;
|
|
3889
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
3890
|
+
className: "flex flex-col mb-4"
|
|
3891
|
+
}, /*#__PURE__*/external_react_default().createElement("label", {
|
|
3892
|
+
className: "flex items-center text-[--color-text-weak]"
|
|
3893
|
+
}, /*#__PURE__*/external_react_default().createElement("input", {
|
|
3894
|
+
type: "checkbox",
|
|
3895
|
+
name: name,
|
|
3896
|
+
checked: value,
|
|
3897
|
+
onChange: onChange,
|
|
3898
|
+
disabled: disabled,
|
|
3899
|
+
className: "mr-2 cursor-pointer"
|
|
3900
|
+
}), label), !isValid && errorMessage && /*#__PURE__*/external_react_default().createElement("span", {
|
|
3901
|
+
className: "text-rose-500 text-sm mt-1"
|
|
3902
|
+
}, errorMessage));
|
|
3903
|
+
}
|
|
3876
3904
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Tables/table.scss
|
|
3877
3905
|
var table = __webpack_require__(705);
|
|
3878
3906
|
;// ./src/components/Tables/table.scss
|
|
@@ -12396,8 +12424,9 @@ function Loader(_ref) {
|
|
|
12396
12424
|
|
|
12397
12425
|
|
|
12398
12426
|
|
|
12427
|
+
|
|
12399
12428
|
/******/ return __webpack_exports__;
|
|
12400
12429
|
/******/ })()
|
|
12401
12430
|
;
|
|
12402
12431
|
});
|
|
12403
|
-
//# sourceMappingURL=main.
|
|
12432
|
+
//# sourceMappingURL=main.35bcd6f8c80839a980a8.js.map
|