@3sc/common-component 0.0.53 → 0.0.54

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.es.js CHANGED
@@ -19145,8 +19145,8 @@ var WI = function(t) {
19145
19145
  };
19146
19146
  const GI = Ku(ya)(({ theme: e }) => ({
19147
19147
  "& .MuiBadge-badge": {
19148
- right: -6,
19149
- top: 2,
19148
+ right: -3,
19149
+ top: 6,
19150
19150
  border: `1px solid ${e.palette.background.paper}`,
19151
19151
  padding: "0 2px",
19152
19152
  borderRadius: "50%",
@@ -19154,38 +19154,41 @@ const GI = Ku(ya)(({ theme: e }) => ({
19154
19154
  // Custom badge color
19155
19155
  color: "white",
19156
19156
  // Text color inside the badge
19157
- fontSize: "0.725rem"
19157
+ fontSize: "0.725rem",
19158
19158
  // Adjusting font size for the badge,
19159
19159
  // lineHeight: "1rem",
19160
- // minWidth: "2.1rem",
19161
- // height: "2.1rem"
19160
+ minWidth: "0.8rem",
19161
+ height: "0.8rem"
19162
19162
  }
19163
- })), zI = ({}) => /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
19164
- /* @__PURE__ */ x.jsxs(tt, { sx: {
19165
- gap: "0.5rem",
19166
- display: "flex",
19167
- justifyContent: "center",
19168
- alignItems: "center"
19169
- }, children: [
19170
- /* @__PURE__ */ x.jsx(WI, {}),
19171
- /* @__PURE__ */ x.jsx(mt, { component: "span", className: "notify-title", children: "Notification" })
19172
- ] }),
19173
- /* @__PURE__ */ x.jsx(
19174
- GI,
19163
+ })), zI = ({ count: e }) => /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
19164
+ /* @__PURE__ */ x.jsxs(
19165
+ tt,
19175
19166
  {
19176
- badgeContent: "99+",
19177
- color: "error",
19178
19167
  sx: {
19179
- animation: "upDown 2s ease infinite",
19180
- "@keyframes upDown": {
19181
- "0%, 100%": {
19182
- transform: "translateY(0)"
19183
- },
19184
- "50%": {
19185
- transform: "translateY(-0.15rem)"
19168
+ gap: "0.5rem",
19169
+ display: "flex",
19170
+ justifyContent: "center",
19171
+ alignItems: "center"
19172
+ },
19173
+ className: "icon-container",
19174
+ children: [
19175
+ /* @__PURE__ */ x.jsx(
19176
+ WI,
19177
+ {
19178
+ style: {
19179
+ scale: 2
19180
+ }
19186
19181
  }
19187
- }
19188
- }
19182
+ ),
19183
+ /* @__PURE__ */ x.jsx(mt, { component: "span", className: "notify-title", children: "Notification" })
19184
+ ]
19185
+ }
19186
+ ),
19187
+ /* @__PURE__ */ x.jsx(
19188
+ GI,
19189
+ {
19190
+ badgeContent: e > 0 ? "" : null,
19191
+ color: "error"
19189
19192
  }
19190
19193
  )
19191
19194
  ] });