@popsure/dirty-swan 0.33.2 → 0.33.3
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/cjs/index.js +11 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.js +11 -10
- package/dist/esm/components/input/checkbox/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/input/checkbox/index.tsx +2 -2
- package/src/lib/components/input/checkbox/styles.module.scss +8 -0
package/dist/cjs/index.js
CHANGED
|
@@ -8746,12 +8746,13 @@ var CurrencyInput = function (_a) {
|
|
|
8746
8746
|
} }, props), void 0));
|
|
8747
8747
|
};
|
|
8748
8748
|
|
|
8749
|
-
var css_248z$l = ".styles-module_container__3zJJC {\n max-width: 100%;\n}";
|
|
8750
|
-
var styles$k = {"container":"styles-module_container__3zJJC"};
|
|
8749
|
+
var css_248z$l = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}\n\n.styles-module_wide__VxDGe {\n max-width: 736px;\n}";
|
|
8750
|
+
var styles$k = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b","wide":"styles-module_wide__VxDGe"};
|
|
8751
8751
|
styleInject(css_248z$l);
|
|
8752
8752
|
|
|
8753
8753
|
var Checkbox = function (_a) {
|
|
8754
|
-
var
|
|
8754
|
+
var _b;
|
|
8755
|
+
var options = _a.options, _c = _a.value, value = _c === void 0 ? [] : _c, onChange = _a.onChange, _d = _a.wide, wide = _d === void 0 ? false : _d, _e = _a.inlineLayout, inlineLayout = _e === void 0 ? false : _e, _f = _a.className, className = _f === void 0 ? '' : _f, _g = _a.labelClassName, labelClassName = _g === void 0 ? '' : _g, _h = _a.optionClassName, optionClassName = _h === void 0 ? '' : _h;
|
|
8755
8756
|
var hasNoneValue = Object.keys(options).includes('NONE');
|
|
8756
8757
|
var handleOnChange = function (newValue) {
|
|
8757
8758
|
if (value === null || value === void 0 ? void 0 : value.includes(newValue)) {
|
|
@@ -8774,13 +8775,13 @@ var Checkbox = function (_a) {
|
|
|
8774
8775
|
onChange(newValues);
|
|
8775
8776
|
};
|
|
8776
8777
|
var entries = Object.entries(options);
|
|
8777
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, styles$k.container, 'd-flex gap8', {
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
'fd-row'
|
|
8781
|
-
'f-wrap'
|
|
8782
|
-
'fd-column'
|
|
8783
|
-
|
|
8778
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, styles$k.container, 'd-flex gap8', (_b = {},
|
|
8779
|
+
_b[styles$k.wide] = wide,
|
|
8780
|
+
_b[styles$k.narrow] = !wide,
|
|
8781
|
+
_b['fd-row'] = inlineLayout,
|
|
8782
|
+
_b['f-wrap'] = inlineLayout,
|
|
8783
|
+
_b['fd-column'] = !inlineLayout,
|
|
8784
|
+
_b)) }, { children: entries.map(function (_a) {
|
|
8784
8785
|
var _b;
|
|
8785
8786
|
var currentValue = _a[0], label = _a[1];
|
|
8786
8787
|
var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
|