@pnkx-lib/ui 1.9.180 → 1.9.181
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/fields/CascaderField.js +5 -5
- package/es/fields/Checkbox.js +5 -5
- package/es/fields/DatePicker.js +5 -5
- package/es/fields/DateRangePicker.js +5 -5
- package/es/fields/Input.js +10 -10
- package/es/fields/PnkxField.js +3 -3
- package/es/fields/Radio.js +5 -5
- package/es/fields/Select.js +5 -5
- package/es/fields/SliderRanger.js +5 -5
- package/es/fields/SliderSingle.js +5 -5
- package/es/fields/Switch.js +5 -5
- package/es/fields/Textarea.js +5 -5
- package/es/fields/TinyMCE.js +5 -5
- package/es/fields/Upload.js +9 -9
- package/es/ui/Alert.js +2 -2
- package/es/ui/Anchor.js +2 -2
- package/es/ui/Appfix.js +2 -2
- package/es/ui/AutoComplete.js +2 -2
- package/es/ui/Badge.js +2 -2
- package/es/ui/BottomPagination.js +10 -10
- package/es/ui/Breadcrumb.js +2 -2
- package/es/ui/BreadcrumbHeading.js +5 -5
- package/es/ui/Button.js +2 -2
- package/es/ui/Card.js +2 -2
- package/es/ui/Cascader.js +2 -2
- package/es/ui/CategoryStatus.js +5 -5
- package/es/ui/Col.js +2 -2
- package/es/ui/Collapse.js +2 -2
- package/es/ui/ColorPicker.js +2 -2
- package/es/ui/ConfigProvider.js +2 -2
- package/es/ui/ConfirmModal.js +22 -22
- package/es/ui/Container.js +2 -2
- package/es/ui/Divider.js +2 -2
- package/es/ui/Drawer.js +2 -2
- package/es/ui/Dropdown.js +2 -2
- package/es/ui/Empty.js +2 -2
- package/es/ui/ErrorBoundary.js +9 -9
- package/es/ui/ErrorMessage.js +2 -2
- package/es/ui/Flex.js +2 -2
- package/es/ui/Footer.js +2 -2
- package/es/ui/Heading.js +7 -7
- package/es/ui/Image.js +2 -2
- package/es/ui/Label.js +4 -4
- package/es/ui/Layout.js +2 -2
- package/es/ui/Menu.js +4 -4
- package/es/ui/Modal.js +2 -2
- package/es/ui/PageNotFound.js +81 -81
- package/es/ui/Pagination.js +2 -2
- package/es/ui/Popconfirm.js +2 -2
- package/es/ui/Popover.js +2 -2
- package/es/ui/QRCode.js +2 -2
- package/es/ui/Rate.js +2 -2
- package/es/ui/Result.js +2 -2
- package/es/ui/Row.js +2 -2
- package/es/ui/SearchFilterForm.js +8 -8
- package/es/ui/Segmented.js +2 -2
- package/es/ui/Sidebar.js +31 -31
- package/es/ui/Skeleton.js +8 -8
- package/es/ui/Space.js +2 -2
- package/es/ui/Spin.js +2 -2
- package/es/ui/Splitter.js +2 -2
- package/es/ui/Statistic.js +2 -2
- package/es/ui/Steps.js +2 -2
- package/es/ui/Tabs.js +2 -2
- package/es/ui/Tag.js +2 -2
- package/es/ui/Timeline.js +2 -2
- package/es/ui/Tooltip.js +2 -2
- package/es/ui/Tour.js +2 -2
- package/es/ui/Tree.js +2 -2
- package/es/ui/Typography.js +4 -4
- package/es/ui/UploadImage.js +9 -9
- package/es/ui/Watermark.js +7 -7
- package/es/ui/index.js +97 -97
- package/package.json +1 -1
- package/es/chunks/jsx-runtime-DFKOoQSG.js +0 -430
package/es/ui/Pagination.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Pagination as Pagination$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const PaginationComponent = (props) => {
|
|
5
5
|
const { containerClassName, paginationClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsx(Pagination$1, { className: paginationClassName, ...restProps }) });
|
|
7
7
|
};
|
|
8
8
|
const Pagination = PaginationComponent;
|
|
9
9
|
|
package/es/ui/Popconfirm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Popconfirm as Popconfirm$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Popconfirm = ({ children, ...rest }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Popconfirm$1, { ...rest, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Popconfirm };
|
package/es/ui/Popover.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Popover as Popover$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Popover = (props) => {
|
|
5
5
|
const { containerClassName, popoverClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsx(Popover$1, { className: popoverClassName, ...restProps }) });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { Popover };
|
package/es/ui/QRCode.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { QRCode as QRCode$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const QRCode = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(QRCode$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { QRCode };
|
package/es/ui/Rate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Rate as Rate$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Rate = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Rate$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Rate };
|
package/es/ui/Result.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Result as Result$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Result = ({ children, ...rest }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Result$1, { ...rest, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Result };
|
package/es/ui/Row.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Row as Row$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Row = (props) => {
|
|
5
5
|
const { rowClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx(Row$1, { className: rowClassName, ...restProps });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { Row };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { u as useForm } from '../chunks/index.esm-DPdCEbIy.js';
|
|
3
3
|
import { Button } from './Button.js';
|
|
4
4
|
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-B_SLhOJa.js';
|
|
@@ -49,18 +49,18 @@ const SearchFiltersForm = ({
|
|
|
49
49
|
const { control, handleSubmit, reset, setValue } = useForm({
|
|
50
50
|
defaultValues: initialValues
|
|
51
51
|
});
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsxs("form", { className: classNameWrapperForm, onSubmit: handleSubmit(onSubmit), children: [
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: classNamesContainer, children: renderFilterFields && renderFilterFields({
|
|
54
54
|
control,
|
|
55
55
|
setValue,
|
|
56
56
|
handleSubmit: handleSubmit(onSubmit),
|
|
57
57
|
reset
|
|
58
58
|
}) }),
|
|
59
|
-
!hideDefaultSubmit && /* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
59
|
+
!hideDefaultSubmit && /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
61
|
Button,
|
|
62
62
|
{
|
|
63
|
-
icon: /* @__PURE__ */
|
|
63
|
+
icon: /* @__PURE__ */ jsx(RefIcon, {}),
|
|
64
64
|
className: "px-3 py-1 ",
|
|
65
65
|
color: "blue",
|
|
66
66
|
variant: "solid",
|
|
@@ -68,10 +68,10 @@ const SearchFiltersForm = ({
|
|
|
68
68
|
children: "Tìm kiếm"
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
!hideResetButton && /* @__PURE__ */
|
|
71
|
+
!hideResetButton && /* @__PURE__ */ jsx(
|
|
72
72
|
Button,
|
|
73
73
|
{
|
|
74
|
-
icon: /* @__PURE__ */
|
|
74
|
+
icon: /* @__PURE__ */ jsx(RefIcon$1, {}),
|
|
75
75
|
className: "px-3 py-1",
|
|
76
76
|
onClick: () => {
|
|
77
77
|
reset();
|
package/es/ui/Segmented.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Segmented as Segmented$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Segmented = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Segmented$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Segmented };
|
package/es/ui/Sidebar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState } from 'react';
|
|
4
4
|
import { useNavigate, useLocation } from 'react-router';
|
|
@@ -122,10 +122,10 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
122
122
|
const handleClick = (itemPath) => {
|
|
123
123
|
navigate(itemPath);
|
|
124
124
|
};
|
|
125
|
-
const Title = (props) => /* @__PURE__ */
|
|
125
|
+
const Title = (props) => /* @__PURE__ */ jsx(Flex, { align: "center", justify: "space-between", children: props.title });
|
|
126
126
|
const renderItem = (title) => ({
|
|
127
127
|
value: title,
|
|
128
|
-
label: /* @__PURE__ */
|
|
128
|
+
label: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "space-between", children: title })
|
|
129
129
|
});
|
|
130
130
|
const dataOption = newMenu.reduce((acc, itemMenu) => {
|
|
131
131
|
const groupName = itemMenu.name;
|
|
@@ -136,7 +136,7 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
136
136
|
);
|
|
137
137
|
if (!group) {
|
|
138
138
|
group = {
|
|
139
|
-
label: /* @__PURE__ */
|
|
139
|
+
label: /* @__PURE__ */ jsx(Title, { title: groupName }),
|
|
140
140
|
options: []
|
|
141
141
|
};
|
|
142
142
|
acc.push(group);
|
|
@@ -146,8 +146,8 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
146
146
|
});
|
|
147
147
|
return acc;
|
|
148
148
|
}, []);
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
|
+
/* @__PURE__ */ jsx(
|
|
151
151
|
Header,
|
|
152
152
|
{
|
|
153
153
|
style: {
|
|
@@ -157,9 +157,9 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
157
157
|
borderBottom: "1px solid white",
|
|
158
158
|
boxShadow: "0 1px 1px rgba(0, 0, 0, 0.15)"
|
|
159
159
|
},
|
|
160
|
-
children: /* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ jsxs("div", { className: "w-full flex justify-between", children: [
|
|
161
|
+
/* @__PURE__ */ jsx("div", { className: "pt-4 ml-[-2rem]", children: /* @__PURE__ */ jsx("img", { src: logoHeaderText, alt: "logo", width: 200 }) }),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { className: "w-xl justify-center items-center", children: /* @__PURE__ */ jsx(
|
|
163
163
|
AutoComplete,
|
|
164
164
|
{
|
|
165
165
|
classNames: {
|
|
@@ -168,17 +168,17 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
168
168
|
popupMatchSelectWidth: 500,
|
|
169
169
|
style: { width: 500 },
|
|
170
170
|
options: dataOption ?? [],
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ jsx(
|
|
172
172
|
Input,
|
|
173
173
|
{
|
|
174
174
|
className: "h-[32px] !placeholder:bg-[#E7F0FF] !bg-[#E7F0FF] !border !border-[#BDE3FF]",
|
|
175
175
|
placeholder: "Tìm kiếm...",
|
|
176
|
-
iconStartInput: /* @__PURE__ */
|
|
176
|
+
iconStartInput: /* @__PURE__ */ jsx("div", { className: "w-5 h-5", children: /* @__PURE__ */ jsx(distExports.SearchIcon, { className: "w-5 text-[#116DFF]" }) })
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
}
|
|
180
180
|
) }),
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end items-center", children: /* @__PURE__ */ jsx("a", { onClick: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx("li", { className: "list-none cursor-pointer group flex items-center", children: /* @__PURE__ */ jsxs(
|
|
182
182
|
"div",
|
|
183
183
|
{
|
|
184
184
|
className: twMerge(
|
|
@@ -186,18 +186,18 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
186
186
|
" text-black flex items-center rounded-md gap-2"
|
|
187
187
|
),
|
|
188
188
|
children: [
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ jsx(Divider, { type: "vertical" }),
|
|
190
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-center text-black", children: /* @__PURE__ */ jsx("img", { src: defaultAvatar, alt: "default_avatar" }) }),
|
|
191
|
+
/* @__PURE__ */ jsx("p", { children: "Admin" }),
|
|
192
|
+
/* @__PURE__ */ jsx(Dropdown, { menu: { items }, children: /* @__PURE__ */ jsx(distExports.DownOutlinedIcon, { className: "w-6 h-6" }) })
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
) }) }) })
|
|
196
196
|
] })
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ jsxs("div", { className: "flex relative h-[calc(100vh-64px)] overflow-y-hidden", children: [
|
|
200
|
+
/* @__PURE__ */ jsx(
|
|
201
201
|
"div",
|
|
202
202
|
{
|
|
203
203
|
onMouseEnter: () => {
|
|
@@ -210,25 +210,25 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
210
210
|
collapse ? "w-[255px]" : "w-[54px]",
|
|
211
211
|
openSubCollapse && "absolute"
|
|
212
212
|
),
|
|
213
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ jsx("nav", { className: twMerge("flex mt-2 flex-1 flex-col px-2"), children: /* @__PURE__ */ jsx("ul", { role: "list", className: twMerge("-mx-2 space-y-1 relative"), children: newMenu.flatMap((item) => {
|
|
214
214
|
const isActiveMainMenu = activeMainMenu === item.path;
|
|
215
215
|
const isActivePathUrl = pathUrl === item.path;
|
|
216
216
|
const isActive = isActiveMainMenu || isActivePathUrl;
|
|
217
|
-
return /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ jsx(
|
|
218
218
|
"li",
|
|
219
219
|
{
|
|
220
220
|
className: twMerge(
|
|
221
221
|
"relative cursor-pointer",
|
|
222
222
|
isActive ? "px-2" : "ml-0 px-2"
|
|
223
223
|
),
|
|
224
|
-
children: /* @__PURE__ */
|
|
224
|
+
children: /* @__PURE__ */ jsx(
|
|
225
225
|
"div",
|
|
226
226
|
{
|
|
227
227
|
className: twMerge(
|
|
228
228
|
"relative group hover:text-black",
|
|
229
229
|
!collapse && "hover:bg-[#FFFFFF] rounded-lg"
|
|
230
230
|
),
|
|
231
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ jsxs(
|
|
232
232
|
"a",
|
|
233
233
|
{
|
|
234
234
|
onClick: () => {
|
|
@@ -256,7 +256,7 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
256
256
|
}) }) })
|
|
257
257
|
}
|
|
258
258
|
),
|
|
259
|
-
openSubCollapse && /* @__PURE__ */
|
|
259
|
+
openSubCollapse && /* @__PURE__ */ jsx(
|
|
260
260
|
"div",
|
|
261
261
|
{
|
|
262
262
|
className: twMerge(
|
|
@@ -264,18 +264,18 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
264
264
|
collapse ? "w-17" : "w-[250px]",
|
|
265
265
|
"flex flex-col border-gray-200 bg-[#FFFFFF] shadow h-screen transition-all duration-300"
|
|
266
266
|
),
|
|
267
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ jsx(
|
|
268
268
|
"nav",
|
|
269
269
|
{
|
|
270
270
|
className: twMerge(
|
|
271
271
|
"flex flex-1 transition-all duration-300 flex-col"
|
|
272
272
|
),
|
|
273
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ jsx("ul", { role: "list", className: twMerge("cursor-pointer ml-[10px]"), children: newMenu?.map((sub) => {
|
|
274
274
|
const isActiveMainMenu = activeMainMenu === sub.path;
|
|
275
275
|
if (!isActiveMainMenu) return;
|
|
276
276
|
return sub?.children?.map((itemSubMenu) => {
|
|
277
|
-
return /* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ jsxs("li", { children: [
|
|
278
|
+
/* @__PURE__ */ jsxs(
|
|
279
279
|
"a",
|
|
280
280
|
{
|
|
281
281
|
onClick: () => {
|
|
@@ -288,11 +288,11 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
288
288
|
children: [
|
|
289
289
|
itemSubMenu.icon,
|
|
290
290
|
itemSubMenu.name,
|
|
291
|
-
Array.isArray(itemSubMenu?.children) && itemSubMenu.children.length > 0 && itemSubMenu.isShow ? openSubmenu === itemSubMenu.name ? /* @__PURE__ */
|
|
291
|
+
Array.isArray(itemSubMenu?.children) && itemSubMenu.children.length > 0 && itemSubMenu.isShow ? openSubmenu === itemSubMenu.name ? /* @__PURE__ */ jsx(RefIcon, { className: "w-4 h-4 ml-auto" }) : /* @__PURE__ */ jsx(RefIcon$1, { className: "w-4 h-4 ml-auto" }) : null
|
|
292
292
|
]
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
|
-
itemSubMenu.isShow && openSubmenu === itemSubMenu.name && /* @__PURE__ */
|
|
295
|
+
itemSubMenu.isShow && openSubmenu === itemSubMenu.name && /* @__PURE__ */ jsx("ul", { className: "pl-2 transition-all duration-300", children: itemSubMenu?.children?.map(
|
|
296
296
|
(itemChildrenSubMenu) => {
|
|
297
297
|
const itemFullPath = `/${itemSubMenu.path.replace(
|
|
298
298
|
/^\//,
|
|
@@ -301,7 +301,7 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
301
301
|
/^\/|\/$/g,
|
|
302
302
|
""
|
|
303
303
|
)}`;
|
|
304
|
-
return /* @__PURE__ */
|
|
304
|
+
return /* @__PURE__ */ jsxs(
|
|
305
305
|
"li",
|
|
306
306
|
{
|
|
307
307
|
onClick: () => handleClick(itemFullPath),
|
|
@@ -325,7 +325,7 @@ const Sidebar = ({ children, menu, userInfo }) => {
|
|
|
325
325
|
)
|
|
326
326
|
}
|
|
327
327
|
),
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ jsx(
|
|
329
329
|
"div",
|
|
330
330
|
{
|
|
331
331
|
className: twMerge(
|
package/es/ui/Skeleton.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Space, Card, Skeleton as Skeleton$1 } from 'antd';
|
|
3
3
|
|
|
4
|
-
const renderInputs = (count) => Array.from({ length: count }).map((_, index) => /* @__PURE__ */
|
|
4
|
+
const renderInputs = (count) => Array.from({ length: count }).map((_, index) => /* @__PURE__ */ jsx(Skeleton$1.Input, { size: "small", block: true, active: true }, index));
|
|
5
5
|
const Skeleton = ({ type, skeletonButtonCount }) => {
|
|
6
6
|
if (type === "table") {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
style: {
|
|
@@ -14,14 +14,14 @@ const Skeleton = ({ type, skeletonButtonCount }) => {
|
|
|
14
14
|
width: "100%",
|
|
15
15
|
marginBottom: 15
|
|
16
16
|
},
|
|
17
|
-
children: skeletonButtonCount && /* @__PURE__ */
|
|
17
|
+
children: skeletonButtonCount && /* @__PURE__ */ jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(Space, { children: renderInputs(skeletonButtonCount) }) })
|
|
18
18
|
}
|
|
19
19
|
),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(Space, { direction: "vertical", size: "middle", style: { width: "100%" }, children: renderInputs(10) }) }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { style: { ...styles.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ jsx(Skeleton$1.Input, { size: "small", active: true }) })
|
|
22
22
|
] });
|
|
23
23
|
}
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx("div", { style: { display: "grid", rowGap: 8 }, children: renderInputs(3) }) });
|
|
25
25
|
};
|
|
26
26
|
const styles = {
|
|
27
27
|
rightAlign: {
|
package/es/ui/Space.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Space as Space$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const SpaceComponent = (props) => {
|
|
5
5
|
const { containerClassName, spaceClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsx(Space$1, { className: spaceClassName, ...restProps }) });
|
|
7
7
|
};
|
|
8
8
|
SpaceComponent.Compact = Space$1.Compact;
|
|
9
9
|
const Space = SpaceComponent;
|
package/es/ui/Spin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Spin as Spin$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Spin = ({ children, ...rest }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Spin$1, { ...rest, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Spin };
|
package/es/ui/Splitter.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Splitter as Splitter$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const SplitterComponent = (props) => {
|
|
5
5
|
const { containerClassName, spaceClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsx(Splitter$1, { className: spaceClassName, ...restProps }) });
|
|
7
7
|
};
|
|
8
8
|
SplitterComponent.Panel = Splitter$1.Panel;
|
|
9
9
|
const Splitter = SplitterComponent;
|
package/es/ui/Statistic.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Statistic as Statistic$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Statistic = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Statistic$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Statistic };
|
package/es/ui/Steps.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Steps as Steps$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const StepsComponent = (props) => {
|
|
5
5
|
const { containerClassName, stepsClassName, ...restProps } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsx(Steps$1, { className: stepsClassName, ...restProps }) });
|
|
7
7
|
};
|
|
8
8
|
StepsComponent.Step = Steps$1.Step;
|
|
9
9
|
const Steps = StepsComponent;
|
package/es/ui/Tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { useEffect } from 'react';
|
|
3
3
|
import { Tabs as Tabs$1 } from 'antd';
|
|
4
4
|
|
|
@@ -62,7 +62,7 @@ const Tabs = ({
|
|
|
62
62
|
setActiveTabKey(defaultKey);
|
|
63
63
|
}
|
|
64
64
|
}, [activeTabKey, defaultKey, setActiveTabKey]);
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
66
|
Tabs$1,
|
|
67
67
|
{
|
|
68
68
|
items,
|
package/es/ui/Tag.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Tag as Tag$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Tag = (props) => {
|
|
5
5
|
const { children, ...rest } = props;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsxs(Tag$1, { ...rest, children: [
|
|
7
7
|
" ",
|
|
8
8
|
children
|
|
9
9
|
] });
|
package/es/ui/Timeline.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Timeline as Timeline$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Timeline = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Timeline$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Timeline };
|
package/es/ui/Tooltip.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Tooltip as Tooltip$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Tooltip = ({ children, ...props }) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Tooltip$1, { ...props, children });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Tooltip };
|
package/es/ui/Tour.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Tour as Tour$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Tour = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Tour$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Tour };
|
package/es/ui/Tree.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Tree as Tree$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Tree = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(Tree$1, { ...props });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { Tree };
|
package/es/ui/Typography.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Typography as Typography$1 } from 'antd';
|
|
3
3
|
|
|
4
4
|
const { Title, Paragraph, Text } = Typography$1;
|
|
5
5
|
const Typography = {
|
|
6
|
-
Title: (props) => /* @__PURE__ */
|
|
7
|
-
Paragraph: (props) => /* @__PURE__ */
|
|
8
|
-
Text: (props) => /* @__PURE__ */
|
|
6
|
+
Title: (props) => /* @__PURE__ */ jsx(Title, { ...props }),
|
|
7
|
+
Paragraph: (props) => /* @__PURE__ */ jsx(Paragraph, { ...props }),
|
|
8
|
+
Text: (props) => /* @__PURE__ */ jsx(Text, { ...props })
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { Typography };
|
package/es/ui/UploadImage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { Upload, Image, Tooltip, message } from 'antd';
|
|
@@ -69,13 +69,13 @@ const UploadImage = ({
|
|
|
69
69
|
customRequest: handleUpload,
|
|
70
70
|
showUploadList: false
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx(Dragger, { ...props, children: /* @__PURE__ */ jsx("div", { children: loading ? /* @__PURE__ */ jsx(Spin, {}) : imageUrl ? /* @__PURE__ */ jsxs(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
onClick: (e) => e.stopPropagation(),
|
|
76
76
|
className: "w-full rounded-md relative",
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
79
|
Image,
|
|
80
80
|
{
|
|
81
81
|
src: imageUrl,
|
|
@@ -84,7 +84,7 @@ const UploadImage = ({
|
|
|
84
84
|
className: "rounded-md"
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ jsx(Tooltip, { title: "Xóa ảnh", children: /* @__PURE__ */ jsx(
|
|
88
88
|
"button",
|
|
89
89
|
{
|
|
90
90
|
onClick: (e) => {
|
|
@@ -92,13 +92,13 @@ const UploadImage = ({
|
|
|
92
92
|
handleRemoveImage();
|
|
93
93
|
},
|
|
94
94
|
className: "absolute top-1 right-1 w-6 h-6 flex items-center justify-center bg-white cursor-pointer bg-opacity-80 rounded-full hover:bg-opacity-100 transition",
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ jsx(RefIcon, { className: "text-black text-[12px]" })
|
|
96
96
|
}
|
|
97
97
|
) })
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
|
-
) : /* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
100
|
+
) : /* @__PURE__ */ jsxs("div", { children: [
|
|
101
|
+
/* @__PURE__ */ jsx("div", { className: "ant-upload-drag-icon flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
|
|
102
102
|
"img",
|
|
103
103
|
{
|
|
104
104
|
src: logoUpload,
|
|
@@ -108,8 +108,8 @@ const UploadImage = ({
|
|
|
108
108
|
className: "rounded-md w-full h-full"
|
|
109
109
|
}
|
|
110
110
|
) }),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ jsx("p", { className: "ant-upload-text text-[#116DFF] text-[14px] font-[400]", children: "Tải hình ảnh lên" }),
|
|
112
|
+
/* @__PURE__ */ jsx("p", { className: "ant-upload-hint text-[14px] font-[400]", children: "Ảnh có kích thước 400x400 px và dung lượng dưới 1MB" })
|
|
113
113
|
] }) }) });
|
|
114
114
|
};
|
|
115
115
|
|
package/es/ui/Watermark.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Flex, Watermark as Watermark$1, Typography } from 'antd';
|
|
3
3
|
|
|
4
4
|
const Watermark = ({ ...rest }) => {
|
|
5
5
|
const { Paragraph } = Typography;
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx(Flex, { gap: "middle", children: /* @__PURE__ */ jsxs(Watermark$1, { ...rest, children: [
|
|
7
|
+
/* @__PURE__ */ jsxs(Typography, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Paragraph, { children: "The light-speed iteration of the digital world makes products more complex. However, human consciousness and attention resources are limited. Facing this design contradiction, the pursuit of natural interaction will be the consistent direction of Ant Design." }),
|
|
9
|
+
/* @__PURE__ */ jsx(Paragraph, { children: "Natural user cognition: According to cognitive psychology, about 80% of external information is obtained through visual channels. The most important visual elements in the interface design, including layout, colors, illustrations, icons, etc., should fully absorb the laws of nature, thereby reducing the user's cognitive cost and bringing authentic and smooth feelings. In some scenarios, opportunely adding other sensory channels such as hearing, touch can create a richer and more natural product experience." }),
|
|
10
|
+
/* @__PURE__ */ jsx(Paragraph, { children: "Natural user behavior: In the interaction with the system, the designer should fully understand the relationship between users, system roles, and task objectives, and also contextually organize system functions and services. At the same time, a series of methods such as behavior analysis, artificial intelligence and sensors could be applied to assist users to make effective decisions and reduce extra operations of users, to save users' mental and physical resources and make human-computer interaction more natural." })
|
|
11
11
|
] }),
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ jsx(
|
|
13
13
|
"img",
|
|
14
14
|
{
|
|
15
15
|
style: {
|