@ballistix.digital/react-components 0.4.74 → 0.4.75
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/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1856,7 +1856,7 @@ var base$3 = {
|
|
|
1856
1856
|
content: 'flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0',
|
|
1857
1857
|
},
|
|
1858
1858
|
panel: {
|
|
1859
|
-
container: 'relative transform
|
|
1859
|
+
container: 'relative transform rounded-lg bg-white w-full shadow-xl transition-all sm:w-full text-left',
|
|
1860
1860
|
transition: {
|
|
1861
1861
|
enter: 'ease-out duration-300',
|
|
1862
1862
|
enterFrom: 'opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95',
|
|
@@ -2618,7 +2618,7 @@ const Select = ({ options = [], value = null, onChange, onSearchInputChange, pla
|
|
|
2618
2618
|
|
|
2619
2619
|
var SelectMenuForm = function (props) {
|
|
2620
2620
|
var _a;
|
|
2621
|
-
var _b = props.name, name = _b === void 0 ? 'select-menu-form' : _b, label = props.label, description = props.description, placeholder = props.placeholder, options = props.options, required = props.required, value = props.value, error = props.error, _c = props.type, type = _c === void 0 ? 'normal' : _c, _d = props.isRequired, isRequired = _d === void 0 ? false : _d, isLoading = props.isLoading, _e = props.isTouched, isTouched = _e === void 0 ? false : _e, isDisabled = props.isDisabled, _f = props.isClearable, isClearable = _f === void 0 ? true : _f, _g = props.isMulti, isMulti = _g === void 0 ? false : _g, _h = props.isSearchable, isSearchable = _h === void 0 ? true : _h, _j = props.isSolo, isSolo = _j === void 0 ? false : _j, onChange = props.onChange, onSearchInputChange = props.onSearchInputChange,
|
|
2621
|
+
var _b = props.name, name = _b === void 0 ? 'select-menu-form' : _b, label = props.label, description = props.description, placeholder = props.placeholder, options = props.options, required = props.required, value = props.value, error = props.error, _c = props.type, type = _c === void 0 ? 'normal' : _c, _d = props.isRequired, isRequired = _d === void 0 ? false : _d, isLoading = props.isLoading, _e = props.isTouched, isTouched = _e === void 0 ? false : _e, isDisabled = props.isDisabled, _f = props.isClearable, isClearable = _f === void 0 ? true : _f, _g = props.isMulti, isMulti = _g === void 0 ? false : _g, _h = props.isSearchable, isSearchable = _h === void 0 ? true : _h, _j = props.isSolo, isSolo = _j === void 0 ? false : _j, onChange = props.onChange, onSearchInputChange = props.onSearchInputChange, onClear = props.onClear, stylesOverrides = props.styles;
|
|
2622
2622
|
var _k = useState(value !== null && value !== void 0 ? value : null), state = _k[0], setState = _k[1];
|
|
2623
2623
|
var isValid = error === undefined;
|
|
2624
2624
|
var handleGenerateStyle = function () {
|
|
@@ -2632,7 +2632,6 @@ var SelectMenuForm = function (props) {
|
|
|
2632
2632
|
var handleChange = function (value) {
|
|
2633
2633
|
setState(value);
|
|
2634
2634
|
onChange && onChange(value === null || value === void 0 ? void 0 : value.value);
|
|
2635
|
-
onBlur && onBlur(value === null || value === void 0 ? void 0 : value.value);
|
|
2636
2635
|
};
|
|
2637
2636
|
var styles$1 = handleGenerateStyle();
|
|
2638
2637
|
// Simulate onClear event.
|