@dreamcommerce/aurora 2.1.8 → 2.1.10
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/color_picker/components/label.js +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/components/label.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/components/helper.js +7 -2
- package/build/cjs/packages/aurora/src/components/controls/components/helper.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/components/radio.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/css_classes.js +3 -1
- package/build/cjs/packages/aurora/src/components/controls/css_classes.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_cell_selector/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_checkbox/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_input/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_textarea/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/label.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/components/month_controller.js +1 -1
- package/build/cjs/packages/aurora/src/components/date_picker/hooks/use_keyboard_navigation.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/utilities.js +1 -1
- package/build/cjs/packages/aurora/src/components/flash_messenger/components/flash_message.js +2 -2
- package/build/cjs/packages/aurora/src/components/link/css_classes.js +8 -0
- package/build/cjs/packages/aurora/src/components/link/css_classes.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/link/index.js +21 -0
- package/build/cjs/packages/aurora/src/components/link/index.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/loader/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/modal/hoc/relative_modal/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/range/index.js +1 -1
- package/build/cjs/packages/aurora/src/components/range/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/css/helper/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/css/link/main.module.less.js +12 -0
- package/build/cjs/packages/aurora/src/css/link/main.module.less.js.map +1 -0
- package/build/cjs/packages/aurora/src/hooks/use_screen_detect.js +1 -1
- package/build/cjs/packages/aurora/src/index.js +51 -49
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/label.js +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/label.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/index.js +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/components/helper.d.ts +2 -1
- package/build/esm/packages/aurora/src/components/controls/components/helper.js +7 -3
- package/build/esm/packages/aurora/src/components/controls/components/helper.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/components/radio.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/css_classes.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/controls/css_classes.js +3 -2
- package/build/esm/packages/aurora/src/components/controls/css_classes.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_cell_selector/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_checkbox/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_input/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_textarea/index.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/types.d.ts +4 -1
- package/build/esm/packages/aurora/src/components/date_picker/components/label.js +1 -1
- package/build/esm/packages/aurora/src/components/date_picker/components/month_controller.js +1 -1
- package/build/esm/packages/aurora/src/components/date_picker/hooks/use_keyboard_navigation.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/utilities.js +1 -1
- package/build/esm/packages/aurora/src/components/flash_messenger/components/flash_message.js +2 -2
- package/build/esm/packages/aurora/src/components/link/css_classes.d.ts +0 -1
- package/build/esm/packages/aurora/src/components/link/css_classes.js +4 -3
- package/build/esm/packages/aurora/src/components/link/css_classes.js.map +1 -1
- package/build/esm/packages/aurora/src/components/link/index.js +9 -8
- package/build/esm/packages/aurora/src/components/link/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/loader/index.js +1 -1
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +2 -2
- package/build/esm/packages/aurora/src/components/modal/hoc/relative_modal/index.js +2 -2
- package/build/esm/packages/aurora/src/components/range/index.js +1 -1
- package/build/esm/packages/aurora/src/components/range/index.js.map +1 -1
- package/build/esm/packages/aurora/src/css/helper/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/css/link/main.module.less.js +8 -0
- package/build/esm/packages/aurora/src/css/link/main.module.less.js.map +1 -0
- package/build/esm/packages/aurora/src/hooks/use_screen_detect.js +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +50 -49
- package/build/esm/packages/aurora/src/index.js +25 -24
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useRef, useEffect } from 'react';
|
|
2
|
+
import { createUseStyles } from '../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
2
3
|
import { cssColorPicker, cssColorPickerPreviewContainer, cssColorPickerPreview, cssColorPickerInputContainer } from './css_classes.js';
|
|
3
4
|
import { getColorFromHex, getIndicatorPositionsFromHEX } from './utilities.js';
|
|
4
5
|
import styles from '../../css/color_picker/main.module.less.js';
|
|
@@ -7,7 +8,6 @@ import { ColorPickerContext } from './context.js';
|
|
|
7
8
|
import HuePicker from './components/hue_picker.js';
|
|
8
9
|
import Input from '../controls/components/input.js';
|
|
9
10
|
import SaturationLightnessPicker from './components/saturation_lightness_picker.js';
|
|
10
|
-
import { createUseStyles } from '../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
11
11
|
import { useColorPicker } from './use_color_picker.js';
|
|
12
12
|
import withTranslation from '../../utilities/translation/with_translation.js';
|
|
13
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,gCAAgC,yDAA6D;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { cssHelper, cssHelperError } from '../css_classes.js';
|
|
3
4
|
import cssStyles from '../../../css/helper/main.module.less.js';
|
|
4
5
|
|
|
5
|
-
const Helper = ({ children }) => {
|
|
6
|
-
|
|
6
|
+
const Helper = ({ children, hasError }) => {
|
|
7
|
+
const helperClassNames = classnames(cssStyles[cssHelper], {
|
|
8
|
+
[cssStyles[cssHelperError]]: hasError
|
|
9
|
+
});
|
|
10
|
+
return React.createElement("p", { className: helperClassNames }, children);
|
|
7
11
|
};
|
|
8
12
|
|
|
9
13
|
export default Helper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
2
3
|
import classnames from 'classnames';
|
|
3
4
|
import { radio, radioDisabled, radioControl, radioLabel } from '../css_classes.js';
|
|
4
5
|
import cssStyles from '../../../css/radio/main.module.less.js';
|
|
5
|
-
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
6
6
|
|
|
7
7
|
const Radio = ({ id, name, value, checked, defaultChecked = false, disabled, onClick }) => {
|
|
8
8
|
const radioClasses = classnames(radio, {
|
|
@@ -39,7 +39,8 @@ const cellSelectorContainer = `${cellSelector}__container`;
|
|
|
39
39
|
const cellSelectorRow = `${cellSelector}__row`;
|
|
40
40
|
const cellSelectorCell = `${cellSelector}__cell`;
|
|
41
41
|
const cellSelectorCellActive = `${cellSelectorCell}_active`;
|
|
42
|
-
const cssHelper = 'helper';
|
|
42
|
+
const cssHelper = 'helper';
|
|
43
|
+
const cssHelperError = `${cssHelper}_error`;
|
|
43
44
|
|
|
44
|
-
export { cellSelector, cellSelectorCell, cellSelectorCellActive, cellSelectorContainer, cellSelectorRow, checkbox, checkboxControl, checkboxDisabled, checkboxIcon, checkboxLabel, checkboxSwitch, checkboxSwitchControl, checkboxSwitchDisabled, checkboxSwitchIcon, checkboxSwitchLabel, cssControl, cssControlDisabled, cssControlError, cssControlFocus, cssControlInput, cssControlReadonly, cssControlS, cssControlWrapper, cssControls, cssControlsAdditionalInfo, cssControlsContent, cssControlsElement, cssControlsElementCheckbox, cssControlsElementPostfix, cssControlsElementPrefix, cssControlsElementRadio, cssControlsElementVerticalAlignTop, cssControlsError, cssControlsErrors, cssControlsErrorsList, cssControlsErrorsListItem, cssControlsLabel, cssHelper, radio, radioControl, radioDisabled, radioLabel };
|
|
45
|
+
export { cellSelector, cellSelectorCell, cellSelectorCellActive, cellSelectorContainer, cellSelectorRow, checkbox, checkboxControl, checkboxDisabled, checkboxIcon, checkboxLabel, checkboxSwitch, checkboxSwitchControl, checkboxSwitchDisabled, checkboxSwitchIcon, checkboxSwitchLabel, cssControl, cssControlDisabled, cssControlError, cssControlFocus, cssControlInput, cssControlReadonly, cssControlS, cssControlWrapper, cssControls, cssControlsAdditionalInfo, cssControlsContent, cssControlsElement, cssControlsElementCheckbox, cssControlsElementPostfix, cssControlsElementPrefix, cssControlsElementRadio, cssControlsElementVerticalAlignTop, cssControlsError, cssControlsErrors, cssControlsErrorsList, cssControlsErrorsListItem, cssControlsLabel, cssHelper, cssHelperError, radio, radioControl, radioDisabled, radioLabel };
|
|
45
46
|
//# sourceMappingURL=css_classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_cell_selector/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import CellSelector from '../../components/cell_selector.js';
|
|
2
3
|
import Control from '../../index.js';
|
|
3
4
|
import Hint from '../../../hint/index.js';
|
|
4
|
-
import CellSelector from '../../components/cell_selector.js';
|
|
5
5
|
|
|
6
6
|
const ControlCellSelector = ({ label, isRequired, id, name, errors, onChange, cols, initialSelected, rows, withValueOffset, className, hint, hintOptions = { isFixed: true } }) => {
|
|
7
7
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
@@ -20,7 +20,7 @@ const ControlCheckbox = ({ id, hint, hintOptions = { isFixed: true }, label, nam
|
|
|
20
20
|
(labelTop || hintTop) && (React.createElement(Control.Label, { id: id, isRequired: isRequired },
|
|
21
21
|
labelTop,
|
|
22
22
|
hintTop && React.createElement(Hint, { fixed: hintTopOptions.isFixed, spacingLeft: true, hint: hintTop }))),
|
|
23
|
-
helper && React.createElement(Control.Helper, null, helper),
|
|
23
|
+
helper && React.createElement(Control.Helper, { hasError: !!(errors === null || errors === void 0 ? void 0 : errors.length) }, helper),
|
|
24
24
|
React.createElement(Control.Content, null,
|
|
25
25
|
React.createElement(Control.Element, { type: "checkbox" },
|
|
26
26
|
React.createElement(Control.Checkbox, { id: id, name: name, value: value, initiallyChecked: initiallyChecked, disabled: disabled, onChange: onChange }),
|
|
@@ -5,8 +5,8 @@ import withTranslation from '../../../../utilities/translation/with_translation.
|
|
|
5
5
|
import { PureColorPicker } from '../../../color_picker/index.js';
|
|
6
6
|
import Control from '../../index.js';
|
|
7
7
|
import Hint from '../../../hint/index.js';
|
|
8
|
-
import Dropdown from '../../../dropdown/index.js';
|
|
9
8
|
import ColorPickerLabel from '../../../color_picker/components/label.js';
|
|
9
|
+
import Dropdown from '../../../dropdown/index.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @component
|
|
@@ -2,8 +2,8 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import withTranslation from '../../../../utilities/translation/with_translation.js';
|
|
3
3
|
import Control from '../../index.js';
|
|
4
4
|
import Hint from '../../../hint/index.js';
|
|
5
|
-
import DatepickerContext from '../../../date_picker/context/value_controller_context.js';
|
|
6
5
|
import Dropdown from '../../../dropdown/index.js';
|
|
6
|
+
import DatepickerContext from '../../../date_picker/context/value_controller_context.js';
|
|
7
7
|
import DatepickerLabel from '../../../date_picker/components/label.js';
|
|
8
8
|
import useValueController from '../../../date_picker/hooks/use_value_controller.js';
|
|
9
9
|
import { RangePicker } from '../../../date_picker/hoc/range_picker.js';
|
|
@@ -22,7 +22,7 @@ const ControlInput = ({ label, isRequired, id, name, value, placeholder, prefix,
|
|
|
22
22
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired },
|
|
23
23
|
label,
|
|
24
24
|
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
25
|
-
helper && React.createElement(Control.Helper, null, helper),
|
|
25
|
+
helper && React.createElement(Control.Helper, { hasError: !!(errors === null || errors === void 0 ? void 0 : errors.length) }, helper),
|
|
26
26
|
React.createElement(Control.Content, null,
|
|
27
27
|
React.createElement(Control.Element, { prefix: prefix, postfix: postfix },
|
|
28
28
|
React.createElement(Control.Input, { id: id, name: name, value: value, placeholder: placeholder, disabled: disabled, onChange: onChange, onKeyPress: onKeyPress, onKeyUp: onKeyUp, ...props }))),
|
|
@@ -22,7 +22,7 @@ const ControlTextarea = React.forwardRef(({ label, isRequired, id, name, value,
|
|
|
22
22
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired },
|
|
23
23
|
label,
|
|
24
24
|
hint && React.createElement(Hint, { fixed: hintOptions.isFixed, spacingLeft: true, hint: hint }))),
|
|
25
|
-
helper && React.createElement(Control.Helper, null, helper),
|
|
25
|
+
helper && React.createElement(Control.Helper, { hasError: !!(errors === null || errors === void 0 ? void 0 : errors.length) }, helper),
|
|
26
26
|
React.createElement(Control.Content, null,
|
|
27
27
|
React.createElement(Control.Element, null,
|
|
28
28
|
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 }))),
|
|
@@ -21,7 +21,7 @@ export interface IControlComposition {
|
|
|
21
21
|
Textarea: React.FC<ITextareaProps>;
|
|
22
22
|
Errors: React.FC;
|
|
23
23
|
AdditionalInfo: React.FC;
|
|
24
|
-
Helper: React.FC<
|
|
24
|
+
Helper: React.FC<IControlHelperProps>;
|
|
25
25
|
}
|
|
26
26
|
export interface IControlProps {
|
|
27
27
|
children: ReactNode;
|
|
@@ -179,4 +179,7 @@ export interface IControlCellSelector extends ICellSelector, IControlCommonProps
|
|
|
179
179
|
id?: string;
|
|
180
180
|
isRequired?: boolean;
|
|
181
181
|
}
|
|
182
|
+
export interface IControlHelperProps {
|
|
183
|
+
hasError?: boolean;
|
|
184
|
+
}
|
|
182
185
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import DatepickerContext from '../context/value_controller_context.js';
|
|
3
2
|
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
3
|
+
import DatepickerContext from '../context/value_controller_context.js';
|
|
4
4
|
import IconCalendar from '../../../assets/icon_calendar.js';
|
|
5
5
|
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
6
6
|
import { cssDatePickerLabelIcon } from '../css_classes.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useRef } from 'react';
|
|
2
|
-
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
3
2
|
import Dropdown from '../../dropdown/index.js';
|
|
3
|
+
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
4
4
|
import cssClasses from '../../../css/date_picker/main.module.less.js';
|
|
5
5
|
import { cssDatePickerController, cssDatePickerControllerArrow, cssDatePickerControllerArrowLeft, cssDatePickerControllerTitle, cssDatePickerControllerArrowRight } from '../css_classes.js';
|
|
6
6
|
import { DATE_PICKER_TEST_ID } from '../constants.js';
|
package/build/esm/packages/aurora/src/components/date_picker/hooks/use_keyboard_navigation.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
2
|
import { DropdownContext } from '../../dropdown/context/index.js';
|
|
3
|
+
import { useKeyDown } from '../../../hooks/use_key_down.js';
|
|
3
4
|
import DatepickerContext from '../context/value_controller_context.js';
|
|
4
5
|
import MonthYearNavigationContext from '../context/month_year_navigation_context.js';
|
|
5
|
-
import { useKeyDown } from '../../../hooks/use_key_down.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Hook to bind keyboard keys to navigate date
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { useTranslation } from '../../../../../../external/react-i18next/dist/es/useTranslation.js';
|
|
3
|
+
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
4
|
+
import { createPortal } from 'react-dom';
|
|
3
5
|
import { useDropdownContext } from '../context/index.js';
|
|
4
6
|
import { SCREEN_XS } from '../../../constants/responsive_breakpoints.js';
|
|
5
7
|
import { useScreenDetect } from '../../../hooks/use_screen_detect.js';
|
|
6
8
|
import withTranslation from '../../../utilities/translation/with_translation.js';
|
|
7
9
|
import iconCssClasses from '../../../css/icons/main.module.less.js';
|
|
8
|
-
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
9
10
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
10
11
|
import { DROPDOWN_Z_INDEX, DROPDOWN_ON_MODAL_Z_INDEX } from '../constants.js';
|
|
11
12
|
import { cssDropdownContent, cssDropdownArrowHorizontalDirectionRight, cssDropdownArrowVerticalDirectionBottom, cssDropdownHeader, cssDropdownHeaderContent, cssDropdownHeaderTitle } from '../css_classes.js';
|
|
@@ -13,7 +14,6 @@ import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
|
13
14
|
import { getXYModifiersForNestedDropdowns, isChildOfModal } from '../utilities.js';
|
|
14
15
|
import { useClickOutside } from '../../../hooks/use_click_outside.js';
|
|
15
16
|
import IconArrow from '../../../assets/icon_arrow.js';
|
|
16
|
-
import { createPortal } from 'react-dom';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Dropdown.Content component. This togglable part of dropdown.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useDropdownContext } from '../context/index.js';
|
|
3
|
+
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
3
4
|
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
5
|
import { useKeyboardOpenClose } from '../hooks/use_keyboard_open_close.js';
|
|
5
|
-
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Dropdown.Select component. Displays select like control. Use it only if you have selectable values.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import cssClasses$1 from '../../css/modal/main.module.less.js';
|
|
2
3
|
import { cssDropdownContent } from './css_classes.js';
|
|
3
4
|
import { fuzzySearch } from '../../utilities/fuzzy_search/fuzzy_search.js';
|
|
4
5
|
import cssClasses from '../../css/dropdown/main.module.less.js';
|
|
5
|
-
import cssClasses$1 from '../../css/modal/main.module.less.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* checks if the given option is selected within array of selectedValues array
|
package/build/esm/packages/aurora/src/components/flash_messenger/components/flash_message.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { CSSTransition } from 'react-transition-group';
|
|
3
|
-
import Grid from '../../grid/index.js';
|
|
4
|
-
import IconClose from '../../../assets/icon_close.js';
|
|
5
3
|
import cssClasses from '../../../css/flash_message/main.module.less.js';
|
|
6
4
|
import { useFlashMessenger } from '../context.js';
|
|
7
5
|
import MessageBox from '../../message-box/index.js';
|
|
6
|
+
import IconClose from '../../../assets/icon_close.js';
|
|
7
|
+
import Grid from '../../grid/index.js';
|
|
8
8
|
|
|
9
9
|
const FlashMessage = ({ message }) => {
|
|
10
10
|
const { removeMessage, hideMessage } = useFlashMessenger();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const cssLink = 'link';
|
|
2
|
+
|
|
3
|
+
export { cssLink };
|
|
4
|
+
//# sourceMappingURL=css_classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import '
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const Link = ({ href, id, className, onClick, children, ...props }) => {
|
|
7
|
-
const linkClass =
|
|
8
|
-
return (React.createElement("a", { ...props, id: id, className: `${linkClass}`, href: href, onClick: onClick }, children));
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { cssLink } from './css_classes.js';
|
|
4
|
+
import linkStyles from '../../css/link/main.module.less.js';
|
|
5
|
+
|
|
6
|
+
const Link = ({ href, id, className, onClick, children, ...props }) => {
|
|
7
|
+
const linkClass = classnames(linkStyles[cssLink]);
|
|
8
|
+
return (React.createElement("a", { ...props, id: id, className: `${linkClass}`, href: href, onClick: onClick }, children));
|
|
9
9
|
};
|
|
10
|
+
|
|
10
11
|
export default Link;
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import cssClasses from '../../css/loader/main.module.less.js';
|
|
4
3
|
import { cssLoader } from './css_classes.js';
|
|
5
4
|
import { LOADER_SIZE_CSS_CLASS_MAP, LOADER_SIZE } from './constants.js';
|
|
5
|
+
import cssClasses from '../../css/loader/main.module.less.js';
|
|
6
6
|
|
|
7
7
|
const Loader = ({ size }) => {
|
|
8
8
|
const loaderClasses = classnames(cssClasses[cssLoader], size ? cssClasses[LOADER_SIZE_CSS_CLASS_MAP[size]] : '');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
3
|
import { createUseStyles } from '../../../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
4
4
|
import cssClasses from '../../../../css/modal/main.module.less.js';
|
|
5
|
-
import { createPortal } from 'react-dom';
|
|
6
5
|
import Modal from '../../components/modal.js';
|
|
7
6
|
import { calculateAbsolutePosition, getTransformFromAnimationDirection } from '../../utilities.js';
|
|
8
7
|
import { DEFAULT_TRANSLATE_MOVE } from '../../constants.js';
|
|
8
|
+
import { useResize } from '../../../../hooks/use_resize.js';
|
|
9
9
|
|
|
10
10
|
const useStyles = createUseStyles({
|
|
11
11
|
modal: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
3
|
import { createUseStyles } from '../../../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
4
4
|
import cssClasses from '../../../../css/modal/main.module.less.js';
|
|
5
|
-
import { createPortal } from 'react-dom';
|
|
6
5
|
import Modal from '../../components/modal.js';
|
|
7
6
|
import { calculateRelativePosition, getTransformFromAnimationDirection } from '../../utilities.js';
|
|
8
7
|
import { DEFAULT_TRANSLATE_MOVE } from '../../constants.js';
|
|
8
|
+
import { useResize } from '../../../../hooks/use_resize.js';
|
|
9
9
|
|
|
10
10
|
const useStyles = createUseStyles({
|
|
11
11
|
modal: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { createUseStyles } from '../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
2
3
|
import { getIndicatorPositionFromPosition } from '../../utilities/range/range_mappings.js';
|
|
3
4
|
import { mapMouseEventToPosition, registerOnMouseEvents, mapTouchEventToPosition, registerOnTouchEvents } from '../../utilities/events/event_registration.js';
|
|
4
|
-
import { createUseStyles } from '../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
5
5
|
import styles from '../../css/range/main.module.less.js';
|
|
6
6
|
import CSS_CLASSES from './css_classes.js';
|
|
7
7
|
import { getPositionFromValue, getValueFromPosition } from './utilities.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,gCAAgC,yDAA6D;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_helper__ZHmAY {\n font-size: 12px;\n font-size: 0.8571428571428571rem;\n line-height: 15px;\n color: #5c657e;\n margin-bottom: 0.25rem;\n}\n";
|
|
4
|
-
var cssStyles = {"helper":"main-module_helper__ZHmAY"};
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_helper__ZHmAY {\n font-size: 12px;\n font-size: 0.8571428571428571rem;\n line-height: 15px;\n color: #5c657e;\n margin-bottom: 0.25rem;\n}\n.main-module_helper_error__2BM0j {\n color: #e60c54;\n}\n";
|
|
4
|
+
var cssStyles = {"helper":"main-module_helper__ZHmAY","helper_error":"main-module_helper_error__2BM0j"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export default cssStyles;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n/** Form Variables */\n/** Errors */\n.main-module_link__3lHdS {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n margin-top: 0.25rem;\n color: #135cc8;\n text-decoration: none;\n}\n.main-module_link__3lHdS * {\n color: #135cc8;\n fill: #135cc8;\n}\n.main-module_link__3lHdS:hover {\n text-decoration: underline;\n -webkit-text-decoration-color: #135cc8;\n text-decoration-color: #135cc8;\n cursor: pointer;\n}\n";
|
|
4
|
+
var linkStyles = {"link":"main-module_link__3lHdS"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export default linkStyles;
|
|
8
|
+
//# sourceMappingURL=main.module.less.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,wBAAwB,8DAAkE;AAC1F;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { breakpoints } from '../constants/responsive_breakpoints.js';
|
|
3
2
|
import { useResize } from './use_resize.js';
|
|
3
|
+
import { breakpoints } from '../constants/responsive_breakpoints.js';
|
|
4
4
|
|
|
5
5
|
const useScreenDetect = () => {
|
|
6
6
|
const [screenName, setScreenName] = useState('');
|
|
@@ -1,86 +1,87 @@
|
|
|
1
1
|
import './i18n';
|
|
2
|
+
import { ICellProps, IIRowProps, ITableProps } from "./components/table/types";
|
|
3
|
+
/**
|
|
4
|
+
* import types for export
|
|
5
|
+
*/
|
|
6
|
+
import { IDropdownProps, ISelectOption } from "./components/dropdown/types";
|
|
7
|
+
import { TFlashMessage, TFlashMessageExtended } from "./components/flash_messenger/types";
|
|
8
|
+
import { TabItem, Tabs } from "./components/tabs";
|
|
9
|
+
import AbsoluteModal from "./components/modal/hoc/absolute_modal";
|
|
2
10
|
/**
|
|
3
11
|
* import components for export
|
|
4
12
|
*/
|
|
5
13
|
import Button from "./components/button";
|
|
6
14
|
import ButtonsGroup from "./components/buttons_group";
|
|
7
15
|
import ColorPicker from "./components/color_picker";
|
|
8
|
-
import
|
|
16
|
+
import ControlCellSelector from "./components/controls/hoc/control_cell_selector";
|
|
9
17
|
import ControlCheckbox from "./components/controls/hoc/control_checkbox";
|
|
10
18
|
import ControlCheckboxSwitch from "./components/controls/hoc/control_checkbox_switch";
|
|
19
|
+
import ControlColorPicker from "./components/controls/hoc/control_color_picker";
|
|
20
|
+
import ControlDatepicker from "./components/controls/hoc/control_date_picker";
|
|
21
|
+
import ControlFilePicker from "./components/controls/hoc/control_file_picker";
|
|
22
|
+
import ControlInput from "./components/controls/hoc/control_input";
|
|
23
|
+
import ControlMultiSelect from "./components/controls/hoc/control_multi_select";
|
|
11
24
|
import ControlRadio from "./components/controls/hoc/control_radio";
|
|
25
|
+
import ControlRadioGroup from "./components/controls/hoc/control_radio_group";
|
|
12
26
|
import ControlRange from "./components/controls/hoc/control_range";
|
|
13
|
-
import
|
|
14
|
-
import ControlColorPicker from "./components/controls/hoc/control_color_picker";
|
|
27
|
+
import ControlSelect from "./components/controls/hoc/control_select";
|
|
15
28
|
import ControlTagsSelector from "./components/controls/hoc/control_tags_selector";
|
|
16
29
|
import ControlTextarea from "./components/controls/hoc/control_textarea";
|
|
17
|
-
import
|
|
18
|
-
import ControlMultiSelect from "./components/controls/hoc/control_multi_select";
|
|
19
|
-
import ControlFilePicker from "./components/controls/hoc/control_file_picker";
|
|
20
|
-
import ControlCellSelector from "./components/controls/hoc/control_cell_selector";
|
|
30
|
+
import DataTable from "./components/table/hoc/data-table";
|
|
21
31
|
import Datepicker from "./components/date_picker";
|
|
22
32
|
import Dropdown from "./components/dropdown";
|
|
33
|
+
/**
|
|
34
|
+
* import context for export
|
|
35
|
+
*/
|
|
36
|
+
import { DropdownContext } from "./components/dropdown/context";
|
|
37
|
+
import FilePicker from "./components/file_picker";
|
|
38
|
+
import FlashMessagesList from "./components/flash_messenger/components/flash_messages_list";
|
|
39
|
+
import FlashMessenger from "./components/flash_messenger";
|
|
40
|
+
import { FlashMessengerContext } from "./components/flash_messenger/context";
|
|
23
41
|
import Gallery from "./components/gallery";
|
|
24
42
|
import Grid from "./components/grid";
|
|
25
43
|
import Heading from "./components/heading";
|
|
26
|
-
import Label from "./components/label";
|
|
27
|
-
import FilePicker from "./components/file_picker";
|
|
28
|
-
import ModalProvider from "./components/modal/hoc/modal_provider";
|
|
29
|
-
import AbsoluteModal from "./components/modal/hoc/absolute_modal";
|
|
30
|
-
import RelativeModal from "./components/modal/hoc/relative_modal";
|
|
31
|
-
import MultiSelect from "./components/dropdown/hoc/multiselect";
|
|
32
|
-
import Modal from "./components/modal";
|
|
33
|
-
import Select from "./components/dropdown/hoc/select";
|
|
34
|
-
import Spacing from "./components/spacing";
|
|
35
|
-
import Table from "./components/table";
|
|
36
|
-
import DataTable from "./components/table/hoc/data-table";
|
|
37
|
-
import { TabItem, Tabs } from "./components/tabs";
|
|
38
|
-
import Tag from "./components/tag";
|
|
39
|
-
import TagsSelector from "./components/tags_selector";
|
|
40
44
|
import Hint from "./components/hint";
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
+
import { IColor } from "./components/color_picker/types";
|
|
46
|
+
import { IControlRadioGroupOption } from "./components/controls/types";
|
|
47
|
+
import { IDatepickerRange } from "./components/date_picker/types";
|
|
48
|
+
import { IDropdownContext } from "./components/dropdown/context/types";
|
|
49
|
+
import { IHeadingProps } from "./components/heading/types";
|
|
50
|
+
import { ILoaderProps } from "./components/loader/types";
|
|
51
|
+
import { IWithLoader } from "./components/with_loader/types";
|
|
52
|
+
import IconArrow from "./assets/icon_arrow";
|
|
45
53
|
/**
|
|
46
54
|
* Assets
|
|
47
55
|
*/
|
|
48
56
|
import IconCalendar from "./assets/icon_calendar";
|
|
49
|
-
import IconArrow from "./assets/icon_arrow";
|
|
50
57
|
import IconTick from "./assets/icon_tick";
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
import
|
|
58
|
+
import Label from "./components/label";
|
|
59
|
+
import Link from "./components/link";
|
|
60
|
+
import Loader from "./components/loader";
|
|
61
|
+
import MessageBox from "./components/message-box";
|
|
62
|
+
import Modal from "./components/modal";
|
|
55
63
|
import { ModalContext } from "./components/modal/context/modal_context";
|
|
56
|
-
import
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
import
|
|
61
|
-
import { IHeadingProps } from "./components/heading/types";
|
|
62
|
-
import { ICellProps, IIRowProps, ITableProps } from "./components/table/types";
|
|
63
|
-
import { IDropdownContext } from "./components/dropdown/context/types";
|
|
64
|
-
import ControlRadioGroup from "./components/controls/hoc/control_radio_group";
|
|
65
|
-
import { IControlRadioGroupOption } from "./components/controls/types";
|
|
66
|
-
import { IColor } from "./components/color_picker/types";
|
|
67
|
-
import { IDatepickerRange } from "./components/date_picker/types";
|
|
64
|
+
import ModalProvider from "./components/modal/hoc/modal_provider";
|
|
65
|
+
import MultiSelect from "./components/dropdown/hoc/multiselect";
|
|
66
|
+
import RelativeModal from "./components/modal/hoc/relative_modal";
|
|
67
|
+
import Select from "./components/dropdown/hoc/select";
|
|
68
|
+
import Spacing from "./components/spacing";
|
|
68
69
|
import { TFilePickerFile } from "./components/file_picker/types";
|
|
69
|
-
import MessageBox from "./components/message-box";
|
|
70
|
-
import FlashMessenger from "./components/flash_messenger";
|
|
71
70
|
import { TMessageBoxType } from "./components/message-box/types";
|
|
71
|
+
import Table from "./components/table";
|
|
72
|
+
import Tag from "./components/tag";
|
|
73
|
+
import TagsSelector from "./components/tags_selector";
|
|
74
|
+
import Tooltip from "./components/tooltip";
|
|
75
|
+
import WithLoader from "./components/with_loader";
|
|
76
|
+
import { useDropdownContext } from "./components/dropdown/context";
|
|
72
77
|
import { useFlashMessenger } from "./components/flash_messenger/context";
|
|
73
|
-
import { ILoaderProps } from "./components/loader/types";
|
|
74
|
-
import { IWithLoader } from "./components/with_loader/types";
|
|
75
|
-
import { TFlashMessage, TFlashMessageExtended } from "./components/flash_messenger/types";
|
|
76
78
|
/**
|
|
77
79
|
* export hooks
|
|
78
80
|
*/
|
|
79
|
-
import { useDropdownContext } from "./components/dropdown/context";
|
|
80
81
|
/**
|
|
81
82
|
* export components
|
|
82
83
|
*/
|
|
83
|
-
export { Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ControlColorPicker, ControlDatepicker, ControlFilePicker, Heading, Modal, ModalProvider, AbsoluteModal, RelativeModal, Tabs, TabItem, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList };
|
|
84
|
+
export { Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ControlColorPicker, ControlDatepicker, ControlFilePicker, Heading, Modal, ModalProvider, AbsoluteModal, RelativeModal, Tabs, TabItem, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList, Link };
|
|
84
85
|
/**
|
|
85
86
|
* export types
|
|
86
87
|
*/
|