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
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import React, { memo, forwardRef, useContext, useRef, useState, useImperativeHandle, useMemo } from 'react';
|
|
4
4
|
import { jsx, css } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import TabContext from
|
|
7
|
-
import ButtonIcon from
|
|
8
|
-
import { borderBox, displayNone, flexCol, flexRow, justifyCenter, overflowHidden, parseWidth, parseWidthHeight, positionRelative, whiteSpaceNoWrap } from
|
|
9
|
-
import { classNames, refType as ref } from
|
|
10
|
-
import theme from
|
|
6
|
+
import TabContext from "./context";
|
|
7
|
+
import ButtonIcon from "../button/icon";
|
|
8
|
+
import { borderBox, displayNone, flexCol, flexRow, justifyCenter, overflowHidden, parseWidth, parseWidthHeight, positionRelative, whiteSpaceNoWrap } from "../../styles/general";
|
|
9
|
+
import { classNames, refType as ref } from "../../utils";
|
|
10
|
+
import theme from "../../theme/settings";
|
|
11
11
|
const {
|
|
12
12
|
spacing
|
|
13
13
|
} = theme;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { memo, forwardRef, useContext, useRef, useEffect, useState, useImperativeHandle, useMemo } from 'react';
|
|
4
4
|
import { jsx, css } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import TabContext from
|
|
7
|
-
import { borderBox, displayNone, flexCol, parseWidthHeight, positionRelative } from
|
|
8
|
-
import theme from
|
|
9
|
-
import { classNames, refType as ref } from
|
|
6
|
+
import TabContext from "./context";
|
|
7
|
+
import { borderBox, displayNone, flexCol, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
8
|
+
import theme from "../../theme/settings";
|
|
9
|
+
import { classNames, refType as ref } from "../../utils";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
text: {
|
package/components/tab/tab.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { forwardRef, memo, useMemo, useContext, useRef, useImperativeHandle } from 'react';
|
|
4
4
|
import { jsx, css } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import Icon from
|
|
7
|
-
import { color as colors } from
|
|
8
|
-
import Ripple from
|
|
9
|
-
import Typography from
|
|
10
|
-
import TabContext from
|
|
11
|
-
import { alignCenter, backgroundTransparent, borderBox, boxShadowNone, breakWord, cursorDefault, cursorPointer, flexRow, justifyCenter, justifyStart, outlineNone, overflowHidden, pointerEventsNone, positionAbsolute, positionRelative, textCenter, whiteSpaceNoWrap } from
|
|
12
|
-
import { classNames, refType as ref } from
|
|
13
|
-
import theme from
|
|
6
|
+
import Icon from "../../icons";
|
|
7
|
+
import { color as colors } from "../../styles/colors";
|
|
8
|
+
import Ripple from "../button/ripple-effect";
|
|
9
|
+
import Typography from "../typography";
|
|
10
|
+
import TabContext from "./context";
|
|
11
|
+
import { alignCenter, backgroundTransparent, borderBox, boxShadowNone, breakWord, cursorDefault, cursorPointer, flexRow, justifyCenter, justifyStart, outlineNone, overflowHidden, pointerEventsNone, positionAbsolute, positionRelative, textCenter, whiteSpaceNoWrap } from "../../styles/general";
|
|
12
|
+
import { classNames, refType as ref } from "../../utils";
|
|
13
|
+
import theme from "../../theme/settings";
|
|
14
14
|
const {
|
|
15
15
|
colors: {
|
|
16
16
|
system: {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { forwardRef, memo, useEffect, useRef, useState, useMemo, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
|
-
import { classNames, randomString } from
|
|
6
|
+
import { classNames, randomString } from "../../utils";
|
|
7
7
|
import { jsx, css } from '@emotion/core';
|
|
8
|
-
import { borderBox, borderRadius4px, breakWord, displayInlineBlock, parseWidthHeight, positionAbsolute, userSelectNone } from
|
|
9
|
-
import { useColor as colors, useTheme } from
|
|
8
|
+
import { borderBox, borderRadius4px, breakWord, displayInlineBlock, parseWidthHeight, positionAbsolute, userSelectNone } from "../../styles/general";
|
|
9
|
+
import { useColor as colors, useTheme } from "../../theme";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
system: {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { Fragment, memo, useState, useMemo, useRef, forwardRef } from 'react';
|
|
4
4
|
import { string, number, bool, oneOfType, array, object, func } from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import Paper from
|
|
8
|
-
import { ButtonIcon, Checkbox, Typography } from
|
|
9
|
-
import { getGlobal } from
|
|
10
|
-
import { capitalize } from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import Paper from "../paper";
|
|
8
|
+
import { ButtonIcon, Checkbox, Typography } from "../";
|
|
9
|
+
import { getGlobal } from "../../global";
|
|
10
|
+
import { capitalize } from "../../utils";
|
|
11
11
|
const Transfer = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
12
12
|
choicesList,
|
|
13
13
|
chosenList,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/core';
|
|
2
|
-
import { alignCenter, borderBox, cursorPointer, displayBlock, displayInlineBlock, flexRow, positionRelative } from
|
|
3
|
-
import theme from
|
|
2
|
+
import { alignCenter, borderBox, cursorPointer, displayBlock, displayInlineBlock, flexRow, positionRelative } from "../../styles/general";
|
|
3
|
+
import theme from "../../theme/settings";
|
|
4
4
|
const {
|
|
5
5
|
colors: {
|
|
6
6
|
fill: {
|
|
@@ -5,10 +5,10 @@ import { render } from 'react-dom';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
7
|
import { Accordion, AccordionSummary, AccordionDetails, Typography, Checkbox, Divider, InputBase, ButtonIcon } from '..';
|
|
8
|
-
import { classNames, mapParent, randomString, removeUnicode } from
|
|
9
|
-
import { getGlobal } from
|
|
10
|
-
import { alignCenter, borderBox, cursorPointer, displayBlock, displayInlineBlock, flexRow, positionRelative } from
|
|
11
|
-
import theme from
|
|
8
|
+
import { classNames, mapParent, randomString, removeUnicode } from "../../utils";
|
|
9
|
+
import { getGlobal } from "../../global";
|
|
10
|
+
import { alignCenter, borderBox, cursorPointer, displayBlock, displayInlineBlock, flexRow, positionRelative } from "../../styles/general";
|
|
11
|
+
import theme from "../../theme/settings";
|
|
12
12
|
const {
|
|
13
13
|
colors: {
|
|
14
14
|
system: {
|
|
@@ -4,9 +4,9 @@ import { css, jsx } from '@emotion/core';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { forwardRef, Fragment, memo, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
6
6
|
import { Popover } from '..';
|
|
7
|
-
import { breakAll, breakWord, cursorPointer, displayBlock, displayInlineBlock, overflowHidden, pointerEventsNone, positionRelative, textCapitalize, textCenter, textUppercase } from
|
|
8
|
-
import { useColor as colors, useTheme, useTypography as typography } from
|
|
9
|
-
import { classNames, renderHTML } from
|
|
7
|
+
import { breakAll, breakWord, cursorPointer, displayBlock, displayInlineBlock, overflowHidden, pointerEventsNone, positionRelative, textCapitalize, textCenter, textUppercase } from "../../styles/general";
|
|
8
|
+
import { useColor as colors, useTheme, useTypography as typography } from "../../theme";
|
|
9
|
+
import { classNames, renderHTML } from "../../utils";
|
|
10
10
|
const {
|
|
11
11
|
colors: {
|
|
12
12
|
system: {
|
package/global/index.js
CHANGED
package/icons/basic.js
CHANGED
package/icons/effect.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useRef, 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 { color as colors } from
|
|
8
|
-
import * as Icons from
|
|
9
|
-
import { capitalize } from
|
|
10
|
-
import { alignCenter, borderBox, flexRow, justifyCenter, outlineNone, userSelectNone } from
|
|
6
|
+
import OptionWrapper from "../components/others/option-wrapper";
|
|
7
|
+
import { color as colors } from "../styles/colors";
|
|
8
|
+
import * as Icons from "./basic";
|
|
9
|
+
import { capitalize } from "../utils";
|
|
10
|
+
import { alignCenter, borderBox, flexRow, justifyCenter, outlineNone, userSelectNone } from "../styles/general";
|
|
11
11
|
const {
|
|
12
12
|
system: {
|
|
13
13
|
rest
|
package/icons/general/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { default as Clock } from
|
|
2
|
-
export { default as Undo } from
|
|
3
|
-
export { default as Redo } from
|
|
4
|
-
export { default as FontFamily } from
|
|
5
|
-
export { default as FontSize } from
|
|
6
|
-
export { default as Bold } from
|
|
7
|
-
export { default as Italic } from
|
|
8
|
-
export { default as Underline } from
|
|
9
|
-
export { default as TextColor } from
|
|
10
|
-
export { default as BackgroundColor } from
|
|
11
|
-
export { default as Emoji } from
|
|
12
|
-
export { default as TextAlignLeft } from
|
|
13
|
-
export { default as TextAlignCenter } from
|
|
14
|
-
export { default as TextAlignRight } from
|
|
15
|
-
export { default as TextAlignJustify } from
|
|
16
|
-
export { default as Bullets } from
|
|
17
|
-
export { default as Numbering } from
|
|
18
|
-
export { default as Decrease } from
|
|
19
|
-
export { default as Increase } from
|
|
20
|
-
export { default as Picture } from
|
|
21
|
-
export { default as Hyperlink } from
|
|
1
|
+
export { default as Clock } from "./clock/clock";
|
|
2
|
+
export { default as Undo } from "./steps/undo";
|
|
3
|
+
export { default as Redo } from "./steps/redo";
|
|
4
|
+
export { default as FontFamily } from "./font-properties/font-family";
|
|
5
|
+
export { default as FontSize } from "./font-properties/font-size";
|
|
6
|
+
export { default as Bold } from "./font-properties/bold";
|
|
7
|
+
export { default as Italic } from "./font-properties/italic";
|
|
8
|
+
export { default as Underline } from "./font-properties/underline";
|
|
9
|
+
export { default as TextColor } from "./color-handler/text";
|
|
10
|
+
export { default as BackgroundColor } from "./color-handler/background";
|
|
11
|
+
export { default as Emoji } from "./emoji/emoji";
|
|
12
|
+
export { default as TextAlignLeft } from "./text-align/left";
|
|
13
|
+
export { default as TextAlignCenter } from "./text-align/center";
|
|
14
|
+
export { default as TextAlignRight } from "./text-align/right";
|
|
15
|
+
export { default as TextAlignJustify } from "./text-align/justify";
|
|
16
|
+
export { default as Bullets } from "./list/bullets";
|
|
17
|
+
export { default as Numbering } from "./list/numbering";
|
|
18
|
+
export { default as Decrease } from "./indent/decrease";
|
|
19
|
+
export { default as Increase } from "./indent/increase";
|
|
20
|
+
export { default as Picture } from "./picture/picture";
|
|
21
|
+
export { default as Hyperlink } from "./hyperlink/hyperlink";
|
package/icons/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
import Icon from
|
|
1
|
+
export * from "./basic";
|
|
2
|
+
import Icon from "./effect";
|
|
3
3
|
export default Icon;
|
package/icons/menu/index.js
CHANGED
package/icons/menu/v2/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const IconMenu = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
15
15
|
ref = useRef(null);
|
|
16
16
|
}
|
|
17
17
|
const getResourceImage = fileName => {
|
|
18
|
-
let icon = require(
|
|
18
|
+
let icon = require("../../../assets/images/menu/dhr/Default.svg");
|
|
19
19
|
try {
|
|
20
20
|
icon = require('../../../assets/images/menu/' + `${type}/` + fileName);
|
|
21
21
|
} catch (e) {}
|
package/locale/index.js
CHANGED
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -38,6 +38,12 @@ npm test
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Changelog
|
|
41
|
+
## 1.3.80
|
|
42
|
+
- \[Changed\]: ButtonMore – Update Button More with new design
|
|
43
|
+
- \[Changed\]: BABEL – Add babel-plugin-module-resolver
|
|
44
|
+
- \[Changed\]: NumberInput – Add viewType none
|
|
45
|
+
- \[Changed\]: CircularProgress – Allow prop size accept number value; Optimize code
|
|
46
|
+
|
|
41
47
|
## 1.3.79
|
|
42
48
|
- \[Changed\]: Button – Add prop labelProps; Allow use CUI colors
|
|
43
49
|
- \[Changed\]: InputBase – Add startIcon, endIcon to multiline textarea; Add viewType none; Optimize code
|
package/styles/animation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-prototype-builtins */
|
|
2
2
|
import { keyframes } from '@emotion/core';
|
|
3
|
-
import { promisify } from
|
|
3
|
+
import { promisify } from "../utils";
|
|
4
4
|
const loadStyles = css => {
|
|
5
5
|
let head = document.head || document.getElementsByTagName('head')[0];
|
|
6
6
|
|
package/styles/colors.js
CHANGED
package/styles/font.js
CHANGED
|
@@ -9,10 +9,10 @@ export const fontSizes = {
|
|
|
9
9
|
};
|
|
10
10
|
export const font = {
|
|
11
11
|
fontFamily: `"SF Pro Display"`,
|
|
12
|
-
fontFamilyLink: require(
|
|
12
|
+
fontFamilyLink: require("../assets/fonts/SF-Pro-Display-Regular.otf"),
|
|
13
13
|
fontFamilyMedium: `"SF Pro Display Medium"`,
|
|
14
|
-
fontFamilyMediumLink: require(
|
|
14
|
+
fontFamilyMediumLink: require("../assets/fonts/SF-Pro-Display-Medium.otf"),
|
|
15
15
|
fontFamilyBold: `"SF Pro Display Bold"`,
|
|
16
|
-
fontFamilyBoldLink: require(
|
|
16
|
+
fontFamilyBoldLink: require("../assets/fonts/SF-Pro-Display-Bold.otf"),
|
|
17
17
|
fontSize: '16px'
|
|
18
18
|
};
|
package/styles/general.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
2
|
import { css, jsx } from '@emotion/core';
|
|
3
|
-
import { color } from
|
|
4
|
-
import { parseToPixel } from
|
|
3
|
+
import { color } from "./colors";
|
|
4
|
+
import { parseToPixel } from "./utils";
|
|
5
5
|
export const rootSpacing = 4;
|
|
6
6
|
export let rootZIndex = 1500;
|
|
7
7
|
export const typographyTypes = ['t1', 't2', 't3', 't4', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p1', 'p2', 'p3', 'title1', 'title2', 'title3', 'title4', 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6', 'paragraph1', 'paragraph2', 'paragraph3'];
|
|
@@ -40,6 +40,7 @@ export const setZIndex = number => {
|
|
|
40
40
|
};
|
|
41
41
|
export const flexRow = css`
|
|
42
42
|
display: flex;
|
|
43
|
+
flex-direction: row;
|
|
43
44
|
`;
|
|
44
45
|
export const inlineFlex = css`
|
|
45
46
|
display: inline-flex;
|
package/styles/typography.js
CHANGED
package/styles/utils.js
CHANGED
package/theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as ThemeProvider } from
|
|
2
|
-
export { useTheme, useColor, useTypography } from
|
|
3
|
-
export { default as makeStyles } from
|
|
1
|
+
export { default as ThemeProvider } from "./theme-provider";
|
|
2
|
+
export { useTheme, useColor, useTypography } from "./set-theme";
|
|
3
|
+
export { default as makeStyles } from "./make-styles";
|
package/theme/make-styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import createCache from '@emotion/cache';
|
|
2
2
|
import { insertStyles } from '@emotion/utils';
|
|
3
3
|
import { serializeStyles } from '@emotion/serialize';
|
|
4
|
-
import theme from
|
|
4
|
+
import theme from "./settings";
|
|
5
5
|
export const makeStylesCache = createCache({
|
|
6
6
|
key: 'css'
|
|
7
7
|
});
|
package/theme/set-theme.js
CHANGED
package/theme/settings.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as colors from
|
|
2
|
-
import { font } from
|
|
3
|
-
import { color } from
|
|
4
|
-
import { getSpacing, zIndex, setZIndex } from
|
|
1
|
+
import * as colors from "../styles/colors";
|
|
2
|
+
import { font } from "../styles/font";
|
|
3
|
+
import { color } from "../styles/colors";
|
|
4
|
+
import { getSpacing, zIndex, setZIndex } from "../styles/general";
|
|
5
5
|
const {
|
|
6
6
|
fontSize,
|
|
7
7
|
fontFamily,
|
|
8
8
|
fontFamilyBold,
|
|
9
9
|
fontFamilyMedium
|
|
10
10
|
} = font;
|
|
11
|
-
import { typography as typographies } from
|
|
12
|
-
import createBreakpoints from
|
|
11
|
+
import { typography as typographies } from "../styles/typography";
|
|
12
|
+
import createBreakpoints from "./createBreakpoints";
|
|
13
13
|
const settings = {
|
|
14
14
|
border: {
|
|
15
15
|
radius: '4px',
|
package/theme/theme-provider.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { memo, useEffect } from 'react';
|
|
4
4
|
import { jsx, css } from '@emotion/core';
|
|
5
|
-
import { setTheme } from
|
|
5
|
+
import { setTheme } from "./set-theme";
|
|
6
6
|
import { string, object, node } from 'prop-types';
|
|
7
|
-
import { font } from
|
|
7
|
+
import { font } from "../styles/font";
|
|
8
8
|
const {
|
|
9
9
|
fontFamily,
|
|
10
10
|
fontFamilyBold,
|
package/theme/theme.js
CHANGED
package/utils/array/array.js
CHANGED
package/utils/console.js
CHANGED
package/utils/date.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getGlobal } from
|
|
2
|
-
import locale from
|
|
1
|
+
import { getGlobal } from "../global";
|
|
2
|
+
import locale from "../locale";
|
|
3
3
|
const language = locale.get();
|
|
4
4
|
const localeName = language === 'en' ? 'en-US' : 'vi-VN';
|
|
5
5
|
const units = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'];
|
package/utils/error/error.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { extend } from
|
|
2
|
-
import { logger } from
|
|
3
|
-
import { format } from
|
|
1
|
+
import { extend } from "../object/extend";
|
|
2
|
+
import { logger } from "../console";
|
|
3
|
+
import { format } from "../string/string";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* future
|
package/utils/error/errors.js
CHANGED
package/utils/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import * as utils from '.';
|
|
2
|
-
export * from
|
|
3
|
-
export { default as classNames } from
|
|
4
|
-
export * from
|
|
5
|
-
export { default as date } from
|
|
6
|
-
export { default as getFileType } from
|
|
7
|
-
export { default as handleBreakpoints } from
|
|
8
|
-
export { default as isMobile } from
|
|
9
|
-
export { default as mapParent } from
|
|
10
|
-
export { default as parseTextToHTML } from
|
|
11
|
-
export { default as promisify } from
|
|
12
|
-
export { default as randomString } from
|
|
13
|
-
export { default as refType } from
|
|
14
|
-
export { default as removeUnicode } from
|
|
15
|
-
export * from
|
|
16
|
-
export { default as renderHTML } from
|
|
17
|
-
export { default as renderIcon } from
|
|
18
|
-
export * from
|
|
19
|
-
export { default as SbTemplate } from
|
|
20
|
-
export { default as capitalize } from
|
|
21
|
-
export { default as capitalizeSentenceCase } from
|
|
22
|
-
export * from
|
|
23
|
-
export { default as updatePosition } from
|
|
24
|
-
export { default as useDelayUnmount } from
|
|
25
|
-
export { default as useMediaQuery } from
|
|
26
|
-
export { default as useOnClickOutside } from
|
|
27
|
-
export { default as usePortal } from
|
|
28
|
-
export * from
|
|
29
|
-
export { default as onValidate } from
|
|
2
|
+
export * from "./array/array";
|
|
3
|
+
export { default as classNames } from "./classNames";
|
|
4
|
+
export * from "./date";
|
|
5
|
+
export { default as date } from "./date";
|
|
6
|
+
export { default as getFileType } from "./getFileType";
|
|
7
|
+
export { default as handleBreakpoints } from "./handleBreakpoints";
|
|
8
|
+
export { default as isMobile } from "./isMobile";
|
|
9
|
+
export { default as mapParent } from "./map-parent";
|
|
10
|
+
export { default as parseTextToHTML } from "./parseHTML";
|
|
11
|
+
export { default as promisify } from "./promisify";
|
|
12
|
+
export { default as randomString } from "./randomString";
|
|
13
|
+
export { default as refType } from "./refType";
|
|
14
|
+
export { default as removeUnicode } from "./remove-unicode";
|
|
15
|
+
export * from "./render-portal";
|
|
16
|
+
export { default as renderHTML } from "./renderHTML";
|
|
17
|
+
export { default as renderIcon } from "./renderIcon";
|
|
18
|
+
export * from "./sb-template";
|
|
19
|
+
export { default as SbTemplate } from "./sb-template";
|
|
20
|
+
export { default as capitalize } from "./string/capitalize";
|
|
21
|
+
export { default as capitalizeSentenceCase } from "./string/capitalizeSentenceCase";
|
|
22
|
+
export * from "./string/string";
|
|
23
|
+
export { default as updatePosition } from "./updatePosition";
|
|
24
|
+
export { default as useDelayUnmount } from "./useDelayUnmount";
|
|
25
|
+
export { default as useMediaQuery } from "./useMediaQuery";
|
|
26
|
+
export { default as useOnClickOutside } from "./useOnClickOutside";
|
|
27
|
+
export { default as usePortal } from "./usePortal";
|
|
28
|
+
export * from "./validate";
|
|
29
|
+
export { default as onValidate } from "./validate";
|
|
30
30
|
export default utils;
|
package/utils/object/extend.js
CHANGED
package/utils/object/object.js
CHANGED
package/utils/render-portal.js
CHANGED
package/utils/renderHTML.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { jsx } from '@emotion/core';
|
|
4
|
-
import parseTextToHTML from
|
|
4
|
+
import parseTextToHTML from "./parseHTML";
|
|
5
5
|
const renderHTML = (text = null, TagName = 'div', options = {}) => {
|
|
6
6
|
if (text && (text.$$typeof && String(text.$$typeof) === 'Symbol(react.element)' || Array.isArray(text) && text.some(node => node && String(node.$$typeof) === 'Symbol(react.element)'))) {
|
|
7
7
|
return jsx(TagName, {
|
package/utils/renderIcon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { jsx } from '@emotion/core';
|
|
4
|
-
import { ButtonIcon } from
|
|
5
|
-
import * as Icons from
|
|
6
|
-
import { parseTextToHTML, capitalize } from
|
|
4
|
+
import { ButtonIcon } from "../components";
|
|
5
|
+
import * as Icons from "../icons";
|
|
6
|
+
import { parseTextToHTML, capitalize } from "./";
|
|
7
7
|
/**
|
|
8
8
|
* render icon form source (dynamic type)
|
|
9
9
|
* @param {String|jsx} source data of icon, maybe svg text | image link | name of icon in icons store or a jsx element
|
package/utils/sb-template.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { css } from '@emotion/core';
|
|
3
|
-
import { Col, Row, Tooltip, Typography } from
|
|
4
|
-
import { useTheme } from
|
|
5
|
-
import { flexWrap, flexRow, alignCenter, flexCol, alignStart, alignEnd } from
|
|
6
|
-
import ImportComp from
|
|
3
|
+
import { Col, Row, Tooltip, Typography } from "../components/index";
|
|
4
|
+
import { useTheme } from "../theme";
|
|
5
|
+
import { flexWrap, flexRow, alignCenter, flexCol, alignStart, alignEnd } from "../styles/general";
|
|
6
|
+
import ImportComp from "../components/others/import";
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
const {
|
|
9
9
|
spacing
|