@dreamcommerce/aurora 2.4.12 → 2.5.0
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/build/cjs/packages/aurora/src/components/controls/hoc/control_cell_selector/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_checkbox/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_checkbox_switch/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +3 -3
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +4 -4
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_file_picker/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_input/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_multi_select/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_radio/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_radio_group/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_range/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_select/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_tags_selector/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_textarea/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/components/common_ranges.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/days_grid.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/label.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_controller.js +3 -3
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_view.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_year_controller.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_year_picker_context_manager.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_year_picker/components/years_view.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/components/pure_date_picker.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/components/single_day.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/hoc/range_picker.js +2 -2
- package/build/cjs/packages/aurora/src/components/date_picker/hoc/single_date_picker.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js +30 -75
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/option_multiple.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/css_classes.js +2 -6
- package/build/cjs/packages/aurora/src/components/dropdown/css_classes.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/utilities.js +1 -5
- package/build/cjs/packages/aurora/src/components/dropdown/utilities.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/hint/index.js +15 -19
- package/build/cjs/packages/aurora/src/components/hint/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/tooltip/index.js +14 -18
- package/build/cjs/packages/aurora/src/components/tooltip/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/css/date_picker/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/css/dropdown/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/css/hint/main.module.less.js +3 -3
- package/build/cjs/packages/aurora/src/css/modal/main.module.less.js +1 -1
- package/build/cjs/packages/aurora/src/css/slide/main.module.less.js +1 -1
- package/build/cjs/packages/aurora/src/css/tooltip/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/hooks/use_fixed_child_position.js +40 -0
- package/build/cjs/packages/aurora/src/hooks/use_fixed_child_position.js.map +1 -0
- package/build/cjs/packages/aurora/src/index.js +10 -10
- package/build/esm/packages/aurora/src/components/controls/hoc/control_cell_selector/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_checkbox/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_checkbox_switch/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +3 -3
- package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +4 -4
- package/build/esm/packages/aurora/src/components/controls/hoc/control_file_picker/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_input/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_multi_select/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_radio/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_radio_group/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_range/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_select/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_tags_selector/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_textarea/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/types.d.ts +7 -3
- package/build/esm/packages/aurora/src/components/controls/types.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/types.js.map +1 -1
- package/build/esm/packages/aurora/src/components/date_picker/components/common_ranges.js +2 -2
- package/build/esm/packages/aurora/src/components/date_picker/components/days_grid.js +4 -4
- package/build/esm/packages/aurora/src/components/date_picker/components/label.js +3 -3
- package/build/esm/packages/aurora/src/components/date_picker/components/month_controller.js +7 -7
- package/build/esm/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_view.js +3 -3
- package/build/esm/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_year_controller.js +5 -5
- package/build/esm/packages/aurora/src/components/date_picker/components/month_year_picker/components/month_year_picker_context_manager.js +1 -1
- package/build/esm/packages/aurora/src/components/date_picker/components/month_year_picker/components/years_view.js +3 -3
- package/build/esm/packages/aurora/src/components/date_picker/components/pure_date_picker.js +4 -4
- package/build/esm/packages/aurora/src/components/date_picker/components/single_day.js +4 -4
- package/build/esm/packages/aurora/src/components/date_picker/hoc/range_picker.js +4 -4
- package/build/esm/packages/aurora/src/components/date_picker/hoc/single_date_picker.js +2 -2
- package/build/esm/packages/aurora/src/components/date_picker/index.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js +32 -76
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/option_multiple.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.d.ts +0 -2
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.js +3 -5
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/types.d.ts +0 -3
- package/build/esm/packages/aurora/src/components/dropdown/utilities.d.ts +1 -2
- package/build/esm/packages/aurora/src/components/dropdown/utilities.js +2 -5
- package/build/esm/packages/aurora/src/components/dropdown/utilities.js.map +1 -1
- package/build/esm/packages/aurora/src/components/hint/index.d.ts +3 -3
- package/build/esm/packages/aurora/src/components/hint/index.js +17 -21
- package/build/esm/packages/aurora/src/components/hint/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/tooltip/index.js +14 -18
- package/build/esm/packages/aurora/src/components/tooltip/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/tooltip/tooltip_types.d.ts +3 -3
- package/build/esm/packages/aurora/src/components/tooltip/tooltip_types.js +0 -1
- package/build/esm/packages/aurora/src/components/tooltip/tooltip_types.js.map +1 -1
- package/build/esm/packages/aurora/src/css/date_picker/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/css/dropdown/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/css/hint/main.module.less.js +3 -3
- package/build/esm/packages/aurora/src/css/modal/main.module.less.js +1 -1
- package/build/esm/packages/aurora/src/css/slide/main.module.less.js +1 -1
- package/build/esm/packages/aurora/src/css/tooltip/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/hooks/use_fixed_child_position.js +34 -31
- package/build/esm/packages/aurora/src/hooks/use_fixed_child_position.js.map +1 -1
- package/build/esm/packages/aurora/src/index.js +5 -5
- package/package.json +1 -1
- package/build/cjs/packages/aurora/src/components/tooltip/css_classes.js +0 -10
- package/build/cjs/packages/aurora/src/components/tooltip/css_classes.js.map +0 -1
- package/build/esm/packages/aurora/src/components/tooltip/css_classes.d.ts +0 -2
- package/build/esm/packages/aurora/src/components/tooltip/css_classes.js +0 -5
- package/build/esm/packages/aurora/src/components/tooltip/css_classes.js.map +0 -1
|
@@ -17,11 +17,11 @@ import Hint from '../../../hint/index.js';
|
|
|
17
17
|
* />
|
|
18
18
|
* )
|
|
19
19
|
*/
|
|
20
|
-
const ControlInput = ({ label, isRequired, id, name, value, placeholder, prefix, postfix, disabled, onChange, onKeyPress, onKeyUp, hint, errors, labelAdditionalInfo, additionalInfo, ...props }) => {
|
|
20
|
+
const ControlInput = ({ label, isRequired, id, name, value, placeholder, prefix, postfix, disabled, onChange, onKeyPress, onKeyUp, hint, hintOptions = { isFixed: true }, errors, labelAdditionalInfo, additionalInfo, ...props }) => {
|
|
21
21
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
22
22
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
23
23
|
label,
|
|
24
|
-
hint && React.createElement(Hint, {
|
|
24
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
25
25
|
React.createElement(Control.Content, null,
|
|
26
26
|
React.createElement(Control.Element, { prefix: prefix, postfix: postfix },
|
|
27
27
|
React.createElement(Control.Input, { id: id, name: name, value: value, placeholder: placeholder, disabled: disabled, onChange: onChange, onKeyPress: onKeyPress, onKeyUp: onKeyUp, ...props }))),
|
|
@@ -3,11 +3,11 @@ import Control from '../../index.js';
|
|
|
3
3
|
import Hint from '../../../hint/index.js';
|
|
4
4
|
import Multiple from '../../../dropdown/hoc/multiselect/index.js';
|
|
5
5
|
|
|
6
|
-
const ControlMultiSelect = ({ label, isRequired, id, name, defaultValues, options, isWithGroups, isWithSearch, defaultIsOpen, defaultCloseOnClick, isReadonly, isDisabled, onChange, onToggle, errors, hint, hasCloseIcon, labelAdditionalInfo }) => {
|
|
6
|
+
const ControlMultiSelect = ({ label, isRequired, id, name, defaultValues, options, isWithGroups, isWithSearch, defaultIsOpen, defaultCloseOnClick, isReadonly, isDisabled, onChange, onToggle, errors, hint, hintOptions = { isFixed: true }, hasCloseIcon, labelAdditionalInfo }) => {
|
|
7
7
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
8
8
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
9
9
|
label,
|
|
10
|
-
hint && React.createElement(Hint, {
|
|
10
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
11
11
|
React.createElement(Control.Content, null,
|
|
12
12
|
React.createElement(Control.Element, null,
|
|
13
13
|
React.createElement(Multiple, { key: name, name: name, options: options, defaultValues: defaultValues, isWithGroups: isWithGroups, isWithSearch: isWithSearch, defaultIsOpen: defaultIsOpen, defaultCloseOnClick: defaultCloseOnClick, isReadonly: isReadonly, isDisabled: isDisabled, onChange: onChange, onToggle: onToggle, hasCloseIcon: hasCloseIcon }))),
|
|
@@ -16,7 +16,7 @@ import Hint from '../../../hint/index.js';
|
|
|
16
16
|
* />
|
|
17
17
|
* )
|
|
18
18
|
*/
|
|
19
|
-
const ControlRadio = ({ id, label, hint, name, value, defaultChecked, checked, disabled, onClick, errors, labelAdditionalInfo }) => {
|
|
19
|
+
const ControlRadio = ({ id, label, hint, hintOptions = { isFixed: true }, name, value, defaultChecked, checked, disabled, onClick, errors, labelAdditionalInfo }) => {
|
|
20
20
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
21
21
|
React.createElement(Control.Content, null,
|
|
22
22
|
React.createElement(Control.Element, { type: "radio", verticalPosition: labelAdditionalInfo ? VERTICAL_POSITION.top : undefined },
|
|
@@ -24,7 +24,7 @@ const ControlRadio = ({ id, label, hint, name, value, defaultChecked, checked, d
|
|
|
24
24
|
React.createElement(Label, { additionalInfo: labelAdditionalInfo, htmlFor: id },
|
|
25
25
|
label,
|
|
26
26
|
" ",
|
|
27
|
-
hint && React.createElement(Hint, { hint: hint, spacingLeft: true })))),
|
|
27
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, hint: hint, spacingLeft: true })))),
|
|
28
28
|
React.createElement(Control.Errors, null)));
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -3,11 +3,11 @@ import Control from '../../index.js';
|
|
|
3
3
|
import Hint from '../../../hint/index.js';
|
|
4
4
|
import ControlRadio from '../control_radio/index.js';
|
|
5
5
|
|
|
6
|
-
const ControlRadioGroup = ({ id, name, onClick, checkedValue, defaultCheckedValue, label, hint, options, errors, isRequired, labelAdditionalInfo }) => {
|
|
6
|
+
const ControlRadioGroup = ({ id, name, onClick, checkedValue, defaultCheckedValue, label, hint, hintOptions = { isFixed: true }, options, errors, isRequired, labelAdditionalInfo }) => {
|
|
7
7
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
8
8
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
9
9
|
label,
|
|
10
|
-
hint && React.createElement(Hint, {
|
|
10
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
11
11
|
options.map(({ value, label, hint, disabled }) => (React.createElement(ControlRadio, { key: `RadioGroup${id}-RadioElement-${value}`, label: label, id: `RadioGroup${id}-Radio-${value}`, value: value, hint: hint, disabled: disabled, name: name, defaultChecked: defaultCheckedValue ? defaultCheckedValue === value : undefined, checked: checkedValue ? checkedValue === value : undefined, onClick: onClick }))),
|
|
12
12
|
React.createElement(Control.Errors, null)));
|
|
13
13
|
};
|
|
@@ -3,11 +3,11 @@ import Control from '../../index.js';
|
|
|
3
3
|
import Hint from '../../../hint/index.js';
|
|
4
4
|
import Range from '../../../range/index.js';
|
|
5
5
|
|
|
6
|
-
const ControlRange = ({ label, hint, isRequired, id, name, isDisabled, onChange, initialValue, step, max, min, errors, labelAdditionalInfo }) => {
|
|
6
|
+
const ControlRange = ({ label, hint, hintOptions = { isFixed: true }, isRequired, id, name, isDisabled, onChange, initialValue, step, max, min, errors, labelAdditionalInfo }) => {
|
|
7
7
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
8
8
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
9
9
|
label,
|
|
10
|
-
hint && React.createElement(Hint, {
|
|
10
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
11
11
|
React.createElement(Control.Content, null,
|
|
12
12
|
React.createElement(Control.Element, null,
|
|
13
13
|
React.createElement(Range, { initialValue: initialValue, key: name, name: name, isDisabled: isDisabled, onChange: onChange, max: max, min: min, step: step }))),
|
|
@@ -18,11 +18,11 @@ import Select from '../../../dropdown/hoc/select/index.js';
|
|
|
18
18
|
* />
|
|
19
19
|
* )
|
|
20
20
|
*/
|
|
21
|
-
const ControlSelect = ({ label, isRequired, id, name, defaultValues, options, isWithGroups, isWithSearch, defaultIsOpen, defaultCloseOnClick, isReadonly, isDisabled, onChange, onToggle, errors, hint, placeholder, additionalInfo, onScroll, innerAdditionalContent, hasCloseIcon, labelAdditionalInfo }) => {
|
|
21
|
+
const ControlSelect = ({ label, isRequired, id, name, defaultValues, options, isWithGroups, isWithSearch, defaultIsOpen, defaultCloseOnClick, isReadonly, isDisabled, onChange, onToggle, errors, hint, hintOptions = { isFixed: true }, placeholder, additionalInfo, onScroll, innerAdditionalContent, hasCloseIcon, labelAdditionalInfo }) => {
|
|
22
22
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
23
23
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
24
24
|
label,
|
|
25
|
-
hint && React.createElement(Hint, {
|
|
25
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
26
26
|
React.createElement(Control.Content, null,
|
|
27
27
|
React.createElement(Control.Element, null,
|
|
28
28
|
React.createElement(Select, { key: name, name: name, options: options, defaultValues: defaultValues, isWithGroups: isWithGroups, isWithSearch: isWithSearch, defaultIsOpen: defaultIsOpen, defaultCloseOnClick: defaultCloseOnClick, isReadonly: isReadonly, isDisabled: isDisabled, placeholder: placeholder, onChange: onChange, onToggle: onToggle, onScroll: onScroll, innerAdditionalContent: innerAdditionalContent, hasCloseIcon: hasCloseIcon }))),
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_tags_selector/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import Control from '../../index.js';
|
|
|
3
3
|
import Hint from '../../../hint/index.js';
|
|
4
4
|
import TagsSelector from '../../../tags_selector/index.js';
|
|
5
5
|
|
|
6
|
-
const ControlTagsSelector = ({ id, name, label, isRequired, placeholder, minTagLength, withList, defaultTags, defaultListTags, onChange, onListItemClick, errors, hint, labelAdditionalInfo }) => {
|
|
6
|
+
const ControlTagsSelector = ({ id, name, label, isRequired, placeholder, minTagLength, withList, defaultTags, defaultListTags, onChange, onListItemClick, errors, hint, hintOptions = { isFixed: true }, labelAdditionalInfo }) => {
|
|
7
7
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
8
8
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
9
9
|
label,
|
|
10
|
-
hint && React.createElement(Hint, {
|
|
10
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
11
11
|
React.createElement(Control.Content, null,
|
|
12
12
|
React.createElement(Control.Element, null,
|
|
13
13
|
React.createElement(TagsSelector, { id: id, name: name, placeholder: placeholder, minTagLength: minTagLength, withList: withList, defaultTags: defaultTags, tagsListValue: defaultListTags, onChange: onChange, onListItemClick: onListItemClick }))),
|
|
@@ -17,11 +17,11 @@ import Hint from '../../../hint/index.js';
|
|
|
17
17
|
* />
|
|
18
18
|
* )
|
|
19
19
|
*/
|
|
20
|
-
const ControlTextarea = React.forwardRef(({ label, isRequired, id, name, value, defaultValue, placeholder, disabled, readOnly, onChange, onFocus, onBlur, onKeyPress, errors, hint, labelAdditionalInfo }, ref) => {
|
|
20
|
+
const ControlTextarea = React.forwardRef(({ label, isRequired, id, name, value, defaultValue, placeholder, disabled, readOnly, onChange, onFocus, onBlur, onKeyPress, errors, hint, hintOptions = { isFixed: true }, labelAdditionalInfo }, ref) => {
|
|
21
21
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
22
22
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired, additionalInfo: labelAdditionalInfo },
|
|
23
23
|
label,
|
|
24
|
-
hint && React.createElement(Hint, {
|
|
24
|
+
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
25
25
|
React.createElement(Control.Content, null,
|
|
26
26
|
React.createElement(Control.Element, null,
|
|
27
27
|
React.createElement(Control.Textarea, { id: id, name: name, value: value, defaultValue: defaultValue, placeholder: placeholder, disabled: disabled, readOnly: readOnly, onChange: onChange, onFocus: onFocus, onBlur: onBlur, onKeyPress: onKeyPress, ref: ref }))),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes, InputHTMLAttributes,
|
|
1
|
+
import { HTMLAttributes, InputHTMLAttributes, ReactNode, Ref, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { IMultiSelectProps, ISelectProps } from "../dropdown/types";
|
|
3
3
|
import { IColorPickerProps } from "../color_picker/types";
|
|
4
4
|
import { IFilePicker } from "../file_picker/types";
|
|
5
5
|
import { IRange } from "../range/types";
|
|
6
|
-
import React from 'react';
|
|
7
6
|
import { TVerticalPosition } from "../../typings/general";
|
|
7
|
+
import React from 'react';
|
|
8
8
|
export declare type TControlErrors = string[] | null | undefined;
|
|
9
9
|
export interface IControlContext {
|
|
10
10
|
errors?: TControlErrors;
|
|
@@ -32,10 +32,14 @@ export interface IControlProps {
|
|
|
32
32
|
}
|
|
33
33
|
interface IControlCommonProps {
|
|
34
34
|
errors?: TControlErrors;
|
|
35
|
-
hint?: string
|
|
35
|
+
hint?: string;
|
|
36
|
+
hintOptions?: TControlHintOptions;
|
|
36
37
|
isRequired?: boolean;
|
|
37
38
|
additionalInfo?: string | ReactNode;
|
|
38
39
|
}
|
|
40
|
+
interface TControlHintOptions {
|
|
41
|
+
isFixed: boolean;
|
|
42
|
+
}
|
|
39
43
|
export interface IContentProps {
|
|
40
44
|
children: ReactNode;
|
|
41
45
|
}
|
|
@@ -3,6 +3,6 @@ import '@auroraComponents/dropdown/types';
|
|
|
3
3
|
import '@auroraComponents/color_picker/types';
|
|
4
4
|
import '@auroraComponents/file_picker/types';
|
|
5
5
|
import '@auroraComponents/range/types';
|
|
6
|
-
import 'react';
|
|
7
6
|
import '@auroraTypings/general';
|
|
7
|
+
import 'react';
|
|
8
8
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/components/controls/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/components/controls/types.ts"],"names":[],"mappings":"AAAA,OAA4F,OAAO,CAAC;AACpG,OAAgD,kCAAkC,CAAC;AAEnF,OAAkC,sCAAsC,CAAC;AACzE,OAA4B,qCAAqC,CAAC;AAClE,OAAuB,+BAA+B,CAAC;AACvD,OAAkC,wBAAwB,CAAC;AAC3D,OAAkB,OAAO,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext, useRef } from 'react';
|
|
2
2
|
import { useTranslation } from '../../../../../../external/react-i18next/dist/es/useTranslation.js';
|
|
3
3
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
4
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
5
4
|
import { cssDatePickerCommonRanges } from '../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
6
6
|
import Select from '../../dropdown/hoc/select/index.js';
|
|
7
7
|
import { getRanges } from '../utilities.js';
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ const CommonRanges = () => {
|
|
|
15
15
|
const onChange = ({ value }) => {
|
|
16
16
|
setValue(dateRanges[value]);
|
|
17
17
|
};
|
|
18
|
-
return (React.createElement("div", { className:
|
|
18
|
+
return (React.createElement("div", { className: cssClasses[cssDatePickerCommonRanges], ref: ref },
|
|
19
19
|
React.createElement(Select, { name: "common-ranges", options: availableOptions, onChange: onChange, portalContainer: ref })));
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
3
3
|
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
4
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
5
4
|
import { cssDatePickerDaysGrid, cssDatePickerDaysGridRow, cssDatePickerDaysGridWeekName } from '../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
6
6
|
import SingleDay from './single_day.js';
|
|
7
7
|
import useDateNames from '../hooks/use_date_names.js';
|
|
8
8
|
|
|
@@ -12,9 +12,9 @@ const DaysGrid = () => {
|
|
|
12
12
|
const firstWeekDay = (new Date(year, month, 1).getDay() + 6) % 7;
|
|
13
13
|
const { updateDate } = useContext(DatepickerContext);
|
|
14
14
|
const { weekNameShortcuts } = useDateNames();
|
|
15
|
-
return (React.createElement("div", { className:
|
|
16
|
-
React.createElement("div", { className:
|
|
17
|
-
React.createElement("div", { className: `${
|
|
15
|
+
return (React.createElement("div", { className: cssClasses[cssDatePickerDaysGrid] },
|
|
16
|
+
React.createElement("div", { className: cssClasses[cssDatePickerDaysGridRow] }, weekNameShortcuts.map((weekName, index) => (React.createElement("div", { className: cssClasses[cssDatePickerDaysGridWeekName], key: `week-name-${index}` }, weekName)))),
|
|
17
|
+
React.createElement("div", { className: `${cssClasses[cssDatePickerDaysGridRow]} ${animationClassName}` },
|
|
18
18
|
Array.from(Array(firstWeekDay).keys()).map((_, index) => (React.createElement("div", { key: `empty-day-${index}` }))),
|
|
19
19
|
Array.from(Array(daysInMonth).keys()).map((_, index) => (React.createElement(SingleDay, { date: index + 1, month: month, year: year, updateDate: updateDate, key: `day-${index}` }))))));
|
|
20
20
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
3
3
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
4
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
5
|
-
import { cssDatePickerLabelIcon } from '../css_classes.js';
|
|
6
4
|
import IconCalendar from '../../../assets/icon_calendar.js';
|
|
5
|
+
import { cssDatePickerLabelIcon } from '../css_classes.js';
|
|
6
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
7
7
|
|
|
8
8
|
const DatepickerLabel = ({ name }) => {
|
|
9
9
|
const { readable, inputValue } = useContext(DatepickerContext);
|
|
10
10
|
return (React.createElement(React.Fragment, null,
|
|
11
|
-
React.createElement(InputWrapper, { value: readable, preElements: React.createElement(IconCalendar, { className:
|
|
11
|
+
React.createElement(InputWrapper, { value: readable, preElements: React.createElement(IconCalendar, { className: cssClasses[cssDatePickerLabelIcon] }) }),
|
|
12
12
|
React.createElement("input", { type: "hidden", name: name, value: inputValue })));
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useContext, useRef } from 'react';
|
|
2
2
|
import Dropdown from '../../dropdown/index.js';
|
|
3
|
-
import { DATE_PICKER_TEST_ID } from '../constants.js';
|
|
4
3
|
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
5
|
-
import { useKeyboardNavigation } from '../hooks/use_keyboard_navigation.js';
|
|
6
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
7
4
|
import { cssDatePickerController, cssDatePickerControllerArrow, cssDatePickerControllerArrowLeft, cssDatePickerControllerTitle, cssDatePickerControllerArrowRight } from '../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
6
|
+
import { DATE_PICKER_TEST_ID } from '../constants.js';
|
|
7
|
+
import { useKeyboardNavigation } from '../hooks/use_keyboard_navigation.js';
|
|
8
8
|
import useDateNames from '../hooks/use_date_names.js';
|
|
9
9
|
import MonthYearPicker from './month_year_picker/index.js';
|
|
10
10
|
|
|
@@ -13,14 +13,14 @@ const MonthController = ({ month, year }) => {
|
|
|
13
13
|
const { monthNames } = useDateNames();
|
|
14
14
|
const controllerRef = useRef(null);
|
|
15
15
|
useKeyboardNavigation();
|
|
16
|
-
return (React.createElement("div", { className: `${
|
|
17
|
-
React.createElement("div", { onClick: previousMonth, className: `${
|
|
18
|
-
React.createElement("div", { className:
|
|
16
|
+
return (React.createElement("div", { className: `${cssClasses[cssDatePickerController]}`, ref: controllerRef, "data-test-id": DATE_PICKER_TEST_ID.controller },
|
|
17
|
+
React.createElement("div", { onClick: previousMonth, className: `${cssClasses[cssDatePickerControllerArrow]} ${cssClasses[cssDatePickerControllerArrowLeft]}`, "data-test-id": DATE_PICKER_TEST_ID.arrowLeft }),
|
|
18
|
+
React.createElement("div", { className: cssClasses[cssDatePickerControllerTitle] },
|
|
19
19
|
React.createElement(Dropdown, null,
|
|
20
20
|
React.createElement(Dropdown.Label, { cssClass: animationClassName, label: `${monthNames[month]} ${year}` }),
|
|
21
21
|
React.createElement(Dropdown.Content, { portalContainer: controllerRef },
|
|
22
22
|
React.createElement(MonthYearPicker, { month: month, year: year })))),
|
|
23
|
-
React.createElement("div", { onClick: nextMonth, className: `${
|
|
23
|
+
React.createElement("div", { onClick: nextMonth, className: `${cssClasses[cssDatePickerControllerArrow]} ${cssClasses[cssDatePickerControllerArrowRight]}`, "data-test-id": DATE_PICKER_TEST_ID.arrowRight })));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export default MonthController;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { DropdownContext } from '../../../../dropdown/context/index.js';
|
|
3
|
-
import { MONTHS_IN_YEAR } from '../../../constants.js';
|
|
4
3
|
import MonthYearNavigationContext from '../../../context/month_year_navigation_context.js';
|
|
5
|
-
import styles from '../../../../../css/date_picker/main.module.less.js';
|
|
6
4
|
import { cssDatePickerMonthTable, cssDatePickerMonthTableItem, cssDatePickerMonthTableItemSelected } from '../../../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../../../css/date_picker/main.module.less.js';
|
|
6
|
+
import { MONTHS_IN_YEAR } from '../../../constants.js';
|
|
7
7
|
import useDateNames from '../../../hooks/use_date_names.js';
|
|
8
8
|
|
|
9
9
|
const MonthView = () => {
|
|
@@ -14,7 +14,7 @@ const MonthView = () => {
|
|
|
14
14
|
setMonth(monthIndex);
|
|
15
15
|
toggleDropdown === null || toggleDropdown === void 0 ? void 0 : toggleDropdown();
|
|
16
16
|
};
|
|
17
|
-
return (React.createElement("div", { className:
|
|
17
|
+
return (React.createElement("div", { className: cssClasses[cssDatePickerMonthTable] }, Array.from(Array(MONTHS_IN_YEAR).keys()).map((index) => (React.createElement("span", { key: `month-picker-month-${index}`, onClick: onMonthClick(index), className: `${cssClasses[cssDatePickerMonthTableItem]} ${index === month ? cssClasses[cssDatePickerMonthTableItemSelected] : ''}` }, monthNameShortcuts[index])))));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export default MonthView;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import styles from '../../../../../css/date_picker/main.module.less.js';
|
|
3
2
|
import { cssDatePickerController, cssDatePickerControllerArrow, cssDatePickerControllerArrowLeft, cssDatePickerControllerTitle, cssDatePickerControllerArrowRight } from '../../../css_classes.js';
|
|
3
|
+
import cssClasses from '../../../../../css/date_picker/main.module.less.js';
|
|
4
4
|
import { MonthYearPickerContext } from '../context.js';
|
|
5
5
|
|
|
6
6
|
const MonthYearPickerController = () => {
|
|
7
7
|
const { onArrowLeft, onArrowRight, monthPickerTitle, toggleView } = useContext(MonthYearPickerContext);
|
|
8
|
-
return (React.createElement("div", { className:
|
|
9
|
-
React.createElement("div", { "data-test-id": "month-year-left-arrow", onClick: onArrowLeft, className: `${
|
|
10
|
-
React.createElement("div", { onClick: toggleView, className:
|
|
11
|
-
React.createElement("div", { "data-test-id": "month-year-right-arrow", onClick: onArrowRight, className: `${
|
|
8
|
+
return (React.createElement("div", { className: cssClasses[cssDatePickerController] },
|
|
9
|
+
React.createElement("div", { "data-test-id": "month-year-left-arrow", onClick: onArrowLeft, className: `${cssClasses[cssDatePickerControllerArrow]} ${cssClasses[cssDatePickerControllerArrowLeft]}` }),
|
|
10
|
+
React.createElement("div", { onClick: toggleView, className: cssClasses[cssDatePickerControllerTitle] }, monthPickerTitle),
|
|
11
|
+
React.createElement("div", { "data-test-id": "month-year-right-arrow", onClick: onArrowRight, className: `${cssClasses[cssDatePickerControllerArrow]} ${cssClasses[cssDatePickerControllerArrowRight]}` })));
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export default MonthYearPickerController;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useState } from 'react';
|
|
2
|
-
import { YEARS_IN_VIEW } from '../../../constants.js';
|
|
3
2
|
import MonthYearNavigationContext from '../../../context/month_year_navigation_context.js';
|
|
3
|
+
import { YEARS_IN_VIEW } from '../../../constants.js';
|
|
4
4
|
import { MonthYearPickerContext } from '../context.js';
|
|
5
5
|
import { MONTH_VIEW, YEARS_VIEW } from '../constants.js';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { YEARS_IN_VIEW } from '../../../constants.js';
|
|
3
2
|
import MonthYearNavigationContext from '../../../context/month_year_navigation_context.js';
|
|
4
|
-
import styles from '../../../../../css/date_picker/main.module.less.js';
|
|
5
3
|
import { cssDatePickerMonthTable, cssDatePickerMonthTableItem, cssDatePickerMonthTableItemSelected } from '../../../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../../../css/date_picker/main.module.less.js';
|
|
5
|
+
import { YEARS_IN_VIEW } from '../../../constants.js';
|
|
6
6
|
import { MonthYearPickerContext } from '../context.js';
|
|
7
7
|
import { MONTH_VIEW } from '../constants.js';
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ const YearView = () => {
|
|
|
13
13
|
setYear(yearRange + yearIndex);
|
|
14
14
|
setView(MONTH_VIEW);
|
|
15
15
|
};
|
|
16
|
-
return (React.createElement("div", { className:
|
|
16
|
+
return (React.createElement("div", { className: cssClasses[cssDatePickerMonthTable] }, Array.from(Array(YEARS_IN_VIEW).keys()).map((index) => (React.createElement("span", { key: `month-picker-month-${index}`, onClick: onYearClick(index), className: `${cssClasses[cssDatePickerMonthTableItem]} ${yearRange + index === year ? cssClasses[cssDatePickerMonthTableItemSelected] : ''}` }, yearRange + index)))));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export default YearView;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MAX_MONTH, MIN_MONTH } from '../constants.js';
|
|
3
2
|
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
4
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
5
|
-
import useAnimation from '../hooks/use_animation.js';
|
|
6
3
|
import { cssDatePickerContainer } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
5
|
+
import { MAX_MONTH, MIN_MONTH } from '../constants.js';
|
|
6
|
+
import useAnimation from '../hooks/use_animation.js';
|
|
7
7
|
import DaysGrid from './days_grid.js';
|
|
8
8
|
import MonthController from './month_controller.js';
|
|
9
9
|
|
|
@@ -38,7 +38,7 @@ const PureDatepicker = ({ className = '', setMonthYear, month, year }) => {
|
|
|
38
38
|
setMonthYearWithDelay(({ year }) => ({ month, year }));
|
|
39
39
|
};
|
|
40
40
|
const setYear = (year) => setMonthYearWithDelay(({ month }) => ({ month, year }));
|
|
41
|
-
return (React.createElement("div", { className: `${className} ${
|
|
41
|
+
return (React.createElement("div", { className: `${className} ${cssClasses[cssDatePickerContainer]}` },
|
|
42
42
|
React.createElement(MonthYearNavigationContext.Provider, { value: {
|
|
43
43
|
previousMonth: prevMonthWithAnimation,
|
|
44
44
|
nextMonth: nextMonthWithAnimation,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
2
|
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
3
|
-
import { DATE_PICKER_TEST_ID } from '../constants.js';
|
|
4
3
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
5
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
6
4
|
import { cssDatePickerDay, cssDatePickerDayNavigation, cssDatePickerDaySelected, cssDatePickerDayBlocked, cssDatePickerDayProposed, cssDatePickerDayRangeEndLeft, cssDatePickerDayRangeEndLeftProposed, cssDatePickerDayRangeEndRight, cssDatePickerDayRangeEndRightProposed, cssDatePickerDayInRange, cssDatePickerDayText, cssDatePickerDayTextRoundedBorders, cssDatePickerDayTextNavigation, cssDatePickerDayTextToday, cssDatePickerDayTextSelected } from '../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
6
|
+
import { DATE_PICKER_TEST_ID } from '../constants.js';
|
|
7
7
|
|
|
8
8
|
const SingleDay = ({ date, month, year }) => {
|
|
9
9
|
const { updateDate, isSelected, isInRange, isNavigation, isBlocked, isToday, setHoverDate, isProposed } = useContext(DatepickerContext);
|
|
@@ -32,7 +32,7 @@ const SingleDay = ({ date, month, year }) => {
|
|
|
32
32
|
lastRangeDay && proposed && cssDatePickerDayRangeEndRightProposed,
|
|
33
33
|
oneDayRange && cssDatePickerDaySelected,
|
|
34
34
|
inRange && cssDatePickerDayInRange
|
|
35
|
-
],
|
|
35
|
+
], cssClasses), [navigation, selected, blocked, proposed, inRange, firstRangeDay, lastRangeDay, oneDayRange]);
|
|
36
36
|
const dayTextClassName = useMemo(() => classNames([
|
|
37
37
|
cssDatePickerDayText,
|
|
38
38
|
roundedBorders && cssDatePickerDayTextRoundedBorders,
|
|
@@ -40,7 +40,7 @@ const SingleDay = ({ date, month, year }) => {
|
|
|
40
40
|
today && navigation && cssDatePickerDayTextNavigation,
|
|
41
41
|
today && cssDatePickerDayTextToday,
|
|
42
42
|
selected && cssDatePickerDayTextSelected
|
|
43
|
-
],
|
|
43
|
+
], cssClasses), [roundedBorders, selected, navigation, today]);
|
|
44
44
|
return (React.createElement("div", { className: dayClassName, onClick: () => updateDate(new Date(year, month, date)), onMouseOver: () => {
|
|
45
45
|
setHoverDate(new Date(year, month, date));
|
|
46
46
|
} },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext, useState, useEffect } from 'react';
|
|
2
2
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
3
|
-
import { useKeyboardNavigation } from '../hooks/use_keyboard_navigation.js';
|
|
4
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
5
3
|
import { cssRangePicker, cssRangePickerContainer } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
5
|
+
import { useKeyboardNavigation } from '../hooks/use_keyboard_navigation.js';
|
|
6
6
|
import { PureDatepicker } from '../components/pure_date_picker.js';
|
|
7
7
|
import CommonRanges from '../components/common_ranges.js';
|
|
8
8
|
import Buttons from '../components/buttons.js';
|
|
@@ -36,9 +36,9 @@ const RangePicker = ({ className = '', showButtons, showDefaultRanges }) => {
|
|
|
36
36
|
//eslint-disable-next-line
|
|
37
37
|
}, [setEarlierMonthYear, laterMonthYear.year, laterMonthYear.month]);
|
|
38
38
|
useKeyboardNavigation();
|
|
39
|
-
return (React.createElement("div", { className:
|
|
39
|
+
return (React.createElement("div", { className: cssClasses[cssRangePicker] },
|
|
40
40
|
showDefaultRanges && React.createElement(CommonRanges, null),
|
|
41
|
-
React.createElement("div", { className:
|
|
41
|
+
React.createElement("div", { className: cssClasses[cssRangePickerContainer] },
|
|
42
42
|
React.createElement(PureDatepicker, { setMonthYear: setEarlierMonthYear, ...earlierMonthYear, className: className }),
|
|
43
43
|
React.createElement(PureDatepicker, { setMonthYear: setLaterMonthYear, ...laterMonthYear, className: className })),
|
|
44
44
|
showButtons && React.createElement(Buttons, null)));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useState } from 'react';
|
|
2
2
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
3
|
-
import styles from '../../../css/date_picker/main.module.less.js';
|
|
4
3
|
import { cssDatePicker } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
5
5
|
import { PureDatepicker } from '../components/pure_date_picker.js';
|
|
6
6
|
import Buttons from '../components/buttons.js';
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ const SingleDatepicker = ({ className, showButtons }) => {
|
|
|
13
13
|
year: currentDate.getFullYear()
|
|
14
14
|
});
|
|
15
15
|
return (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement("div", { className:
|
|
16
|
+
React.createElement("div", { className: cssClasses[cssDatePicker] },
|
|
17
17
|
React.createElement(PureDatepicker, { setMonthYear: setMonthYear, month: month, year: year, className: className }),
|
|
18
18
|
showButtons && React.createElement(Buttons, null))));
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import useValueController from './hooks/use_value_controller.js';
|
|
3
2
|
import DatepickerContext from './context/value_controller_context.js';
|
|
3
|
+
import useValueController from './hooks/use_value_controller.js';
|
|
4
4
|
import { RangePicker } from './hoc/range_picker.js';
|
|
5
5
|
export { RangePicker } from './hoc/range_picker.js';
|
|
6
6
|
import { SingleDatepicker } from './hoc/single_date_picker.js';
|