@driveflux/beam 1.11.5 → 1.11.6

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.
@@ -17,7 +17,7 @@ import Text from '../text/Text';
17
17
  import { cn } from '../utils';
18
18
  import { formatInputBy } from './utils';
19
19
  var DatePickerDrawer = function(param) {
20
- var _param_htmlFor = param.htmlFor, htmlFor = _param_htmlFor === void 0 ? 'datepicker' : _param_htmlFor, _param_locale = param.locale, locale = _param_locale === void 0 ? 'en' : _param_locale, isRange = param.isRange, providedValue = param.value, minDate = param.minDate, maxDate = param.maxDate, placeholder = param.placeholder, calendarType = param.calendarType, isDisabled = param.isDisabled, inputProps = param.inputProps, drawerTitle = param.drawerTitle, cancelButton = param.cancelButton, applyButton = param.applyButton, tileDisabled = param.tileDisabled, // non-customized props
20
+ var _param_htmlFor = param.htmlFor, htmlFor = _param_htmlFor === void 0 ? 'datepicker' : _param_htmlFor, _param_locale = param.locale, locale = _param_locale === void 0 ? 'en' : _param_locale, isRange = param.isRange, providedValue = param.value, minDate = param.minDate, maxDate = param.maxDate, placeholder = param.placeholder, calendarType = param.calendarType, isDisabled = param.isDisabled, inputProps = param.inputProps, drawerTitle = param.drawerTitle, cancelButton = param.cancelButton, applyButton = param.applyButton, tileDisabled = param.tileDisabled, error = param.error, // non-customized props
21
21
  innerValue = param.innerValue, setInnerValue = param.setInnerValue, focused = param.focused, setFocused = param.setFocused, handleSelect = param.handleSelect, handleCancel = param.handleCancel, handleApply = param.handleApply;
22
22
  var handleOpenChange = function(open) {
23
23
  setFocused(open);
@@ -29,6 +29,7 @@ var DatePickerDrawer = function(param) {
29
29
  return /*#__PURE__*/ _jsx(FieldWrapper, {
30
30
  htmlFor: htmlFor,
31
31
  label: inputProps === null || inputProps === void 0 ? void 0 : inputProps.label,
32
+ error: error,
32
33
  className: 'w-full',
33
34
  children: /*#__PURE__*/ _jsxs(Drawer, {
34
35
  open: focused,
@@ -39,7 +40,7 @@ var DatePickerDrawer = function(param) {
39
40
  disabled: isDisabled,
40
41
  className: 'w-full',
41
42
  children: /*#__PURE__*/ _jsxs(Box, {
42
- className: cn('flex flex-row p-3 border border-primary2 cursor-pointer hover:border-primary4', isDisabled && 'bg-primary2'),
43
+ className: cn('flex flex-row p-3 border border-primary2 cursor-pointer hover:border-primary4', isDisabled && 'bg-primary2', error && 'border-alert4 hover:border-alert4 focus-within:border-alert4'),
43
44
  children: [
44
45
  innerValue ? /*#__PURE__*/ _jsx(Text, {
45
46
  className: "flex-1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/beam",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./accordion": {