@dreamcommerce/aurora 2.1.8-1 → 2.1.9
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_select/index.js +2 -2
- 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/list.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/hoc/select/index.js +2 -2
- 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_select/index.js +2 -2
- 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/list.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/list.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/hoc/select/index.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/types.d.ts +0 -2
- 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.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
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tabs = require('./components/tabs/components/tabs.js');
|
|
6
|
+
var tab_item = require('./components/tabs/components/tab_item.js');
|
|
7
|
+
var index$n = require('./components/modal/hoc/absolute_modal/index.js');
|
|
5
8
|
var index = require('./components/button/index.js');
|
|
6
9
|
var index$2 = require('./components/buttons_group/index.js');
|
|
7
10
|
var index$u = require('./components/dropdown/context/index.js');
|
|
@@ -9,52 +12,53 @@ var index$h = require('./components/color_picker/index.js');
|
|
|
9
12
|
var icon_tick = require('./assets/icon_tick.js');
|
|
10
13
|
var index$6 = require('./components/label/index.js');
|
|
11
14
|
var index$y = require('./components/hint/index.js');
|
|
12
|
-
var index$
|
|
15
|
+
var index$x = require('./components/controls/hoc/control_cell_selector/index.js');
|
|
13
16
|
var index$8 = require('./components/controls/hoc/control_checkbox/index.js');
|
|
14
17
|
var index$9 = require('./components/controls/hoc/control_checkbox_switch/index.js');
|
|
15
|
-
var index$a = require('./components/controls/hoc/control_radio/index.js');
|
|
16
|
-
var index$c = require('./components/controls/hoc/control_range/index.js');
|
|
17
18
|
var icon_arrow = require('./assets/icon_arrow.js');
|
|
18
19
|
var index$3 = require('./components/dropdown/index.js');
|
|
20
|
+
var index$i = require('./components/controls/hoc/control_color_picker/index.js');
|
|
19
21
|
var icon_calendar = require('./assets/icon_calendar.js');
|
|
20
22
|
var index$4 = require('./components/dropdown/hoc/select/index.js');
|
|
21
23
|
var index$g = require('./components/date_picker/index.js');
|
|
22
24
|
var index$j = require('./components/controls/hoc/control_date_picker/index.js');
|
|
23
|
-
var index$
|
|
25
|
+
var index$w = require('./components/file_picker/index.js');
|
|
26
|
+
var index$k = require('./components/controls/hoc/control_file_picker/index.js');
|
|
27
|
+
var index$7 = require('./components/controls/hoc/control_input/index.js');
|
|
28
|
+
var index$5 = require('./components/dropdown/hoc/multiselect/index.js');
|
|
29
|
+
var index$d = require('./components/controls/hoc/control_multi_select/index.js');
|
|
30
|
+
var index$a = require('./components/controls/hoc/control_radio/index.js');
|
|
31
|
+
var index$z = require('./components/controls/hoc/control_radio_group/index.js');
|
|
32
|
+
var index$c = require('./components/controls/hoc/control_range/index.js');
|
|
33
|
+
var index$b = require('./components/controls/hoc/control_select/index.js');
|
|
24
34
|
var index$p = require('./components/tag/index.js');
|
|
25
35
|
var index$q = require('./components/tags_selector/index.js');
|
|
26
36
|
var index$r = require('./components/controls/hoc/control_tags_selector/index.js');
|
|
27
37
|
var index$e = require('./components/controls/hoc/control_textarea/index.js');
|
|
28
|
-
var index$
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var index$
|
|
32
|
-
var index$k = require('./components/controls/hoc/control_file_picker/index.js');
|
|
33
|
-
var index$x = require('./components/controls/hoc/control_cell_selector/index.js');
|
|
34
|
-
var index$f = require('./components/gallery/index.js');
|
|
38
|
+
var index$s = require('./components/table/index.js');
|
|
39
|
+
var dataTable = require('./components/table/hoc/data-table.js');
|
|
40
|
+
var context = require('./components/flash_messenger/context.js');
|
|
41
|
+
var index$A = require('./components/message-box/index.js');
|
|
35
42
|
var index$t = require('./components/grid/index.js');
|
|
43
|
+
var flash_messages_list = require('./components/flash_messenger/components/flash_messages_list.js');
|
|
44
|
+
var index$B = require('./components/flash_messenger/index.js');
|
|
45
|
+
var index$f = require('./components/gallery/index.js');
|
|
36
46
|
var index$l = require('./components/heading/index.js');
|
|
47
|
+
var index$E = require('./components/link/index.js');
|
|
48
|
+
var index$C = require('./components/loader/index.js');
|
|
49
|
+
var index$m = require('./components/modal/index.js');
|
|
37
50
|
var modal_context = require('./components/modal/context/modal_context.js');
|
|
38
51
|
var modal_provider = require('./components/modal/hoc/modal_provider.js');
|
|
39
|
-
var index$n = require('./components/modal/hoc/absolute_modal/index.js');
|
|
40
52
|
var index$o = require('./components/modal/hoc/relative_modal/index.js');
|
|
41
|
-
var index$m = require('./components/modal/index.js');
|
|
42
53
|
var index$v = require('./components/spacing/index.js');
|
|
43
|
-
var index$s = require('./components/table/index.js');
|
|
44
|
-
var dataTable = require('./components/table/hoc/data-table.js');
|
|
45
|
-
var tabs = require('./components/tabs/components/tabs.js');
|
|
46
|
-
var tab_item = require('./components/tabs/components/tab_item.js');
|
|
47
|
-
var index$C = require('./components/loader/index.js');
|
|
48
|
-
var index$D = require('./components/with_loader/index.js');
|
|
49
54
|
var index$1 = require('./components/tooltip/index.js');
|
|
50
|
-
var
|
|
51
|
-
var index$A = require('./components/message-box/index.js');
|
|
52
|
-
var flash_messages_list = require('./components/flash_messenger/components/flash_messages_list.js');
|
|
53
|
-
var index$z = require('./components/controls/hoc/control_radio_group/index.js');
|
|
54
|
-
var index$B = require('./components/flash_messenger/index.js');
|
|
55
|
+
var index$D = require('./components/with_loader/index.js');
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
|
|
59
|
+
exports.Tabs = tabs['default'];
|
|
60
|
+
exports.TabItem = tab_item.TabItem;
|
|
61
|
+
exports.AbsoluteModal = index$n['default'];
|
|
58
62
|
exports.Button = index['default'];
|
|
59
63
|
exports.ButtonsGroup = index$2['default'];
|
|
60
64
|
exports.DropdownContext = index$u.DropdownContext;
|
|
@@ -63,48 +67,46 @@ exports.ColorPicker = index$h['default'];
|
|
|
63
67
|
exports.IconTick = icon_tick['default'];
|
|
64
68
|
exports.Label = index$6['default'];
|
|
65
69
|
exports.Hint = index$y['default'];
|
|
66
|
-
exports.
|
|
70
|
+
exports.ControlCellSelector = index$x['default'];
|
|
67
71
|
exports.ControlCheckbox = index$8['default'];
|
|
68
72
|
exports.ControlCheckboxSwitch = index$9['default'];
|
|
69
|
-
exports.ControlRadio = index$a['default'];
|
|
70
|
-
exports.ControlRange = index$c['default'];
|
|
71
73
|
exports.IconArrow = icon_arrow['default'];
|
|
72
74
|
exports.Dropdown = index$3['default'];
|
|
75
|
+
exports.ControlColorPicker = index$i['default'];
|
|
73
76
|
exports.IconCalendar = icon_calendar['default'];
|
|
74
77
|
exports.Select = index$4['default'];
|
|
75
78
|
exports.Datepicker = index$g['default'];
|
|
76
79
|
exports.ControlDatepicker = index$j['default'];
|
|
77
|
-
exports.
|
|
80
|
+
exports.FilePicker = index$w['default'];
|
|
81
|
+
exports.ControlFilePicker = index$k['default'];
|
|
82
|
+
exports.ControlInput = index$7['default'];
|
|
83
|
+
exports.MultiSelect = index$5['default'];
|
|
84
|
+
exports.ControlMultiSelect = index$d['default'];
|
|
85
|
+
exports.ControlRadio = index$a['default'];
|
|
86
|
+
exports.ControlRadioGroup = index$z['default'];
|
|
87
|
+
exports.ControlRange = index$c['default'];
|
|
88
|
+
exports.ControlSelect = index$b['default'];
|
|
78
89
|
exports.Tag = index$p['default'];
|
|
79
90
|
exports.TagsSelector = index$q['default'];
|
|
80
91
|
exports.ControlTagsSelector = index$r['default'];
|
|
81
92
|
exports.ControlTextarea = index$e['default'];
|
|
82
|
-
exports.ControlSelect = index$b['default'];
|
|
83
|
-
exports.MultiSelect = index$5['default'];
|
|
84
|
-
exports.ControlMultiSelect = index$d['default'];
|
|
85
|
-
exports.FilePicker = index$w['default'];
|
|
86
|
-
exports.ControlFilePicker = index$k['default'];
|
|
87
|
-
exports.ControlCellSelector = index$x['default'];
|
|
88
|
-
exports.Gallery = index$f['default'];
|
|
89
|
-
exports.Grid = index$t['default'];
|
|
90
|
-
exports.Heading = index$l['default'];
|
|
91
|
-
exports.ModalContext = modal_context.ModalContext;
|
|
92
|
-
exports.ModalProvider = modal_provider['default'];
|
|
93
|
-
exports.AbsoluteModal = index$n['default'];
|
|
94
|
-
exports.RelativeModal = index$o['default'];
|
|
95
|
-
exports.Modal = index$m['default'];
|
|
96
|
-
exports.Spacing = index$v['default'];
|
|
97
93
|
exports.Table = index$s['default'];
|
|
98
94
|
exports.DataTable = dataTable['default'];
|
|
99
|
-
exports.Tabs = tabs['default'];
|
|
100
|
-
exports.TabItem = tab_item.TabItem;
|
|
101
|
-
exports.Loader = index$C['default'];
|
|
102
|
-
exports.WithLoader = index$D['default'];
|
|
103
|
-
exports.Tooltip = index$1['default'];
|
|
104
95
|
exports.FlashMessengerContext = context.FlashMessengerContext;
|
|
105
96
|
exports.useFlashMessenger = context.useFlashMessenger;
|
|
106
97
|
exports.MessageBox = index$A['default'];
|
|
98
|
+
exports.Grid = index$t['default'];
|
|
107
99
|
exports.FlashMessagesList = flash_messages_list['default'];
|
|
108
|
-
exports.ControlRadioGroup = index$z['default'];
|
|
109
100
|
exports.FlashMessenger = index$B['default'];
|
|
101
|
+
exports.Gallery = index$f['default'];
|
|
102
|
+
exports.Heading = index$l['default'];
|
|
103
|
+
exports.Link = index$E['default'];
|
|
104
|
+
exports.Loader = index$C['default'];
|
|
105
|
+
exports.Modal = index$m['default'];
|
|
106
|
+
exports.ModalContext = modal_context.ModalContext;
|
|
107
|
+
exports.ModalProvider = modal_provider['default'];
|
|
108
|
+
exports.RelativeModal = index$o['default'];
|
|
109
|
+
exports.Spacing = index$v['default'];
|
|
110
|
+
exports.Tooltip = index$1['default'];
|
|
111
|
+
exports.WithLoader = index$D['default'];
|
|
110
112
|
//# sourceMappingURL=index.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;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
|
+
{"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;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,9 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
|
+
import { createUseStyles } from '../../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
2
3
|
import { cssColorPickerInputColorPreview } from '../css_classes.js';
|
|
3
4
|
import { DropdownContext } from '../../dropdown/context/index.js';
|
|
4
5
|
import styles from '../../../css/color_picker/main.module.less.js';
|
|
5
6
|
import { ColorPickerContext } from '../context.js';
|
|
6
|
-
import { createUseStyles } from '../../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
7
7
|
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
8
8
|
|
|
9
9
|
const useStyles = createUseStyles({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,gCAAgC,4DAAgE;AAChG;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,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 }))),
|
|
@@ -18,14 +18,14 @@ 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, hintOptions = { isFixed: true }, additionalInfo
|
|
21
|
+
const ControlSelect = ({ label, isRequired, id, name, defaultValues, options, isWithGroups, isWithSearch, defaultIsOpen, defaultCloseOnClick, isReadonly, isDisabled, onChange, onToggle, errors, hint, hintOptions = { isFixed: true }, additionalInfo }) => {
|
|
22
22
|
return (React.createElement(Control, { errors: errors, name: name, id: id },
|
|
23
23
|
(label || hint) && (React.createElement(Control.Label, { id: id, isRequired: isRequired },
|
|
24
24
|
label,
|
|
25
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
|
-
React.createElement(Select, { key: name, name: name, options: options, defaultValues: defaultValues, isWithGroups: isWithGroups, isWithSearch: isWithSearch, defaultIsOpen: defaultIsOpen, defaultCloseOnClick: defaultCloseOnClick, isReadonly: isReadonly, isDisabled: isDisabled, onChange: onChange, onToggle: onToggle
|
|
28
|
+
React.createElement(Select, { key: name, name: name, options: options, defaultValues: defaultValues, isWithGroups: isWithGroups, isWithSearch: isWithSearch, defaultIsOpen: defaultIsOpen, defaultCloseOnClick: defaultCloseOnClick, isReadonly: isReadonly, isDisabled: isDisabled, onChange: onChange, onToggle: onToggle }))),
|
|
29
29
|
React.createElement(Control.Errors, null),
|
|
30
30
|
additionalInfo && React.createElement(Control.AdditionalInfo, null, additionalInfo)));
|
|
31
31
|
};
|
|
@@ -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.
|
|
@@ -19,11 +19,11 @@ isWithGroups,
|
|
|
19
19
|
/**
|
|
20
20
|
* Children nodes
|
|
21
21
|
*/
|
|
22
|
-
children
|
|
22
|
+
children }) => {
|
|
23
23
|
const listClasses = classnames(cssClasses[cssDropdownList], cssClasses[cssDropdownWithScroll], {
|
|
24
24
|
[cssClasses[cssDropdownListWithGroup]]: isWithGroups
|
|
25
25
|
});
|
|
26
|
-
return (React.createElement("ul", { role: "listbox", className: listClasses
|
|
26
|
+
return (React.createElement("ul", { role: "listbox", className: listClasses }, children));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export default List;
|
|
@@ -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.
|
|
@@ -75,7 +75,7 @@ onChange,
|
|
|
75
75
|
* Place where portal should be placed, by default to body
|
|
76
76
|
* this can be used to put modal inside modal
|
|
77
77
|
*/
|
|
78
|
-
portalContainer
|
|
78
|
+
portalContainer }) => {
|
|
79
79
|
/**
|
|
80
80
|
* reference to dropdown wrapper element
|
|
81
81
|
*/
|
|
@@ -108,7 +108,7 @@ portalContainer, onScroll }) => {
|
|
|
108
108
|
React.createElement(Dropdown.Select, { name: name, isReadonly: isReadonly, isDisabled: isDisabled, selectedOptions: selectedValues }),
|
|
109
109
|
React.createElement(Dropdown.Content, { portalContainer: portalContainer },
|
|
110
110
|
isWithSearch && React.createElement(Dropdown.Search, { onKeyUp: (ev) => handleSearchKeyUp(ev, options, setOptionsList) }),
|
|
111
|
-
React.createElement(Dropdown.List, { isWithGroups: isWithGroups
|
|
111
|
+
React.createElement(Dropdown.List, { isWithGroups: isWithGroups }, optionsList === null || optionsList === void 0 ? void 0 : optionsList.map((option) => {
|
|
112
112
|
var _a, _b;
|
|
113
113
|
return option.isHeader ? (React.createElement(Dropdown.Header, { key: option.text, text: option.text })) : (React.createElement(Dropdown.Option, { key: option.value, option: option, isSelected: isSelected(option, selectedValues), isDisabled: (_a = option.isDisabled) !== null && _a !== void 0 ? _a : isDisabled, isReadonly: (_b = option.isReadonly) !== null && _b !== void 0 ? _b : isReadonly, onClick: (option) => handleItemClick(option, defaultCloseOnClick, setSelectedValues, toggleDropdown) }));
|
|
114
114
|
}))))));
|
|
@@ -57,7 +57,6 @@ export interface IDropdownSearchProps {
|
|
|
57
57
|
export interface IDropdownListProps {
|
|
58
58
|
isWithGroups?: boolean;
|
|
59
59
|
children?: ReactNode;
|
|
60
|
-
onScroll?: (event: React.UIEvent<HTMLElement>) => void;
|
|
61
60
|
}
|
|
62
61
|
export interface IDropdownOptionProps {
|
|
63
62
|
option: ISelectOption;
|
|
@@ -93,7 +92,6 @@ export interface ISelectProps extends IDropdownProps {
|
|
|
93
92
|
isDisabled?: boolean;
|
|
94
93
|
isWithSearch?: boolean;
|
|
95
94
|
onChange?: (selectedOption: ISelectOption) => void;
|
|
96
|
-
onScroll?: (event: React.UIEvent<HTMLElement>) => void;
|
|
97
95
|
}
|
|
98
96
|
export interface ISelectOption {
|
|
99
97
|
text: string;
|
|
@@ -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: {
|