shadcn-glass-ui 2.2.0 → 2.2.3

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 (47) hide show
  1. package/CHANGELOG.md +12 -46
  2. package/README.md +11 -12
  3. package/context7.json +4 -15
  4. package/dist/cli/index.cjs +1 -1
  5. package/dist/components.cjs +4 -4
  6. package/dist/components.d.ts +90 -161
  7. package/dist/components.js +1 -1
  8. package/dist/hooks.cjs +2 -2
  9. package/dist/index.cjs +1064 -2292
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +1055 -2256
  12. package/dist/index.js.map +1 -1
  13. package/dist/r/alert-glass.json +1 -1
  14. package/dist/r/badge-glass.json +1 -1
  15. package/dist/r/button-glass.json +1 -1
  16. package/dist/r/card-glass.json +40 -0
  17. package/dist/r/input-glass.json +1 -1
  18. package/dist/r/modal-glass.json +5 -5
  19. package/dist/r/registry.json +7 -1
  20. package/dist/r/tooltip-glass.json +1 -1
  21. package/dist/shadcn-glass-ui.css +1 -1
  22. package/dist/{theme-context-D_cb9KzA.cjs → theme-context-BEA8K_rq.cjs} +2 -2
  23. package/dist/{theme-context-D_cb9KzA.cjs.map → theme-context-BEA8K_rq.cjs.map} +1 -1
  24. package/dist/themes.cjs +1 -1
  25. package/dist/{trust-score-card-glass-CTsEVRD3.cjs → trust-score-card-glass-DTS1RdIt.cjs} +189 -341
  26. package/dist/trust-score-card-glass-DTS1RdIt.cjs.map +1 -0
  27. package/dist/{trust-score-card-glass-CUStm4o_.js → trust-score-card-glass-Dg4_b_g_.js} +158 -238
  28. package/dist/trust-score-card-glass-Dg4_b_g_.js.map +1 -0
  29. package/dist/{use-focus--Hw2nevi.cjs → use-focus-CdoUzFQ8.cjs} +2 -2
  30. package/dist/{use-focus--Hw2nevi.cjs.map → use-focus-CdoUzFQ8.cjs.map} +1 -1
  31. package/dist/{use-wallpaper-tint-B4oMQsXQ.cjs → use-wallpaper-tint-Rq5UgY9L.cjs} +2 -2
  32. package/dist/{use-wallpaper-tint-B4oMQsXQ.cjs.map → use-wallpaper-tint-Rq5UgY9L.cjs.map} +1 -1
  33. package/dist/{utils-BqeJ4aco.cjs → utils-NLnOCttr.cjs} +2 -2
  34. package/dist/{utils-BqeJ4aco.cjs.map → utils-NLnOCttr.cjs.map} +1 -1
  35. package/dist/utils.cjs +1 -1
  36. package/docs/ADVANCED_PATTERNS.md +7 -5
  37. package/docs/AI_USAGE.md +0 -1
  38. package/docs/BEST_PRACTICES.md +0 -2
  39. package/docs/BREAKING_CHANGES.md +0 -1
  40. package/docs/COMPONENTS_CATALOG.md +1 -4
  41. package/docs/COMPONENT_PATTERNS.md +325 -0
  42. package/docs/GETTING_STARTED.md +52 -28
  43. package/docs/api/README.md +0 -2
  44. package/docs/api/variables/ModalGlass.md +5 -4
  45. package/package.json +2 -4
  46. package/dist/trust-score-card-glass-CTsEVRD3.cjs.map +0 -1
  47. package/dist/trust-score-card-glass-CUStm4o_.js.map +0 -1
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  value: mod,
28
28
  enumerable: true
29
29
  }) : target, mod));
30
- const require_utils = require("./utils-BqeJ4aco.cjs");
31
- const require_use_focus = require("./use-focus--Hw2nevi.cjs");
32
- const require_theme_context = require("./theme-context-D_cb9KzA.cjs");
30
+ const require_utils = require("./utils-NLnOCttr.cjs");
31
+ const require_use_focus = require("./use-focus-CdoUzFQ8.cjs");
32
+ const require_theme_context = require("./theme-context-BEA8K_rq.cjs");
33
33
  let react = require("react");
34
34
  react = __toESM(react);
35
35
  let lucide_react = require("lucide-react");
