dgz-ui 1.1.8 → 1.1.10

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.
Files changed (86) hide show
  1. package/dist/avatar-CuLQPgwj.cjs +17 -0
  2. package/dist/avatar-KFHGowVn.js +336 -0
  3. package/dist/badge-DXZNHpwe.cjs +1 -0
  4. package/dist/{dgz-ui.es5.js → badge-DlSdChLJ.js} +6 -8
  5. package/dist/{dgz-ui.es7.js → button-CfenIARW.js} +12 -14
  6. package/dist/button-CpN_5c1A.cjs +1 -0
  7. package/dist/components/ui/avatar/index.es.js +7 -0
  8. package/dist/components/ui/avatar/index.umd.js +1 -0
  9. package/dist/components/ui/badge/index.es.js +5 -0
  10. package/dist/components/ui/badge/index.umd.js +1 -0
  11. package/dist/components/ui/button/index.es.js +5 -0
  12. package/dist/components/ui/button/index.umd.js +1 -0
  13. package/dist/index-B4IrUVWh.js +72 -0
  14. package/dist/index-DjR9Xv7C.cjs +1 -0
  15. package/dist/index.es.js +13 -0
  16. package/dist/index.umd.js +1 -0
  17. package/dist/types/App.d.ts +3 -0
  18. package/dist/types/App.d.ts.map +1 -0
  19. package/dist/types/main.d.ts +2 -0
  20. package/dist/types/main.d.ts.map +1 -0
  21. package/dist/{dgz-ui.es19.js → utils-Cu4x_LlJ.js} +790 -466
  22. package/dist/utils-DH1n-kUn.cjs +22 -0
  23. package/package.json +11 -9
  24. package/dist/dgz-ui.cjs.js +0 -1
  25. package/dist/dgz-ui.cjs10.js +0 -1
  26. package/dist/dgz-ui.cjs11.js +0 -1
  27. package/dist/dgz-ui.cjs12.js +0 -1
  28. package/dist/dgz-ui.cjs13.js +0 -1
  29. package/dist/dgz-ui.cjs14.js +0 -1
  30. package/dist/dgz-ui.cjs15.js +0 -1
  31. package/dist/dgz-ui.cjs16.js +0 -9
  32. package/dist/dgz-ui.cjs17.js +0 -14
  33. package/dist/dgz-ui.cjs18.js +0 -1
  34. package/dist/dgz-ui.cjs19.js +0 -1
  35. package/dist/dgz-ui.cjs2.js +0 -1
  36. package/dist/dgz-ui.cjs20.js +0 -1
  37. package/dist/dgz-ui.cjs21.js +0 -1
  38. package/dist/dgz-ui.cjs22.js +0 -1
  39. package/dist/dgz-ui.cjs23.js +0 -1
  40. package/dist/dgz-ui.cjs24.js +0 -1
  41. package/dist/dgz-ui.cjs25.js +0 -1
  42. package/dist/dgz-ui.cjs26.js +0 -1
  43. package/dist/dgz-ui.cjs27.js +0 -1
  44. package/dist/dgz-ui.cjs28.js +0 -1
  45. package/dist/dgz-ui.cjs29.js +0 -1
  46. package/dist/dgz-ui.cjs3.js +0 -1
  47. package/dist/dgz-ui.cjs30.js +0 -1
  48. package/dist/dgz-ui.cjs31.js +0 -9
  49. package/dist/dgz-ui.cjs32.js +0 -9
  50. package/dist/dgz-ui.cjs33.js +0 -1
  51. package/dist/dgz-ui.cjs34.js +0 -1
  52. package/dist/dgz-ui.cjs4.js +0 -1
  53. package/dist/dgz-ui.cjs5.js +0 -1
  54. package/dist/dgz-ui.cjs6.js +0 -1
  55. package/dist/dgz-ui.cjs7.js +0 -1
  56. package/dist/dgz-ui.cjs9.js +0 -1
  57. package/dist/dgz-ui.es.js +0 -14
  58. package/dist/dgz-ui.es10.js +0 -35
  59. package/dist/dgz-ui.es11.js +0 -8
  60. package/dist/dgz-ui.es12.js +0 -53
  61. package/dist/dgz-ui.es13.js +0 -76
  62. package/dist/dgz-ui.es14.js +0 -10
  63. package/dist/dgz-ui.es15.js +0 -4
  64. package/dist/dgz-ui.es16.js +0 -35
  65. package/dist/dgz-ui.es17.js +0 -247
  66. package/dist/dgz-ui.es18.js +0 -17
  67. package/dist/dgz-ui.es2.js +0 -5
  68. package/dist/dgz-ui.es20.js +0 -25
  69. package/dist/dgz-ui.es21.js +0 -55
  70. package/dist/dgz-ui.es22.js +0 -13
  71. package/dist/dgz-ui.es23.js +0 -6
  72. package/dist/dgz-ui.es24.js +0 -32
  73. package/dist/dgz-ui.es25.js +0 -15
  74. package/dist/dgz-ui.es26.js +0 -4
  75. package/dist/dgz-ui.es27.js +0 -4
  76. package/dist/dgz-ui.es28.js +0 -5
  77. package/dist/dgz-ui.es29.js +0 -10
  78. package/dist/dgz-ui.es3.js +0 -5
  79. package/dist/dgz-ui.es30.js +0 -4
  80. package/dist/dgz-ui.es31.js +0 -55
  81. package/dist/dgz-ui.es32.js +0 -67
  82. package/dist/dgz-ui.es33.js +0 -4
  83. package/dist/dgz-ui.es34.js +0 -4
  84. package/dist/dgz-ui.es4.js +0 -7
  85. package/dist/dgz-ui.es6.js +0 -62
  86. package/dist/dgz-ui.es9.js +0 -5
