diginet-core-ui 1.3.85 → 1.3.86
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 +10 -10
- package/components/accordion/details.js +2 -2
- package/components/alert/index.js +3 -3
- package/components/alert/notify.js +2 -2
- package/components/avatar/index.js +3 -3
- package/components/badge/index.js +6 -6
- package/components/button/icon.js +9 -9
- package/components/button/index.js +9 -9
- package/components/button/more.js +2 -2
- package/components/card/index.js +6 -6
- package/components/chip/index.js +7 -7
- package/components/form-control/attachment/index.js +335 -479
- package/components/form-control/calendar/function.js +5 -5
- package/components/form-control/checkbox/index.js +6 -6
- package/components/form-control/date-picker/index.js +2 -2
- package/components/form-control/date-range-picker/index.js +2 -2
- package/components/form-control/dropdown/index.js +335 -451
- package/components/form-control/dropdown-box/index.js +2 -2
- package/components/form-control/input-base/index.js +52 -58
- package/components/form-control/radio/index.js +4 -4
- package/components/form-control/toggle/index.js +2 -2
- package/components/grid/index.js +2 -2
- package/components/image/index.js +3 -3
- package/components/modal/body.js +2 -2
- package/components/modal/footer.js +3 -3
- package/components/modal/header.js +3 -3
- package/components/modal/modal.js +2 -2
- package/components/paging/page-info.js +6 -6
- package/components/paging/page-selector2.js +3 -3
- package/components/popover/footer.js +3 -3
- package/components/popover/header.js +3 -3
- package/components/popup/v2/index.js +5 -5
- package/components/rating/index.js +4 -4
- package/components/slider/slider-container.js +5 -5
- package/components/status/index.js +4 -4
- package/components/tab/tab-header.js +2 -2
- package/components/tab/tab-panel.js +2 -2
- package/components/tab/tab.js +7 -7
- package/components/tooltip/index.js +2 -2
- package/components/tree-view/css.js +4 -4
- package/components/tree-view/index.js +4 -4
- package/global/index.js +12 -0
- package/icons/effect.js +57 -59
- package/package.json +1 -1
- package/readme.md +6 -0
- package/styles/general.js +280 -114
- package/styles/utils.js +10 -0
- package/utils/array/array.js +18 -25
- package/utils/sb-template.js +2 -2
- package/utils/string/string.js +1 -9
- package/utils/validate.js +2 -2
|
@@ -10,7 +10,7 @@ import theme from "../../../theme/settings";
|
|
|
10
10
|
import { date as moment } from "../../../utils";
|
|
11
11
|
import { color as colors } from "../../../styles/colors";
|
|
12
12
|
import { typography } from "../../../styles/typography";
|
|
13
|
-
import {
|
|
13
|
+
import { itemsCenter, border, boxBorder, borderRadius4px, cursorPointer, flexCol, flexRow, displayInlineFlex, justifyBetween, pointerEventsNone, positionAbsolute, positionRelative, textCenter, userSelectNone } from "../../../styles/general";
|
|
14
14
|
const {
|
|
15
15
|
heading6
|
|
16
16
|
} = typography;
|
|
@@ -44,7 +44,7 @@ const {
|
|
|
44
44
|
*/
|
|
45
45
|
const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) => css`
|
|
46
46
|
${borderRadius4px}
|
|
47
|
-
${
|
|
47
|
+
${boxBorder}
|
|
48
48
|
${flexCol}
|
|
49
49
|
background-color: ${white};
|
|
50
50
|
box-shadow: ${boxShadow ? theme.boxShadows.large : 'none'};
|
|
@@ -66,8 +66,8 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
|
|
|
66
66
|
width: 64px;
|
|
67
67
|
}
|
|
68
68
|
.${unique.navigator.center} {
|
|
69
|
-
${
|
|
70
|
-
${
|
|
69
|
+
${displayInlineFlex}
|
|
70
|
+
${itemsCenter}
|
|
71
71
|
${textCenter}
|
|
72
72
|
${userSelectNone}
|
|
73
73
|
height : 28px;
|
|
@@ -147,7 +147,7 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
|
|
|
147
147
|
&.${unique.day.today} {
|
|
148
148
|
span {
|
|
149
149
|
${heading6}
|
|
150
|
-
${
|
|
150
|
+
${boxBorder}
|
|
151
151
|
${border(1, active)}
|
|
152
152
|
/* text-decoration-line : underline;
|
|
153
153
|
text-decoration-thickness: 2px;
|
|
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/core';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { forwardRef, memo, useEffect, useRef, useState, useImperativeHandle, Fragment } from 'react';
|
|
6
6
|
import { Typography } from "../..";
|
|
7
|
-
import {
|
|
7
|
+
import { itemsCenter, itemsStart, boxBorder, cursorPointer, displayBlock, flexRow, positionAbsolute, positionRelative, cursorNoDrop, parseWidthHeight, border } from "../../../styles/general";
|
|
8
8
|
import { classNames, randomString, refType as ref } from "../../../utils";
|
|
9
9
|
import { color as colors } from "../../../styles/colors";
|
|
10
10
|
import theme from "../../../theme/settings";
|
|
@@ -153,7 +153,7 @@ const CheckBoxSquareCSS = (width, clMain) => css`
|
|
|
153
153
|
${flexRow};
|
|
154
154
|
${positionRelative};
|
|
155
155
|
${cursorPointer};
|
|
156
|
-
${
|
|
156
|
+
${boxBorder};
|
|
157
157
|
${parseWidthHeight(width, width)};
|
|
158
158
|
${border(2, rest)};
|
|
159
159
|
min-width: ${width};
|
|
@@ -247,14 +247,14 @@ const CheckBoxInputCSS = (CheckBoxSquareCSSName, clMain) => css`
|
|
|
247
247
|
const CheckBoxLabelCSS = css`
|
|
248
248
|
${flexRow};
|
|
249
249
|
${positionRelative};
|
|
250
|
-
${
|
|
251
|
-
${
|
|
250
|
+
${itemsCenter};
|
|
251
|
+
${boxBorder};
|
|
252
252
|
margin-bottom: 0 !important;
|
|
253
253
|
`;
|
|
254
254
|
const CheckBoxRootCSS = css`
|
|
255
255
|
${flexRow};
|
|
256
|
-
${
|
|
257
|
-
${
|
|
256
|
+
${itemsStart};
|
|
257
|
+
${boxBorder};
|
|
258
258
|
`;
|
|
259
259
|
const CheckboxContainerCSS = css`
|
|
260
260
|
${displayBlock};
|
|
@@ -13,7 +13,7 @@ import { ButtonIcon, HelperText, InputBase, Label } from "../../index";
|
|
|
13
13
|
import Button from "../../button";
|
|
14
14
|
import Tooltip from "../../tooltip";
|
|
15
15
|
import { isValidDate } from "../calendar/function";
|
|
16
|
-
import {
|
|
16
|
+
import { itemsCenter, borderRadius4px, cursorPointer, displayBlock, displayNone, flexRow, justifyEnd, parseWidth, positionFixed } from "../../../styles/general";
|
|
17
17
|
import theme from "../../../theme/settings";
|
|
18
18
|
const {
|
|
19
19
|
colors: {
|
|
@@ -523,7 +523,7 @@ const activeStyle = {
|
|
|
523
523
|
};
|
|
524
524
|
const IconAreaCSS = unique => css`
|
|
525
525
|
${flexRow};
|
|
526
|
-
${
|
|
526
|
+
${itemsCenter};
|
|
527
527
|
color: inherit;
|
|
528
528
|
.${unique.icon} {
|
|
529
529
|
${displayNone};
|
|
@@ -7,7 +7,7 @@ import locale from "../../../locale";
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
9
9
|
import { render } from 'react-dom';
|
|
10
|
-
import {
|
|
10
|
+
import { itemsCenter, borderRadius4px, cursorPointer, displayBlock, displayNone, flexCol, flexRow, justifyEnd, parseHeight, parseMaxWidth, parseMinWidth, parseWidth, parseWidthHeight, pointerEventsNone, positionFixed, textCenter, userSelectNone, whiteSpaceNoWrap } from "../../../styles/general";
|
|
11
11
|
import { useTheme } from "../../../theme";
|
|
12
12
|
import { capitalizeSentenceCase, classNames, date as moment, isEqual, randomString, updatePosition } from "../../../utils";
|
|
13
13
|
import { generateCalendarCSS, onUpdateNavigator, renderHeader, renderNavigator } from "../calendar/function";
|
|
@@ -1022,7 +1022,7 @@ const buttonProps = {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
const IconAreaCSS = css`
|
|
1024
1024
|
${flexRow};
|
|
1025
|
-
${
|
|
1025
|
+
${itemsCenter};
|
|
1026
1026
|
${parseWidth(24)};
|
|
1027
1027
|
color: inherit;
|
|
1028
1028
|
& span {
|