@lctafrica/ui 1.0.3 → 1.0.4

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.
@@ -1,9 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { CSSProperties } from 'react';
2
3
  declare const memberPrivilegeBadgeVariants: (props?: ({
3
4
  privilege?: "NORMAL" | "VIP" | "VVIP" | null | undefined;
4
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
6
  export type MemberPrivilegeBadgeProps = {
6
7
  className?: string;
8
+ containerStyle?: CSSProperties;
7
9
  } & VariantProps<typeof memberPrivilegeBadgeVariants>;
8
- export declare function MemberPrivilegeBadge({ privilege, className, }: MemberPrivilegeBadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function MemberPrivilegeBadge({ privilege, className, containerStyle, }: MemberPrivilegeBadgeProps): import("react/jsx-runtime").JSX.Element;
9
11
  export {};
package/dist/index.js CHANGED
@@ -15247,13 +15247,21 @@ const OI = At(
15247
15247
  );
15248
15248
  function EI({
15249
15249
  privilege: e = "NORMAL",
15250
- className: t
15250
+ className: t,
15251
+ containerStyle: r
15251
15252
  }) {
15252
- return /* @__PURE__ */ fe("div", { className: P(OI({ privilege: e, className: t })), children: [
15253
- e === "VVIP" ? /* @__PURE__ */ v(vw, { size: 16, strokeWidth: 2 }) : e === "VIP" ? /* @__PURE__ */ v($w, { size: 16, strokeWidth: 2 }) : /* @__PURE__ */ v(Uf, { size: 16, strokeWidth: 2 }),
15254
- e !== "NORMAL" && /* @__PURE__ */ v("p", { children: e }),
15255
- e === "VVIP" && /* @__PURE__ */ v(Cw, { size: 16, strokeWidth: 2 })
15256
- ] });
15253
+ return /* @__PURE__ */ fe(
15254
+ "div",
15255
+ {
15256
+ style: r,
15257
+ className: P(OI({ privilege: e, className: t })),
15258
+ children: [
15259
+ e === "VVIP" ? /* @__PURE__ */ v(vw, { size: 16, strokeWidth: 2 }) : e === "VIP" ? /* @__PURE__ */ v($w, { size: 16, strokeWidth: 2 }) : /* @__PURE__ */ v(Uf, { size: 16, strokeWidth: 2 }),
15260
+ e !== "NORMAL" && /* @__PURE__ */ v("p", { children: e }),
15261
+ e === "VVIP" && /* @__PURE__ */ v(Cw, { size: 16, strokeWidth: 2 })
15262
+ ]
15263
+ }
15264
+ );
15257
15265
  }
15258
15266
  function kM({
15259
15267
  memberNumber: e,
@@ -15277,7 +15285,8 @@ function kM({
15277
15285
  EI,
15278
15286
  {
15279
15287
  privilege: n,
15280
- className: "absolute left-12.5 -translate-y-1/2 top-0"
15288
+ className: "absolute left-12.5 top-0",
15289
+ containerStyle: { translate: "0 -50%" }
15281
15290
  }
15282
15291
  ),
15283
15292
  /* @__PURE__ */ fe($I, { className: "space-y-0 gap-y-2 gap-x-30 grid grid-cols-[auto_1fr] col-span-2", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lctafrica/ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",