@lctafrica/ui 1.0.3 → 1.0.5
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.
|
@@ -3,7 +3,7 @@ import { Button } from './button/Button';
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
-
align?: "inline-
|
|
6
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const inputGroupButtonVariants: (props?: ({
|
|
@@ -6,13 +6,13 @@ type MemberCardProps = {
|
|
|
6
6
|
actionButton: {
|
|
7
7
|
label: string;
|
|
8
8
|
onClick(): void;
|
|
9
|
-
leftIcon?: ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
disabled?: boolean;
|
|
9
|
+
leftIcon?: ReactNode | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
12
|
};
|
|
13
|
-
privilege
|
|
14
|
-
containerClassName?: string;
|
|
15
|
-
errorMessage?: string;
|
|
13
|
+
privilege?: "NORMAL" | "VIP" | "VVIP" | null;
|
|
14
|
+
containerClassName?: string | undefined;
|
|
15
|
+
errorMessage?: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
export declare function MemberCard({ memberNumber, memberName, scheme, actionButton, privilege, containerClassName, errorMessage, }: MemberCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -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
|
@@ -11526,7 +11526,18 @@ const tx = At("rounded-lg px-15 py-7", {
|
|
|
11526
11526
|
}
|
|
11527
11527
|
});
|
|
11528
11528
|
function nx({ className: e, variant: t = "primary", ...r }) {
|
|
11529
|
-
return /* @__PURE__ */ v(
|
|
11529
|
+
return /* @__PURE__ */ v(
|
|
11530
|
+
"article",
|
|
11531
|
+
{
|
|
11532
|
+
style: {
|
|
11533
|
+
...t === "primary" && {
|
|
11534
|
+
boxShadow: "0px 8px 29px 0px #0000001A"
|
|
11535
|
+
}
|
|
11536
|
+
},
|
|
11537
|
+
className: P(tx({ variant: t, className: e })),
|
|
11538
|
+
...r
|
|
11539
|
+
}
|
|
11540
|
+
);
|
|
11530
11541
|
}
|
|
11531
11542
|
const rx = "peer shrink-0 border border-gray-300 ring-offset-background transition-colors", ox = "focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-blue-200 focus-visible:ring-offset-0 focus-visible:border-blue-400", ix = "disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-gray-100 disabled:data-[state=checked]:border-gray-200 disabled:data-[state=checked]:bg-gray-200 disabled:data-[state=checked]:text-white", ax = At(
|
|
11532
11543
|
P(rx, ox, ix),
|
|
@@ -15247,13 +15258,21 @@ const OI = At(
|
|
|
15247
15258
|
);
|
|
15248
15259
|
function EI({
|
|
15249
15260
|
privilege: e = "NORMAL",
|
|
15250
|
-
className: t
|
|
15261
|
+
className: t,
|
|
15262
|
+
containerStyle: r
|
|
15251
15263
|
}) {
|
|
15252
|
-
return /* @__PURE__ */ fe(
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15264
|
+
return /* @__PURE__ */ fe(
|
|
15265
|
+
"div",
|
|
15266
|
+
{
|
|
15267
|
+
style: r,
|
|
15268
|
+
className: P(OI({ privilege: e, className: t })),
|
|
15269
|
+
children: [
|
|
15270
|
+
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 }),
|
|
15271
|
+
e !== "NORMAL" && /* @__PURE__ */ v("p", { children: e }),
|
|
15272
|
+
e === "VVIP" && /* @__PURE__ */ v(Cw, { size: 16, strokeWidth: 2 })
|
|
15273
|
+
]
|
|
15274
|
+
}
|
|
15275
|
+
);
|
|
15257
15276
|
}
|
|
15258
15277
|
function kM({
|
|
15259
15278
|
memberNumber: e,
|
|
@@ -15277,7 +15296,8 @@ function kM({
|
|
|
15277
15296
|
EI,
|
|
15278
15297
|
{
|
|
15279
15298
|
privilege: n,
|
|
15280
|
-
className: "absolute left-12.5
|
|
15299
|
+
className: "absolute left-12.5 top-0",
|
|
15300
|
+
containerStyle: { translate: "0 -50%" }
|
|
15281
15301
|
}
|
|
15282
15302
|
),
|
|
15283
15303
|
/* @__PURE__ */ fe($I, { className: "space-y-0 gap-y-2 gap-x-30 grid grid-cols-[auto_1fr] col-span-2", children: [
|