@unizap/uniui 1.0.22 → 1.0.23

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.
@@ -1,2 +1,2 @@
1
- export { default as List } from './List';
1
+ export { default } from './List';
2
2
  export { default as ListItem } from './ListItem';
@@ -10,6 +10,7 @@ export { default as Pill } from './Pill';
10
10
  export { default as ProfileImageShowcase } from './ProfileImageShowcase';
11
11
  export { default as Stepper } from './Stepper';
12
12
  export { default as Table } from './Table';
13
+ export { default as List } from './List';
13
14
  export { default as TextInput } from './TextInput';
14
15
  export { default as Skeleton } from './Skeleton';
15
16
  export { default as TextArea } from './TextArea';
package/dist/uniui.js CHANGED
@@ -5919,7 +5919,7 @@ const ei = {
5919
5919
  )
5920
5920
  ] })
5921
5921
  ] }) });
5922
- }, Bl = ({
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 = ({
5923
5923
  animation: e = "pulse",
5924
5924
  variant: n = "rectangular",
5925
5925
  width: t,
@@ -5989,7 +5989,7 @@ const ei = {
5989
5989
  }
5990
5990
  ` })
5991
5991
  ] }) });
5992
- }, ql = ({
5992
+ }, Gl = ({
5993
5993
  label: e,
5994
5994
  error: n,
5995
5995
  className: t = "",
@@ -6037,7 +6037,7 @@ function oi(e) {
6037
6037
  }, []);
6038
6038
  return { schedule: i, flush: a, cancel: l, last: t };
6039
6039
  }
6040
- const Gl = Zr(function({
6040
+ const Wl = Zr(function({
6041
6041
  /** controlled */
6042
6042
  value: n,
6043
6043
  /** uncontrolled */
@@ -6333,7 +6333,7 @@ const Gl = Zr(function({
6333
6333
  ] }),
6334
6334
  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
6335
  ] }) });
6336
- }), Wl = ({
6336
+ }), Ul = ({
6337
6337
  open: e = !1,
6338
6338
  message: n,
6339
6339
  autoHideDuration: t = 4e3,
@@ -6415,7 +6415,7 @@ const Gl = Zr(function({
6415
6415
  }
6416
6416
  )
6417
6417
  ] }) : null;
6418
- }, Ul = ({
6418
+ }, Yl = ({
6419
6419
  variant: e = "linear",
6420
6420
  value: n = 0,
6421
6421
  color: t = "blue",
@@ -6515,7 +6515,7 @@ const Gl = Zr(function({
6515
6515
  small: "w-4 h-4",
6516
6516
  medium: "w-6 h-6",
6517
6517
  large: "w-8 h-8"
6518
- }, Yl = ({
6518
+ }, Zl = ({
6519
6519
  value: e,
6520
6520
  onChange: n,
6521
6521
  readOnly: t = !1,
@@ -6584,7 +6584,7 @@ const Gl = Zr(function({
6584
6584
  k,
6585
6585
  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
6586
  ] });
6587
- }, Zl = ({
6587
+ }, Kl = ({
6588
6588
  children: e,
6589
6589
  width: n = "100%",
6590
6590
  height: t = "auto",
@@ -6773,7 +6773,7 @@ const Gl = Zr(function({
6773
6773
  ]
6774
6774
  }
6775
6775
  );
6776
- }, Kl = ({
6776
+ }, Xl = ({
6777
6777
  title: e,
6778
6778
  description: n,
6779
6779
  actionLabel: t,
@@ -6806,7 +6806,7 @@ const Gl = Zr(function({
6806
6806
  i
6807
6807
  ]
6808
6808
  }
6809
- ), Xl = ({
6809
+ ), Jl = ({
6810
6810
  initialState: e = !1,
6811
6811
  onToggle: n,
6812
6812
  disabled: t = !1,
@@ -6869,7 +6869,7 @@ const Gl = Zr(function({
6869
6869
  small: "px-2 py-1 text-sm",
6870
6870
  medium: "px-4 py-2 text-base",
6871
6871
  large: "px-6 py-3 text-lg"
6872
- }, Jl = ({
6872
+ }, Ql = ({
6873
6873
  value: e,
6874
6874
  onChange: n,
6875
6875
  options: t,
@@ -6977,7 +6977,7 @@ const Gl = Zr(function({
6977
6977
  /* @__PURE__ */ s.jsx("div", { children: c }),
6978
6978
  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
6979
  ] });
6980
- }, Ql = ({
6980
+ }, es = ({
6981
6981
  orientation: e = "horizontal",
6982
6982
  variant: n = "fullWidth",
6983
6983
  children: t,
@@ -7014,7 +7014,7 @@ const Gl = Zr(function({
7014
7014
  ${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
7015
7015
  }
7016
7016
  );
7017
- }, es = ({
7017
+ }, ts = ({
7018
7018
  name: e,
7019
7019
  options: n,
7020
7020
  selectedValue: t,
@@ -7055,7 +7055,7 @@ const Gl = Zr(function({
7055
7055
  },
7056
7056
  d
7057
7057
  );
7058
- }) }), ts = ({
7058
+ }) }), ns = ({
7059
7059
  label: e,
7060
7060
  value: n,
7061
7061
  onChange: t,
@@ -7096,7 +7096,7 @@ const Gl = Zr(function({
7096
7096
  /* @__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
7097
  ] })
7098
7098
  ] });
7099
- }, ns = ({
7099
+ }, rs = ({
7100
7100
  content: e,
7101
7101
  children: n,
7102
7102
  position: t = "top"
@@ -7245,7 +7245,7 @@ const si = {
7245
7245
  ) : null;
7246
7246
  }
7247
7247
  );
7248
- function rs({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7248
+ function os({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7249
7249
  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
7250
  v.stopPropagation(), a((m) => !m), u(!1);
7251
7251
  };
@@ -7385,7 +7385,7 @@ const di = ({
7385
7385
  ),
7386
7386
  document.body
7387
7387
  );
7388
- }, os = ({
7388
+ }, as = ({
7389
7389
  title: e,
7390
7390
  content: n,
7391
7391
  expandIcon: t,
@@ -7441,7 +7441,7 @@ const di = ({
7441
7441
  danger: "bg-color-red-500",
7442
7442
  warning: "bg-color-yellow-500",
7443
7443
  dark: "bg-color-gray-700"
7444
- }, as = ({
7444
+ }, is = ({
7445
7445
  message: e,
7446
7446
  variant: n = "info",
7447
7447
  onClose: t,
@@ -7488,7 +7488,7 @@ const di = ({
7488
7488
  ]
7489
7489
  }
7490
7490
  ) : null;
7491
- }, is = ({
7491
+ }, ls = ({
7492
7492
  children: e,
7493
7493
  count: n,
7494
7494
  showDot: t = !1,
@@ -8799,7 +8799,7 @@ function El(e, { relative: n } = {}) {
8799
8799
  let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
8800
8800
  return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
8801
8801
  }
8802
- const ls = ({
8802
+ const ss = ({
8803
8803
  variant: e = "fixed",
8804
8804
  activeTab: n,
8805
8805
  navItems: t,
@@ -8825,7 +8825,7 @@ const ls = ({
8825
8825
  c.label
8826
8826
  );
8827
8827
  }) });
8828
- }, ss = ({ 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: [
8828
+ }, cs = ({ 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
8829
  r.href ? /* @__PURE__ */ s.jsx(
8830
8830
  "a",
8831
8831
  {
@@ -8835,7 +8835,7 @@ const ls = ({
8835
8835
  }
8836
8836
  ) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
8837
8837
  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"], cs = ({
8838
+ ] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], us = ({
8839
8839
  mode: e = "single",
8840
8840
  type: n = "inline",
8841
8841
  showTime: t = !1,
@@ -9060,7 +9060,7 @@ const ls = ({
9060
9060
  ),
9061
9061
  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
9062
  ] });
9063
- }, us = ({
9063
+ }, ds = ({
9064
9064
  tabs: e,
9065
9065
  activeKey: n,
9066
9066
  onChange: t,
@@ -9107,7 +9107,7 @@ const ls = ({
9107
9107
  ]
9108
9108
  }
9109
9109
  );
9110
- }, ds = ({
9110
+ }, ps = ({
9111
9111
  stats: e = [],
9112
9112
  className: n = ""
9113
9113
  }) => /* @__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 +9131,7 @@ const ls = ({
9131
9131
  },
9132
9132
  r
9133
9133
  )) }) });
9134
- function ps({
9134
+ function fs({
9135
9135
  items: e = [],
9136
9136
  logoJSX: n,
9137
9137
  position: t,
@@ -9193,51 +9193,52 @@ function ps({
9193
9193
  ) });
9194
9194
  }
9195
9195
  export {
9196
- os as Accordion,
9197
- rs as ActionMenu,
9198
- as as Alert,
9196
+ as as Accordion,
9197
+ os as ActionMenu,
9198
+ is as Alert,
9199
9199
  hr as Avatar,
9200
- is as Badge,
9201
- ls as BottomNavigation,
9202
- ss as Breadcrumbs,
9200
+ ls as Badge,
9201
+ ss as BottomNavigation,
9202
+ cs as Breadcrumbs,
9203
9203
  Gt as Button,
9204
9204
  ve as COLOR_MAP,
9205
9205
  ii as Card,
9206
9206
  Nl as CardWrapper,
9207
- Zl as Carousel,
9207
+ Kl as Carousel,
9208
9208
  Dl as Checkbox,
9209
- ds as DashboardStatBoxes,
9210
- cs as DatePicker,
9209
+ ps as DashboardStatBoxes,
9210
+ us as DatePicker,
9211
9211
  ci as Dialog,
9212
- Ql as Divider,
9212
+ es as Divider,
9213
9213
  di as Drawer,
9214
9214
  zl as Dropdown,
9215
9215
  Tl as DropzoneUploader,
9216
- Kl as EmptyState,
9216
+ Xl as EmptyState,
9217
9217
  je as IconButton,
9218
+ Bl as List,
9218
9219
  oa as Menu,
9219
9220
  sa as OtpInput,
9220
9221
  ri as Pagination,
9221
9222
  da as PasswordInput,
9222
9223
  Ol as Pill,
9223
9224
  Il as ProfileImageShowcase,
9224
- Ul as Progress,
9225
+ Yl as Progress,
9225
9226
  qt as RANGE_COLOR_MAP,
9226
- es as RadioGroup,
9227
- Yl as Rating,
9228
- ts as Select,
9229
- ps as Sidebar,
9230
- Bl as Skeleton,
9231
- Gl as Slider,
9232
- Wl as Snackbar,
9227
+ ts as RadioGroup,
9228
+ Zl as Rating,
9229
+ ns as Select,
9230
+ fs as Sidebar,
9231
+ ql as Skeleton,
9232
+ Wl as Slider,
9233
+ Ul as Snackbar,
9233
9234
  Vl as Stepper,
9234
9235
  Hl as Table,
9235
- us as Tabs,
9236
- ql as TextArea,
9236
+ ds as Tabs,
9237
+ Gl as TextArea,
9237
9238
  vr as TextInput,
9238
- Jl as ToggleButton,
9239
- Xl as ToggleSwitch,
9240
- ns as Tooltip,
9239
+ Ql as ToggleButton,
9240
+ Jl as ToggleSwitch,
9241
+ rs as Tooltip,
9241
9242
  ni as Typography,
9242
9243
  Fl as extendColorMap,
9243
9244
  Al as extendRangeColorMap