@unizap/uniui 1.0.23 → 1.0.24
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/components/List/{ListItem.d.ts → ListItem/ListItem.d.ts} +1 -1
- package/dist/components/List/ListItem/index.d.ts +1 -0
- package/dist/components/List/index.d.ts +0 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/uniui.js +52 -48
- package/dist/uniui.umd.cjs +30 -30
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ListItem';
|
|
@@ -11,6 +11,7 @@ export { default as ProfileImageShowcase } from './ProfileImageShowcase';
|
|
|
11
11
|
export { default as Stepper } from './Stepper';
|
|
12
12
|
export { default as Table } from './Table';
|
|
13
13
|
export { default as List } from './List';
|
|
14
|
+
export { default as ListItem } from './List/ListItem';
|
|
14
15
|
export { default as TextInput } from './TextInput';
|
|
15
16
|
export { default as Skeleton } from './Skeleton';
|
|
16
17
|
export { default as TextArea } from './TextArea';
|
package/dist/uniui.js
CHANGED
|
@@ -5919,7 +5919,10 @@ const ei = {
|
|
|
5919
5919
|
)
|
|
5920
5920
|
] })
|
|
5921
5921
|
] }) });
|
|
5922
|
-
}, Bl = ({ children: e, className: n = "" }) => /* @__PURE__ */ s.jsx("ul", { className: `divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`, children: e }), ql = ({
|
|
5922
|
+
}, Bl = ({ children: e, className: n = "" }) => /* @__PURE__ */ s.jsx("ul", { className: `divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`, children: e }), ql = ({ children: e, secondaryAction: n, className: t = "" }) => /* @__PURE__ */ s.jsxs("li", { className: `flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`, children: [
|
|
5923
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
|
|
5924
|
+
n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
|
|
5925
|
+
] }), Gl = ({
|
|
5923
5926
|
animation: e = "pulse",
|
|
5924
5927
|
variant: n = "rectangular",
|
|
5925
5928
|
width: t,
|
|
@@ -5989,7 +5992,7 @@ const ei = {
|
|
|
5989
5992
|
}
|
|
5990
5993
|
` })
|
|
5991
5994
|
] }) });
|
|
5992
|
-
},
|
|
5995
|
+
}, Wl = ({
|
|
5993
5996
|
label: e,
|
|
5994
5997
|
error: n,
|
|
5995
5998
|
className: t = "",
|
|
@@ -6037,7 +6040,7 @@ function oi(e) {
|
|
|
6037
6040
|
}, []);
|
|
6038
6041
|
return { schedule: i, flush: a, cancel: l, last: t };
|
|
6039
6042
|
}
|
|
6040
|
-
const
|
|
6043
|
+
const Ul = Zr(function({
|
|
6041
6044
|
/** controlled */
|
|
6042
6045
|
value: n,
|
|
6043
6046
|
/** uncontrolled */
|
|
@@ -6333,7 +6336,7 @@ const Wl = Zr(function({
|
|
|
6333
6336
|
] }),
|
|
6334
6337
|
p && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children: D }) }) : /* @__PURE__ */ s.jsx("span", { children: y }) })
|
|
6335
6338
|
] }) });
|
|
6336
|
-
}),
|
|
6339
|
+
}), Yl = ({
|
|
6337
6340
|
open: e = !1,
|
|
6338
6341
|
message: n,
|
|
6339
6342
|
autoHideDuration: t = 4e3,
|
|
@@ -6415,7 +6418,7 @@ const Wl = Zr(function({
|
|
|
6415
6418
|
}
|
|
6416
6419
|
)
|
|
6417
6420
|
] }) : null;
|
|
6418
|
-
},
|
|
6421
|
+
}, Zl = ({
|
|
6419
6422
|
variant: e = "linear",
|
|
6420
6423
|
value: n = 0,
|
|
6421
6424
|
color: t = "blue",
|
|
@@ -6515,7 +6518,7 @@ const Wl = Zr(function({
|
|
|
6515
6518
|
small: "w-4 h-4",
|
|
6516
6519
|
medium: "w-6 h-6",
|
|
6517
6520
|
large: "w-8 h-8"
|
|
6518
|
-
},
|
|
6521
|
+
}, Kl = ({
|
|
6519
6522
|
value: e,
|
|
6520
6523
|
onChange: n,
|
|
6521
6524
|
readOnly: t = !1,
|
|
@@ -6584,7 +6587,7 @@ const Wl = Zr(function({
|
|
|
6584
6587
|
k,
|
|
6585
6588
|
d && f !== null ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[f] || f }) : g ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[e] || e }) : null
|
|
6586
6589
|
] });
|
|
6587
|
-
},
|
|
6590
|
+
}, Xl = ({
|
|
6588
6591
|
children: e,
|
|
6589
6592
|
width: n = "100%",
|
|
6590
6593
|
height: t = "auto",
|
|
@@ -6773,7 +6776,7 @@ const Wl = Zr(function({
|
|
|
6773
6776
|
]
|
|
6774
6777
|
}
|
|
6775
6778
|
);
|
|
6776
|
-
},
|
|
6779
|
+
}, Jl = ({
|
|
6777
6780
|
title: e,
|
|
6778
6781
|
description: n,
|
|
6779
6782
|
actionLabel: t,
|
|
@@ -6806,7 +6809,7 @@ const Wl = Zr(function({
|
|
|
6806
6809
|
i
|
|
6807
6810
|
]
|
|
6808
6811
|
}
|
|
6809
|
-
),
|
|
6812
|
+
), Ql = ({
|
|
6810
6813
|
initialState: e = !1,
|
|
6811
6814
|
onToggle: n,
|
|
6812
6815
|
disabled: t = !1,
|
|
@@ -6869,7 +6872,7 @@ const Wl = Zr(function({
|
|
|
6869
6872
|
small: "px-2 py-1 text-sm",
|
|
6870
6873
|
medium: "px-4 py-2 text-base",
|
|
6871
6874
|
large: "px-6 py-3 text-lg"
|
|
6872
|
-
},
|
|
6875
|
+
}, es = ({
|
|
6873
6876
|
value: e,
|
|
6874
6877
|
onChange: n,
|
|
6875
6878
|
options: t,
|
|
@@ -6977,7 +6980,7 @@ const Wl = Zr(function({
|
|
|
6977
6980
|
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
6978
6981
|
f && /* @__PURE__ */ s.jsx("div", { className: "absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50", children: f })
|
|
6979
6982
|
] });
|
|
6980
|
-
},
|
|
6983
|
+
}, ts = ({
|
|
6981
6984
|
orientation: e = "horizontal",
|
|
6982
6985
|
variant: n = "fullWidth",
|
|
6983
6986
|
children: t,
|
|
@@ -7014,7 +7017,7 @@ const Wl = Zr(function({
|
|
|
7014
7017
|
${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
|
|
7015
7018
|
}
|
|
7016
7019
|
);
|
|
7017
|
-
},
|
|
7020
|
+
}, ns = ({
|
|
7018
7021
|
name: e,
|
|
7019
7022
|
options: n,
|
|
7020
7023
|
selectedValue: t,
|
|
@@ -7055,7 +7058,7 @@ const Wl = Zr(function({
|
|
|
7055
7058
|
},
|
|
7056
7059
|
d
|
|
7057
7060
|
);
|
|
7058
|
-
}) }),
|
|
7061
|
+
}) }), rs = ({
|
|
7059
7062
|
label: e,
|
|
7060
7063
|
value: n,
|
|
7061
7064
|
onChange: t,
|
|
@@ -7096,7 +7099,7 @@ const Wl = Zr(function({
|
|
|
7096
7099
|
/* @__PURE__ */ s.jsx("span", { className: `absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i ? "opacity-60" : ""}`, children: /* @__PURE__ */ s.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }) }) })
|
|
7097
7100
|
] })
|
|
7098
7101
|
] });
|
|
7099
|
-
},
|
|
7102
|
+
}, os = ({
|
|
7100
7103
|
content: e,
|
|
7101
7104
|
children: n,
|
|
7102
7105
|
position: t = "top"
|
|
@@ -7245,7 +7248,7 @@ const si = {
|
|
|
7245
7248
|
) : null;
|
|
7246
7249
|
}
|
|
7247
7250
|
);
|
|
7248
|
-
function
|
|
7251
|
+
function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
7249
7252
|
const [o, a] = K(!1), [i, l] = K({ top: 0, left: 0 }), [c, u] = K(!1), d = se(null), g = se(null), p = (v) => {
|
|
7250
7253
|
v.stopPropagation(), a((m) => !m), u(!1);
|
|
7251
7254
|
};
|
|
@@ -7385,7 +7388,7 @@ const di = ({
|
|
|
7385
7388
|
),
|
|
7386
7389
|
document.body
|
|
7387
7390
|
);
|
|
7388
|
-
},
|
|
7391
|
+
}, is = ({
|
|
7389
7392
|
title: e,
|
|
7390
7393
|
content: n,
|
|
7391
7394
|
expandIcon: t,
|
|
@@ -7441,7 +7444,7 @@ const di = ({
|
|
|
7441
7444
|
danger: "bg-color-red-500",
|
|
7442
7445
|
warning: "bg-color-yellow-500",
|
|
7443
7446
|
dark: "bg-color-gray-700"
|
|
7444
|
-
},
|
|
7447
|
+
}, ls = ({
|
|
7445
7448
|
message: e,
|
|
7446
7449
|
variant: n = "info",
|
|
7447
7450
|
onClose: t,
|
|
@@ -7488,7 +7491,7 @@ const di = ({
|
|
|
7488
7491
|
]
|
|
7489
7492
|
}
|
|
7490
7493
|
) : null;
|
|
7491
|
-
},
|
|
7494
|
+
}, ss = ({
|
|
7492
7495
|
children: e,
|
|
7493
7496
|
count: n,
|
|
7494
7497
|
showDot: t = !1,
|
|
@@ -8799,7 +8802,7 @@ function El(e, { relative: n } = {}) {
|
|
|
8799
8802
|
let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8800
8803
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8801
8804
|
}
|
|
8802
|
-
const
|
|
8805
|
+
const cs = ({
|
|
8803
8806
|
variant: e = "fixed",
|
|
8804
8807
|
activeTab: n,
|
|
8805
8808
|
navItems: t,
|
|
@@ -8825,7 +8828,7 @@ const ss = ({
|
|
|
8825
8828
|
c.label
|
|
8826
8829
|
);
|
|
8827
8830
|
}) });
|
|
8828
|
-
},
|
|
8831
|
+
}, us = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
|
|
8829
8832
|
r.href ? /* @__PURE__ */ s.jsx(
|
|
8830
8833
|
"a",
|
|
8831
8834
|
{
|
|
@@ -8835,7 +8838,7 @@ const ss = ({
|
|
|
8835
8838
|
}
|
|
8836
8839
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8837
8840
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8838
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
8841
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ds = ({
|
|
8839
8842
|
mode: e = "single",
|
|
8840
8843
|
type: n = "inline",
|
|
8841
8844
|
showTime: t = !1,
|
|
@@ -9060,7 +9063,7 @@ const ss = ({
|
|
|
9060
9063
|
),
|
|
9061
9064
|
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(ci, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9062
9065
|
] });
|
|
9063
|
-
},
|
|
9066
|
+
}, ps = ({
|
|
9064
9067
|
tabs: e,
|
|
9065
9068
|
activeKey: n,
|
|
9066
9069
|
onChange: t,
|
|
@@ -9107,7 +9110,7 @@ const ss = ({
|
|
|
9107
9110
|
]
|
|
9108
9111
|
}
|
|
9109
9112
|
);
|
|
9110
|
-
},
|
|
9113
|
+
}, fs = ({
|
|
9111
9114
|
stats: e = [],
|
|
9112
9115
|
className: n = ""
|
|
9113
9116
|
}) => /* @__PURE__ */ s.jsx(ii, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
|
|
@@ -9131,7 +9134,7 @@ const ss = ({
|
|
|
9131
9134
|
},
|
|
9132
9135
|
r
|
|
9133
9136
|
)) }) });
|
|
9134
|
-
function
|
|
9137
|
+
function ms({
|
|
9135
9138
|
items: e = [],
|
|
9136
9139
|
logoJSX: n,
|
|
9137
9140
|
position: t,
|
|
@@ -9193,52 +9196,53 @@ function fs({
|
|
|
9193
9196
|
) });
|
|
9194
9197
|
}
|
|
9195
9198
|
export {
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
+
is as Accordion,
|
|
9200
|
+
as as ActionMenu,
|
|
9201
|
+
ls as Alert,
|
|
9199
9202
|
hr as Avatar,
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
+
ss as Badge,
|
|
9204
|
+
cs as BottomNavigation,
|
|
9205
|
+
us as Breadcrumbs,
|
|
9203
9206
|
Gt as Button,
|
|
9204
9207
|
ve as COLOR_MAP,
|
|
9205
9208
|
ii as Card,
|
|
9206
9209
|
Nl as CardWrapper,
|
|
9207
|
-
|
|
9210
|
+
Xl as Carousel,
|
|
9208
9211
|
Dl as Checkbox,
|
|
9209
|
-
|
|
9210
|
-
|
|
9212
|
+
fs as DashboardStatBoxes,
|
|
9213
|
+
ds as DatePicker,
|
|
9211
9214
|
ci as Dialog,
|
|
9212
|
-
|
|
9215
|
+
ts as Divider,
|
|
9213
9216
|
di as Drawer,
|
|
9214
9217
|
zl as Dropdown,
|
|
9215
9218
|
Tl as DropzoneUploader,
|
|
9216
|
-
|
|
9219
|
+
Jl as EmptyState,
|
|
9217
9220
|
je as IconButton,
|
|
9218
9221
|
Bl as List,
|
|
9222
|
+
ql as ListItem,
|
|
9219
9223
|
oa as Menu,
|
|
9220
9224
|
sa as OtpInput,
|
|
9221
9225
|
ri as Pagination,
|
|
9222
9226
|
da as PasswordInput,
|
|
9223
9227
|
Ol as Pill,
|
|
9224
9228
|
Il as ProfileImageShowcase,
|
|
9225
|
-
|
|
9229
|
+
Zl as Progress,
|
|
9226
9230
|
qt as RANGE_COLOR_MAP,
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9231
|
+
ns as RadioGroup,
|
|
9232
|
+
Kl as Rating,
|
|
9233
|
+
rs as Select,
|
|
9234
|
+
ms as Sidebar,
|
|
9235
|
+
Gl as Skeleton,
|
|
9236
|
+
Ul as Slider,
|
|
9237
|
+
Yl as Snackbar,
|
|
9234
9238
|
Vl as Stepper,
|
|
9235
9239
|
Hl as Table,
|
|
9236
|
-
|
|
9237
|
-
|
|
9240
|
+
ps as Tabs,
|
|
9241
|
+
Wl as TextArea,
|
|
9238
9242
|
vr as TextInput,
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9243
|
+
es as ToggleButton,
|
|
9244
|
+
Ql as ToggleSwitch,
|
|
9245
|
+
os as Tooltip,
|
|
9242
9246
|
ni as Typography,
|
|
9243
9247
|
Fl as extendColorMap,
|
|
9244
9248
|
Al as extendRangeColorMap
|