@ncds/ui-admin 0.0.7 → 0.0.8
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/dist/const/Icon/FinanceECommerce.js +15 -7
- package/dist/const/Icon/alertAndFeedback.js +1 -7
- package/dist/const/Icon/arrow.js +11 -7
- package/dist/const/Icon/chart.js +1 -7
- package/dist/const/Icon/chevron.js +1 -7
- package/dist/const/Icon/circle.js +1 -7
- package/dist/const/Icon/communication.js +1 -7
- package/dist/const/Icon/development.js +12 -7
- package/dist/const/Icon/editor.js +1 -7
- package/dist/const/Icon/education.js +1 -7
- package/dist/const/Icon/files.js +1 -7
- package/dist/const/Icon/general.js +57 -31
- package/dist/const/Icon/index.js +31 -37
- package/dist/const/Icon/layout.js +13 -9
- package/dist/const/Icon/mapsTravel.js +1 -7
- package/dist/const/Icon/mediaDevices.js +11 -7
- package/dist/const/Icon/message.js +1 -7
- package/dist/const/Icon/sales.js +1 -7
- package/dist/const/Icon/security.js +1 -7
- package/dist/const/Icon/shapes.js +4 -9
- package/dist/const/Icon/tag.js +1 -7
- package/dist/const/Icon/time.js +1 -7
- package/dist/const/Icon/users.js +11 -7
- package/dist/const/Icon/weather.js +1 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-admin/assets/scripts/index.js +1 -16
- package/dist/ui-admin/assets/scripts/test.js +2 -9
- package/dist/ui-admin/constant/color.js +32 -38
- package/dist/ui-admin/constant/size.js +1 -5
- package/dist/ui-admin/index.d.ts +10 -0
- package/dist/ui-admin/index.d.ts.map +1 -1
- package/dist/ui-admin/index.js +13 -38
- package/dist/ui-admin/src/components/button/Button.js +68 -103
- package/dist/ui-admin/src/components/button/ButtonGroup.d.ts +1 -1
- package/dist/ui-admin/src/components/button/ButtonGroup.js +54 -93
- package/dist/ui-admin/src/components/button/index.d.ts +1 -0
- package/dist/ui-admin/src/components/button/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/button/index.js +2 -16
- package/dist/ui-admin/src/components/checkbox/Checkbox.js +26 -67
- package/dist/ui-admin/src/components/checkbox/CheckboxInput.js +30 -65
- package/dist/ui-admin/src/components/checkbox/index.js +2 -27
- package/dist/ui-admin/src/components/index.d.ts +4 -0
- package/dist/ui-admin/src/components/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/index.js +10 -71
- package/dist/ui-admin/src/components/input/FileInput.js +1 -1
- package/dist/ui-admin/src/components/input/InputBase.js +77 -162
- package/dist/ui-admin/src/components/input/PasswordInput.js +66 -84
- package/dist/ui-admin/src/components/input/index.d.ts +4 -0
- package/dist/ui-admin/src/components/input/index.d.ts.map +1 -0
- package/dist/ui-admin/src/components/input/index.js +3 -0
- package/dist/ui-admin/src/components/pagination/NavButton.js +60 -87
- package/dist/ui-admin/src/components/pagination/Pagination.js +104 -170
- package/dist/ui-admin/src/components/pagination/index.d.ts +1 -0
- package/dist/ui-admin/src/components/pagination/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/pagination/index.js +2 -16
- package/dist/ui-admin/src/components/radio/Radio.js +26 -62
- package/dist/ui-admin/src/components/radio/RadioInput.js +27 -48
- package/dist/ui-admin/src/components/radio/index.js +2 -27
- package/dist/ui-admin/src/components/select/Select.js +33 -96
- package/dist/ui-admin/src/components/select/index.js +1 -16
- package/dist/ui-admin/src/components/shared/hintText/HintText.js +25 -40
- package/dist/ui-admin/src/components/shared/hintText/index.d.ts +2 -0
- package/dist/ui-admin/src/components/shared/hintText/index.d.ts.map +1 -0
- package/dist/ui-admin/src/components/shared/hintText/index.js +1 -0
- package/dist/ui-admin/src/components/shared/index.d.ts +3 -0
- package/dist/ui-admin/src/components/shared/index.d.ts.map +1 -0
- package/dist/ui-admin/src/components/shared/index.js +2 -0
- package/dist/ui-admin/src/components/shared/label/Label.js +25 -40
- package/dist/ui-admin/src/components/shared/label/index.d.ts +2 -0
- package/dist/ui-admin/src/components/shared/label/index.d.ts.map +1 -0
- package/dist/ui-admin/src/components/shared/label/index.js +1 -0
- package/dist/ui-admin/src/components/spinner/Spinner.js +17 -49
- package/dist/ui-admin/src/components/spinner/index.d.ts +2 -0
- package/dist/ui-admin/src/components/spinner/index.d.ts.map +1 -0
- package/dist/ui-admin/src/components/spinner/index.js +1 -0
- package/dist/ui-admin/src/components/svg/SvgIcon.js +27 -62
- package/dist/ui-admin/src/components/svg/const.js +786 -792
- package/dist/ui-admin/src/components/svg/index.js +2 -27
- package/dist/ui-admin/src/components/tooltip/Tooltip.js +18 -67
- package/dist/ui-admin/src/components/tooltip/index.js +1 -16
- package/dist/ui-admin/src/constant/index.js +1 -16
- package/dist/ui-admin/src/constant/size.js +1 -7
- package/package.json +1 -1
- package/dist/ui-admin/assets/images/sprite.png +0 -0
- package/dist/ui-admin/assets/styles/style.css +0 -1438
|
@@ -1,65 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
__assign = Object.assign || function (t) {
|
|
12
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
13
|
-
s = arguments[i];
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
};
|
|
18
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
19
11
|
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { COLOR } from '../../../constant/color';
|
|
14
|
+
import { IconSet } from './const';
|
|
20
15
|
var INITIAL_VIEW_BOX = '0 0 24 24';
|
|
21
|
-
var SvgIcon = function (_a) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var isExistedIcon = Object.keys(_const.IconSet).includes(icon);
|
|
36
|
-
var isExistedColor = Object.keys(_color.COLOR).includes(color);
|
|
37
|
-
var iconInfo = {
|
|
38
|
-
viewBox: isExistedIcon ? _const.IconSet[icon].viewBox : INITIAL_VIEW_BOX,
|
|
39
|
-
path: isExistedIcon ? _const.IconSet[icon].path : '',
|
|
40
|
-
stroke: customColor ? customColor : isExistedColor ? _color.COLOR[color] : _color.COLOR['currentColor'],
|
|
41
|
-
width: size,
|
|
42
|
-
height: size,
|
|
43
|
-
strokeWidth: strokeWidth,
|
|
44
|
-
fill: fill
|
|
45
|
-
};
|
|
46
|
-
return (0, _jsxRuntime.jsx)("svg", __assign({
|
|
47
|
-
className: className,
|
|
48
|
-
width: iconInfo.width,
|
|
49
|
-
height: iconInfo.height,
|
|
50
|
-
viewBox: iconInfo.viewBox,
|
|
51
|
-
fill: "none",
|
|
52
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
53
|
-
}, {
|
|
54
|
-
children: (0, _jsxRuntime.jsx)("path", {
|
|
55
|
-
d: iconInfo.path,
|
|
56
|
-
fill: iconInfo.fill,
|
|
57
|
-
stroke: iconInfo.stroke,
|
|
58
|
-
strokeWidth: iconInfo.strokeWidth,
|
|
59
|
-
strokeLinecap: "round",
|
|
60
|
-
strokeLinejoin: "round",
|
|
61
|
-
strokeOpacity: strokeOpacity
|
|
62
|
-
})
|
|
63
|
-
}));
|
|
16
|
+
export var SvgIcon = function (_a) {
|
|
17
|
+
var icon = _a.icon, _b = _a.size, size = _b === void 0 ? 24 : _b, _c = _a.color, color = _c === void 0 ? 'currentColor' : _c, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? '2' : _d, _e = _a.strokeOpacity, strokeOpacity = _e === void 0 ? '1' : _e, className = _a.className, customColor = _a.customColor, _f = _a.fill, fill = _f === void 0 ? 'none' : _f;
|
|
18
|
+
var isExistedIcon = Object.keys(IconSet).includes(icon);
|
|
19
|
+
var isExistedColor = Object.keys(COLOR).includes(color);
|
|
20
|
+
var iconInfo = {
|
|
21
|
+
viewBox: isExistedIcon ? IconSet[icon].viewBox : INITIAL_VIEW_BOX,
|
|
22
|
+
path: isExistedIcon ? IconSet[icon].path : '',
|
|
23
|
+
stroke: customColor ? customColor : isExistedColor ? COLOR[color] : COLOR['currentColor'],
|
|
24
|
+
width: size,
|
|
25
|
+
height: size,
|
|
26
|
+
strokeWidth: strokeWidth,
|
|
27
|
+
fill: fill,
|
|
28
|
+
};
|
|
29
|
+
return (_jsx("svg", __assign({ className: className, width: iconInfo.width, height: iconInfo.height, viewBox: iconInfo.viewBox, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: iconInfo.path, fill: iconInfo.fill, stroke: iconInfo.stroke, strokeWidth: iconInfo.strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: strokeOpacity }) })));
|
|
64
30
|
};
|
|
65
|
-
exports.SvgIcon = SvgIcon;
|