@fileverse/ui 4.1.1-patch-2 → 4.1.1-patch-4

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/index.css CHANGED
@@ -1433,6 +1433,9 @@ video {
1433
1433
  .w-\[8px\] {
1434
1434
  width: 8px;
1435
1435
  }
1436
+ .w-auto {
1437
+ width: auto;
1438
+ }
1436
1439
  .w-fit {
1437
1440
  width: -moz-fit-content;
1438
1441
  width: fit-content;
@@ -1588,6 +1591,15 @@ video {
1588
1591
  .transform {
1589
1592
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1590
1593
  }
1594
+ @keyframes pulse {
1595
+
1596
+ 50% {
1597
+ opacity: .5;
1598
+ }
1599
+ }
1600
+ .animate-pulse {
1601
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
1602
+ }
1591
1603
  @keyframes spin {
1592
1604
 
1593
1605
  to {
@@ -2070,6 +2082,9 @@ video {
2070
2082
  font-size: 0.875rem;
2071
2083
  line-height: 1.25rem;
2072
2084
  }
2085
+ .\!font-bold {
2086
+ font-weight: 700 !important;
2087
+ }
2073
2088
  .font-\[700\] {
2074
2089
  font-weight: 700;
2075
2090
  }
@@ -242,6 +242,12 @@ export declare const CommandShortcut: {
242
242
  displayName: string;
243
243
  };
244
244
 
245
+ export declare const Counter: default_2.ForwardRefExoticComponent<CounterProps & default_2.RefAttributes<HTMLDivElement>>;
246
+
247
+ export declare interface CounterProps {
248
+ count: number;
249
+ }
250
+
245
251
  export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
246
252
 
247
253
  export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
@@ -628,6 +634,8 @@ declare const sheetVariants: (props?: ({
628
634
  side?: "left" | "right" | "bottom" | "top" | null | undefined;
629
635
  } & ClassProp) | undefined) => string;
630
636
 
637
+ export declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
638
+
631
639
  export declare type SortState = {
632
640
  keyName: string | null;
633
641
  order: "default" | "asc" | "desc";
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as y from "react";
2
- import D, { forwardRef as Ve, createElement as I, useLayoutEffect as Dn, useEffect as se, createContext as Ct, useContext as Me, useRef as ee, useInsertionEffect as Al, useCallback as Te, useMemo as Qe, Fragment as $1, useId as Gi, Component as Sl, useState as ke, cloneElement as ao, Children as p1, isValidElement as yn, memo as Il, createRef as f1, Suspense as h6, useReducer as p6 } from "react";
2
+ import D, { forwardRef as Re, createElement as I, useLayoutEffect as Dn, useEffect as se, createContext as Ct, useContext as Me, useRef as ee, useInsertionEffect as Al, useCallback as Te, useMemo as Qe, Fragment as $1, useId as Gi, Component as Sl, useState as ke, cloneElement as ao, Children as p1, isValidElement as yn, memo as Il, createRef as f1, Suspense as h6, useReducer as p6 } from "react";
3
3
  import * as zn from "react-dom";
4
4
  import Tl, { flushSync as Nl } from "react-dom";
5
5
  var fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -263,18 +263,18 @@ function g6() {
263
263
  if (st && _ && typeof st.stack == "string") {
264
264
  for (var de = st.stack.split(`
265
265
  `), tt = _.stack.split(`
266
- `), He = de.length - 1, qe = tt.length - 1; He >= 1 && qe >= 0 && de[He] !== tt[qe]; )
266
+ `), Oe = de.length - 1, qe = tt.length - 1; Oe >= 1 && qe >= 0 && de[Oe] !== tt[qe]; )
267
267
  qe--;
268
- for (; He >= 1 && qe >= 0; He--, qe--)
269
- if (de[He] !== tt[qe]) {
270
- if (He !== 1 || qe !== 1)
268
+ for (; Oe >= 1 && qe >= 0; Oe--, qe--)
269
+ if (de[Oe] !== tt[qe]) {
270
+ if (Oe !== 1 || qe !== 1)
271
271
  do
272
- if (He--, qe--, qe < 0 || de[He] !== tt[qe]) {
272
+ if (Oe--, qe--, qe < 0 || de[Oe] !== tt[qe]) {
273
273
  var vt = `
274
- ` + de[He].replace(" at new ", " at ");
274
+ ` + de[Oe].replace(" at new ", " at ");
275
275
  return C.displayName && vt.includes("<anonymous>") && (vt = vt.replace("<anonymous>", C.displayName)), typeof C == "function" && R.set(C, vt), vt;
276
276
  }
277
- while (He >= 1 && qe >= 0);
277
+ while (Oe >= 1 && qe >= 0);
278
278
  break;
279
279
  }
280
280
  }
@@ -340,8 +340,8 @@ function g6() {
340
340
  throw tt.name = "Invariant Violation", tt;
341
341
  }
342
342
  de = C[pe](P, pe, _, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (He) {
344
- de = He;
343
+ } catch (Oe) {
344
+ de = Oe;
345
345
  }
346
346
  de && !(de instanceof Error) && (Tt(we), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", q, pe, typeof de), Tt(null)), de instanceof Error && !(de.message in Ot) && (Ot[de.message] = !0, Tt(we), M("Failed %s type: %s", q, de.message), Tt(null));
347
347
  }
@@ -458,9 +458,9 @@ function g6() {
458
458
  for (be in P)
459
459
  ot.call(P, be) && !rr.hasOwnProperty(be) && (pe[be] = P[be]);
460
460
  if (C && C.defaultProps) {
461
- var He = C.defaultProps;
462
- for (be in He)
463
- pe[be] === void 0 && (pe[be] = He[be]);
461
+ var Oe = C.defaultProps;
462
+ for (be in Oe)
463
+ pe[be] === void 0 && (pe[be] = Oe[be]);
464
464
  }
465
465
  if (de || tt) {
466
466
  var qe = typeof C == "function" ? C.displayName || C.name || "Unknown" : C;
@@ -588,8 +588,8 @@ Check the top-level render call using <` + q + ">.");
588
588
  (C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (de += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
589
589
  var tt = Wt();
590
590
  tt ? de += tt : de += N1();
591
- var He;
592
- C === null ? He = "null" : Fa(C) ? He = "array" : C !== void 0 && C.$$typeof === t ? (He = "<" + (G(C.type) || "Unknown") + " />", de = " Did you accidentally export a JSX literal instead of a component?") : He = typeof C, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", He, de);
591
+ var Oe;
592
+ C === null ? Oe = "null" : Fa(C) ? Oe = "array" : C !== void 0 && C.$$typeof === t ? (Oe = "<" + (G(C.type) || "Unknown") + " />", de = " Did you accidentally export a JSX literal instead of a component?") : Oe = typeof C, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Oe, de);
593
593
  }
594
594
  var qe = fe(C, P, q, we, be);
595
595
  if (qe == null)
@@ -3083,7 +3083,7 @@ const _s = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ef =
3083
3083
  )
3084
3084
  );
3085
3085
  Hr.displayName = "Avatar";
3086
- const gte = Ve(
3086
+ const gte = Re(
3087
3087
  ({
3088
3088
  avatars: e,
3089
3089
  size: t = "lg",
@@ -3755,7 +3755,7 @@ const t5 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3755
3755
  * See the LICENSE file in the root directory of this source tree.
3756
3756
  */
3757
3757
  const i = (e, t) => {
3758
- const a = Ve(
3758
+ const a = Re(
3759
3759
  ({
3760
3760
  color: n = "currentColor",
3761
3761
  size: r = 24,
@@ -25228,7 +25228,7 @@ const qO = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25228
25228
  defaultVariants: {
25229
25229
  size: "md"
25230
25230
  }
25231
- }), Ge = Ve(
25231
+ }), Ge = Re(
25232
25232
  ({ name: e, className: t, size: a, strokeWidth: n, fill: r, stroke: o, ...s }, f) => {
25233
25233
  const c = BO[e];
25234
25234
  return c ? /* @__PURE__ */ u.jsx(
@@ -25331,7 +25331,7 @@ qt.displayName = "Button";
25331
25331
  const vte = ({ children: e, className: t }) => {
25332
25332
  const a = z("flex space-x-2", t);
25333
25333
  return /* @__PURE__ */ u.jsx("div", { className: a, children: e });
25334
- }, Yi = Ve(
25334
+ }, Yi = Re(
25335
25335
  ({
25336
25336
  icon: e,
25337
25337
  variant: t,
@@ -28119,7 +28119,7 @@ function sB({ preloadedFeatures: e, createVisualElement: t, useRender: a, useVis
28119
28119
  }
28120
28120
  return u.jsxs(uo.Provider, { value: p, children: [l && p.visualElement ? u.jsx(l, { visualElement: p.visualElement, ...d }) : null, a(r, f, aB(m, p.visualElement, c), m, h, p.visualElement)] });
28121
28121
  }
28122
- const s = Ve(o);
28122
+ const s = Re(o);
28123
28123
  return s[iB] = r, s;
28124
28124
  }
28125
28125
  function fB({ layoutId: e }) {
@@ -30866,7 +30866,7 @@ const $f = () => ({
30866
30866
  }), pa = () => ({
30867
30867
  x: $f(),
30868
30868
  y: $f()
30869
- }), _f = () => ({ min: 0, max: 0 }), Oe = () => ({
30869
+ }), _f = () => ({ min: 0, max: 0 }), Ve = () => ({
30870
30870
  x: _f(),
30871
30871
  y: _f()
30872
30872
  });
@@ -30958,7 +30958,7 @@ function uG(e, t, a) {
30958
30958
  const Bu = ({ current: e }) => e ? e.ownerDocument.defaultView : null, hG = /* @__PURE__ */ new WeakMap();
30959
30959
  class pG {
30960
30960
  constructor(t) {
30961
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Oe(), this.visualElement = t;
30961
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Ve(), this.visualElement = t;
30962
30962
  }
30963
30963
  start(t, { snapToCursor: a = !1 } = {}) {
30964
30964
  const { presenceContext: n } = this.visualElement;
@@ -31662,7 +31662,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31662
31662
  for (let c = 0; c < this.path.length; c++)
31663
31663
  this.path[c].updateScroll();
31664
31664
  const s = this.layout;
31665
- this.layout = this.measure(!1), this.layoutCorrected = Oe(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
31665
+ this.layout = this.measure(!1), this.layoutCorrected = Ve(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
31666
31666
  const { visualElement: f } = this.options;
31667
31667
  f && f.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
31668
31668
  }
@@ -31700,7 +31700,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31700
31700
  var s;
31701
31701
  const { visualElement: f } = this.options;
31702
31702
  if (!f)
31703
- return Oe();
31703
+ return Ve();
31704
31704
  const c = f.measureViewportBox();
31705
31705
  if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(eU))) {
31706
31706
  const { scroll: d } = this.root;
@@ -31710,7 +31710,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31710
31710
  }
31711
31711
  removeElementScroll(s) {
31712
31712
  var f;
31713
- const c = Oe();
31713
+ const c = Ve();
31714
31714
  if (kt(c, s), !((f = this.scroll) === null || f === void 0) && f.wasRoot)
31715
31715
  return c;
31716
31716
  for (let l = 0; l < this.path.length; l++) {
@@ -31720,7 +31720,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31720
31720
  return c;
31721
31721
  }
31722
31722
  applyTransform(s, f = !1) {
31723
- const c = Oe();
31723
+ const c = Ve();
31724
31724
  kt(c, s);
31725
31725
  for (let l = 0; l < this.path.length; l++) {
31726
31726
  const d = this.path[l];
@@ -31732,14 +31732,14 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31732
31732
  return O1(this.latestValues) && ma(c, this.latestValues), c;
31733
31733
  }
31734
31734
  removeTransform(s) {
31735
- const f = Oe();
31735
+ const f = Ve();
31736
31736
  kt(f, s);
31737
31737
  for (let c = 0; c < this.path.length; c++) {
31738
31738
  const l = this.path[c];
31739
31739
  if (!l.instance || !O1(l.latestValues))
31740
31740
  continue;
31741
31741
  pi(l.latestValues) && l.updateSnapshot();
31742
- const d = Oe(), h = l.measurePageBox();
31742
+ const d = Ve(), h = l.measurePageBox();
31743
31743
  kt(d, h), pc(f, l.latestValues, l.snapshot ? l.snapshot.layoutBox : void 0, d);
31744
31744
  }
31745
31745
  return O1(this.latestValues) && pc(f, this.latestValues), f;
@@ -31771,13 +31771,13 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31771
31771
  if (!(!this.layout || !(h || p))) {
31772
31772
  if (this.resolvedRelativeTargetAt = We.timestamp, !this.targetDelta && !this.relativeTarget) {
31773
31773
  const m = this.getClosestProjectingParent();
31774
- m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Oe(), this.relativeTargetOrigin = Oe(), ln(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), kt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
31774
+ m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ve(), this.relativeTargetOrigin = Ve(), ln(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), kt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
31775
31775
  }
31776
31776
  if (!(!this.relativeTarget && !this.targetDelta)) {
31777
- if (this.target || (this.target = Oe(), this.targetWithTransforms = Oe()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), aG(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : kt(this.target, this.layout.layoutBox), Vu(this.target, this.targetDelta)) : kt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
31777
+ if (this.target || (this.target = Ve(), this.targetWithTransforms = Ve()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), aG(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : kt(this.target, this.layout.layoutBox), Vu(this.target, this.targetDelta)) : kt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
31778
31778
  this.attemptToResolveRelativeTarget = !1;
31779
31779
  const m = this.getClosestProjectingParent();
31780
- m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Oe(), this.relativeTargetOrigin = Oe(), ln(this.relativeTargetOrigin, this.target, m.target), kt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
31780
+ m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ve(), this.relativeTargetOrigin = Ve(), ln(this.relativeTargetOrigin, this.target, m.target), kt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
31781
31781
  }
31782
31782
  nn && V1.resolvedTargetDeltas++;
31783
31783
  }
@@ -31801,7 +31801,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31801
31801
  return;
31802
31802
  kt(this.layoutCorrected, this.layout.layoutBox);
31803
31803
  const p = this.treeScale.x, m = this.treeScale.y;
31804
- dG(this.layoutCorrected, this.treeScale, this.path, c), f.layout && !f.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (f.target = f.layout.layoutBox, f.targetWithTransforms = Oe());
31804
+ dG(this.layoutCorrected, this.treeScale, this.path, c), f.layout && !f.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (f.target = f.layout.layoutBox, f.targetWithTransforms = Ve());
31805
31805
  const { target: v } = f;
31806
31806
  if (!v) {
31807
31807
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -31829,12 +31829,12 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31829
31829
  setAnimationOrigin(s, f = !1) {
31830
31830
  const c = this.snapshot, l = c ? c.latestValues : {}, d = { ...this.latestValues }, h = pa();
31831
31831
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !f;
31832
- const p = Oe(), m = c ? c.source : void 0, v = this.layout ? this.layout.source : void 0, g = m !== v, k = this.getStack(), w = !k || k.members.length <= 1, M = !!(g && !w && this.options.crossfade === !0 && !this.path.some(XG));
31832
+ const p = Ve(), m = c ? c.source : void 0, v = this.layout ? this.layout.source : void 0, g = m !== v, k = this.getStack(), w = !k || k.members.length <= 1, M = !!(g && !w && this.options.crossfade === !0 && !this.path.some(XG));
31833
31833
  this.animationProgress = 0;
31834
31834
  let x;
31835
31835
  this.mixTargetDelta = (b) => {
31836
31836
  const L = b / 1e3;
31837
- bc(h.x, s.x, L), bc(h.y, s.y, L), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ln(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), KG(this.relativeTarget, this.relativeTargetOrigin, p, L), x && IG(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = Oe()), kt(x, this.relativeTarget)), g && (this.animationValues = d, bG(d, l, this.latestValues, L, M, w)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = L;
31837
+ bc(h.x, s.x, L), bc(h.y, s.y, L), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ln(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), KG(this.relativeTarget, this.relativeTargetOrigin, p, L), x && IG(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = Ve()), kt(x, this.relativeTarget)), g && (this.animationValues = d, bG(d, l, this.latestValues, L, M, w)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = L;
31838
31838
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
31839
31839
  }
31840
31840
  startAnimation(s) {
@@ -31863,7 +31863,7 @@ function Qu({ attachResizeListener: e, defaultParent: t, measureScroll: a, check
31863
31863
  let { targetWithTransforms: f, target: c, layout: l, latestValues: d } = s;
31864
31864
  if (!(!f || !c || !l)) {
31865
31865
  if (this !== s && this.layout && l && Ju(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
31866
- c = this.target || Oe();
31866
+ c = this.target || Ve();
31867
31867
  const h = pt(this.layout.layoutBox.x);
31868
31868
  c.x.min = s.target.x.min, c.x.max = c.x.min + h;
31869
31869
  const p = pt(this.layout.layoutBox.y);
@@ -31995,9 +31995,9 @@ function qG(e) {
31995
31995
  if (h && !h.resumeFrom) {
31996
31996
  const { snapshot: p, layout: m } = h;
31997
31997
  if (p && m) {
31998
- const v = Oe();
31998
+ const v = Ve();
31999
31999
  ln(v, a.layoutBox, p.layoutBox);
32000
- const g = Oe();
32000
+ const g = Ve();
32001
32001
  ln(g, n, m.layoutBox), Wu(v, g) || (d = !0), h.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = v, e.relativeParent = h);
32002
32002
  }
32003
32003
  }
@@ -32222,7 +32222,7 @@ class fU {
32222
32222
  * removed with a re-render to work.
32223
32223
  */
32224
32224
  measureViewportBox() {
32225
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Oe();
32225
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ve();
32226
32226
  }
32227
32227
  getStaticValue(t) {
32228
32228
  return this.latestValues[t];
@@ -32404,7 +32404,7 @@ class lU extends $u {
32404
32404
  }
32405
32405
  class dU extends $u {
32406
32406
  constructor() {
32407
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Oe;
32407
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ve;
32408
32408
  }
32409
32409
  getBaseTargetFromProps(t, a) {
32410
32410
  return t[a];
@@ -34010,7 +34010,7 @@ const DU = {
34010
34010
  defaultVariants: {
34011
34011
  size: "md"
34012
34012
  }
34013
- }), wo = Ve(
34013
+ }), wo = Re(
34014
34014
  ({
34015
34015
  name: e,
34016
34016
  size: t = "md",
@@ -34056,7 +34056,8 @@ const bte = ({
34056
34056
  ),
34057
34057
  type: "checkbox",
34058
34058
  onChange: t,
34059
- checked: e
34059
+ checked: e,
34060
+ disabled: n
34060
34061
  }
34061
34062
  ),
34062
34063
  /* @__PURE__ */ u.jsx(
@@ -39206,7 +39207,7 @@ const QJ = ({
39206
39207
  ),
39207
39208
  /* @__PURE__ */ u.jsx(xU, { initial: !1, children: o && n === r && /* @__PURE__ */ u.jsx(JJ, { content: o }) })
39208
39209
  ] });
39209
- }, qte = Ve(
39210
+ }, qte = Re(
39210
39211
  ({ items: e, className: t, size: a = "lg", content: n, selectedValue: r, setSelectedValue: o }, s) => !e || e.length === 0 ? null : /* @__PURE__ */ u.jsx(
39211
39212
  rp,
39212
39213
  {
@@ -39244,7 +39245,7 @@ const QJ = ({
39244
39245
  children: /* @__PURE__ */ u.jsx("div", { className: "p-4 flex flex-col gap-4", children: e })
39245
39246
  }
39246
39247
  );
39247
- }, Bte = Ve(({ label: e, description: t, checked: a, onChange: n, size: r = "lg" }, o) => /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2 w-full", ref: o, children: [
39248
+ }, Bte = Re(({ label: e, description: t, checked: a, onChange: n, size: r = "lg" }, o) => /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2 w-full", ref: o, children: [
39248
39249
  /* @__PURE__ */ u.jsxs("div", { className: "flex justify-between items-center", children: [
39249
39250
  /* @__PURE__ */ u.jsx(
39250
39251
  Da,
@@ -39470,12 +39471,12 @@ const _J = Et(
39470
39471
  onTouchStart: d,
39471
39472
  onTouchEnd: h,
39472
39473
  children: [
39473
- n && /* @__PURE__ */ u.jsx(
39474
+ /* @__PURE__ */ u.jsx(
39474
39475
  So,
39475
39476
  {
39476
39477
  ref: f,
39477
39478
  className: "absolute right-4 top-3 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default",
39478
- children: /* @__PURE__ */ u.jsx(wo, { name: "Close", className: "h-5 w-5", fill: "#363B3F" })
39479
+ children: n && /* @__PURE__ */ u.jsx(wo, { name: "Close", className: "h-5 w-5", fill: "#363B3F" })
39479
39480
  }
39480
39481
  ),
39481
39482
  r
@@ -56783,7 +56784,7 @@ function aX(e) {
56783
56784
  Np(n, e) || r(Xc(e));
56784
56785
  }, [(t = e.customEmojis) == null ? void 0 : t.length, e.open, e.emojiVersion, e.reactionsDefaultOpen, e.searchPlaceHolder, e.searchPlaceholder, e.defaultSkinTone, e.skinTonesDisabled, e.autoFocusSearch, e.emojiStyle, e.theme, e.suggestedEmojisMode, e.lazyLoadEmojis, e.className, e.height, e.width, e.searchDisabled, e.skinTonePickerLocation, e.allowExpandReactions]), n;
56785
56786
  }
56786
- function Re() {
56787
+ function He() {
56787
56788
  return Me(Vp);
56788
56789
  }
56789
56790
  var qp = /* @__PURE__ */ D.createContext({});
@@ -56810,41 +56811,41 @@ var jn;
56810
56811
  e.REACTIONS = "reactions", e.PICKER = "picker";
56811
56812
  })(jn || (jn = {}));
56812
56813
  function rX() {
56813
- var e, t = Re(), a = t.searchPlaceHolder, n = t.searchPlaceholder;
56814
+ var e, t = He(), a = t.searchPlaceHolder, n = t.searchPlaceholder;
56814
56815
  return (e = [a, n].find(function(r) {
56815
56816
  return r !== _r;
56816
56817
  })) != null ? e : _r;
56817
56818
  }
56818
56819
  function oX() {
56819
- var e = Re(), t = e.defaultSkinTone;
56820
+ var e = He(), t = e.defaultSkinTone;
56820
56821
  return t;
56821
56822
  }
56822
56823
  function Zp() {
56823
- var e = Re(), t = e.allowExpandReactions;
56824
+ var e = He(), t = e.allowExpandReactions;
56824
56825
  return t;
56825
56826
  }
56826
56827
  function Fp() {
56827
- var e = Re(), t = e.skinTonesDisabled;
56828
+ var e = He(), t = e.skinTonesDisabled;
56828
56829
  return t;
56829
56830
  }
56830
56831
  function ea() {
56831
- var e = Re(), t = e.emojiStyle;
56832
+ var e = He(), t = e.emojiStyle;
56832
56833
  return t;
56833
56834
  }
56834
56835
  function iX() {
56835
- var e = Re(), t = e.autoFocusSearch;
56836
+ var e = He(), t = e.autoFocusSearch;
56836
56837
  return t;
56837
56838
  }
56838
56839
  function Gp() {
56839
- var e = Re(), t = e.categories;
56840
+ var e = He(), t = e.categories;
56840
56841
  return t;
56841
56842
  }
56842
56843
  function sX() {
56843
- var e = Re(), t = e.customEmojis;
56844
+ var e = He(), t = e.customEmojis;
56844
56845
  return t;
56845
56846
  }
56846
56847
  function fX() {
56847
- var e = Re(), t = e.open;
56848
+ var e = He(), t = e.open;
56848
56849
  return t;
56849
56850
  }
56850
56851
  function cX(e) {
@@ -56858,58 +56859,58 @@ function lX() {
56858
56859
  };
56859
56860
  }
56860
56861
  function Up() {
56861
- var e = Re(), t = e.previewConfig;
56862
+ var e = He(), t = e.previewConfig;
56862
56863
  return t;
56863
56864
  }
56864
56865
  function dX() {
56865
- var e = Re(), t = e.theme;
56866
+ var e = He(), t = e.theme;
56866
56867
  return t;
56867
56868
  }
56868
56869
  function uX() {
56869
- var e = Re(), t = e.suggestedEmojisMode;
56870
+ var e = He(), t = e.suggestedEmojisMode;
56870
56871
  return t;
56871
56872
  }
56872
56873
  function hX() {
56873
- var e = Re(), t = e.lazyLoadEmojis;
56874
+ var e = He(), t = e.lazyLoadEmojis;
56874
56875
  return t;
56875
56876
  }
56876
56877
  function pX() {
56877
- var e = Re(), t = e.className;
56878
+ var e = He(), t = e.className;
56878
56879
  return t;
56879
56880
  }
56880
56881
  function yX() {
56881
- var e = Re(), t = e.height, a = e.width, n = e.style;
56882
+ var e = He(), t = e.height, a = e.width, n = e.style;
56882
56883
  return Ee({
56883
56884
  height: $c(t),
56884
56885
  width: $c(a)
56885
56886
  }, n);
56886
56887
  }
56887
56888
  function mX() {
56888
- var e = Re(), t = e.reactionsDefaultOpen;
56889
+ var e = He(), t = e.reactionsDefaultOpen;
56889
56890
  return t;
56890
56891
  }
56891
56892
  function gX() {
56892
- var e = Re(), t = e.emojiVersion;
56893
+ var e = He(), t = e.emojiVersion;
56893
56894
  return t;
56894
56895
  }
56895
56896
  function Wp() {
56896
- var e = Re(), t = e.searchDisabled;
56897
+ var e = He(), t = e.searchDisabled;
56897
56898
  return t;
56898
56899
  }
56899
56900
  function Yp() {
56900
- var e = Re(), t = e.skinTonePickerLocation;
56901
+ var e = He(), t = e.skinTonePickerLocation;
56901
56902
  return t;
56902
56903
  }
56903
56904
  function vX() {
56904
- var e = Re(), t = e.unicodeToHide;
56905
+ var e = He(), t = e.unicodeToHide;
56905
56906
  return t;
56906
56907
  }
56907
56908
  function kX() {
56908
- var e = Re(), t = e.reactions;
56909
+ var e = He(), t = e.reactions;
56909
56910
  return t;
56910
56911
  }
56911
56912
  function Ba() {
56912
- var e = Re(), t = e.getEmojiUrl;
56913
+ var e = He(), t = e.getEmojiUrl;
56913
56914
  return t;
56914
56915
  }
56915
56916
  function $c(e) {
@@ -59491,7 +59492,7 @@ function z_(e) {
59491
59492
  value: t
59492
59493
  }, I(N_, Object.assign({}, e))));
59493
59494
  }
59494
- const Kte = Ve(
59495
+ const Kte = Re(
59495
59496
  ({ handleEmojiClick: e, handleAvatarInput: t, onRemove: a, className: n, ...r }, o) => {
59496
59497
  const [s, f] = ke("emojiPicker"), c = ee(null), l = () => {
59497
59498
  c.current && c.current.click();
@@ -59807,7 +59808,7 @@ function J_({ defaultProp: e, onChange: t }) {
59807
59808
  o
59808
59809
  ]), a;
59809
59810
  }
59810
- const Zs = /* @__PURE__ */ Ve((e, t) => {
59811
+ const Zs = /* @__PURE__ */ Re((e, t) => {
59811
59812
  const { children: a, ...n } = e, r = p1.toArray(a), o = r.find(X_);
59812
59813
  if (o) {
59813
59814
  const s = o.props.children, f = r.map((c) => c === o ? p1.count(s) > 1 ? p1.only(null) : /* @__PURE__ */ yn(s) ? s.props.children : null : c);
@@ -59820,7 +59821,7 @@ const Zs = /* @__PURE__ */ Ve((e, t) => {
59820
59821
  }), a);
59821
59822
  });
59822
59823
  Zs.displayName = "Slot";
59823
- const Oi = /* @__PURE__ */ Ve((e, t) => {
59824
+ const Oi = /* @__PURE__ */ Re((e, t) => {
59824
59825
  const { children: a, ...n } = e;
59825
59826
  return /* @__PURE__ */ yn(a) ? /* @__PURE__ */ ao(a, {
59826
59827
  ...$_(n, a.props),
@@ -59871,7 +59872,7 @@ const __ = [
59871
59872
  "svg",
59872
59873
  "ul"
59873
59874
  ], It = __.reduce((e, t) => {
59874
- const a = /* @__PURE__ */ Ve((n, r) => {
59875
+ const a = /* @__PURE__ */ Re((n, r) => {
59875
59876
  const { asChild: o, ...s } = n, f = o ? Zs : t;
59876
59877
  return se(() => {
59877
59878
  window[Symbol.for("radix-ui")] = !0;
@@ -59907,7 +59908,7 @@ const ree = /* @__PURE__ */ Ct({
59907
59908
  layers: /* @__PURE__ */ new Set(),
59908
59909
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
59909
59910
  branches: /* @__PURE__ */ new Set()
59910
- }), oee = /* @__PURE__ */ Ve((e, t) => {
59911
+ }), oee = /* @__PURE__ */ Re((e, t) => {
59911
59912
  var a;
59912
59913
  const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: f, onDismiss: c, ...l } = e, d = Me(ree), [h, p] = ke(null), m = (a = h == null ? void 0 : h.ownerDocument) !== null && a !== void 0 ? a : globalThis == null ? void 0 : globalThis.document, [, v] = ke({}), g = er(
59913
59914
  t,
@@ -60030,7 +60031,7 @@ function Oy(e, t, a, { discrete: n }) {
60030
60031
  const F2 = "focusScope.autoFocusOnMount", G2 = "focusScope.autoFocusOnUnmount", vl = {
60031
60032
  bubbles: !1,
60032
60033
  cancelable: !0
60033
- }, fee = /* @__PURE__ */ Ve((e, t) => {
60034
+ }, fee = /* @__PURE__ */ Re((e, t) => {
60034
60035
  const { loop: a = !1, trapped: n = !1, onMountAutoFocus: r, onUnmountAutoFocus: o, ...s } = e, [f, c] = ke(null), l = J1(r), d = J1(o), h = ee(null), p = er(
60035
60036
  t,
60036
60037
  (g) => c(g)
@@ -60197,7 +60198,7 @@ function pee(e) {
60197
60198
  (t) => t.tagName !== "A"
60198
60199
  );
60199
60200
  }
60200
- const yee = /* @__PURE__ */ Ve((e, t) => {
60201
+ const yee = /* @__PURE__ */ Re((e, t) => {
60201
60202
  var a;
60202
60203
  const { container: n = globalThis == null || (a = globalThis.document) === null || a === void 0 ? void 0 : a.body, ...r } = e;
60203
60204
  return n ? /* @__PURE__ */ Tl.createPortal(/* @__PURE__ */ I(It.div, nt({}, r, {
@@ -60530,14 +60531,14 @@ const Uy = "Dialog", [Wy, $te] = G_(Uy), [Nee, na] = Wy(Uy), Dee = (e) => {
60530
60531
  container: r
60531
60532
  }, s))
60532
60533
  ));
60533
- }, Bi = "DialogOverlay", Eee = /* @__PURE__ */ Ve((e, t) => {
60534
+ }, Bi = "DialogOverlay", Eee = /* @__PURE__ */ Re((e, t) => {
60534
60535
  const a = Qy(Bi, e.__scopeDialog), { forceMount: n = a.forceMount, ...r } = e, o = na(Bi, e.__scopeDialog);
60535
60536
  return o.modal ? /* @__PURE__ */ I(Ko, {
60536
60537
  present: n || o.open
60537
60538
  }, /* @__PURE__ */ I(Ree, nt({}, r, {
60538
60539
  ref: t
60539
60540
  }))) : null;
60540
- }), Ree = /* @__PURE__ */ Ve((e, t) => {
60541
+ }), Ree = /* @__PURE__ */ Re((e, t) => {
60541
60542
  const { __scopeDialog: a, ...n } = e, r = na(Bi, a);
60542
60543
  return (
60543
60544
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
@@ -60558,7 +60559,7 @@ const Uy = "Dialog", [Wy, $te] = G_(Uy), [Nee, na] = Wy(Uy), Dee = (e) => {
60558
60559
  }
60559
60560
  })))
60560
60561
  );
60561
- }), Tn = "DialogContent", Hee = /* @__PURE__ */ Ve((e, t) => {
60562
+ }), Tn = "DialogContent", Hee = /* @__PURE__ */ Re((e, t) => {
60562
60563
  const a = Qy(Tn, e.__scopeDialog), { forceMount: n = a.forceMount, ...r } = e, o = na(Tn, e.__scopeDialog);
60563
60564
  return /* @__PURE__ */ I(Ko, {
60564
60565
  present: n || o.open
@@ -60567,7 +60568,7 @@ const Uy = "Dialog", [Wy, $te] = G_(Uy), [Nee, na] = Wy(Uy), Dee = (e) => {
60567
60568
  })) : /* @__PURE__ */ I(Vee, nt({}, r, {
60568
60569
  ref: t
60569
60570
  })));
60570
- }), Oee = /* @__PURE__ */ Ve((e, t) => {
60571
+ }), Oee = /* @__PURE__ */ Re((e, t) => {
60571
60572
  const a = na(Tn, e.__scopeDialog), n = ee(null), r = er(t, a.contentRef, n);
60572
60573
  return se(() => {
60573
60574
  const o = n.current;
@@ -60589,7 +60590,7 @@ const Uy = "Dialog", [Wy, $te] = G_(Uy), [Nee, na] = Wy(Uy), Dee = (e) => {
60589
60590
  (o) => o.preventDefault()
60590
60591
  )
60591
60592
  }));
60592
- }), Vee = /* @__PURE__ */ Ve((e, t) => {
60593
+ }), Vee = /* @__PURE__ */ Re((e, t) => {
60593
60594
  const a = na(Tn, e.__scopeDialog), n = ee(!1), r = ee(!1);
60594
60595
  return /* @__PURE__ */ I(Jy, nt({}, e, {
60595
60596
  ref: t,
@@ -60610,7 +60611,7 @@ const Uy = "Dialog", [Wy, $te] = G_(Uy), [Nee, na] = Wy(Uy), Dee = (e) => {
60610
60611
  ((f = a.triggerRef.current) === null || f === void 0 ? void 0 : f.contains(c)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
60611
60612
  }
60612
60613
  }));
60613
- }), Jy = /* @__PURE__ */ Ve((e, t) => {
60614
+ }), Jy = /* @__PURE__ */ Re((e, t) => {
60614
60615
  const { __scopeDialog: a, trapFocus: n, onOpenAutoFocus: r, onCloseAutoFocus: o, ...s } = e, f = na(Tn, a), c = ee(null), l = er(t, c);
60615
60616
  return vee(), /* @__PURE__ */ I($1, null, /* @__PURE__ */ I(fee, {
60616
60617
  asChild: !0,
@@ -61024,7 +61025,29 @@ const dte = ({
61024
61025
  }
61025
61026
  );
61026
61027
  dte.displayName = "CommandShortcut";
61027
- const r6 = ({
61028
+ const e1e = Re(({ count: e = 0 }, t) => {
61029
+ const a = e > 9;
61030
+ return /* @__PURE__ */ u.jsx(
61031
+ "div",
61032
+ {
61033
+ ref: t,
61034
+ className: z(
61035
+ "color-bg-tertiary color-text-default rounded-full h-[18px] !font-bold text-helper-text-sm flex justify-center items-center",
61036
+ {
61037
+ "aspect-square": !a,
61038
+ "w-auto p-2": a
61039
+ }
61040
+ ),
61041
+ children: e
61042
+ }
61043
+ );
61044
+ }), t1e = ({ className: e, ...t }) => /* @__PURE__ */ u.jsx(
61045
+ "div",
61046
+ {
61047
+ className: z("animate-pulse rounded-md color-bg-disabled", e),
61048
+ ...t
61049
+ }
61050
+ ), r6 = ({
61028
61051
  direction: e = "horizontal",
61029
61052
  size: t = "lg",
61030
61053
  className: a,
@@ -61075,7 +61098,7 @@ const ute = ({
61075
61098
  isActive: t
61076
61099
  };
61077
61100
  };
61078
- function e1e(e, t) {
61101
+ function a1e(e, t) {
61079
61102
  const [a, n] = ke(e), [r, o] = ke({
61080
61103
  keyName: (t == null ? void 0 : t.keyName) || null,
61081
61104
  order: (t == null ? void 0 : t.order) || "default"
@@ -61121,6 +61144,7 @@ export {
61121
61144
  ite as CommandList,
61122
61145
  cte as CommandSeparator,
61123
61146
  dte as CommandShortcut,
61147
+ e1e as Counter,
61124
61148
  z3 as Dialog,
61125
61149
  P3 as DialogClose,
61126
61150
  fs as DialogContent,
@@ -61184,6 +61208,7 @@ export {
61184
61208
  $J as SheetPortal,
61185
61209
  cp as SheetTitle,
61186
61210
  Gte as SheetTrigger,
61211
+ t1e as Skeleton,
61187
61212
  Ete as StaticLoader,
61188
61213
  Zte as Step,
61189
61214
  Fte as Stepper,
@@ -61208,5 +61233,5 @@ export {
61208
61233
  yte as formatCounter,
61209
61234
  mte as getTrimmedName,
61210
61235
  ute as useHoverAndLongPress,
61211
- e1e as useSortableData
61236
+ a1e as useSortableData
61212
61237
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "4.1.1-patch-2",
3
+ "version": "4.1.1-patch-4",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],