@@ -184,6 +184,7 @@ var AlertGlassRoot = (0, react.forwardRef)(({ className, variant = "default", di
184
184
  const config = variantStyles$2[effectiveVariant];
185
185
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
186
186
  ref,
187
+ "data-slot": "alert",
187
188
  className: require_utils.cn(alertVariants({ variant: effectiveVariant }), className),
188
189
  style: getAlertStyles(effectiveVariant),
189
190
  role: "alert",
@@ -212,8 +213,9 @@ var AlertGlassRoot = (0, react.forwardRef)(({ className, variant = "default", di
212
213
  });
213
214
  AlertGlassRoot.displayName = "AlertGlass";
214
215
  var AlertGlassTitle = (0, react.forwardRef)(({ className, style, ...props }, ref) => {
215
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
216
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
216
217
  ref,
218
+ "data-slot": "alert-title",
217
219
  className: require_utils.cn("font-medium text-xs md:text-sm mb-0.5 md:mb-1", className),
218
220
  style: {
219
221
  color: "inherit",
@@ -224,8 +226,9 @@ var AlertGlassTitle = (0, react.forwardRef)(({ className, style, ...props }, ref
224
226
  });
225
227
  AlertGlassTitle.displayName = "AlertGlassTitle";
226
228
  var AlertGlassDescription = (0, react.forwardRef)(({ className, style, ...props }, ref) => {
227
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
229
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
228
230
  ref,
231
+ "data-slot": "alert-description",
229
232
  className: require_utils.cn("text-xs md:text-sm opacity-80", className),
230
233
  style: {
231
234
  color: "inherit",
@@ -399,6 +402,7 @@ const BadgeGlass = (0, react.forwardRef)(({ children, className, variant = "defa
399
402
  const v$1 = variantStyles$1[variant];
400
403
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
401
404
  ref,
405
+ "data-slot": "badge",
402
406
  className: require_utils.cn(badgeVariants({ size: size$3 }), className),
403
407
  style: getBadgeStyles(variant),
404
408
  ...props,
@@ -507,6 +511,7 @@ const ButtonGlass = (0, react.forwardRef)(({ asChild = false, className, variant
507
511
  }, [isDisabled, onClick]);
508
512
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? __radix_ui_react_slot.Slot : "button", {
509
513
  ref,
514
+ "data-slot": "button",
510
515
  className: require_utils.cn(buttonGlassVariants({
511
516
  variant,
512
517
  size: size$3
@@ -876,10 +881,10 @@ var Primitive$7 = [
876
881
  "svg",
877
882
  "ul"
878
883
  ].reduce((primitive, node) => {
879
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
884
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
880
885
  const Node$1 = react.forwardRef((props, forwardedRef) => {
881
886
  const { asChild, ...primitiveProps } = props;
882
- const Comp = asChild ? Slot$4 : node;
887
+ const Comp = asChild ? Slot$3 : node;
883
888
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
884
889
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
885
890
  ...primitiveProps,
@@ -1126,10 +1131,10 @@ var Primitive$6 = [
1126
1131
  "svg",
1127
1132
  "ul"
1128
1133
  ].reduce((primitive, node) => {
1129
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
1134
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
1130
1135
  const Node$1 = react.forwardRef((props, forwardedRef) => {
1131
1136
  const { asChild, ...primitiveProps } = props;
1132
- const Comp = asChild ? Slot$4 : node;
1137
+ const Comp = asChild ? Slot$3 : node;
1133
1138
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
1134
1139
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
1135
1140
  ...primitiveProps,
@@ -2850,10 +2855,10 @@ var Primitive$5 = [
2850
2855
  "svg",
2851
2856
  "ul"
2852
2857
  ].reduce((primitive, node) => {
2853
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
2858
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
2854
2859
  const Node$1 = react.forwardRef((props, forwardedRef) => {
2855
2860
  const { asChild, ...primitiveProps } = props;
2856
- const Comp = asChild ? Slot$4 : node;
2861
+ const Comp = asChild ? Slot$3 : node;
2857
2862
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
2858
2863
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
2859
2864
  ...primitiveProps,
@@ -2962,10 +2967,10 @@ var Primitive$4 = [
2962
2967
  "svg",
2963
2968
  "ul"
2964
2969
  ].reduce((primitive, node) => {
2965
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
2970
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
2966
2971
  const Node$1 = react.forwardRef((props, forwardedRef) => {
2967
2972
  const { asChild, ...primitiveProps } = props;
2968
- const Comp = asChild ? Slot$4 : node;
2973
+ const Comp = asChild ? Slot$3 : node;
2969
2974
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
2970
2975
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
2971
2976
  ...primitiveProps,
@@ -3272,10 +3277,10 @@ var Primitive$3 = [
3272
3277
  "svg",
3273
3278
  "ul"
3274
3279
  ].reduce((primitive, node) => {
3275
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
3280
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
3276
3281
  const Node$1 = react.forwardRef((props, forwardedRef) => {
3277
3282
  const { asChild, ...primitiveProps } = props;
3278
- const Comp = asChild ? Slot$4 : node;
3283
+ const Comp = asChild ? Slot$3 : node;
3279
3284
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
3280
3285
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
3281
3286
  ...primitiveProps,
@@ -3416,10 +3421,10 @@ var Primitive$2 = [
3416
3421
  "svg",
3417
3422
  "ul"
3418
3423
  ].reduce((primitive, node) => {
3419
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
3424
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
3420
3425
  const Node$1 = react.forwardRef((props, forwardedRef) => {
3421
3426
  const { asChild, ...primitiveProps } = props;
3422
- const Comp = asChild ? Slot$4 : node;
3427
+ const Comp = asChild ? Slot$3 : node;
3423
3428
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
3424
3429
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
3425
3430
  ...primitiveProps,
@@ -4284,7 +4289,7 @@ var PopoverContent$1 = react.forwardRef((props, forwardedRef) => {
4284
4289
  });
4285
4290
  });
4286
4291
  PopoverContent$1.displayName = CONTENT_NAME;
4287
- var Slot$2 = (0, __radix_ui_react_slot.createSlot)("PopoverContent.RemoveScroll");
4292
+ var Slot$1 = (0, __radix_ui_react_slot.createSlot)("PopoverContent.RemoveScroll");
4288
4293
  var PopoverContentModal = react.forwardRef((props, forwardedRef) => {
4289
4294
  const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
4290
4295
  const contentRef = react.useRef(null);
@@ -4295,7 +4300,7 @@ var PopoverContentModal = react.forwardRef((props, forwardedRef) => {
4295
4300
  if (content) return hideOthers(content);
4296
4301
  }, []);
4297
4302
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Combination_default, {
4298
- as: Slot$2,
4303
+ as: Slot$1,
4299
4304
  allowPinchZoom: true,
4300
4305
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopoverContentImpl, {
4301
4306
  ...props,
@@ -4470,10 +4475,10 @@ var Primitive$1 = [
4470
4475
  "svg",
4471
4476
  "ul"
4472
4477
  ].reduce((primitive, node) => {
4473
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
4478
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
4474
4479
  const Node$1 = react.forwardRef((props, forwardedRef) => {
4475
4480
  const { asChild, ...primitiveProps } = props;
4476
- const Comp = asChild ? Slot$4 : node;
4481
+ const Comp = asChild ? Slot$3 : node;
4477
4482
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
4478
4483
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
4479
4484
  ...primitiveProps,
@@ -5271,48 +5276,6 @@ const GlassCard = (0, react.forwardRef)(({ asChild = false, children, className,
5271
5276
  });
5272
5277
  });
5273
5278
  GlassCard.displayName = "GlassCard";
5274
- const GlassCardHeader = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5275
- ref,
5276
- "data-slot": "card-header",
5277
- className: require_utils.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
5278
- ...props
5279
- }));
5280
- GlassCardHeader.displayName = "GlassCardHeader";
5281
- const GlassCardTitle = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5282
- ref,
5283
- "data-slot": "card-title",
5284
- className: require_utils.cn("leading-none font-semibold tracking-tight", className),
5285
- ...props
5286
- }));
5287
- GlassCardTitle.displayName = "GlassCardTitle";
5288
- const GlassCardDescription = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5289
- ref,
5290
- "data-slot": "card-description",
5291
- className: require_utils.cn("text-muted-foreground text-sm", className),
5292
- ...props
5293
- }));
5294
- GlassCardDescription.displayName = "GlassCardDescription";
5295
- const GlassCardAction = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5296
- ref,
5297
- "data-slot": "card-action",
5298
- className: require_utils.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
5299
- ...props
5300
- }));
5301
- GlassCardAction.displayName = "GlassCardAction";
5302
- const GlassCardContent = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5303
- ref,
5304
- "data-slot": "card-content",
5305
- className: require_utils.cn("px-6", className),
5306
- ...props
5307
- }));
5308
- GlassCardContent.displayName = "GlassCardContent";
5309
- const GlassCardFooter = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5310
- ref,
5311
- "data-slot": "card-footer",
5312
- className: require_utils.cn("flex items-center px-6 [.border-t]:pt-6", className),
5313
- ...props
5314
- }));
5315
- GlassCardFooter.displayName = "GlassCardFooter";
5316
5279
  var getInputStyles = (isFocused, error, success) => {
5317
5280
  let borderColor = "var(--input-border)";
5318
5281
  if (error) borderColor = "var(--alert-danger-text)";
@@ -5355,6 +5318,7 @@ const InputGlass = (0, react.forwardRef)(({ className, size: size$3, inputSize,
5355
5318
  }),
5356
5319
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
5357
5320
  ref,
5321
+ "data-slot": "input",
5358
5322
  className: require_utils.cn(inputVariants({ size: sizeValue }), paddingLeft, paddingRight),
5359
5323
  style: getInputStyles(isFocused, error, success),
5360
5324
  disabled,
@@ -5371,203 +5335,138 @@ const InputGlass = (0, react.forwardRef)(({ className, size: size$3, inputSize,
5371
5335
  });
5372
5336
  });
5373
5337
  InputGlass.displayName = "InputGlass";
5374
- const modalSizes = (0, class_variance_authority.cva)("relative w-full rounded-2xl p-6 transition-all duration-300", {
5338
+ const modalSizes = (0, class_variance_authority.cva)("relative w-full max-w-[calc(100%-2rem)] rounded-2xl p-6 transition-all duration-300", {
5375
5339
  variants: { size: {
5376
- sm: "max-w-[480px]",
5377
- md: "max-w-[640px]",
5378
- lg: "max-w-[800px]",
5379
- xl: "max-w-xl",
5380
- full: "max-w-4xl"
5340
+ sm: "sm:max-w-[480px]",
5341
+ md: "sm:max-w-[640px]",
5342
+ lg: "sm:max-w-[800px]",
5343
+ xl: "sm:max-w-xl",
5344
+ full: "sm:max-w-4xl"
5381
5345
  } },
5382
- defaultVariants: { size: "md" }
5346
+ defaultVariants: { size: "sm" }
5383
5347
  });
5384
- var MODAL_ANIMATION_DURATION = 200;
5385
- var lockBodyScroll = () => {
5386
- if (typeof document === "undefined") return;
5387
- document.body.style.overflow = "hidden";
5388
- };
5389
- var unlockBodyScroll = () => {
5390
- if (typeof document === "undefined") return;
5391
- document.body.style.overflow = "";
5392
- };
5393
- var delay = (ms) => {
5394
- return new Promise((resolve) => setTimeout(resolve, ms));
5395
- };
5396
- var ModalContext = (0, react.createContext)(null);
5397
- var useModalContext = () => {
5398
- const context = (0, react.useContext)(ModalContext);
5399
- if (!context) throw new Error("Modal compound components must be used within ModalGlass.Root");
5400
- return context;
5401
- };
5402
- var ModalRoot = ({ open: controlledOpen, defaultOpen = false, onOpenChange, size: size$3 = "md", children }) => {
5403
- const [uncontrolledOpen, setUncontrolledOpen] = (0, react.useState)(defaultOpen);
5404
- const [isClosing, setIsClosing] = (0, react.useState)(false);
5405
- const isControlled = controlledOpen !== void 0;
5406
- const open = isControlled ? controlledOpen : uncontrolledOpen;
5407
- const handleOpen = (0, react.useCallback)(() => {
5408
- if (isControlled) onOpenChange?.(true);
5409
- else setUncontrolledOpen(true);
5410
- }, [isControlled, onOpenChange]);
5411
- const handleClose = (0, react.useCallback)(async () => {
5412
- setIsClosing(true);
5413
- await delay(MODAL_ANIMATION_DURATION);
5414
- setIsClosing(false);
5415
- if (isControlled) onOpenChange?.(false);
5416
- else setUncontrolledOpen(false);
5417
- }, [isControlled, onOpenChange]);
5418
- (0, react.useEffect)(() => {
5419
- if (open) lockBodyScroll();
5420
- else unlockBodyScroll();
5421
- return () => {
5422
- unlockBodyScroll();
5423
- };
5424
- }, [open]);
5425
- (0, react.useEffect)(() => {
5426
- if (!open) return;
5427
- const handleEscape = (event) => {
5428
- if (event.key === "Escape") handleClose();
5429
- };
5430
- document.addEventListener("keydown", handleEscape);
5431
- return () => {
5432
- document.removeEventListener("keydown", handleEscape);
5433
- };
5434
- }, [open, handleClose]);
5348
+ var ModalContext = react.createContext({ size: "sm" });
5349
+ var useModalContext = () => react.useContext(ModalContext);
5350
+ function ModalRoot({ size: size$3 = "sm", children, ...props }) {
5435
5351
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModalContext.Provider, {
5436
- value: {
5437
- isOpen: open,
5438
- onOpen: handleOpen,
5439
- onClose: handleClose,
5440
- size: size$3,
5441
- isClosing
5442
- },
5443
- children
5352
+ value: { size: size$3 },
5353
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Root, {
5354
+ "data-slot": "dialog",
5355
+ ...props,
5356
+ children
5357
+ })
5444
5358
  });
5445
- };
5446
- var ModalTrigger = (0, react.forwardRef)(({ asChild = false, children, onClick, ...props }, ref) => {
5447
- const { onOpen } = useModalContext();
5448
- const handleClick = (event) => {
5449
- onClick?.(event);
5450
- if (!event.defaultPrevented) onOpen();
5451
- };
5452
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? __radix_ui_react_slot.Slot : "button", {
5453
- ref,
5454
- type: "button",
5455
- onClick: handleClick,
5456
- ...props,
5457
- children
5359
+ }
5360
+ function ModalTrigger({ ...props }) {
5361
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Trigger, {
5362
+ "data-slot": "dialog-trigger",
5363
+ ...props
5458
5364
  });
5459
- });
5460
- ModalTrigger.displayName = "ModalTrigger";
5461
- var ModalPortal = ({ children }) => {
5462
- const { isOpen } = useModalContext();
5463
- if (!isOpen) return null;
5464
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5465
- className: "fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",
5466
- role: "dialog",
5467
- "aria-modal": "true",
5468
- "aria-labelledby": "modal-title",
5469
- "aria-describedby": "modal-description",
5470
- children
5365
+ }
5366
+ function ModalPortal({ ...props }) {
5367
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Portal, {
5368
+ "data-slot": "dialog-portal",
5369
+ ...props
5471
5370
  });
5472
- };
5473
- var ModalOverlay = ({ className }) => {
5474
- const { onClose, isClosing } = useModalContext();
5475
- const overlayStyles = (0, react.useMemo)(() => ({
5371
+ }
5372
+ var ModalOverlay = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Overlay, {
5373
+ ref,
5374
+ "data-slot": "dialog-overlay",
5375
+ className: require_utils.cn("fixed inset-0 z-50", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
5376
+ style: {
5476
5377
  background: "var(--modal-overlay)",
5477
5378
  backdropFilter: "blur(var(--blur-sm))",
5478
- WebkitBackdropFilter: "blur(var(--blur-sm))",
5479
- opacity: isClosing ? 0 : 1,
5480
- transition: "all 0.3s"
5481
- }), [isClosing]);
5482
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5483
- className: require_utils.cn("absolute inset-0 transition-all duration-300", className),
5484
- style: overlayStyles,
5485
- onClick: onClose,
5486
- "aria-hidden": "true"
5487
- });
5488
- };
5489
- var ModalContent = (0, react.forwardRef)(({ children, className }, ref) => {
5490
- const { size: size$3, isClosing } = useModalContext();
5491
- const modalStyles = (0, react.useMemo)(() => ({
5492
- background: "var(--modal-bg)",
5493
- border: "1px solid var(--modal-border)",
5494
- boxShadow: "var(--modal-glow)",
5495
- backdropFilter: "blur(var(--blur-lg))",
5496
- WebkitBackdropFilter: "blur(var(--blur-lg))",
5497
- transform: isClosing ? "scale(0.95) translateY(10px)" : "scale(1) translateY(0)",
5498
- opacity: isClosing ? 0 : 1,
5499
- animation: !isClosing ? "modalFadeIn 0.3s ease-out" : "none"
5500
- }), [isClosing]);
5501
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5379
+ WebkitBackdropFilter: "blur(var(--blur-sm))"
5380
+ },
5381
+ ...props
5382
+ }));
5383
+ ModalOverlay.displayName = "ModalOverlay";
5384
+ var ModalContent = react.forwardRef(({ className, children, showCloseButton = true, size: sizeProp, ...props }, ref) => {
5385
+ const { size: contextSize } = useModalContext();
5386
+ const size$3 = sizeProp ?? contextSize;
5387
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ModalPortal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModalOverlay, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__radix_ui_react_dialog.Content, {
5502
5388
  ref,
5503
- className: require_utils.cn(modalSizes({ size: size$3 }), className),
5504
- style: modalStyles,
5505
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5506
- className: "absolute inset-0 rounded-3xl pointer-events-none",
5507
- style: { background: "var(--modal-glow-effect)" }
5508
- }), children]
5509
- });
5389
+ "data-slot": "dialog-content",
5390
+ className: require_utils.cn(modalSizes({ size: size$3 }), "fixed top-[50%] left-[50%] z-50", "translate-x-[-50%] translate-y-[-50%]", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]", "data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", "duration-200", className),
5391
+ style: {
5392
+ background: "var(--modal-bg)",
5393
+ border: "1px solid var(--modal-border)",
5394
+ boxShadow: "var(--modal-glow)",
5395
+ backdropFilter: "blur(var(--blur-lg))",
5396
+ WebkitBackdropFilter: "blur(var(--blur-lg))"
5397
+ },
5398
+ ...props,
5399
+ children: [
5400
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5401
+ className: "absolute inset-0 rounded-3xl pointer-events-none",
5402
+ style: { background: "var(--modal-glow-effect)" },
5403
+ "aria-hidden": "true"
5404
+ }),
5405
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5406
+ className: "relative",
5407
+ children
5408
+ }),
5409
+ showCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__radix_ui_react_dialog.Close, {
5410
+ "data-slot": "dialog-close",
5411
+ className: require_utils.cn("absolute top-4 right-4", "p-1.5 md:p-2 rounded-xl", "transition-all duration-300", "ring-offset-background", "focus:outline-none focus:ring-2 focus:ring-(--semantic-primary) focus:ring-offset-2", "hover:opacity-100 opacity-70", "disabled:pointer-events-none"),
5412
+ style: {
5413
+ background: "var(--modal-close-btn-bg)",
5414
+ border: "var(--modal-close-btn-border)",
5415
+ color: "var(--text-muted)"
5416
+ },
5417
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, { className: ICON_SIZES.md }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5418
+ className: "sr-only",
5419
+ children: "Close"
5420
+ })]
5421
+ })
5422
+ ]
5423
+ })] });
5510
5424
  });
5511
5425
  ModalContent.displayName = "ModalContent";
5512
- var ModalHeader = ({ children, className }) => {
5426
+ function ModalHeader({ className, ...props }) {
5513
5427
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5514
- className: require_utils.cn("relative flex items-start justify-between mb-4 md:mb-5", className),
5515
- children
5428
+ "data-slot": "dialog-header",
5429
+ className: require_utils.cn("flex flex-col gap-2 text-center sm:text-left mb-4", className),
5430
+ ...props
5516
5431
  });
5517
- };
5518
- var ModalBody = ({ children, className }) => {
5432
+ }
5433
+ function ModalBody({ className, ...props }) {
5519
5434
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5435
+ "data-slot": "dialog-body",
5520
5436
  className: require_utils.cn("relative", className),
5521
5437
  style: { color: "var(--text-secondary)" },
5522
- children
5438
+ ...props
5523
5439
  });
5524
- };
5525
- var ModalFooter = ({ children, className }) => {
5440
+ }
5441
+ function ModalFooter({ className, ...props }) {
5526
5442
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5527
- className: require_utils.cn("relative flex gap-3 mt-4 md:mt-5 justify-end", className),
5528
- children
5529
- });
5530
- };
5531
- var ModalTitle = ({ children, className }) => {
5532
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
5533
- id: "modal-title",
5534
- className: require_utils.cn("text-lg md:text-xl font-semibold", className),
5535
- style: { color: "var(--text-primary)" },
5536
- children
5537
- });
5538
- };
5539
- var ModalDescription = ({ children, className }) => {
5540
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
5541
- id: "modal-description",
5542
- className: require_utils.cn("text-sm md:text-base mt-1", className),
5543
- style: { color: "var(--text-muted)" },
5544
- children
5443
+ "data-slot": "dialog-footer",
5444
+ className: require_utils.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end mt-4", className),
5445
+ ...props
5545
5446
  });
5546
- };
5547
- var ModalClose = ({ className }) => {
5548
- const { onClose } = useModalContext();
5549
- const { isHovered, hoverProps } = require_use_focus.useHover();
5550
- const { isFocusVisible, focusProps } = require_use_focus.useFocus({ focusVisible: true });
5551
- const closeButtonStyles = (0, react.useMemo)(() => ({
5552
- background: "var(--modal-close-btn-bg)",
5553
- border: "var(--modal-close-btn-border)",
5554
- color: "var(--text-muted)",
5555
- boxShadow: isFocusVisible ? "var(--focus-glow)" : isHovered ? "var(--modal-close-btn-hover-glow)" : "none",
5556
- outline: "none"
5557
- }), [isHovered, isFocusVisible]);
5558
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
5559
- onClick: onClose,
5560
- onMouseEnter: hoverProps.onMouseEnter,
5561
- onMouseLeave: hoverProps.onMouseLeave,
5562
- onFocus: focusProps.onFocus,
5563
- onBlur: focusProps.onBlur,
5564
- className: require_utils.cn("p-1.5 md:p-2 rounded-xl transition-all duration-300", className),
5565
- style: closeButtonStyles,
5566
- type: "button",
5567
- "aria-label": "Close modal",
5568
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, { className: ICON_SIZES.md })
5447
+ }
5448
+ var ModalTitle = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Title, {
5449
+ ref,
5450
+ "data-slot": "dialog-title",
5451
+ className: require_utils.cn("text-lg md:text-xl font-semibold leading-none tracking-tight", className),
5452
+ style: { color: "var(--text-primary)" },
5453
+ ...props
5454
+ }));
5455
+ ModalTitle.displayName = "ModalTitle";
5456
+ var ModalDescription = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Description, {
5457
+ ref,
5458
+ "data-slot": "dialog-description",
5459
+ className: require_utils.cn("text-sm", className),
5460
+ style: { color: "var(--text-muted)" },
5461
+ ...props
5462
+ }));
5463
+ ModalDescription.displayName = "ModalDescription";
5464
+ function ModalClose({ ...props }) {
5465
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Close, {
5466
+ "data-slot": "dialog-close",
5467
+ ...props
5569
5468
  });