@@ -0,0 +1,17 @@
1
+ "use strict";const m=require("./utils-DH1n-kUn.cjs"),A=require("react");require("react-dom");const U=require("./index-DjR9Xv7C.cjs");function K(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=K(A);function F(e,t=[]){let r=[];function a(n,f){const u=v.createContext(f),d=r.length;r=[...r,f];const S=i=>{var _;const{scope:l,children:s,...c}=i,p=((_=l==null?void 0:l[e])==null?void 0:_[d])||u,E=v.useMemo(()=>c,Object.values(c));return m.jsxRuntimeExports.jsx(p.Provider,{value:E,children:s})};S.displayName=n+"Provider";function x(i,l){var p;const s=((p=l==null?void 0:l[e])==null?void 0:p[d])||u,c=v.useContext(s);if(c)return c;if(f!==void 0)return f;throw new Error(`\`${i}\` must be used within \`${n}\``)}return[S,x]}const o=()=>{const n=r.map(f=>v.createContext(f));return function(u){const d=(u==null?void 0:u[e])||n;return v.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return o.scopeName=e,[a,W(o,...t)]}function W(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){const f=a.reduce((u,{useScope:d,scopeName:S})=>{const i=d(n)[`__scope${S}`];return{...u,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:f}),[f])}};return r.scopeName=t.scopeName,r}function Y(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}var L=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},J=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=J.reduce((e,t)=>{const r=U.createSlot(`Primitive.${t}`),a=v.forwardRef((o,n)=>{const{asChild:f,...u}=o,d=f?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsxRuntimeExports.jsx(d,{...u,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),g={exports:{}},h={};/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var j;function Q(){if(j)return h;j=1;var e=A;function t(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,o=e.useEffect,n=e.useLayoutEffect,f=e.useDebugValue;function u(i,l){var s=l(),c=a({inst:{value:s,getSnapshot:l}}),p=c[0].inst,E=c[1];return n(function(){p.value=s,p.getSnapshot=l,d(p)&&E({inst:p})},[i,s,l]),o(function(){return d(p)&&E({inst:p}),i(function(){d(p)&&E({inst:p})})},[i]),f(s),s}function d(i){var l=i.getSnapshot;i=i.value;try{var s=l();return!r(i,s)}catch{return!0}}function S(i,l){return l()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:u;return h.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,h}var O={};/**
10
+ * @license React
11
+ * use-sync-external-store-shim.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var b;function X(){return b||(b=1,process.env.NODE_ENV!=="production"&&function(){function e(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}function t(s,c){x||o.startTransition===void 0||(x=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=c();if(!i){var E=c();n(p,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i=!0)}E=f({inst:{value:p,getSnapshot:c}});var _=E[0].inst,y=E[1];return d(function(){_.value=p,_.getSnapshot=c,r(_)&&y({inst:_})},[s,p,c]),u(function(){return r(_)&&y({inst:_}),s(function(){r(_)&&y({inst:_})})},[s]),S(p),p}function r(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!n(s,p)}catch{return!0}}function a(s,c){return c()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=A,n=typeof Object.is=="function"?Object.is:e,f=o.useState,u=o.useEffect,d=o.useLayoutEffect,S=o.useDebugValue,x=!1,i=!1,l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;O.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),O}var C;function Z(){return C||(C=1,process.env.NODE_ENV==="production"?g.exports=Q():g.exports=X()),g.exports}var ee=Z();function te(){return ee.useSyncExternalStore(re,()=>!0,()=>!1)}function re(){return()=>{}}var R="Avatar",[ne,se]=F(R),[ae,I]=ne(R),T=v.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[o,n]=v.useState("idle");return m.jsxRuntimeExports.jsx(ae,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:n,children:m.jsxRuntimeExports.jsx(w.span,{...a,ref:t})})});T.displayName=R;var $="AvatarImage",D=v.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:o=()=>{},...n}=e,f=I($,r),u=oe(a,n),d=Y(S=>{o(S),f.onImageLoadingStatusChange(S)});return L(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?m.jsxRuntimeExports.jsx(w.img,{...n,ref:t,src:a}):null});D.displayName=$;var M="AvatarFallback",P=v.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...o}=e,n=I(M,r),[f,u]=v.useState(a===void 0);return v.useEffect(()=>{if(a!==void 0){const d=window.setTimeout(()=>u(!0),a);return()=>window.clearTimeout(d)}},[a]),f&&n.imageLoadingStatus!=="loaded"?m.jsxRuntimeExports.jsx(w.span,{...o,ref:t}):null});P.displayName=M;function N(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function oe(e,{referrerPolicy:t,crossOrigin:r}){const a=te(),o=v.useRef(null),n=a?(o.current||(o.current=new window.Image),o.current):null,[f,u]=v.useState(()=>N(n,e));return L(()=>{u(N(n,e))},[n,e]),L(()=>{const d=i=>()=>{u(i)};if(!n)return;const S=d("loaded"),x=d("error");return n.addEventListener("load",S),n.addEventListener("error",x),t&&(n.referrerPolicy=t),typeof r=="string"&&(n.crossOrigin=r),()=>{n.removeEventListener("load",S),n.removeEventListener("error",x)}},[n,r,t]),f}var V=T,k=D,q=P;const z=m.cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",default:"size-10",md:"size-13",lg:"size-16",xl:"size-20"}},defaultVariants:{size:"default"}}),G=v.forwardRef(({className:e,size:t,...r},a)=>m.jsxRuntimeExports.jsx(V,{ref:a,className:m.cn(z({size:t}),e),...r}));G.displayName=V.displayName;const H=v.forwardRef(({className:e,...t},r)=>m.jsxRuntimeExports.jsx(k,{ref:r,className:m.cn("aspect-square size-full",e),...t}));H.displayName=k.displayName;const B=v.forwardRef(({className:e,...t},r)=>m.jsxRuntimeExports.jsx(q,{ref:r,className:m.cn("flex size-full items-center justify-center rounded-full bg-muted",e),...t}));B.displayName=q.displayName;exports.Avatar=G;exports.AvatarFallback=B;exports.AvatarImage=H;exports.avatarVariants=z;
@@ -0,0 +1,336 @@
1
+ import { j as h, c as O, a as H } from "./utils-Cu4x_LlJ.js";
2
+ import * as S from "react";
3
+ import j from "react";
4
+ import "react-dom";
5
+ import { c as B } from "./index-B4IrUVWh.js";
6
+ function U(e, t = []) {
7
+ let r = [];
8
+ function o(n, l) {
9
+ const u = S.createContext(l), d = r.length;
10
+ r = [...r, l];
11
+ const p = (i) => {
12
+ var _;
13
+ const { scope: f, children: s, ...c } = i, v = ((_ = f == null ? void 0 : f[e]) == null ? void 0 : _[d]) || u, m = S.useMemo(() => c, Object.values(c));
14
+ return /* @__PURE__ */ h.jsx(v.Provider, { value: m, children: s });
15
+ };
16
+ p.displayName = n + "Provider";
17
+ function E(i, f) {
18
+ var v;
19
+ const s = ((v = f == null ? void 0 : f[e]) == null ? void 0 : v[d]) || u, c = S.useContext(s);
20
+ if (c) return c;
21
+ if (l !== void 0) return l;
22
+ throw new Error(`\`${i}\` must be used within \`${n}\``);
23
+ }
24
+ return [p, E];
25
+ }
26
+ const a = () => {
27
+ const n = r.map((l) => S.createContext(l));
28
+ return function(u) {
29
+ const d = (u == null ? void 0 : u[e]) || n;
30
+ return S.useMemo(
31
+ () => ({ [`__scope${e}`]: { ...u, [e]: d } }),
32
+ [u, d]
33
+ );
34
+ };
35
+ };
36
+ return a.scopeName = e, [o, q(a, ...t)];
37
+ }
38
+ function q(...e) {
39
+ const t = e[0];
40
+ if (e.length === 1) return t;
41
+ const r = () => {
42
+ const o = e.map((a) => ({
43
+ useScope: a(),
44
+ scopeName: a.scopeName
45
+ }));
46
+ return function(n) {
47
+ const l = o.reduce((u, { useScope: d, scopeName: p }) => {
48
+ const i = d(n)[`__scope${p}`];
49
+ return { ...u, ...i };
50
+ }, {});
51
+ return S.useMemo(() => ({ [`__scope${t.scopeName}`]: l }), [l]);
52
+ };
53
+ };
54
+ return r.scopeName = t.scopeName, r;
55
+ }
56
+ function K(e) {
57
+ const t = S.useRef(e);
58
+ return S.useEffect(() => {
59
+ t.current = e;
60
+ }), S.useMemo(() => (...r) => {
61
+ var o;
62
+ return (o = t.current) == null ? void 0 : o.call(t, ...r);
63
+ }, []);
64
+ }
65
+ var A = globalThis != null && globalThis.document ? S.useLayoutEffect : () => {
66
+ }, F = [
67
+ "a",
68
+ "button",
69
+ "div",
70
+ "form",
71
+ "h2",
72
+ "h3",
73
+ "img",
74
+ "input",
75
+ "label",
76
+ "li",
77
+ "nav",
78
+ "ol",
79
+ "p",
80
+ "select",
81
+ "span",
82
+ "svg",
83
+ "ul"
84
+ ], w = F.reduce((e, t) => {
85
+ const r = B(`Primitive.${t}`), o = S.forwardRef((a, n) => {
86
+ const { asChild: l, ...u } = a, d = l ? r : t;
87
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(d, { ...u, ref: n });
88
+ });
89
+ return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
90
+ }, {}), x = { exports: {} }, g = {};
91
+ /**
92
+ * @license React
93
+ * use-sync-external-store-shim.production.js
94
+ *
95
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
96
+ *
97
+ * This source code is licensed under the MIT license found in the
98
+ * LICENSE file in the root directory of this source tree.
99
+ */
100
+ var C;
101
+ function W() {
102
+ if (C) return g;
103
+ C = 1;
104
+ var e = j;
105
+ function t(i, f) {
106
+ return i === f && (i !== 0 || 1 / i === 1 / f) || i !== i && f !== f;
107
+ }
108
+ var r = typeof Object.is == "function" ? Object.is : t, o = e.useState, a = e.useEffect, n = e.useLayoutEffect, l = e.useDebugValue;
109
+ function u(i, f) {
110
+ var s = f(), c = o({ inst: { value: s, getSnapshot: f } }), v = c[0].inst, m = c[1];
111
+ return n(
112
+ function() {
113
+ v.value = s, v.getSnapshot = f, d(v) && m({ inst: v });
114
+ },
115
+ [i, s, f]
116
+ ), a(
117
+ function() {
118
+ return d(v) && m({ inst: v }), i(function() {
119
+ d(v) && m({ inst: v });
120
+ });
121
+ },
122
+ [i]
123
+ ), l(s), s;
124
+ }
125
+ function d(i) {
126
+ var f = i.getSnapshot;
127
+ i = i.value;
128
+ try {
129
+ var s = f();
130
+ return !r(i, s);
131
+ } catch {
132
+ return !0;
133
+ }
134
+ }
135
+ function p(i, f) {
136
+ return f();
137
+ }
138
+ var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : u;
139
+ return g.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, g;
140
+ }
141
+ var L = {};
142
+ /**
143
+ * @license React
144
+ * use-sync-external-store-shim.development.js
145
+ *
146
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
147
+ *
148
+ * This source code is licensed under the MIT license found in the
149
+ * LICENSE file in the root directory of this source tree.
150
+ */
151
+ var N;
152
+ function Y() {
153
+ return N || (N = 1, process.env.NODE_ENV !== "production" && function() {
154
+ function e(s, c) {
155
+ return s === c && (s !== 0 || 1 / s === 1 / c) || s !== s && c !== c;
156
+ }
157
+ function t(s, c) {
158
+ E || a.startTransition === void 0 || (E = !0, console.error(
159
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
160
+ ));
161
+ var v = c();
162
+ if (!i) {
163
+ var m = c();
164
+ n(v, m) || (console.error(
165
+ "The result of getSnapshot should be cached to avoid an infinite loop"
166
+ ), i = !0);
167
+ }
168
+ m = l({
169
+ inst: { value: v, getSnapshot: c }
170
+ });
171
+ var _ = m[0].inst, y = m[1];
172
+ return d(
173
+ function() {
174
+ _.value = v, _.getSnapshot = c, r(_) && y({ inst: _ });
175
+ },
176
+ [s, v, c]
177
+ ), u(
178
+ function() {
179
+ return r(_) && y({ inst: _ }), s(function() {
180
+ r(_) && y({ inst: _ });
181
+ });
182
+ },
183
+ [s]
184
+ ), p(v), v;
185
+ }
186
+ function r(s) {
187
+ var c = s.getSnapshot;
188
+ s = s.value;
189
+ try {
190
+ var v = c();
191
+ return !n(s, v);
192
+ } catch {
193
+ return !0;
194
+ }
195
+ }
196
+ function o(s, c) {
197
+ return c();
198
+ }
199
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
200
+ var a = j, n = typeof Object.is == "function" ? Object.is : e, l = a.useState, u = a.useEffect, d = a.useLayoutEffect, p = a.useDebugValue, E = !1, i = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : t;
201
+ L.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
202
+ }()), L;
203
+ }
204
+ var b;
205
+ function J() {
206
+ return b || (b = 1, process.env.NODE_ENV === "production" ? x.exports = W() : x.exports = Y()), x.exports;
207
+ }
208
+ var Q = J();
209
+ function X() {
210
+ return Q.useSyncExternalStore(
211
+ Z,
212
+ () => !0,
213
+ () => !1
214
+ );
215
+ }
216
+ function Z() {
217
+ return () => {
218
+ };
219
+ }
220
+ var R = "Avatar", [ee, fe] = U(R), [te, T] = ee(R), $ = S.forwardRef(
221
+ (e, t) => {
222
+ const { __scopeAvatar: r, ...o } = e, [a, n] = S.useState("idle");
223
+ return /* @__PURE__ */ h.jsx(
224
+ te,
225
+ {
226
+ scope: r,
227
+ imageLoadingStatus: a,
228
+ onImageLoadingStatusChange: n,
229
+ children: /* @__PURE__ */ h.jsx(w.span, { ...o, ref: t })
230
+ }
231
+ );
232
+ }
233
+ );
234
+ $.displayName = R;
235
+ var D = "AvatarImage", M = S.forwardRef(
236
+ (e, t) => {
237
+ const { __scopeAvatar: r, src: o, onLoadingStatusChange: a = () => {
238
+ }, ...n } = e, l = T(D, r), u = re(o, n), d = K((p) => {
239
+ a(p), l.onImageLoadingStatusChange(p);
240
+ });
241
+ return A(() => {
242
+ u !== "idle" && d(u);
243
+ }, [u, d]), u === "loaded" ? /* @__PURE__ */ h.jsx(w.img, { ...n, ref: t, src: o }) : null;
244
+ }
245
+ );
246
+ M.displayName = D;
247
+ var P = "AvatarFallback", V = S.forwardRef(
248
+ (e, t) => {
249
+ const { __scopeAvatar: r, delayMs: o, ...a } = e, n = T(P, r), [l, u] = S.useState(o === void 0);
250
+ return S.useEffect(() => {
251
+ if (o !== void 0) {
252
+ const d = window.setTimeout(() => u(!0), o);
253
+ return () => window.clearTimeout(d);
254
+ }
255
+ }, [o]), l && n.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(w.span, { ...a, ref: t }) : null;
256
+ }
257
+ );
258
+ V.displayName = P;
259
+ function I(e, t) {
260
+ return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
261
+ }
262
+ function re(e, { referrerPolicy: t, crossOrigin: r }) {
263
+ const o = X(), a = S.useRef(null), n = o ? (a.current || (a.current = new window.Image()), a.current) : null, [l, u] = S.useState(
264
+ () => I(n, e)
265
+ );
266
+ return A(() => {
267
+ u(I(n, e));
268
+ }, [n, e]), A(() => {
269
+ const d = (i) => () => {
270
+ u(i);
271
+ };
272
+ if (!n) return;
273
+ const p = d("loaded"), E = d("error");
274
+ return n.addEventListener("load", p), n.addEventListener("error", E), t && (n.referrerPolicy = t), typeof r == "string" && (n.crossOrigin = r), () => {
275
+ n.removeEventListener("load", p), n.removeEventListener("error", E);
276
+ };
277
+ }, [n, r, t]), l;
278
+ }
279
+ var G = $, k = M, z = V;
280
+ const ne = H(
281
+ "relative flex shrink-0 overflow-hidden rounded-full",
282
+ {
283
+ variants: {
284
+ size: {
285
+ /** Small avatar - 32x32px */
286
+ sm: "size-8",
287
+ /** Default avatar - 40x40px */
288
+ default: "size-10",
289
+ /** Medium avatar - 52x52px */
290
+ md: "size-13",
291
+ /** Large avatar - 64x64px */
292
+ lg: "size-16",
293
+ /** Extra large avatar - 80x80px */
294
+ xl: "size-20"
295
+ }
296
+ },
297
+ defaultVariants: {
298
+ size: "default"
299
+ }
300
+ }
301
+ ), ae = S.forwardRef(({ className: e, size: t, ...r }, o) => /* @__PURE__ */ h.jsx(
302
+ G,
303
+ {
304
+ ref: o,
305
+ className: O(ne({ size: t }), e),
306
+ ...r
307
+ }
308
+ ));
309
+ ae.displayName = G.displayName;
310
+ const oe = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
311
+ k,
312
+ {
313
+ ref: r,
314
+ className: O("aspect-square size-full", e),
315
+ ...t
316
+ }
317
+ ));
318
+ oe.displayName = k.displayName;
319
+ const se = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
320
+ z,
321
+ {
322
+ ref: r,
323
+ className: O(
324
+ "flex size-full items-center justify-center rounded-full bg-muted",
325
+ e
326
+ ),
327
+ ...t
328
+ }
329
+ ));
330
+ se.displayName = z.displayName;
331
+ export {
332
+ ae as A,
333
+ ne as a,
334
+ oe as b,
335
+ se as c
336
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./utils-DH1n-kUn.cjs");require("react");const r=e.cva("inline-flex flex-nowrap whitespace-nowrap justify-center items-center border px-2.5 text-body-2xs-medium dark:border [&>svg]:size-3.5 gap-1",{variants:{type:{default:"!text-white before:hidden ",status:"!text-primary !border-border-alpha-subtle !bg-transparent before:hidden ",indicator:'!text-white before:content-[""] before:inline-block before:size-2 before:rounded-xs',icon:"!text-white [&>svg]:!text-white p-0.5 before:hidden "},variant:{default:"bg-neutral-950 dark:bg-neutral-0 before:bg-white",gray:"bg-gray-500 [&>svg]:text-gray-700 before:bg-gray-700",blue:"bg-blue-500 [&>svg]:text-blue-700 before:bg-blue-700",cyan:"bg-cyan-500 [&>svg]:text-cyan-700 before:bg-cyan-700",green:"bg-green-500 [&>svg]:text-green-700 before:bg-green-700",lime:"bg-lime-500 [&>svg]:text-lime-700 before:bg-lime-700",orange:"bg-orange-500 [&>svg]:text-orange-700 before:bg-orange-700",red:"bg-red-500 [&>svg]:text-red-700 before:bg-red-700",purple:"bg-purple-500 [&>svg]:text-purple-700 before:bg-purple-700",indigo:"bg-indigo-500 [&>svg]:text-indigo-700 before:bg-indigo-700","default-outlined":"!bg-item-primary-secondary !text-primary border-border-alpha-subtle [&>svg]:!text-primary before:bg-primary","gray-outlined":"!bg-neutral-alpha-5 !text-secondary [&>svg]:!text-gray-700 before:bg-gray-700","blue-outlined":"!bg-blue-100 !text-blue-700 border-blue-200 [&>svg]:!text-blue-700 before:bg-blue-700","cyan-outlined":"!bg-cyan-100 !text-cyan-700 border-cyan-200 [&>svg]:!text-cyan-700 before:bg-cyan-700","green-outlined":"!bg-green-100 !text-green-700 border-green-200 [&>svg]:!text-green-700 before:bg-green-700","lime-outlined":"!bg-lime-100 !text-lime-700 border-lime-200 [&>svg]:!text-lime-700 before:bg-lime-700","orange-outlined":"!bg-orange-100 !text-orange-700 border-orange-200 [&>svg]:!text-orange-700 before:bg-orange-700","red-outlined":"!bg-red-100 !text-red-700 border-red-200 [&>svg]:!text-red-700 before:bg-red-700","purple-outlined":"!bg-purple-100 !text-purple-700 border-purple-200 [&>svg]:!text-purple-700 before:bg-purple-700","indigo-outlined":"!bg-indigo-100 !text-indigo-700 border-indigo-200 [&>svg]:!text-indigo-700 before:bg-indigo-700"},size:{sm:"h-5 min-w-5",lg:"h-6 min-w-6"},rounded:{default:"rounded-md",full:"rounded-full"}},defaultVariants:{variant:"default",rounded:"default",size:"sm",type:"default"}});function t({className:g,variant:b,rounded:n,type:o,size:i,...a}){return e.jsxRuntimeExports.jsx("div",{className:e.cn(r({type:o,variant:b,rounded:n,size:i}),g),...a})}t.displayName="Badge";exports.Badge=t;exports.badgeVariants=r;
@@ -1,8 +1,6 @@
1
- import { j as n } from "./dgz-ui.es9.js";
1
+ import { a as n, j as a, c as i } from "./utils-Cu4x_LlJ.js";
2
2
  import "react";
3
- import { cva as i } from "./dgz-ui.es10.js";
4
- import { cn as d } from "./dgz-ui.es11.js";
5
- const a = i(
3
+ const d = n(
6
4
  "inline-flex flex-nowrap whitespace-nowrap justify-center items-center border px-2.5 text-body-2xs-medium dark:border [&>svg]:size-3.5 gap-1",
7
5
  {
8
6
  variants: {
@@ -59,16 +57,16 @@ function l({
59
57
  size: b,
60
58
  ...o
61
59
  }) {
62
- return /* @__PURE__ */ n.jsx(
60
+ return /* @__PURE__ */ a.jsx(
63
61
  "div",
64
62
  {
65
- className: d(a({ type: g, variant: r, rounded: t, size: b }), e),
63
+ className: i(d({ type: g, variant: r, rounded: t, size: b }), e),
66
64
  ...o
67
65
  }
68
66
  );
69
67
  }
70
68
  l.displayName = "Badge";
71
69
  export {
72
- l as Badge,
73
- a as badgeVariants
70
+ l as B,
71
+ d as b
74
72
  };
@@ -1,8 +1,6 @@
1
- import { j as m } from "./dgz-ui.es9.js";
2
- import { Root as n } from "./dgz-ui.es12.js";
3
- import { cva as d } from "./dgz-ui.es10.js";
4
- import { forwardRef as c } from "react";
5
- import { cn as v } from "./dgz-ui.es11.js";
1
+ import { j as n, c as m, a as d } from "./utils-Cu4x_LlJ.js";
2
+ import { S as c } from "./index-B4IrUVWh.js";
3
+ import { forwardRef as v } from "react";
6
4
  const g = d(
7
5
  "inline-flex border border-border-alpha-strong items-center justify-center gap-2 whitespace-nowrap font-medium focus:ring-2 focus:ring-offset-2 focus:ring-offset-bg focus:ring-item-primary-focus transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8
6
  {
@@ -27,21 +25,21 @@ const g = d(
27
25
  size: "default"
28
26
  }
29
27
  }
30
- ), u = c(
31
- ({ className: e, variant: t, size: i, asChild: r = !1, ...o }, s) => {
32
- const a = r ? n : "button";
33
- return /* @__PURE__ */ m.jsx(
28
+ ), u = v(
29
+ ({ className: e, variant: t, size: i, asChild: r = !1, ...s }, o) => {
30
+ const a = r ? c : "button";
31
+ return /* @__PURE__ */ n.jsx(
34
32
  a,
35
33
  {
36
- className: v(g({ variant: t, size: i, className: e })),
37
- ref: s,
38
- ...o
34
+ className: m(g({ variant: t, size: i, className: e })),
35
+ ref: o,
36
+ ...s
39
37
  }
40
38
  );
41
39
  }
42
40
  );
43
41
  u.displayName = "Button";
44
42
  export {
45
- u as Button,
46
- g as buttonVariants
43
+ u as B,
44
+ g as b
47
45
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./utils-DH1n-kUn.cjs"),u=require("./index-DjR9Xv7C.cjs"),m=require("react"),t=e.cva("inline-flex border border-border-alpha-strong items-center justify-center gap-2 whitespace-nowrap font-medium focus:ring-2 focus:ring-offset-2 focus:ring-offset-bg focus:ring-item-primary-focus transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-item-primary hover:bg-item-primary-hover active:bg-item-primary-active !text-white",destructive:"bg-item-destructive hover:bg-item-destructive-hover active:bg-item-destructive-active focus:ring-2 focus:ring-item-destructive-focus !text-white",secondary:"bg-item-secondary hover:bg-item-secondary-hover active:bg-item-secondary-active",tertiary:"bg-item-tertiary hover:bg-item-tertiary-hover active:bg-item-tertiary-active border-0",ghost:"bg-item-ghost hover:bg-item-ghost-hover active:bg-item-ghost-active border-0"},size:{lg:"h-12 px-4 text-body-sm-medium [&>svg]:size-5 rounded-5",default:"h-10 px-3 text-body-sm-medium [&>svg]:size-5 rounded-4",sm:"h-8 px-2.5 text-body-xs-medium [&>svg]:size-4 rounded-3",xs:"h-7 px-2 text-body-xs-medium [&>svg]:size-4 rounded-2",icon:"h-10 w-10 text-body-xs-medium [&>svg]:size-4 rounded-3"}},defaultVariants:{variant:"default",size:"default"}}),i=m.forwardRef(({className:r,variant:s,size:o,asChild:a=!1,...n},d)=>{const c=a?u.Slot:"button";return e.jsxRuntimeExports.jsx(c,{className:e.cn(t({variant:s,size:o,className:r})),ref:d,...n})});i.displayName="Button";exports.Button=i;exports.buttonVariants=t;
@@ -0,0 +1,7 @@
1
+ import { A as t, c as s, b as v, a as A } from "../../../avatar-KFHGowVn.js";
2
+ export {
3
+ t as Avatar,
4
+ s as AvatarFallback,
5
+ v as AvatarImage,
6
+ A as avatarVariants
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../avatar-CuLQPgwj.cjs");exports.Avatar=a.Avatar;exports.AvatarFallback=a.AvatarFallback;exports.AvatarImage=a.AvatarImage;exports.avatarVariants=a.avatarVariants;
@@ -0,0 +1,5 @@
1
+ import { B as r, b as s } from "../../../badge-DlSdChLJ.js";
2
+ export {
3
+ r as Badge,
4
+ s as badgeVariants
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../badge-DXZNHpwe.cjs");exports.Badge=e.Badge;exports.badgeVariants=e.badgeVariants;
@@ -0,0 +1,5 @@
1
+ import { B as o, b as n } from "../../../button-CfenIARW.js";
2
+ export {
3
+ o as Button,
4
+ n as buttonVariants
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../button-CpN_5c1A.cjs");exports.Button=t.Button;exports.buttonVariants=t.buttonVariants;
@@ -0,0 +1,72 @@
1
+ import * as i from "react";
2
+ import { j as p } from "./utils-Cu4x_LlJ.js";
3
+ function d(n, t) {
4
+ if (typeof n == "function")
5
+ return n(t);
6
+ n != null && (n.current = t);
7
+ }
8
+ function m(...n) {
9
+ return (t) => {
10
+ let o = !1;
11
+ const r = n.map((e) => {
12
+ const l = d(e, t);
13
+ return !o && typeof l == "function" && (o = !0), l;
14
+ });
15
+ if (o)
16
+ return () => {
17
+ for (let e = 0; e < r.length; e++) {
18
+ const l = r[e];
19
+ typeof l == "function" ? l() : d(n[e], null);
20
+ }
21
+ };
22
+ };
23
+ }
24
+ // @__NO_SIDE_EFFECTS__
25
+ function S(n) {
26
+ const t = /* @__PURE__ */ g(n), o = i.forwardRef((r, e) => {
27
+ const { children: l, ...c } = r, s = i.Children.toArray(l), a = s.find(C);
28
+ if (a) {
29
+ const u = a.props.children, y = s.map((f) => f === a ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : f);
30
+ return /* @__PURE__ */ p.jsx(t, { ...c, ref: e, children: i.isValidElement(u) ? i.cloneElement(u, void 0, y) : null });
31
+ }
32
+ return /* @__PURE__ */ p.jsx(t, { ...c, ref: e, children: l });
33
+ });
34
+ return o.displayName = `${n}.Slot`, o;
35
+ }
36
+ var j = /* @__PURE__ */ S("Slot");
37
+ // @__NO_SIDE_EFFECTS__
38
+ function g(n) {
39
+ const t = i.forwardRef((o, r) => {
40
+ const { children: e, ...l } = o;
41
+ if (i.isValidElement(e)) {
42
+ const c = h(e), s = R(l, e.props);
43
+ return e.type !== i.Fragment && (s.ref = r ? m(r, c) : c), i.cloneElement(e, s);
44
+ }
45
+ return i.Children.count(e) > 1 ? i.Children.only(null) : null;
46
+ });
47
+ return t.displayName = `${n}.SlotClone`, t;
48
+ }
49
+ var E = Symbol("radix.slottable");
50
+ function C(n) {
51
+ return i.isValidElement(n) && typeof n.type == "function" && "__radixId" in n.type && n.type.__radixId === E;
52
+ }
53
+ function R(n, t) {
54
+ const o = { ...t };
55
+ for (const r in t) {
56
+ const e = n[r], l = t[r];
57
+ /^on[A-Z]/.test(r) ? e && l ? o[r] = (...s) => {
58
+ const a = l(...s);
59
+ return e(...s), a;
60
+ } : e && (o[r] = e) : r === "style" ? o[r] = { ...e, ...l } : r === "className" && (o[r] = [e, l].filter(Boolean).join(" "));
61
+ }
62
+ return { ...n, ...o };
63
+ }
64
+ function h(n) {
65
+ var r, e;
66
+ let t = (r = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
67
+ return o ? n.ref : (t = (e = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : e.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? n.props.ref : n.props.ref || n.ref);
68
+ }
69
+ export {
70
+ j as S,
71
+ S as c
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react"),p=require("./utils-DH1n-kUn.cjs");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=S(g);function d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function E(...e){return t=>{let r=!1;const o=e.map(n=>{const l=d(n,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let n=0;n<o.length;n++){const l=o[n];typeof l=="function"?l():d(e[n],null)}}}}function y(e){const t=b(e),r=i.forwardRef((o,n)=>{const{children:l,...c}=o,s=i.Children.toArray(l),u=s.find(C);if(u){const a=u.props.children,m=s.map(f=>f===u?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:f);return p.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(a)?i.cloneElement(a,void 0,m):null})}return p.jsxRuntimeExports.jsx(t,{...c,ref:n,children:l})});return r.displayName=`${e}.Slot`,r}var R=y("Slot");function b(e){const t=i.forwardRef((r,o)=>{const{children:n,...l}=r;if(i.isValidElement(n)){const c=O(n),s=h(l,n.props);return n.type!==i.Fragment&&(s.ref=o?E(o,c):c),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j=Symbol("radix.slottable");function C(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j}function h(e,t){const r={...t};for(const o in t){const n=e[o],l=t[o];/^on[A-Z]/.test(o)?n&&l?r[o]=(...s)=>{const u=l(...s);return n(...s),u}:n&&(r[o]=n):o==="style"?r[o]={...n,...l}:o==="className"&&(r[o]=[n,l].filter(Boolean).join(" "))}return{...e,...r}}function O(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Slot=R;exports.createSlot=y;
@@ -0,0 +1,13 @@
1
+ import { B as r, b as s } from "./badge-DlSdChLJ.js";
2
+ import { A as b, c as e, b as n, a as m } from "./avatar-KFHGowVn.js";
3
+ import { B as A, b as B } from "./button-CfenIARW.js";
4
+ export {
5
+ b as Avatar,
6
+ e as AvatarFallback,
7
+ n as AvatarImage,
8
+ r as Badge,
9
+ A as Button,
10
+ m as avatarVariants,
11
+ s as badgeVariants,
12
+ B as buttonVariants
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./badge-DXZNHpwe.cjs"),a=require("./avatar-CuLQPgwj.cjs"),r=require("./button-CpN_5c1A.cjs");exports.Badge=t.Badge;exports.badgeVariants=t.badgeVariants;exports.Avatar=a.Avatar;exports.AvatarFallback=a.AvatarFallback;exports.AvatarImage=a.AvatarImage;exports.avatarVariants=a.avatarVariants;exports.Button=r.Button;exports.buttonVariants=r.buttonVariants;
@@ -0,0 +1,3 @@
1
+ declare const App: () => import("react/jsx-runtime").JSX.Element;
2
+ export default App;
3
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG,+CAER,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,2 @@
1
+ import "./index.css";
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC"}