@popgrids/ui 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -71,17 +71,24 @@ var avatarVariants = cva(
71
71
  {
72
72
  variants: {
73
73
  size: {
74
- default: "size-8",
75
- sm: "size-6",
76
- lg: "size-10"
74
+ xs: "size-6",
75
+ // 24px
76
+ sm: "size-8",
77
+ // 32px
78
+ md: "size-14",
79
+ // 56px
80
+ lg: "size-20",
81
+ // 80px
82
+ xl: "size-[120px]",
83
+ xxl: "size-[140px]"
77
84
  }
78
85
  },
79
86
  defaultVariants: {
80
- size: "default"
87
+ size: "md"
81
88
  }
82
89
  }
83
90
  );
84
- function Avatar({ className = "", size = "default", ...props }) {
91
+ function Avatar({ className = "", size = "md", ...props }) {
85
92
  return /* @__PURE__ */ jsx(
86
93
  Avatar$1.Root,
87
94
  {
@@ -123,9 +130,12 @@ function AvatarBadge({ className = "", ...props }) {
123
130
  className: cn(
124
131
  "absolute h-[18px] min-w-[18px] z-10 select-none",
125
132
  "leading-none",
133
+ "group-data-[size=xs]/avatar:right-[-4px] group-data-[size=xs]/avatar:bottom-[-4px]",
126
134
  "group-data-[size=sm]/avatar:right-[-4px] group-data-[size=sm]/avatar:bottom-[-4px]",
127
- "group-data-[size=default]/avatar:right-[-4px] group-data-[size=default]/avatar:bottom-[-4px]",
128
- "group-data-[size=lg]/avatar:right-[-4px] group-data-[size=lg]/avatar:bottom-[-4px]",
135
+ "group-data-[size=md]/avatar:right-[-4px] group-data-[size=md]/avatar:bottom-[-4px]",
136
+ "group-data-[size=lg]/avatar:right-[-2px] group-data-[size=lg]/avatar:bottom-[-2px]",
137
+ "group-data-[size=xl]/avatar:right-[3px] group-data-[size=xl]/avatar:bottom-[3px]",
138
+ "group-data-[size=xxl]/avatar:right-[11px] group-data-[size=xxl]/avatar:bottom-px",
129
139
  className
130
140
  ),
131
141
  ...props