5570
- };
5469
+ }
5571
5470
  const ModalGlass = {
5572
5471
  Root: ModalRoot,
5573
5472
  Trigger: ModalTrigger,
@@ -5864,10 +5763,10 @@ var Primitive = [
5864
5763
  "svg",
5865
5764
  "ul"
5866
5765
  ].reduce((primitive, node) => {
5867
- const Slot$4 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
5766
+ const Slot$3 = (0, __radix_ui_react_slot.createSlot)(`Primitive.${node}`);
5868
5767
  const Node$1 = react.forwardRef((props, forwardedRef) => {
5869
5768
  const { asChild, ...primitiveProps } = props;
5870
- const Comp = asChild ? Slot$4 : node;
5769
+ const Comp = asChild ? Slot$3 : node;
5871
5770
  if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
5872
5771
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
5873
5772
  ...primitiveProps,
@@ -6713,26 +6612,47 @@ const ToggleGlass = (0, react.forwardRef)(({ className, size: size$3 = "default"
6713
6612
  ToggleGlass.displayName = "ToggleGlass";
6714
6613
  var TooltipGlassProvider = ({ delayDuration = 0, ...props }) => {
6715
6614
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Provider, {
6615
+ "data-slot": "tooltip-provider",
6716
6616
  delayDuration,
6717
6617
  ...props
6718
6618
  });
6719
6619
  };
6720
- var TooltipGlassRoot = __radix_ui_react_tooltip.Root;
6721
- var TooltipGlassTrigger = __radix_ui_react_tooltip.Trigger;
6722
- var TooltipGlassContent = react.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
6723
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Portal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Content, {
6620
+ TooltipGlassProvider.displayName = "TooltipGlassProvider";
6621
+ function TooltipGlassRoot({ ...props }) {
6622
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipGlassProvider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Root, {
6623
+ "data-slot": "tooltip",
6624
+ ...props
6625
+ }) });
6626
+ }
6627
+ var TooltipGlassTrigger = react.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Trigger, {
6628
+ ref,
6629
+ "data-slot": "tooltip-trigger",
6630
+ ...props
6631
+ }));
6632
+ TooltipGlassTrigger.displayName = "TooltipGlassTrigger";
6633
+ var TooltipGlassContent = react.forwardRef(({ className, sideOffset = 0, children, ...props }, ref) => {
6634
+ const tooltipStyles = {
6635
+ background: "var(--tooltip-bg)",
6636
+ color: "var(--tooltip-text)",
6637
+ border: "1px solid var(--tooltip-border)",
6638
+ boxShadow: "var(--tooltip-shadow)",
6639
+ backdropFilter: "blur(var(--blur-xl))",
6640
+ WebkitBackdropFilter: "blur(var(--blur-xl))"
6641
+ };
6642
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Portal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__radix_ui_react_tooltip.Content, {
6724
6643
  ref,
6725
6644
  sideOffset,
6726
- className: require_utils.cn("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs text-balance", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", className),
6727
- style: {
6728
- background: "var(--tooltip-bg)",
6729
- color: "var(--tooltip-text)",
6730
- border: "1px solid var(--tooltip-border)",
6731
- boxShadow: "var(--tooltip-shadow)",
6732
- backdropFilter: "blur(var(--blur-xl))",
6733
- WebkitBackdropFilter: "blur(var(--blur-xl))"
6734
- },
6735
- ...props
6645
+ "data-slot": "tooltip-content",
6646
+ className: require_utils.cn("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", className),
6647
+ style: tooltipStyles,
6648
+ ...props,
6649
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_tooltip.Arrow, {
6650
+ className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs",
6651
+ style: {
6652
+ fill: "var(--tooltip-bg)",
6653
+ background: "var(--tooltip-bg)"
6654
+ }
6655
+ })]
6736
6656
  }) });
6737
6657
  });
