diginet-core-ui 1.3.79 → 1.3.80
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/components/accordion/css.js +2 -2
- package/components/accordion/details.js +3 -3
- package/components/accordion/group.js +3 -3
- package/components/accordion/index.js +5 -5
- package/components/accordion/summary.js +4 -4
- package/components/alert/index.js +8 -8
- package/components/alert/notify.js +4 -4
- package/components/avatar/index.js +11 -12
- package/components/badge/index.js +5 -5
- package/components/button/icon.js +9 -9
- package/components/button/index.js +10 -10
- package/components/button/more.js +181 -109
- package/components/button/ripple-effect.js +2 -2
- package/components/card/body.js +2 -2
- package/components/card/extra.js +2 -2
- package/components/card/footer.js +2 -2
- package/components/card/header.js +3 -3
- package/components/card/index.js +8 -8
- package/components/chart/Pie/index.js +37 -38
- package/components/chart/Pie-v2/Sectors.js +3 -3
- package/components/chart/Pie-v2/index.js +6 -6
- package/components/chart/bar/Bar.js +2 -2
- package/components/chart/bar/Labels.js +2 -3
- package/components/chart/bar/index.js +6 -6
- package/components/chart/bar-v2/Bar.js +3 -3
- package/components/chart/bar-v2/Labels.js +2 -3
- package/components/chart/bar-v2/index.js +6 -6
- package/components/chart/line/Labels.js +2 -3
- package/components/chart/line/Path.js +1 -1
- package/components/chart/line/Point.js +2 -2
- package/components/chart/line/Title.js +1 -1
- package/components/chart/line/index.js +6 -6
- package/components/chart/line-v2/Labels.js +2 -3
- package/components/chart/line-v2/Point.js +2 -2
- package/components/chart/line-v2/Title.js +1 -1
- package/components/chart/line-v2/index.js +6 -6
- package/components/check-text/index.js +2 -2
- package/components/check-text/interview-confirmation.js +2 -2
- package/components/check-text/interview-status.js +2 -2
- package/components/chip/attach.js +4 -4
- package/components/chip/index.js +5 -5
- package/components/collapse/index.js +1 -1
- package/components/divider/index.js +2 -2
- package/components/form-control/attachment/index.js +6 -6
- package/components/form-control/calendar/function.js +8 -8
- package/components/form-control/calendar/index.js +2 -2
- package/components/form-control/calendar/range.js +3 -3
- package/components/form-control/checkbox/index.js +5 -5
- package/components/form-control/control/index.js +2 -2
- package/components/form-control/date-picker/index.js +10 -10
- package/components/form-control/date-range-picker/index.js +8 -8
- package/components/form-control/dropdown/index.js +7 -7
- package/components/form-control/dropdown-box/index.js +6 -6
- package/components/form-control/form/index.js +1 -1
- package/components/form-control/form-group/index.js +1 -1
- package/components/form-control/helper-text/index.js +4 -4
- package/components/form-control/input-base/index.js +7 -7
- package/components/form-control/label/index.js +13 -13
- package/components/form-control/money-input/index.js +5 -5
- package/components/form-control/number-input/index.js +3 -3
- package/components/form-control/number-input/index2.js +36 -27
- package/components/form-control/phone-input/index.js +2 -2
- package/components/form-control/radio/index.js +4 -4
- package/components/form-control/text-input/index.js +4 -4
- package/components/form-control/time-picker/index.js +7 -7
- package/components/form-control/time-picker/swiper.js +1 -1
- package/components/form-control/toggle/index.js +4 -4
- package/components/form-view/helper-text.js +1 -1
- package/components/form-view/index.js +4 -4
- package/components/form-view/input.js +3 -3
- package/components/form-view/label.js +2 -2
- package/components/grid/Col.js +2 -2
- package/components/grid/Container.js +1 -1
- package/components/grid/Row.js +1 -1
- package/components/grid/index.js +5 -5
- package/components/image/index.js +5 -5
- package/components/index.js +83 -83
- package/components/list/list-item-action.js +1 -1
- package/components/list/list-item-icon.js +2 -2
- package/components/list/list-item-text.js +1 -1
- package/components/list/list-item.js +2 -2
- package/components/list/list.js +1 -1
- package/components/list/sub-header.js +2 -2
- package/components/modal/body.js +4 -4
- package/components/modal/footer.js +3 -3
- package/components/modal/header.js +5 -5
- package/components/modal/index.js +4 -4
- package/components/modal/modal.js +6 -6
- package/components/others/extra/index.js +2 -2
- package/components/others/import/index.js +1 -1
- package/components/others/scrollbar/index.js +1 -3
- package/components/paging/page-info.js +5 -5
- package/components/paging/page-selector.js +3 -3
- package/components/paging/page-selector2.js +5 -5
- package/components/paper/index.js +2 -2
- package/components/popover/body.js +4 -4
- package/components/popover/footer.js +4 -4
- package/components/popover/header.js +5 -5
- package/components/popover/index.js +4 -4
- package/components/popup/danger_popup.js +5 -5
- package/components/popup/index.js +6 -6
- package/components/popup/proposals_popup.js +5 -5
- package/components/popup/v2/index.js +9 -9
- package/components/progress/circular.js +169 -260
- package/components/progress/linear.js +2 -2
- package/components/rating/index.js +6 -6
- package/components/slider/slider-container.js +4 -4
- package/components/slider/slider-item.js +5 -5
- package/components/status/index.js +5 -5
- package/components/tab/tab-container.js +4 -4
- package/components/tab/tab-header.js +5 -5
- package/components/tab/tab-panel.js +4 -4
- package/components/tab/tab.js +8 -8
- package/components/tooltip/index.js +3 -3
- package/components/tooltip/portal.js +1 -1
- package/components/transfer/index.js +5 -5
- package/components/tree-view/css.js +2 -2
- package/components/tree-view/index.js +4 -4
- package/components/typography/index.js +3 -3
- package/global/index.js +1 -1
- package/icons/basic.js +1 -1
- package/icons/effect.js +5 -5
- package/icons/general/index.js +21 -21
- package/icons/index.js +2 -2
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +1 -1
- package/locale/index.js +1 -1
- package/package.json +1 -1
- package/readme.md +6 -0
- package/styles/animation.js +1 -1
- package/styles/colors.js +1 -1
- package/styles/font.js +3 -3
- package/styles/general.js +3 -2
- package/styles/typography.js +2 -2
- package/styles/utils.js +1 -1
- package/theme/index.js +3 -3
- package/theme/make-styles.js +1 -1
- package/theme/set-theme.js +1 -1
- package/theme/settings.js +6 -6
- package/theme/theme-provider.js +2 -2
- package/theme/theme.js +1 -1
- package/utils/array/array.js +3 -3
- package/utils/console.js +1 -1
- package/utils/date.js +2 -2
- package/utils/error/error.js +3 -3
- package/utils/error/errors.js +1 -1
- package/utils/handleBreakpoints.js +2 -2
- package/utils/index.js +28 -28
- package/utils/object/extend.js +1 -1
- package/utils/object/object.js +1 -1
- package/utils/render-portal.js +1 -1
- package/utils/renderHTML.js +1 -1
- package/utils/renderIcon.js +3 -3
- package/utils/sb-template.js +4 -4
- package/utils/string/capitalizeSentenceCase.js +1 -1
- package/utils/string/string.js +1 -1
- package/utils/useElementSize.js +1 -1
- package/utils/validate.js +2 -2
package/components/index.js
CHANGED
|
@@ -1,147 +1,147 @@
|
|
|
1
1
|
import * as components from '.';
|
|
2
2
|
|
|
3
3
|
//TOOLTIP
|
|
4
|
-
export { default as Tooltip } from
|
|
4
|
+
export { default as Tooltip } from "./tooltip/index";
|
|
5
5
|
|
|
6
6
|
//TEXT
|
|
7
|
-
export { default as Typography } from
|
|
7
|
+
export { default as Typography } from "./typography";
|
|
8
8
|
|
|
9
9
|
// PROGRESS
|
|
10
|
-
export { default as CircularProgress } from
|
|
11
|
-
export { default as LinearProgress } from
|
|
10
|
+
export { default as CircularProgress } from "./progress/circular";
|
|
11
|
+
export { default as LinearProgress } from "./progress/linear";
|
|
12
12
|
|
|
13
13
|
// ACCORDION
|
|
14
|
-
export { default as Accordion } from
|
|
15
|
-
export { default as AccordionSummary } from
|
|
16
|
-
export { default as AccordionDetails } from
|
|
17
|
-
export { default as AccordionGroup } from
|
|
14
|
+
export { default as Accordion } from "./accordion";
|
|
15
|
+
export { default as AccordionSummary } from "./accordion/summary";
|
|
16
|
+
export { default as AccordionDetails } from "./accordion/details";
|
|
17
|
+
export { default as AccordionGroup } from "./accordion/group";
|
|
18
18
|
|
|
19
19
|
// ALERT
|
|
20
|
-
export { default as Alert } from
|
|
21
|
-
export { default as Notify } from
|
|
20
|
+
export { default as Alert } from "./alert";
|
|
21
|
+
export { default as Notify } from "./alert/notify";
|
|
22
22
|
|
|
23
23
|
// AVATAR
|
|
24
|
-
export { default as Avatar } from
|
|
24
|
+
export { default as Avatar } from "./avatar";
|
|
25
25
|
|
|
26
26
|
// BADGE
|
|
27
|
-
export { default as Badge } from
|
|
27
|
+
export { default as Badge } from "./badge";
|
|
28
28
|
|
|
29
29
|
// BUTTON
|
|
30
|
-
export { default as Button } from
|
|
31
|
-
export { default as ButtonIcon } from
|
|
30
|
+
export { default as Button } from "./button";
|
|
31
|
+
export { default as ButtonIcon } from "./button/icon";
|
|
32
32
|
|
|
33
33
|
// CARD
|
|
34
|
-
export { default as Card } from
|
|
35
|
-
export { default as CardHeader } from
|
|
36
|
-
export { default as CardBody } from
|
|
37
|
-
export { default as CardFooter } from
|
|
38
|
-
export { default as CardExtra } from
|
|
34
|
+
export { default as Card } from "./card";
|
|
35
|
+
export { default as CardHeader } from "./card/header";
|
|
36
|
+
export { default as CardBody } from "./card/body";
|
|
37
|
+
export { default as CardFooter } from "./card/footer";
|
|
38
|
+
export { default as CardExtra } from "./card/extra";
|
|
39
39
|
|
|
40
40
|
// CHART
|
|
41
|
-
export { default as PieChart } from
|
|
42
|
-
export { default as ColumnChart } from
|
|
43
|
-
export { default as LineChart } from
|
|
41
|
+
export { default as PieChart } from "./chart/Pie";
|
|
42
|
+
export { default as ColumnChart } from "./chart/bar";
|
|
43
|
+
export { default as LineChart } from "./chart/line";
|
|
44
44
|
|
|
45
45
|
// CHECK-TEXT
|
|
46
|
-
export { default as CheckTextConfirmation } from
|
|
47
|
-
export { default as CheckTextStatus } from
|
|
46
|
+
export { default as CheckTextConfirmation } from "./check-text/interview-confirmation";
|
|
47
|
+
export { default as CheckTextStatus } from "./check-text/interview-status";
|
|
48
48
|
|
|
49
49
|
// CHIP
|
|
50
|
-
export { default as Chip } from
|
|
51
|
-
export { default as AttachChip } from
|
|
50
|
+
export { default as Chip } from "./chip";
|
|
51
|
+
export { default as AttachChip } from "./chip/attach";
|
|
52
52
|
|
|
53
53
|
// COLLAPSE
|
|
54
|
-
export { default as Collapse } from
|
|
54
|
+
export { default as Collapse } from "./collapse";
|
|
55
55
|
|
|
56
56
|
// DIVIDER
|
|
57
|
-
export { default as Divider } from
|
|
57
|
+
export { default as Divider } from "./divider";
|
|
58
58
|
|
|
59
59
|
// FORM CONTROL
|
|
60
|
-
export { default as Attachment } from
|
|
61
|
-
export { default as Checkbox } from
|
|
62
|
-
export { default as DatePicker } from
|
|
63
|
-
export { default as DateRangePicker } from
|
|
64
|
-
export { default as TimePicker } from
|
|
65
|
-
export { default as Dropdown } from
|
|
66
|
-
export { default as DropdownBox } from
|
|
67
|
-
export { default as FormGroup } from
|
|
68
|
-
export { default as Radio } from
|
|
69
|
-
export { default as InputBase } from
|
|
70
|
-
export { default as Label } from
|
|
71
|
-
export { default as HelperText } from
|
|
72
|
-
export { default as TextInput } from
|
|
73
|
-
export { default as MoneyInput } from
|
|
74
|
-
export { default as NumberInput } from
|
|
75
|
-
export { default as Toggle } from
|
|
60
|
+
export { default as Attachment } from "./form-control/attachment";
|
|
61
|
+
export { default as Checkbox } from "./form-control/checkbox";
|
|
62
|
+
export { default as DatePicker } from "./form-control/date-picker";
|
|
63
|
+
export { default as DateRangePicker } from "./form-control/date-range-picker";
|
|
64
|
+
export { default as TimePicker } from "./form-control/time-picker";
|
|
65
|
+
export { default as Dropdown } from "./form-control/dropdown";
|
|
66
|
+
export { default as DropdownBox } from "./form-control/dropdown-box";
|
|
67
|
+
export { default as FormGroup } from "./form-control/form-group";
|
|
68
|
+
export { default as Radio } from "./form-control/radio";
|
|
69
|
+
export { default as InputBase } from "./form-control/input-base";
|
|
70
|
+
export { default as Label } from "./form-control/label";
|
|
71
|
+
export { default as HelperText } from "./form-control/helper-text";
|
|
72
|
+
export { default as TextInput } from "./form-control/text-input";
|
|
73
|
+
export { default as MoneyInput } from "./form-control/money-input";
|
|
74
|
+
export { default as NumberInput } from "./form-control/number-input/index2";
|
|
75
|
+
export { default as Toggle } from "./form-control/toggle";
|
|
76
76
|
|
|
77
77
|
// Grid
|
|
78
|
-
export { default as Grid } from
|
|
79
|
-
export { default as Row } from
|
|
80
|
-
export { default as Col } from
|
|
81
|
-
export { default as Container } from
|
|
78
|
+
export { default as Grid } from "./grid";
|
|
79
|
+
export { default as Row } from "./grid/Row";
|
|
80
|
+
export { default as Col } from "./grid/Col";
|
|
81
|
+
export { default as Container } from "./grid/Container";
|
|
82
82
|
|
|
83
83
|
//Icon
|
|
84
|
-
export { default as Icon } from
|
|
84
|
+
export { default as Icon } from "../icons/index";
|
|
85
85
|
|
|
86
86
|
//Image
|
|
87
|
-
export { default as Image } from
|
|
87
|
+
export { default as Image } from "./image";
|
|
88
88
|
|
|
89
89
|
// List
|
|
90
|
-
export { default as List } from
|
|
91
|
-
export { default as ListItem } from
|
|
92
|
-
export { default as ListItemIcon } from
|
|
93
|
-
export { default as ListItemText } from
|
|
94
|
-
export { default as ListItemAction } from
|
|
90
|
+
export { default as List } from "./list/list";
|
|
91
|
+
export { default as ListItem } from "./list/list-item";
|
|
92
|
+
export { default as ListItemIcon } from "./list/list-item-icon";
|
|
93
|
+
export { default as ListItemText } from "./list/list-item-text";
|
|
94
|
+
export { default as ListItemAction } from "./list/list-item-action";
|
|
95
95
|
|
|
96
96
|
// MODAL
|
|
97
|
-
export { default as ModalSample } from
|
|
98
|
-
export { default as Modal } from
|
|
99
|
-
export { default as ModalHeader } from
|
|
100
|
-
export { default as ModalBody } from
|
|
101
|
-
export { default as ModalFooter } from
|
|
97
|
+
export { default as ModalSample } from "./modal";
|
|
98
|
+
export { default as Modal } from "./modal/modal";
|
|
99
|
+
export { default as ModalHeader } from "./modal/header";
|
|
100
|
+
export { default as ModalBody } from "./modal/body";
|
|
101
|
+
export { default as ModalFooter } from "./modal/footer";
|
|
102
102
|
|
|
103
103
|
// PAGING
|
|
104
|
-
export { default as PagingInfo } from
|
|
105
|
-
export { default as PagingSelector } from
|
|
104
|
+
export { default as PagingInfo } from "./paging/page-info";
|
|
105
|
+
export { default as PagingSelector } from "./paging/page-selector2";
|
|
106
106
|
|
|
107
107
|
// PAPER
|
|
108
|
-
export { default as Paper } from
|
|
108
|
+
export { default as Paper } from "./paper";
|
|
109
109
|
|
|
110
110
|
// POPOVER
|
|
111
|
-
export { default as Popover } from
|
|
112
|
-
export { default as PopoverHeader } from
|
|
113
|
-
export { default as PopoverBody } from
|
|
114
|
-
export { default as PopoverFooter } from
|
|
111
|
+
export { default as Popover } from "./popover";
|
|
112
|
+
export { default as PopoverHeader } from "./popover/header";
|
|
113
|
+
export { default as PopoverBody } from "./popover/body";
|
|
114
|
+
export { default as PopoverFooter } from "./popover/footer";
|
|
115
115
|
|
|
116
116
|
// POPUP
|
|
117
|
-
export { default as Popup } from
|
|
118
|
-
export { default as PopupV2 } from
|
|
119
|
-
export { default as DangerPopup } from
|
|
120
|
-
export { default as ProposalsPopup } from
|
|
117
|
+
export { default as Popup } from "./popup";
|
|
118
|
+
export { default as PopupV2 } from "./popup/v2";
|
|
119
|
+
export { default as DangerPopup } from "./popup/danger_popup";
|
|
120
|
+
export { default as ProposalsPopup } from "./popup/proposals_popup";
|
|
121
121
|
|
|
122
122
|
// SLIDER
|
|
123
|
-
export { default as Slider } from
|
|
124
|
-
export { default as SliderItem } from
|
|
123
|
+
export { default as Slider } from "./slider/slider-container";
|
|
124
|
+
export { default as SliderItem } from "./slider/slider-item";
|
|
125
125
|
|
|
126
126
|
// Rating
|
|
127
|
-
export { default as Rating } from
|
|
127
|
+
export { default as Rating } from "./rating";
|
|
128
128
|
|
|
129
129
|
// STATUS
|
|
130
|
-
export { default as Status } from
|
|
130
|
+
export { default as Status } from "./status";
|
|
131
131
|
|
|
132
132
|
// TAB
|
|
133
|
-
export { default as TabContainer } from
|
|
134
|
-
export { default as TabHeader } from
|
|
135
|
-
export { default as TabPanel } from
|
|
136
|
-
export { default as TabItem } from
|
|
133
|
+
export { default as TabContainer } from "./tab/tab-container";
|
|
134
|
+
export { default as TabHeader } from "./tab/tab-header";
|
|
135
|
+
export { default as TabPanel } from "./tab/tab-panel";
|
|
136
|
+
export { default as TabItem } from "./tab/tab";
|
|
137
137
|
|
|
138
138
|
// TREE VIEW
|
|
139
|
-
export { default as Transfer } from
|
|
139
|
+
export { default as Transfer } from "./transfer";
|
|
140
140
|
|
|
141
141
|
// TREE VIEW
|
|
142
|
-
export { default as TreeView } from
|
|
142
|
+
export { default as TreeView } from "./tree-view";
|
|
143
143
|
|
|
144
144
|
// OTHERS
|
|
145
|
-
export { default as Extra } from
|
|
146
|
-
export { default as ScrollBar } from
|
|
145
|
+
export { default as Extra } from "./others/extra";
|
|
146
|
+
export { default as ScrollBar } from "./others/scrollbar";
|
|
147
147
|
export default components;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
7
|
import { ButtonIcon } from '..';
|
|
8
8
|
const ListItemAction = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
children,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import * as Icons from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import * as Icons from "../../icons";
|
|
8
8
|
const ListItemIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
className,
|
|
10
10
|
children,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { Typography } from
|
|
6
|
+
import { Typography } from "../";
|
|
7
7
|
const ListItemText = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
className,
|
|
9
9
|
children,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import Ripple from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import Ripple from "../button/ripple-effect";
|
|
8
8
|
const ListItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
children,
|
|
10
10
|
className,
|
package/components/list/list.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
7
|
const levels = [0, 1, 'second', 'third', 'fourth', 'fifth'];
|
|
8
8
|
const List = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
className,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { Typography } from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import { Typography } from "../";
|
|
8
8
|
const ListSubHeader = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
children,
|
|
10
10
|
style,
|
package/components/modal/body.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { border, borderBox, displayBlock, overflowAuto, parseWidthHeight, positionRelative } from
|
|
7
|
-
import { classNames } from
|
|
8
|
-
import theme from
|
|
9
|
-
import { responsivePaddingCSS } from
|
|
6
|
+
import { border, borderBox, displayBlock, overflowAuto, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
7
|
+
import { classNames } from "../../utils";
|
|
8
|
+
import theme from "../../theme/settings";
|
|
9
|
+
import { responsivePaddingCSS } from "./header";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
fill: {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { alignCenter, borderBox, flexRow, justifyEnd, positionRelative } from
|
|
7
|
-
import { classNames } from
|
|
8
|
-
import { responsivePaddingCSS } from
|
|
6
|
+
import { alignCenter, borderBox, flexRow, justifyEnd, positionRelative } from "../../styles/general";
|
|
7
|
+
import { classNames } from "../../utils";
|
|
8
|
+
import { responsivePaddingCSS } from "./header";
|
|
9
9
|
const ModalFooter = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
10
10
|
action = {},
|
|
11
11
|
boxShadow,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useMemo, useContext, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import ModalContext from
|
|
7
|
-
import { ButtonIcon, Typography } from
|
|
8
|
-
import { alignCenter, borderBox, flexRow, justifyBetween, parseWidthHeight, positionRelative } from
|
|
9
|
-
import { classNames, handleBreakpoints } from
|
|
10
|
-
import theme from
|
|
6
|
+
import ModalContext from "./context";
|
|
7
|
+
import { ButtonIcon, Typography } from "../";
|
|
8
|
+
import { alignCenter, borderBox, flexRow, justifyBetween, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
9
|
+
import { classNames, handleBreakpoints } from "../../utils";
|
|
10
|
+
import theme from "../../theme/settings";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
fill: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable react/display-name */
|
|
2
2
|
import React, { forwardRef, memo, useImperativeHandle, useRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import Modal from
|
|
5
|
-
import Header from
|
|
6
|
-
import Body from
|
|
7
|
-
import Footer from
|
|
4
|
+
import Modal from "./modal";
|
|
5
|
+
import Header from "./header";
|
|
6
|
+
import Body from "./body";
|
|
7
|
+
import Footer from "./footer";
|
|
8
8
|
const ModalSample = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
action = {},
|
|
10
10
|
bodyStyle,
|
|
@@ -4,12 +4,12 @@ import { memo, useState, useRef, forwardRef, useEffect, useMemo, useImperativeHa
|
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import useDelayUnmount from
|
|
8
|
-
import ModalContext from
|
|
9
|
-
import { animations } from
|
|
10
|
-
import { borderBox, borderRadius4px, flexCol, flexRow, justifyCenter, parseWidth, parseWidthHeight, positionFixed, positionRelative } from
|
|
11
|
-
import theme from
|
|
12
|
-
import { classNames } from
|
|
7
|
+
import useDelayUnmount from "../../utils/useDelayUnmount";
|
|
8
|
+
import ModalContext from "./context";
|
|
9
|
+
import { animations } from "../../styles/animation";
|
|
10
|
+
import { borderBox, borderRadius4px, flexCol, flexRow, justifyCenter, parseWidth, parseWidthHeight, positionFixed, positionRelative } from "../../styles/general";
|
|
11
|
+
import theme from "../../theme/settings";
|
|
12
|
+
import { classNames } from "../../utils";
|
|
13
13
|
const {
|
|
14
14
|
colors: {
|
|
15
15
|
system: {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { memo, useState, useEffect, useMemo, useRef } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import { brand, dark11, dark6, blue13 } from
|
|
8
|
-
import { typography } from
|
|
7
|
+
import { brand, dark11, dark6, blue13 } from "../../../styles/colors";
|
|
8
|
+
import { typography } from "../../../styles/typography";
|
|
9
9
|
const icons = {
|
|
10
10
|
expand: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
11
|
<path fillRule="evenodd" clip-rule="evenodd" d="M11.9999 12.0001C11.7729 12.0001 11.5449 11.9231 11.3599 11.7681L5.35989 6.76807C4.93589 6.41407 4.87889 5.78407 5.23189 5.36007C5.58589 4.93507 6.21489 4.87907 6.63989 5.23207L12.0109 9.70707L17.3729 5.39307C17.8029 5.04707 18.4339 5.11507 18.7789 5.54507C19.1259 5.97507 19.0569 6.60407 18.6269 6.95107L12.6269 11.7791C12.4439 11.9261 12.2219 12.0001 11.9999 12.0001ZM12.011 16.7076L17.373 12.3926C17.803 12.0476 18.434 12.1156 18.779 12.5446C19.125 12.9756 19.057 13.6046 18.627 13.9516L12.627 18.7796C12.444 18.9266 12.222 18.9996 12 18.9996C11.772 18.9996 11.545 18.9226 11.36 18.7676L5.35999 13.7676C4.93499 13.4146 4.87799 12.7846 5.23199 12.3596C5.58499 11.9356 6.21499 11.8776 6.63999 12.2316L12.011 16.7076Z" fill="currentColor"/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { white, dark12, brand13 } from
|
|
6
|
+
import { white, dark12, brand13 } from "../../../styles/colors";
|
|
7
7
|
const getPosition = {
|
|
8
8
|
bottom: `
|
|
9
9
|
overflow-x: auto;
|
|
@@ -64,8 +64,6 @@ const scrollbar = ({
|
|
|
64
64
|
`;
|
|
65
65
|
return jsx("div", {
|
|
66
66
|
css: Scrollbar,
|
|
67
|
-
custom: custom,
|
|
68
|
-
position: position,
|
|
69
67
|
style: style,
|
|
70
68
|
...props
|
|
71
69
|
}, children);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useState, useRef, useEffect, useMemo, forwardRef, useImperativeHandle, useLayoutEffect, useCallback } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import OptionWrapper from
|
|
7
|
-
import { ButtonIcon, NumberInput, Dropdown, Typography, Divider } from
|
|
8
|
-
import { getGlobal } from
|
|
9
|
-
import theme from
|
|
10
|
-
import { alignCenter, borderBox, flexRow, noPadding, textCenter, cursorPointer, parseHeight, whiteSpaceNoWrap, justifyCenter } from
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import { ButtonIcon, NumberInput, Dropdown, Typography, Divider } from "../";
|
|
8
|
+
import { getGlobal } from "../../global";
|
|
9
|
+
import theme from "../../theme/settings";
|
|
10
|
+
import { alignCenter, borderBox, flexRow, noPadding, textCenter, cursorPointer, parseHeight, whiteSpaceNoWrap, justifyCenter } from "../../styles/general";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
system: {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import React, { memo, useRef, useState, useEffect, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { typography } from
|
|
8
|
-
import { useTheme } from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import { typography } from "../../styles/typography";
|
|
8
|
+
import { useTheme } from "../../theme";
|
|
9
9
|
const {
|
|
10
10
|
zIndex
|
|
11
11
|
} = useTheme();
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { memo, useState, useRef, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import OptionWrapper from
|
|
7
|
-
import { getGlobal } from
|
|
8
|
-
import theme from
|
|
9
|
-
import { alignCenter, borderBox, flexRow, parseHeight } from
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import { getGlobal } from "../../global";
|
|
8
|
+
import theme from "../../theme/settings";
|
|
9
|
+
import { alignCenter, borderBox, flexRow, parseHeight } from "../../styles/general";
|
|
10
10
|
import { ButtonIcon } from '..';
|
|
11
|
-
import { useElementSize } from
|
|
11
|
+
import { useElementSize } from "../../utils/useElementSize";
|
|
12
12
|
const {
|
|
13
13
|
colors: {
|
|
14
14
|
system: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { memo, useEffect, useMemo, useRef, forwardRef } from 'react';
|
|
3
3
|
import { string, number, bool, node, oneOfType, func } from 'prop-types';
|
|
4
4
|
import { css } from '@emotion/core';
|
|
5
|
-
import { renderHTML } from
|
|
6
|
-
import theme from
|
|
5
|
+
import { renderHTML } from "../../utils";
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
7
|
const Paper = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
width,
|
|
9
9
|
height,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import OptionWrapper from
|
|
7
|
-
import { flexCol, overflowAuto, positionRelative } from
|
|
8
|
-
import { classNames } from
|
|
9
|
-
import theme from
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import { flexCol, overflowAuto, positionRelative } from "../../styles/general";
|
|
8
|
+
import { classNames } from "../../utils";
|
|
9
|
+
import theme from "../../theme/settings";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
fill: {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import OptionWrapper from
|
|
7
|
-
import { alignCenter, borderBox, flexRow, justifyEnd, parseWidth, positionRelative } from
|
|
8
|
-
import { classNames } from
|
|
9
|
-
import theme from
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import { alignCenter, borderBox, flexRow, justifyEnd, parseWidth, positionRelative } from "../../styles/general";
|
|
8
|
+
import { classNames } from "../../utils";
|
|
9
|
+
import theme from "../../theme/settings";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
system: {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import OptionWrapper from
|
|
7
|
-
import { Typography } from
|
|
8
|
-
import { alignCenter, borderBox, flexRow, parseWidthHeight, positionRelative } from
|
|
9
|
-
import { classNames } from
|
|
10
|
-
import theme from
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import { Typography } from "../";
|
|
8
|
+
import { alignCenter, borderBox, flexRow, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
9
|
+
import { classNames } from "../../utils";
|
|
10
|
+
import theme from "../../theme/settings";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
fill: {
|
|
@@ -4,10 +4,10 @@ import React, { memo, useState, useEffect, useMemo, useRef, forwardRef, useImper
|
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import OptionWrapper from
|
|
8
|
-
import { borderRadius4px, displayBlock, flexCol, justifyBetween, overflowAuto, parseWidthHeight, positionAbsolute, positionFixed, positionRelative } from
|
|
9
|
-
import theme from
|
|
10
|
-
import { classNames, isMobile, refType as ref } from
|
|
7
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
8
|
+
import { borderRadius4px, displayBlock, flexCol, justifyBetween, overflowAuto, parseWidthHeight, positionAbsolute, positionFixed, positionRelative } from "../../styles/general";
|
|
9
|
+
import theme from "../../theme/settings";
|
|
10
|
+
import { classNames, isMobile, refType as ref } from "../../utils";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
system: {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { memo, useEffect, useRef } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import Popup from
|
|
8
|
-
import { Button } from
|
|
9
|
-
import { renderHTML } from
|
|
10
|
-
import { Warning } from
|
|
11
|
-
import { typography } from
|
|
7
|
+
import Popup from "./";
|
|
8
|
+
import { Button } from "../";
|
|
9
|
+
import { renderHTML } from "../../utils";
|
|
10
|
+
import { Warning } from "../../icons";
|
|
11
|
+
import { typography } from "../../styles/typography";
|
|
12
12
|
const DangerPopup = ({
|
|
13
13
|
open,
|
|
14
14
|
warningText,
|
|
@@ -4,12 +4,12 @@ import { memo, useEffect, useMemo, useRef, forwardRef, useState } from 'react';
|
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css, keyframes } from '@emotion/core';
|
|
7
|
-
import { Button, ButtonIcon, Typography } from
|
|
8
|
-
import { Info, ApprovalFilled, Warning, Failed } from
|
|
9
|
-
import theme from
|
|
10
|
-
import { getGlobal } from
|
|
11
|
-
import { typography } from
|
|
12
|
-
import { useTheme } from
|
|
7
|
+
import { Button, ButtonIcon, Typography } from "../";
|
|
8
|
+
import { Info, ApprovalFilled, Warning, Failed } from "../../icons";
|
|
9
|
+
import theme from "../../theme/settings";
|
|
10
|
+
import { getGlobal } from "../../global";
|
|
11
|
+
import { typography } from "../../styles/typography";
|
|
12
|
+
import { useTheme } from "../../theme";
|
|
13
13
|
const {
|
|
14
14
|
zIndex
|
|
15
15
|
} = useTheme();
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useEffect, useMemo, useRef, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { Button, ButtonIcon } from
|
|
8
|
-
import { Close, Approval } from
|
|
9
|
-
import TextInput from
|
|
10
|
-
import { useTheme } from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import { Button, ButtonIcon } from "../";
|
|
8
|
+
import { Close, Approval } from "../../icons";
|
|
9
|
+
import TextInput from "../form-control/text-input";
|
|
10
|
+
import { useTheme } from "../../theme";
|
|
11
11
|
const {
|
|
12
12
|
zIndex
|
|
13
13
|
} = useTheme();
|