assui 3.0.78 → 3.1.0
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/es/flex/index.d.ts +21 -0
- package/es/flex/index.js +57 -0
- package/es/flex/style/index.css +1329 -0
- package/es/flex/style/index.d.ts +1 -0
- package/es/flex/style/index.js +1 -0
- package/es/flex/style/index.less +125 -0
- package/es/flex/utils/gapSize.d.ts +2 -0
- package/es/flex/utils/gapSize.js +3 -0
- package/es/flex/utils/index.d.ts +6 -0
- package/es/flex/utils/index.js +42 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/lib/flex/index.d.ts +21 -0
- package/lib/flex/index.js +67 -0
- package/lib/flex/style/index.css +1329 -0
- package/lib/flex/style/index.d.ts +1 -0
- package/lib/flex/style/index.js +6 -0
- package/lib/flex/style/index.less +125 -0
- package/lib/flex/utils/gapSize.d.ts +2 -0
- package/lib/flex/utils/gapSize.js +10 -0
- package/lib/flex/utils/index.d.ts +6 -0
- package/lib/flex/utils/index.js +53 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@import '~antd/lib/style/index.less';
|
|
2
|
+
|
|
3
|
+
.as-flex-wrap-wrap {
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.as-flex-wrap-nowrap {
|
|
8
|
+
flex-wrap: nowrap;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.as-flex-wrap-wrap-reverse {
|
|
12
|
+
flex-wrap: wrap-reverse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.as-flex-align-center {
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.as-flex-align-start {
|
|
20
|
+
align-items: start;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.as-flex-align-end {
|
|
24
|
+
align-items: end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.as-flex-align-flex-start {
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.as-flex-align-flex-end {
|
|
32
|
+
align-items: flex-end;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.as-flex-align-self-start {
|
|
36
|
+
align-items: self-start;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.as-flex-align-self-end {
|
|
40
|
+
align-items: self-end;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.as-flex-align-baseline {
|
|
44
|
+
align-items: baseline;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.as-flex-align-normal {
|
|
48
|
+
align-items: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.as-flex-align-stretch {
|
|
52
|
+
align-items: stretch;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.as-flex-justify-flex-start {
|
|
56
|
+
justify-content: flex-start;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.as-flex-justify-flex-end {
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.as-flex-justify-start {
|
|
64
|
+
justify-content: start;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.as-flex-justify-end {
|
|
68
|
+
justify-content: end;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.as-flex-justify-center {
|
|
72
|
+
justify-content: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.as-flex-justify-space-between {
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.as-flex-justify-space-around {
|
|
80
|
+
justify-content: space-around;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.as-flex-justify-space-evenly {
|
|
84
|
+
justify-content: space-evenly;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.as-flex-justify-stretch {
|
|
88
|
+
justify-content: stretch;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.as-flex-justify-normal {
|
|
92
|
+
justify-content: normal;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.as-flex-justify-left {
|
|
96
|
+
justify-content: left;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.as-flex-justify-right {
|
|
100
|
+
justify-content: right;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.as-flex {
|
|
104
|
+
display: flex;
|
|
105
|
+
|
|
106
|
+
&-vertical {
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:empty {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-gap-small {
|
|
115
|
+
gap: 8px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-gap-middle {
|
|
119
|
+
gap: 16px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-gap-large {
|
|
123
|
+
gap: 24px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FlexProps } from '../index';
|
|
2
|
+
export declare const flexWrapValues: readonly ["wrap", "nowrap", "wrap-reverse"];
|
|
3
|
+
export declare const justifyContentValues: readonly ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"];
|
|
4
|
+
export declare const alignItemsValues: readonly ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"];
|
|
5
|
+
declare function createFlexClassNames(prefixCls: string, props: FlexProps): string;
|
|
6
|
+
export default createFlexClassNames;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __assign = this && this.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
return __assign.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
16
|
+
return mod && mod.__esModule ? mod : {
|
|
17
|
+
"default": mod
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.alignItemsValues = exports.justifyContentValues = exports.flexWrapValues = void 0;
|
|
24
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
25
|
+
exports.flexWrapValues = ['wrap', 'nowrap', 'wrap-reverse'];
|
|
26
|
+
exports.justifyContentValues = ['flex-start', 'flex-end', 'start', 'end', 'center', 'space-between', 'space-around', 'space-evenly', 'stretch', 'normal', 'left', 'right'];
|
|
27
|
+
exports.alignItemsValues = ['center', 'start', 'end', 'flex-start', 'flex-end', 'self-start', 'self-end', 'baseline', 'normal', 'stretch'];
|
|
28
|
+
var genClsWrap = function genClsWrap(prefixCls, props) {
|
|
29
|
+
var wrapCls = {};
|
|
30
|
+
exports.flexWrapValues.forEach(function (cssKey) {
|
|
31
|
+
wrapCls["".concat(prefixCls, "-wrap-").concat(cssKey)] = props.wrap === cssKey;
|
|
32
|
+
});
|
|
33
|
+
return wrapCls;
|
|
34
|
+
};
|
|
35
|
+
var genClsAlign = function genClsAlign(prefixCls, props) {
|
|
36
|
+
var alignCls = {};
|
|
37
|
+
exports.alignItemsValues.forEach(function (cssKey) {
|
|
38
|
+
alignCls["".concat(prefixCls, "-align-").concat(cssKey)] = props.align === cssKey;
|
|
39
|
+
});
|
|
40
|
+
alignCls["".concat(prefixCls, "-align-stretch")] = !props.align && !!props.vertical;
|
|
41
|
+
return alignCls;
|
|
42
|
+
};
|
|
43
|
+
var genClsJustify = function genClsJustify(prefixCls, props) {
|
|
44
|
+
var justifyCls = {};
|
|
45
|
+
exports.justifyContentValues.forEach(function (cssKey) {
|
|
46
|
+
justifyCls["".concat(prefixCls, "-justify-").concat(cssKey)] = props.justify === cssKey;
|
|
47
|
+
});
|
|
48
|
+
return justifyCls;
|
|
49
|
+
};
|
|
50
|
+
function createFlexClassNames(prefixCls, props) {
|
|
51
|
+
return (0, classnames_1["default"])(__assign(__assign(__assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)), genClsJustify(prefixCls, props)));
|
|
52
|
+
}
|
|
53
|
+
exports["default"] = createFlexClassNames;
|
package/lib/index.d.ts
CHANGED
|
@@ -76,3 +76,5 @@ export type { RichTextEditorProps } from './rich-text-editor';
|
|
|
76
76
|
export { default as RichTextEditor } from './rich-text-editor';
|
|
77
77
|
export { default as BeautifulDnd } from './beautiful-dnd';
|
|
78
78
|
export { default as Resizable } from './resizable';
|
|
79
|
+
export type { FlexProps } from './flex';
|
|
80
|
+
export { default as Flex } from './flex';
|
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", {
|
|
9
9
|
value: true
|
|
10
10
|
});
|
|
11
|
-
exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.TableCol = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.LabelRangeNumber = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionSelectInput = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
11
|
+
exports.Flex = exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.TableCol = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.LabelRangeNumber = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionSelectInput = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
12
12
|
var button_drawer_1 = require("./button-drawer");
|
|
13
13
|
Object.defineProperty(exports, "ButtonDrawer", {
|
|
14
14
|
enumerable: true,
|
|
@@ -295,4 +295,11 @@ Object.defineProperty(exports, "Resizable", {
|
|
|
295
295
|
get: function get() {
|
|
296
296
|
return __importDefault(resizable_1)["default"];
|
|
297
297
|
}
|
|
298
|
+
});
|
|
299
|
+
var flex_1 = require("./flex");
|
|
300
|
+
Object.defineProperty(exports, "Flex", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function get() {
|
|
303
|
+
return __importDefault(flex_1)["default"];
|
|
304
|
+
}
|
|
298
305
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/react-beautiful-dnd": "^13.1.2",
|
|
36
36
|
"@types/react-color": "^3.0.6",
|
|
37
37
|
"@types/react-resizable": "^3.0.0",
|
|
38
|
-
"a-icons": "^1.1.
|
|
38
|
+
"a-icons": "^1.1.38",
|
|
39
39
|
"aa-utils": "^2.1.18",
|
|
40
40
|
"ahooks": "^3.0.8",
|
|
41
41
|
"bignumber.js": "^9.0.1",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "0a5e3afec53f3b89f23af59bd15cc11ebede21e5"
|
|
84
84
|
}
|