6738
6658
  TooltipGlassContent.displayName = "TooltipGlassContent";
@@ -10003,13 +9923,13 @@ var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJ
10003
9923
  return x$2 === y$2 && (0 !== x$2 || 1 / x$2 === 1 / y$2) || x$2 !== x$2 && y$2 !== y$2;
10004
9924
  }
10005
9925
  function useSyncExternalStore$2$1(subscribe, getSnapshot) {
10006
- didWarnOld18Alpha || void 0 === React$5.startTransition || (didWarnOld18Alpha = !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."));
9926
+ didWarnOld18Alpha || void 0 === React$4.startTransition || (didWarnOld18Alpha = !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."));
10007
9927
  var value = getSnapshot();
10008
9928
  if (!didWarnUncachedGetSnapshot) {
10009
9929
  var cachedValue = getSnapshot();
10010
9930
  objectIs$3(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
10011
9931
  }
10012
- cachedValue = useState$20({ inst: {
9932
+ cachedValue = useState$19({ inst: {
10013
9933
  value,
10014
9934
  getSnapshot
10015
9935
  } });
@@ -10023,7 +9943,7 @@ var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJ
10023
9943
  value,
10024
9944
  getSnapshot
10025
9945
  ]);
10026
- useEffect$18(function() {
9946
+ useEffect$17(function() {
10027
9947
  checkIfSnapshotChanged$1(inst) && forceUpdate({ inst });
10028
9948
  return subscribe(function() {
10029
9949
  checkIfSnapshotChanged$1(inst) && forceUpdate({ inst });
@@ -10046,8 +9966,8 @@ var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJ
10046
9966
  return getSnapshot();
10047
9967
  }
10048
9968
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
10049
- var React$5 = require("react"), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useState$20 = React$5.useState, useEffect$18 = React$5.useEffect, useLayoutEffect$7 = React$5.useLayoutEffect, useDebugValue$3 = React$5.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1, shim$2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1$2 : useSyncExternalStore$2$1;
10050
- exports.useSyncExternalStore = void 0 !== React$5.useSyncExternalStore ? React$5.useSyncExternalStore : shim$2;
9969
+ var React$4 = require("react"), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useState$19 = React$4.useState, useEffect$17 = React$4.useEffect, useLayoutEffect$7 = React$4.useLayoutEffect, useDebugValue$3 = React$4.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1, shim$2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1$2 : useSyncExternalStore$2$1;
9970
+ exports.useSyncExternalStore = void 0 !== React$4.useSyncExternalStore ? React$4.useSyncExternalStore : shim$2;
10051
9971
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
10052
9972
  })();
10053
9973
  }));
@@ -10134,7 +10054,7 @@ var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports)
10134
10054
  return x$2 === y$2 && (0 !== x$2 || 1 / x$2 === 1 / y$2) || x$2 !== x$2 && y$2 !== y$2;
10135
10055
  }
10136
10056
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
10137
- var React$5 = require("react"), shim$2 = require_shim(), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useSyncExternalStore$3 = shim$2.useSyncExternalStore, useRef$15 = React$5.useRef, useEffect$18 = React$5.useEffect, useMemo$12 = React$5.useMemo, useDebugValue$3 = React$5.useDebugValue;
10057
+ var React$4 = require("react"), shim$2 = require_shim(), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useSyncExternalStore$3 = shim$2.useSyncExternalStore, useRef$15 = React$4.useRef, useEffect$17 = React$4.useEffect, useMemo$11 = React$4.useMemo, useDebugValue$3 = React$4.useDebugValue;
10138
10058
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
10139
10059
  var instRef = useRef$15(null);
10140
10060
  if (null === instRef.current) {
@@ -10144,7 +10064,7 @@ var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports)
10144
10064
  };
10145
10065
  instRef.current = inst;
10146
10066
  } else inst = instRef.current;
10147
- instRef = useMemo$12(function() {
10067
+ instRef = useMemo$11(function() {
10148
10068
  function memoizedSelector(nextSnapshot) {
10149
10069
  if (!hasMemo) {
10150
10070
  hasMemo = !0;
@@ -10176,7 +10096,7 @@ var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports)
10176
10096
  isEqual
10177
10097
  ]);
10178
10098
  var value = useSyncExternalStore$3(subscribe, instRef[0], instRef[1]);
10179
- useEffect$18(function() {
10099
+ useEffect$17(function() {
10180
10100
  inst.hasValue = !0;
10181
10101
  inst.value = value;
10182
10102
  }, [value]);
@@ -14894,11 +14814,11 @@ function createAnimateManager(timeoutController) {
14894
14814
  }
14895
14815
  var RequestAnimationFrameTimeoutController = class {
14896
14816
  setTimeout(callback) {
14897
- var delay$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
14817
+ var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
14898
14818
  var startTime = performance.now();
14899
14819
  var requestId = null;
14900
14820
  var executeCallback = (now) => {
14901
- if (now - startTime >= delay$1) callback(now);
14821
+ if (now - startTime >= delay) callback(now);
14902
14822
  else if (typeof requestAnimationFrame === "function") requestId = requestAnimationFrame(executeCallback);
14903
14823
  };
14904
14824
  requestId = requestAnimationFrame(executeCallback);
@@ -24343,7 +24263,7 @@ var require_use_sync_external_store_with_selector_development = /* @__PURE__ */
24343
24263
  return x$2 === y$2 && (0 !== x$2 || 1 / x$2 === 1 / y$2) || x$2 !== x$2 && y$2 !== y$2;
24344
24264
  }
24345
24265
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
24346
- var React$5 = require("react"), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useSyncExternalStore$3 = React$5.useSyncExternalStore, useRef$15 = React$5.useRef, useEffect$18 = React$5.useEffect, useMemo$12 = React$5.useMemo, useDebugValue$3 = React$5.useDebugValue;
24266
+ var React$4 = require("react"), objectIs$3 = "function" === typeof Object.is ? Object.is : is$6, useSyncExternalStore$3 = React$4.useSyncExternalStore, useRef$15 = React$4.useRef, useEffect$17 = React$4.useEffect, useMemo$11 = React$4.useMemo, useDebugValue$3 = React$4.useDebugValue;
24347
24267
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
24348
24268
  var instRef = useRef$15(null);
24349
24269
  if (null === instRef.current) {
@@ -24353,7 +24273,7 @@ var require_use_sync_external_store_with_selector_development = /* @__PURE__ */
24353
24273
  };
24354
24274
  instRef.current = inst;
24355
24275
  } else inst = instRef.current;
24356
- instRef = useMemo$12(function() {
24276
+ instRef = useMemo$11(function() {
24357
24277
  function memoizedSelector(nextSnapshot) {
24358
24278
  if (!hasMemo) {
24359
24279
  hasMemo = !0;
@@ -24385,7 +24305,7 @@ var require_use_sync_external_store_with_selector_development = /* @__PURE__ */
24385
24305
  isEqual
24386
24306
  ]);
24387
24307
  var value = useSyncExternalStore$3(subscribe, instRef[0], instRef[1]);
24388
- useEffect$18(function() {
24308
+ useEffect$17(function() {
24389
24309
  inst.hasValue = !0;
24390
24310
  inst.value = value;
24391
24311
  }, [value]);
@@ -28208,42 +28128,6 @@ Object.defineProperty(exports, "GlassCard", {
28208
28128
  return GlassCard;
28209
28129
  }
28210
28130
  });
28211
- Object.defineProperty(exports, "GlassCardAction", {
28212
- enumerable: true,
28213
- get: function() {
28214
- return GlassCardAction;
28215
- }
28216
- });
28217
- Object.defineProperty(exports, "GlassCardContent", {
28218
- enumerable: true,
28219
- get: function() {
28220
- return GlassCardContent;
28221
- }
28222
- });
28223
- Object.defineProperty(exports, "GlassCardDescription", {
28224
- enumerable: true,
28225
- get: function() {
28226
- return GlassCardDescription;
28227
- }
28228
- });
28229
- Object.defineProperty(exports, "GlassCardFooter", {
28230
- enumerable: true,
28231
- get: function() {
28232
- return GlassCardFooter;
28233
- }
28234
- });
28235
- Object.defineProperty(exports, "GlassCardHeader", {
28236
- enumerable: true,
28237
- get: function() {
28238
- return GlassCardHeader;
28239
- }
28240
- });
28241
- Object.defineProperty(exports, "GlassCardTitle", {
28242
- enumerable: true,
28243
- get: function() {
28244
- return GlassCardTitle;
28245
- }
28246
- });
28247
28131
  Object.defineProperty(exports, "HeaderBrandingGlass", {
28248
28132
  enumerable: true,
28249
28133
  get: function() {
@@ -28346,12 +28230,6 @@ Object.defineProperty(exports, "Presence", {
28346
28230
  return Presence;
28347
28231
  }
28348
28232
  });
28349
- Object.defineProperty(exports, "Primitive", {
28350
- enumerable: true,
28351
- get: function() {
28352
- return Primitive$1;
28353
- }
28354
- });
28355
28233
  Object.defineProperty(exports, "ProfileAvatarGlass", {
28356
28234
  enumerable: true,
28357
28235
  get: function() {
@@ -28610,12 +28488,6 @@ Object.defineProperty(exports, "composeEventHandlers", {
28610
28488
  return composeEventHandlers;
28611
28489
  }
28612
28490
  });
28613
- Object.defineProperty(exports, "createCollection", {
28614
- enumerable: true,
28615
- get: function() {
28616
- return createCollection;
28617
- }
28618
- });
28619
28491
  Object.defineProperty(exports, "getUniqPayload", {
28620
28492
  enumerable: true,
28621
28493
  get: function() {
@@ -28754,12 +28626,6 @@ Object.defineProperty(exports, "useComposedRefs", {
28754
28626
  return useComposedRefs;
28755
28627
  }
28756
28628
  });
28757
- Object.defineProperty(exports, "useControllableState", {
28758
- enumerable: true,
28759
- get: function() {
28760
- return useControllableState;
28761
- }
28762
- });
28763
28629
  Object.defineProperty(exports, "useDirection", {
28764
28630
  enumerable: true,
28765
28631
  get: function() {
@@ -28772,12 +28638,6 @@ Object.defineProperty(exports, "useElementOffset", {
28772
28638
  return useElementOffset;
28773
28639
  }
28774
28640
  });
28775
- Object.defineProperty(exports, "useId", {
28776
- enumerable: true,
28777
- get: function() {
28778
- return useId$2;
28779
- }
28780
- });
28781
28641
  Object.defineProperty(exports, "useLayoutEffect2", {
28782
28642
  enumerable: true,
28783
28643
  get: function() {
@@ -28796,17 +28656,5 @@ Object.defineProperty(exports, "useMargin", {
28796
28656
  return useMargin;
28797
28657
  }
28798
28658
  });
28799
- Object.defineProperty(exports, "usePrevious", {
28800
- enumerable: true,
28801
- get: function() {
28802
- return usePrevious;
28803
- }
28804
- });
28805
- Object.defineProperty(exports, "useSize", {
28806
- enumerable: true,
28807
- get: function() {
28808
- return useSize;
28809
- }
28810
- });
28811
28659
 
28812
- //# sourceMappingURL=trust-score-card-glass-CTsEVRD3.cjs.map
28660
+ //# sourceMappingURL=trust-score-card-glass-DTS1RdIt.cjs.map