ics-ui-kit 0.1.15 → 0.1.16
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/avatar.js +7 -7
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/dropdown.js +3 -3
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/sidebar.js +61 -61
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/table/column-reorder.js +1 -1
- package/dist/components/table/rowTint.d.ts +1 -1
- package/dist/components/table/sticky.js +1 -1
- package/dist/components/table/tree.js +1 -1
- package/dist/components/table.js +3 -3
- package/dist/{opaqueCell-SGaiyL54.js → opaqueCell-D95h1mFM.js} +6 -6
- package/dist/opaqueCell-D95h1mFM.js.map +1 -0
- package/dist/styles-scoped.css +13 -7
- package/dist/styles.css +13 -7
- package/dist/theme.css +7 -3
- package/dist/{treeModel-BlPWVj4W.js → treeModel-jvOXFZvK.js} +2 -2
- package/dist/{treeModel-BlPWVj4W.js.map → treeModel-jvOXFZvK.js.map} +1 -1
- package/dist/{useColumnReorder-BxVZQ_Y5.js → useColumnReorder-tE5pMONm.js} +2 -2
- package/dist/{useColumnReorder-BxVZQ_Y5.js.map → useColumnReorder-tE5pMONm.js.map} +1 -1
- package/package.json +1 -1
- package/tailwind.preset.js +4 -0
- package/dist/opaqueCell-SGaiyL54.js.map +0 -1
|
@@ -135,7 +135,7 @@ function ne() {
|
|
|
135
135
|
return () => {
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
var R = "Avatar", [oe, Ie] = J(R), [se,
|
|
138
|
+
var R = "Avatar", [oe, Ie] = J(R), [se, k] = oe(R), M = x.forwardRef(
|
|
139
139
|
(e, t) => {
|
|
140
140
|
const { __scopeAvatar: r, ...n } = e, [o, a] = x.useState("idle");
|
|
141
141
|
return /* @__PURE__ */ f(
|
|
@@ -149,11 +149,11 @@ var R = "Avatar", [oe, Ie] = J(R), [se, M] = oe(R), k = x.forwardRef(
|
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
|
|
152
|
+
M.displayName = R;
|
|
153
153
|
var G = "AvatarImage", j = x.forwardRef(
|
|
154
154
|
(e, t) => {
|
|
155
155
|
const { __scopeAvatar: r, src: n, onLoadingStatusChange: o = () => {
|
|
156
|
-
}, ...a } = e, c =
|
|
156
|
+
}, ...a } = e, c = k(G, r), v = ie(n, a), u = Q((m) => {
|
|
157
157
|
o(m), c.onImageLoadingStatusChange(m);
|
|
158
158
|
});
|
|
159
159
|
return O(() => {
|
|
@@ -164,7 +164,7 @@ var G = "AvatarImage", j = x.forwardRef(
|
|
|
164
164
|
j.displayName = G;
|
|
165
165
|
var H = "AvatarFallback", P = x.forwardRef(
|
|
166
166
|
(e, t) => {
|
|
167
|
-
const { __scopeAvatar: r, delayMs: n, ...o } = e, a =
|
|
167
|
+
const { __scopeAvatar: r, delayMs: n, ...o } = e, a = k(H, r), [c, v] = x.useState(n === void 0);
|
|
168
168
|
return x.useEffect(() => {
|
|
169
169
|
if (n !== void 0) {
|
|
170
170
|
const u = window.setTimeout(() => v(!0), n);
|
|
@@ -194,7 +194,7 @@ function ie(e, { referrerPolicy: t, crossOrigin: r }) {
|
|
|
194
194
|
};
|
|
195
195
|
}, [a, r, t]), c;
|
|
196
196
|
}
|
|
197
|
-
var U =
|
|
197
|
+
var U = M, B = j, T = P;
|
|
198
198
|
const le = b({
|
|
199
199
|
base: "relative box-border flex shrink-0 rounded-full",
|
|
200
200
|
slots: {
|
|
@@ -250,8 +250,8 @@ const $ = x.createContext(null), w = () => {
|
|
|
250
250
|
}, pe = b({
|
|
251
251
|
slots: {
|
|
252
252
|
wrapper: "flex flex-row items-center gap-2",
|
|
253
|
-
avatarWrapper: "relative",
|
|
254
|
-
textWrapper: "flex flex-col",
|
|
253
|
+
avatarWrapper: "relative shrink-0",
|
|
254
|
+
textWrapper: "flex min-w-0 flex-col",
|
|
255
255
|
indicator: "absolute bottom-0 right-0 rounded-full border-2 border-secondary-bg"
|
|
256
256
|
},
|
|
257
257
|
variants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":["../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js","../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.0_@types+react@18.3.20_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.11_@types+react-dom@18.3.6_@types+react@18.3.20__@types+reac_83cc3097e6f4b1aa2ef2f3c1cb15c838/node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/avatar/Avatar.tsx","../../src/components/avatar/avatar-fallback/AvatarFallback.tsx","../../src/components/avatar/avatar-icon/AvatarIcon.tsx","../../src/components/avatar/avatar-image/AvatarImage.tsx","../../src/components/avatar/avatar-label/AvatarLabelContext.tsx","../../src/components/avatar/avatar-label/AvatarLabel.tsx","../../src/components/avatar/avatar-indicator/AvatarIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.tsx","../../src/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.tsx","../../src/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.tsx"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"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.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { tv } from \"tailwind-variants\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n\tindicator?: React.ReactNode;\n}\n\nconst avatarStyles = tv({\n\tbase: \"relative box-border flex shrink-0 rounded-full\",\n\tslots: {\n\t\twrapper: \"h-full w-full overflow-hidden rounded-full\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"h-4 w-4 text-2xs [&_svg]:h-2.5 [&_svg]:w-2.5\",\n\t\t\t\"2xs\": \"h-5 w-5 text-[0.625rem] [&_svg]:h-3 [&_svg]:w-3\",\n\t\t\txs: \"h-6 w-6 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tsm: \"h-7 w-7 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tmd: \"h-8 w-8 text-sm [&_svg]:h-4 [&_svg]:w-4\",\n\t\t\tlg: \"h-10 w-10 text-base [&_svg]:h-5 [&_svg]:w-5\",\n\t\t\txl: \"h-12 w-12 text-lg [&_svg]:h-6 [&_svg]:w-6\",\n\t\t\t\"2xl\": \"h-14 w-14 text-xl [&_svg]:h-7 [&_svg]:w-7\",\n\t\t\t\"3xl\": \"h-16 w-16 text-2xl [&_svg]:h-8 [&_svg]:w-8\"\n\t\t}\n\t} satisfies Omit<VariantsConfig<AvatarVariants>, \"indicator\">,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarVariants;\n\nexport const Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n\t({ className, size, indicator, children, ...props }, ref) => {\n\t\tconst styles = avatarStyles();\n\n\t\treturn (\n\t\t\t<AvatarPrimitive.Root ref={ref} className={styles.base({ className, size })} {...props}>\n\t\t\t\t<div className={styles.wrapper()}>{children}</div>\n\t\t\t\t{indicator}\n\t\t\t</AvatarPrimitive.Root>\n\t\t);\n\t}\n);\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const avatarFallbackStyles = tv({\n\tbase: \"flex h-full w-full items-center justify-center rounded-full bg-secondary-bg-hover text-secondary-fg\"\n});\n\nexport type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nexport const AvatarFallback = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarFallbackProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props} />\n\t)\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { AvatarFallbackProps, avatarFallbackStyles } from \"../avatar-fallback/AvatarFallback\";\nimport { Icon } from \"@/components/icon\";\nimport { LucideIcon } from \"lucide-react\";\n\ntype AvatarIcon = Omit<AvatarFallbackProps, \"children\"> & {\n\ticon: LucideIcon;\n};\n\nexport const AvatarIcon = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarIcon>(\n\t({ className, icon, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props}>\n\t\t\t<Icon icon={icon} />\n\t\t</AvatarPrimitive.Fallback>\n\t)\n);\n\nAvatarIcon.displayName = \"AvatarIcon\";\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst avatarImageStyles = tv({\n\tbase: \"aspect-square h-full w-full rounded-full border border-secondary-border\"\n});\n\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nexport const AvatarImage = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Image>, AvatarImageProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Image ref={ref} className={avatarImageStyles({ className })} {...props} />\n\t)\n);\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n","import * as React from \"react\";\nimport { AvatarLabelVariants } from \"./AvatarLabel\";\n\nexport type AvatarLabelComponentType = \"avatar\" | \"indicator\" | \"title\" | \"description\";\n\n// Тип для дочернего компонента AvatarLabel\nexport type AvatarLabelChild<T = Record<string, unknown>> = (\n\t| React.ComponentType<T>\n\t| React.ForwardRefExoticComponent<T>\n) & {\n\tcomponentType: AvatarLabelComponentType;\n};\n\nexport type AvatarLabelContextValue = AvatarLabelVariants;\n\nexport const AvatarLabelContext = React.createContext<AvatarLabelContextValue | null>(null);\n\nexport const useAvatarLabelContext = () => {\n\tconst context = React.useContext(AvatarLabelContext);\n\tif (!context) {\n\t\tthrow new Error(\"useAvatarLabelContext must be used within AvatarLabelProvider\");\n\t}\n\treturn context;\n};\n","import * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { AvatarLabelContext, AvatarLabelChild } from \"./AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarLabelVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n}\n\nconst avatarLabelStyles = tv({\n\tslots: {\n\t\twrapper: \"flex flex-row items-center gap-2\",\n\t\tavatarWrapper: \"relative\",\n\t\ttextWrapper: \"flex flex-col\",\n\t\tindicator: \"absolute bottom-0 right-0 rounded-full border-2 border-secondary-bg\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\t\"2xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\txs: {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\tsm: {},\n\t\t\tmd: {},\n\t\t\tlg: {},\n\t\t\txl: {\n\t\t\t\twrapper: \"gap-3\"\n\t\t\t},\n\t\t\t\"2xl\": {\n\t\t\t\twrapper: \"gap-4\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelProps = Omit<React.ComponentPropsWithoutRef<\"div\">, \"title\"> & AvatarLabelVariants;\n\nexport const AvatarLabel = React.forwardRef<HTMLDivElement, AvatarLabelProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst contextValue = React.useMemo(() => ({ size }), [size]);\n\n\t\tconst sortedComponents = React.useMemo(() => {\n\t\t\tif (!children) return null;\n\n\t\t\tconst childrenArray = React.Children.toArray(children) as React.ReactElement[];\n\t\t\tlet avatar: React.ReactElement | null = null;\n\t\t\tlet indicator: React.ReactElement | null = null;\n\t\t\tlet title: React.ReactElement | null = null;\n\t\t\tlet description: React.ReactElement | null = null;\n\n\t\t\tchildrenArray.forEach((child) => {\n\t\t\t\tconst componentType = (child.type as AvatarLabelChild)?.componentType;\n\n\t\t\t\tif (componentType === \"avatar\") {\n\t\t\t\t\tavatar = child;\n\t\t\t\t} else if (componentType === \"indicator\") {\n\t\t\t\t\tindicator = child;\n\t\t\t\t} else if (componentType === \"title\") {\n\t\t\t\t\ttitle = child;\n\t\t\t\t} else if (componentType === \"description\") {\n\t\t\t\t\tdescription = child;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn { avatar, indicator, title, description };\n\t\t}, [children]);\n\n\t\tconst renderContent = () => {\n\t\t\tif (!children) return null;\n\t\t\tconst styles = avatarLabelStyles();\n\n\t\t\tif (!sortedComponents) {\n\t\t\t\treturn (\n\t\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst { avatar, indicator, title, description } = sortedComponents;\n\n\t\t\treturn (\n\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t{avatar && (\n\t\t\t\t\t\t<div className={styles.avatarWrapper()}>\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t\t{indicator && <div className={styles.indicator()}>{indicator}</div>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{(title || description) && (\n\t\t\t\t\t\t<div className={styles.textWrapper()}>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t{description}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t};\n\n\t\treturn <AvatarLabelContext.Provider value={contextValue}>{renderContent()}</AvatarLabelContext.Provider>;\n\t}\n);\n\nAvatarLabel.displayName = \"AvatarLabel\";\n","import React from \"react\";\nimport { Indicator } from \"@/components/indicator\";\nimport { tv } from \"tailwind-variants\";\n\ntype AvatarIndicatorProps = Omit<React.ComponentPropsWithoutRef<typeof Indicator>, \"size\"> & {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n};\n\nconst avatarIndicatorStyles = tv({\n\tbase: \"absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-secondary-bg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"border\",\n\t\t\t\"2xs\": \"border\",\n\t\t\txs: \"bottom-[-3px] right-[-3px] border\",\n\t\t\tsm: \"bottom-[-3px] right-[-3px]\",\n\t\t\tmd: \"bottom-[-3px] right-[-3px]\",\n\t\t\tlg: \"\",\n\t\t\txl: \"\",\n\t\t\t\"2xl\": \"\",\n\t\t\t\"3xl\": \"\"\n\t\t}\n\t}\n});\n\nconst SIZE_MAP = {\n\t\"3xs\": \"3xs\",\n\t\"2xs\": \"2xs\",\n\txs: \"xs\",\n\tsm: \"sm\",\n\tmd: \"sm\",\n\tlg: \"md\",\n\txl: \"lg\",\n\t\"2xl\": \"xl\",\n\t\"3xl\": \"2xl\"\n} as const;\n\nexport const AvatarIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarIndicatorProps>(\n\t({ children, size, ...props }, ref) => {\n\t\tconst indicatorSize = size ? SIZE_MAP[size] : size;\n\n\t\treturn (\n\t\t\t<div className={avatarIndicatorStyles({ size })}>\n\t\t\t\t<Indicator ref={ref} size={indicatorSize} rounded {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Indicator>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nAvatarIndicator.displayName = \"AvatarIndicator\";\n","import React from \"react\";\nimport { Avatar } from \"../../../Avatar\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\n\ntype AvatarLabelAvatarProps = React.ComponentPropsWithoutRef<typeof Avatar>;\n\nexport const AvatarLabelAvatar = React.forwardRef<React.ElementRef<typeof Avatar>, AvatarLabelAvatarProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Avatar ref={ref} className={className} size={size || labelSize} {...props}>\n\t\t\t\t{children}\n\t\t\t</Avatar>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelAvatarProps>;\n\nAvatarLabelAvatar.displayName = \"AvatarLabelAvatar\";\nAvatarLabelAvatar.componentType = \"avatar\";\n","import React from \"react\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { Indicator } from \"@/components/indicator\";\n\ntype AvatarLabelIndicatorProps = React.ComponentPropsWithoutRef<typeof Indicator>;\n\nexport const AvatarLabelIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarLabelIndicatorProps>(\n\t({ children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Indicator ref={ref} size={labelSize} {...props} rounded>\n\t\t\t\t{children}\n\t\t\t</Indicator>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelIndicatorProps>;\n\nAvatarLabelIndicator.displayName = \"AvatarLabelIndicator\";\nAvatarLabelIndicator.componentType = \"indicator\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nconst avatarLabelTitleStyles = tv({\n\tbase: \"font-semibold text-primary-fg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"text-xs\",\n\t\t\t\"2xs\": \"text-xs\",\n\t\t\txs: \"text-sm\",\n\t\t\tsm: \"text-sm\",\n\t\t\tmd: \"text-sm\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-lg\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelTitleProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelVariants;\n\nexport const AvatarLabelTitle = React.forwardRef<HTMLSpanElement, AvatarLabelTitleProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<span ref={ref} className={avatarLabelTitleStyles({ className, size: size || labelSize })} {...props}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelTitleProps>;\n\nAvatarLabelTitle.displayName = \"AvatarLabelTitle\";\nAvatarLabelTitle.componentType = \"title\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\n\nconst avatarLabelDescriptionStyles = tv({\n\tbase: \"text-muted\",\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: \"text-xs leading-none\",\n\t\t\tmd: \"text-xs\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-base\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelDescriptionVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelDescriptionSizeVariants = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype AvatarLabelDescriptionVariants = Omit<AvatarLabelVariants, \"size\"> & { size?: AvatarLabelDescriptionSizeVariants };\n\nexport type AvatarLabelDescriptionProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelDescriptionVariants;\n\nexport const AvatarLabelDescription = React.forwardRef<HTMLSpanElement, AvatarLabelDescriptionProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\t\tconst descriptionSize = size || labelSize;\n\t\tif ([\"3xs\", \"2xs\", \"xs\"].includes(descriptionSize ?? \"\")) return null;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={avatarLabelDescriptionStyles({\n\t\t\t\t\tclassName,\n\t\t\t\t\tsize: descriptionSize as AvatarLabelDescriptionSizeVariants\n\t\t\t\t})}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelDescriptionProps>;\n\nAvatarLabelDescription.displayName = \"AvatarLabelDescription\";\nAvatarLabelDescription.componentType = \"description\";\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","didWarnOld18Alpha","didWarnUncachedGetSnapshot","cachedValue","useSyncExternalStoreShim_development","shimModule","require$$1","useIsHydrated","useSyncExternalStore","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback","avatarStyles","tv","className","size","indicator","children","ref","styles","jsxs","AvatarPrimitive.Root","avatarFallbackStyles","AvatarPrimitive.Fallback","AvatarIcon","icon","Icon","avatarImageStyles","AvatarPrimitive.Image","AvatarLabelContext","useAvatarLabelContext","avatarLabelStyles","AvatarLabel","contextValue","sortedComponents","childrenArray","avatar","title","description","child","componentType","renderContent","avatarIndicatorStyles","SIZE_MAP","AvatarIndicator","indicatorSize","Indicator","AvatarLabelAvatar","labelSize","AvatarLabelIndicator","avatarLabelTitleStyles","AvatarLabelTitle","avatarLabelDescriptionStyles","AvatarLabelDescription","descriptionSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA;AAExE,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAWN,EAAM,UACjBO,IAAYP,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBS,IAAgBT,EAAM;AACxB,WAASU,EAAuBC,GAAWC,GAAa;AACtD,QAAIC,IAAQD,EAAa,GACvBE,IAAYR,EAAS,EAAE,MAAM,EAAE,OAAOO,GAAO,aAAaD,EAAW,GAAI,GACzEG,IAAOD,EAAU,CAAC,EAAE,MACpBE,IAAcF,EAAU,CAAC;AAC3B,WAAAN;AAAA,MACE,WAAY;AACV,QAAAO,EAAK,QAAQF,GACbE,EAAK,cAAcH,GACnBK,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,MAC3D;AAAA,MACD,CAACJ,GAAWE,GAAOD,CAAW;AAAA,IAC/B,GACDL;AAAA,MACE,WAAY;AACV,eAAAU,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE,GACnDJ,EAAU,WAAY;AAC3B,UAAAM,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,QAClE,CAAO;AAAA,MACF;AAAA,MACD,C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,KAAAuC;AAAA,QACA,WAAWkC,GAA6B;AAAA,UACvC,WAAAtC;AAAA,UACA,MAAMwC;AAAA,QAAA,CACN;AAAA,QACA,GAAGjF;AAAA,QAEH,UAAA4C;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGH;AAEAoC,EAAuB,cAAc;AACrCA,EAAuB,gBAAgB;","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js","../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.0_@types+react@18.3.20_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.11_@types+react-dom@18.3.6_@types+react@18.3.20__@types+reac_83cc3097e6f4b1aa2ef2f3c1cb15c838/node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/avatar/Avatar.tsx","../../src/components/avatar/avatar-fallback/AvatarFallback.tsx","../../src/components/avatar/avatar-icon/AvatarIcon.tsx","../../src/components/avatar/avatar-image/AvatarImage.tsx","../../src/components/avatar/avatar-label/AvatarLabelContext.tsx","../../src/components/avatar/avatar-label/AvatarLabel.tsx","../../src/components/avatar/avatar-indicator/AvatarIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.tsx","../../src/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.tsx","../../src/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.tsx"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"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.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { tv } from \"tailwind-variants\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n\tindicator?: React.ReactNode;\n}\n\nconst avatarStyles = tv({\n\tbase: \"relative box-border flex shrink-0 rounded-full\",\n\tslots: {\n\t\twrapper: \"h-full w-full overflow-hidden rounded-full\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"h-4 w-4 text-2xs [&_svg]:h-2.5 [&_svg]:w-2.5\",\n\t\t\t\"2xs\": \"h-5 w-5 text-[0.625rem] [&_svg]:h-3 [&_svg]:w-3\",\n\t\t\txs: \"h-6 w-6 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tsm: \"h-7 w-7 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tmd: \"h-8 w-8 text-sm [&_svg]:h-4 [&_svg]:w-4\",\n\t\t\tlg: \"h-10 w-10 text-base [&_svg]:h-5 [&_svg]:w-5\",\n\t\t\txl: \"h-12 w-12 text-lg [&_svg]:h-6 [&_svg]:w-6\",\n\t\t\t\"2xl\": \"h-14 w-14 text-xl [&_svg]:h-7 [&_svg]:w-7\",\n\t\t\t\"3xl\": \"h-16 w-16 text-2xl [&_svg]:h-8 [&_svg]:w-8\"\n\t\t}\n\t} satisfies Omit<VariantsConfig<AvatarVariants>, \"indicator\">,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarVariants;\n\nexport const Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n\t({ className, size, indicator, children, ...props }, ref) => {\n\t\tconst styles = avatarStyles();\n\n\t\treturn (\n\t\t\t<AvatarPrimitive.Root ref={ref} className={styles.base({ className, size })} {...props}>\n\t\t\t\t<div className={styles.wrapper()}>{children}</div>\n\t\t\t\t{indicator}\n\t\t\t</AvatarPrimitive.Root>\n\t\t);\n\t}\n);\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const avatarFallbackStyles = tv({\n\tbase: \"flex h-full w-full items-center justify-center rounded-full bg-secondary-bg-hover text-secondary-fg\"\n});\n\nexport type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nexport const AvatarFallback = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarFallbackProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props} />\n\t)\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { AvatarFallbackProps, avatarFallbackStyles } from \"../avatar-fallback/AvatarFallback\";\nimport { Icon } from \"@/components/icon\";\nimport { LucideIcon } from \"lucide-react\";\n\ntype AvatarIcon = Omit<AvatarFallbackProps, \"children\"> & {\n\ticon: LucideIcon;\n};\n\nexport const AvatarIcon = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarIcon>(\n\t({ className, icon, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props}>\n\t\t\t<Icon icon={icon} />\n\t\t</AvatarPrimitive.Fallback>\n\t)\n);\n\nAvatarIcon.displayName = \"AvatarIcon\";\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst avatarImageStyles = tv({\n\tbase: \"aspect-square h-full w-full rounded-full border border-secondary-border\"\n});\n\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nexport const AvatarImage = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Image>, AvatarImageProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Image ref={ref} className={avatarImageStyles({ className })} {...props} />\n\t)\n);\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n","import * as React from \"react\";\nimport { AvatarLabelVariants } from \"./AvatarLabel\";\n\nexport type AvatarLabelComponentType = \"avatar\" | \"indicator\" | \"title\" | \"description\";\n\n// Тип для дочернего компонента AvatarLabel\nexport type AvatarLabelChild<T = Record<string, unknown>> = (\n\t| React.ComponentType<T>\n\t| React.ForwardRefExoticComponent<T>\n) & {\n\tcomponentType: AvatarLabelComponentType;\n};\n\nexport type AvatarLabelContextValue = AvatarLabelVariants;\n\nexport const AvatarLabelContext = React.createContext<AvatarLabelContextValue | null>(null);\n\nexport const useAvatarLabelContext = () => {\n\tconst context = React.useContext(AvatarLabelContext);\n\tif (!context) {\n\t\tthrow new Error(\"useAvatarLabelContext must be used within AvatarLabelProvider\");\n\t}\n\treturn context;\n};\n","import * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { AvatarLabelContext, AvatarLabelChild } from \"./AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarLabelVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n}\n\nconst avatarLabelStyles = tv({\n\tslots: {\n\t\twrapper: \"flex flex-row items-center gap-2\",\n\t\tavatarWrapper: \"relative shrink-0\",\n\t\ttextWrapper: \"flex min-w-0 flex-col\",\n\t\tindicator: \"absolute bottom-0 right-0 rounded-full border-2 border-secondary-bg\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\t\"2xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\txs: {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\tsm: {},\n\t\t\tmd: {},\n\t\t\tlg: {},\n\t\t\txl: {\n\t\t\t\twrapper: \"gap-3\"\n\t\t\t},\n\t\t\t\"2xl\": {\n\t\t\t\twrapper: \"gap-4\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelProps = Omit<React.ComponentPropsWithoutRef<\"div\">, \"title\"> & AvatarLabelVariants;\n\nexport const AvatarLabel = React.forwardRef<HTMLDivElement, AvatarLabelProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst contextValue = React.useMemo(() => ({ size }), [size]);\n\n\t\tconst sortedComponents = React.useMemo(() => {\n\t\t\tif (!children) return null;\n\n\t\t\tconst childrenArray = React.Children.toArray(children) as React.ReactElement[];\n\t\t\tlet avatar: React.ReactElement | null = null;\n\t\t\tlet indicator: React.ReactElement | null = null;\n\t\t\tlet title: React.ReactElement | null = null;\n\t\t\tlet description: React.ReactElement | null = null;\n\n\t\t\tchildrenArray.forEach((child) => {\n\t\t\t\tconst componentType = (child.type as AvatarLabelChild)?.componentType;\n\n\t\t\t\tif (componentType === \"avatar\") {\n\t\t\t\t\tavatar = child;\n\t\t\t\t} else if (componentType === \"indicator\") {\n\t\t\t\t\tindicator = child;\n\t\t\t\t} else if (componentType === \"title\") {\n\t\t\t\t\ttitle = child;\n\t\t\t\t} else if (componentType === \"description\") {\n\t\t\t\t\tdescription = child;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn { avatar, indicator, title, description };\n\t\t}, [children]);\n\n\t\tconst renderContent = () => {\n\t\t\tif (!children) return null;\n\t\t\tconst styles = avatarLabelStyles();\n\n\t\t\tif (!sortedComponents) {\n\t\t\t\treturn (\n\t\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst { avatar, indicator, title, description } = sortedComponents;\n\n\t\t\treturn (\n\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t{avatar && (\n\t\t\t\t\t\t<div className={styles.avatarWrapper()}>\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t\t{indicator && <div className={styles.indicator()}>{indicator}</div>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{(title || description) && (\n\t\t\t\t\t\t<div className={styles.textWrapper()}>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t{description}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t};\n\n\t\treturn <AvatarLabelContext.Provider value={contextValue}>{renderContent()}</AvatarLabelContext.Provider>;\n\t}\n);\n\nAvatarLabel.displayName = \"AvatarLabel\";\n","import React from \"react\";\nimport { Indicator } from \"@/components/indicator\";\nimport { tv } from \"tailwind-variants\";\n\ntype AvatarIndicatorProps = Omit<React.ComponentPropsWithoutRef<typeof Indicator>, \"size\"> & {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n};\n\nconst avatarIndicatorStyles = tv({\n\tbase: \"absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-secondary-bg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"border\",\n\t\t\t\"2xs\": \"border\",\n\t\t\txs: \"bottom-[-3px] right-[-3px] border\",\n\t\t\tsm: \"bottom-[-3px] right-[-3px]\",\n\t\t\tmd: \"bottom-[-3px] right-[-3px]\",\n\t\t\tlg: \"\",\n\t\t\txl: \"\",\n\t\t\t\"2xl\": \"\",\n\t\t\t\"3xl\": \"\"\n\t\t}\n\t}\n});\n\nconst SIZE_MAP = {\n\t\"3xs\": \"3xs\",\n\t\"2xs\": \"2xs\",\n\txs: \"xs\",\n\tsm: \"sm\",\n\tmd: \"sm\",\n\tlg: \"md\",\n\txl: \"lg\",\n\t\"2xl\": \"xl\",\n\t\"3xl\": \"2xl\"\n} as const;\n\nexport const AvatarIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarIndicatorProps>(\n\t({ children, size, ...props }, ref) => {\n\t\tconst indicatorSize = size ? SIZE_MAP[size] : size;\n\n\t\treturn (\n\t\t\t<div className={avatarIndicatorStyles({ size })}>\n\t\t\t\t<Indicator ref={ref} size={indicatorSize} rounded {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Indicator>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nAvatarIndicator.displayName = \"AvatarIndicator\";\n","import React from \"react\";\nimport { Avatar } from \"../../../Avatar\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\n\ntype AvatarLabelAvatarProps = React.ComponentPropsWithoutRef<typeof Avatar>;\n\nexport const AvatarLabelAvatar = React.forwardRef<React.ElementRef<typeof Avatar>, AvatarLabelAvatarProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Avatar ref={ref} className={className} size={size || labelSize} {...props}>\n\t\t\t\t{children}\n\t\t\t</Avatar>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelAvatarProps>;\n\nAvatarLabelAvatar.displayName = \"AvatarLabelAvatar\";\nAvatarLabelAvatar.componentType = \"avatar\";\n","import React from \"react\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { Indicator } from \"@/components/indicator\";\n\ntype AvatarLabelIndicatorProps = React.ComponentPropsWithoutRef<typeof Indicator>;\n\nexport const AvatarLabelIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarLabelIndicatorProps>(\n\t({ children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Indicator ref={ref} size={labelSize} {...props} rounded>\n\t\t\t\t{children}\n\t\t\t</Indicator>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelIndicatorProps>;\n\nAvatarLabelIndicator.displayName = \"AvatarLabelIndicator\";\nAvatarLabelIndicator.componentType = \"indicator\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nconst avatarLabelTitleStyles = tv({\n\tbase: \"font-semibold text-primary-fg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"text-xs\",\n\t\t\t\"2xs\": \"text-xs\",\n\t\t\txs: \"text-sm\",\n\t\t\tsm: \"text-sm\",\n\t\t\tmd: \"text-sm\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-lg\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelTitleProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelVariants;\n\nexport const AvatarLabelTitle = React.forwardRef<HTMLSpanElement, AvatarLabelTitleProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<span ref={ref} className={avatarLabelTitleStyles({ className, size: size || labelSize })} {...props}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelTitleProps>;\n\nAvatarLabelTitle.displayName = \"AvatarLabelTitle\";\nAvatarLabelTitle.componentType = \"title\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\n\nconst avatarLabelDescriptionStyles = tv({\n\tbase: \"text-muted\",\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: \"text-xs leading-none\",\n\t\t\tmd: \"text-xs\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-base\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelDescriptionVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelDescriptionSizeVariants = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype AvatarLabelDescriptionVariants = Omit<AvatarLabelVariants, \"size\"> & { size?: AvatarLabelDescriptionSizeVariants };\n\nexport type AvatarLabelDescriptionProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelDescriptionVariants;\n\nexport const AvatarLabelDescription = React.forwardRef<HTMLSpanElement, AvatarLabelDescriptionProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\t\tconst descriptionSize = size || labelSize;\n\t\tif ([\"3xs\", \"2xs\", \"xs\"].includes(descriptionSize ?? \"\")) return null;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={avatarLabelDescriptionStyles({\n\t\t\t\t\tclassName,\n\t\t\t\t\tsize: descriptionSize as AvatarLabelDescriptionSizeVariants\n\t\t\t\t})}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelDescriptionProps>;\n\nAvatarLabelDescription.displayName = \"AvatarLabelDescription\";\nAvatarLabelDescription.componentType = \"description\";\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","didWarnOld18Alpha","didWarnUncachedGetSnapshot","cachedValue","useSyncExternalStoreShim_development","shimModule","require$$1","useIsHydrated","useSyncExternalStore","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback","avatarStyles","tv","className","size","indicator","children","ref","styles","jsxs","AvatarPrimitive.Root","avatarFallbackStyles","AvatarPrimitive.Fallback","AvatarIcon","icon","Icon","avatarImageStyles","AvatarPrimitive.Image","AvatarLabelContext","useAvatarLabelContext","avatarLabelStyles","AvatarLabel","contextValue","sortedComponents","childrenArray","avatar","title","description","child","componentType","renderContent","avatarIndicatorStyles","SIZE_MAP","AvatarIndicator","indicatorSize","Indicator","AvatarLabelAvatar","labelSize","AvatarLabelIndicator","avatarLabelTitleStyles","AvatarLabelTitle","avatarLabelDescriptionStyles","AvatarLabelDescription","descriptionSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA;AAExE,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAWN,EAAM,UACjBO,IAAYP,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBS,IAAgBT,EAAM;AACxB,WAASU,EAAuBC,GAAWC,GAAa;AACtD,QAAIC,IAAQD,EAAa,GACvBE,IAAYR,EAAS,EAAE,MAAM,EAAE,OAAOO,GAAO,aAAaD,EAAW,GAAI,GACzEG,IAAOD,EAAU,CAAC,EAAE,MACpBE,IAAcF,EAAU,CAAC;AAC3B,WAAAN;AAAA,MACE,WAAY;AACV,QAAAO,EAAK,QAAQF,GACbE,EAAK,cAAcH,GACnBK,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,MAC3D;AAAA,MACD,CAACJ,GAAWE,GAAOD,CAAW;AAAA,IAC/B,GACDL;AAAA,MACE,WAAY;A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jD,UAAM,EAAE,MAAM8B,EAAU,IAAIlB,EAAsB,GAC5CwB,IAAkBvC,KAAQiC;AAC5B,WAAA,CAAC,OAAO,OAAO,IAAI,EAAE,SAASM,KAAmB,EAAE,IAAU,OAGhE,gBAAA3E;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,KAAAuC;AAAA,QACA,WAAWkC,GAA6B;AAAA,UACvC,WAAAtC;AAAA,UACA,MAAMwC;AAAA,QAAA,CACN;AAAA,QACA,GAAGjF;AAAA,QAEH,UAAA4C;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGH;AAEAoC,EAAuB,cAAc;AACrCA,EAAuB,gBAAgB;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -887,7 +887,7 @@ const _t = M({
|
|
|
887
887
|
}
|
|
888
888
|
}), Rt = M({
|
|
889
889
|
base: [
|
|
890
|
-
"backdrop-glass-regular relative z-50 min-w-[8rem] overflow-hidden rounded-
|
|
890
|
+
"backdrop-glass-regular relative z-50 min-w-[8rem] overflow-hidden rounded-xl bg-alpha-40 p-1 shadow-glass-md",
|
|
891
891
|
"origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
892
892
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
893
893
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -919,7 +919,7 @@ const xt = M({
|
|
|
919
919
|
}
|
|
920
920
|
}), It = M({
|
|
921
921
|
base: [
|
|
922
|
-
"group/glass-dropdown-content backdrop-glass-regular z-50 min-w-32 rounded-
|
|
922
|
+
"group/glass-dropdown-content backdrop-glass-regular z-50 min-w-32 rounded-xl bg-alpha-40 p-1 shadow-glass-md",
|
|
923
923
|
"max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden",
|
|
924
924
|
"origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
925
925
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -1092,7 +1092,7 @@ const Vt = M({
|
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
}), Bt = M({
|
|
1095
|
-
base: "-mx-1 my-
|
|
1095
|
+
base: "-mx-1 my-1 h-px bg-primary-border"
|
|
1096
1096
|
}), zt = s.forwardRef(({ className: e, ...o }, n) => {
|
|
1097
1097
|
const { variant: t } = S(), r = t === "glass" ? Bt({ className: e }) : Vt({ className: e, theme: t });
|
|
1098
1098
|
return /* @__PURE__ */ c(Ke, { ref: n, className: r, ...o });
|