@alexandregme/zljs 0.3.8 → 0.3.9
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 +51 -40
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -714,25 +714,8 @@ var WhatsAppButton = ({
|
|
|
714
714
|
return /* @__PURE__ */ jsx14(Button, { color: "success", icon: "SiWhatsapp", onClick: handleClick, children });
|
|
715
715
|
};
|
|
716
716
|
|
|
717
|
-
// core/heading/heading.
|
|
718
|
-
|
|
719
|
-
var levelStyles = {
|
|
720
|
-
1: "text-3xl font-bold",
|
|
721
|
-
2: "text-2xl font-bold",
|
|
722
|
-
3: "text-xl font-semibold",
|
|
723
|
-
4: "text-lg font-semibold",
|
|
724
|
-
5: "text-base font-medium",
|
|
725
|
-
6: "text-sm font-medium"
|
|
726
|
-
};
|
|
727
|
-
var colorStyles = {
|
|
728
|
-
primary: "text-blue-600",
|
|
729
|
-
success: "text-green-600",
|
|
730
|
-
danger: "text-red-600",
|
|
731
|
-
warning: "text-yellow-600",
|
|
732
|
-
info: "text-sky-600",
|
|
733
|
-
none: ""
|
|
734
|
-
};
|
|
735
|
-
var tags = {
|
|
717
|
+
// core/heading/heading.const.ts
|
|
718
|
+
var headingTags = {
|
|
736
719
|
1: "h1",
|
|
737
720
|
2: "h2",
|
|
738
721
|
3: "h3",
|
|
@@ -740,10 +723,38 @@ var tags = {
|
|
|
740
723
|
5: "h5",
|
|
741
724
|
6: "h6"
|
|
742
725
|
};
|
|
726
|
+
|
|
727
|
+
// core/heading/heading.styles.ts
|
|
728
|
+
import { tv as tv9 } from "tailwind-variants";
|
|
729
|
+
var heading = tv9({
|
|
730
|
+
variants: {
|
|
731
|
+
level: {
|
|
732
|
+
1: "text-3xl font-bold",
|
|
733
|
+
2: "text-2xl font-bold",
|
|
734
|
+
3: "text-xl font-semibold",
|
|
735
|
+
4: "text-lg font-semibold",
|
|
736
|
+
5: "text-base font-medium",
|
|
737
|
+
6: "text-sm font-medium"
|
|
738
|
+
},
|
|
739
|
+
color: {
|
|
740
|
+
primary: "text-blue-600",
|
|
741
|
+
success: "text-green-600",
|
|
742
|
+
danger: "text-red-600",
|
|
743
|
+
warning: "text-yellow-600",
|
|
744
|
+
info: "text-sky-600",
|
|
745
|
+
none: ""
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
defaultVariants: {
|
|
749
|
+
level: 1
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
// core/heading/heading.tsx
|
|
754
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
743
755
|
var Heading = ({ children, level = 1, color }) => {
|
|
744
|
-
const Tag2 =
|
|
745
|
-
|
|
746
|
-
return /* @__PURE__ */ jsx15(Tag2, { className, children });
|
|
756
|
+
const Tag2 = headingTags[level];
|
|
757
|
+
return /* @__PURE__ */ jsx15(Tag2, { className: heading({ level, color }), children });
|
|
747
758
|
};
|
|
748
759
|
|
|
749
760
|
// core/sidebar/sidebar.tsx
|
|
@@ -751,8 +762,8 @@ import { useState as useState3 } from "react";
|
|
|
751
762
|
import Link from "next/link";
|
|
752
763
|
|
|
753
764
|
// core/sidebar/sidebar.styles.ts
|
|
754
|
-
import { tv as
|
|
755
|
-
var sidebar =
|
|
765
|
+
import { tv as tv10 } from "tailwind-variants";
|
|
766
|
+
var sidebar = tv10({
|
|
756
767
|
base: "h-screen bg-neutral-800 text-neutral-300 flex flex-col overflow-hidden transition-all duration-200",
|
|
757
768
|
variants: {
|
|
758
769
|
collapsed: {
|
|
@@ -764,16 +775,16 @@ var sidebar = tv9({
|
|
|
764
775
|
collapsed: false
|
|
765
776
|
}
|
|
766
777
|
});
|
|
767
|
-
var nav =
|
|
778
|
+
var nav = tv10({
|
|
768
779
|
base: "flex-1 min-h-0 overflow-y-auto overflow-x-hidden"
|
|
769
780
|
});
|
|
770
|
-
var header2 =
|
|
781
|
+
var header2 = tv10({
|
|
771
782
|
base: "shrink-0 border-b border-neutral-600/50 grid p-2"
|
|
772
783
|
});
|
|
773
|
-
var section =
|
|
784
|
+
var section = tv10({
|
|
774
785
|
base: "border-b border-neutral-600/50 last:border-b-0 grid gap-1 p-2"
|
|
775
786
|
});
|
|
776
|
-
var item =
|
|
787
|
+
var item = tv10({
|
|
777
788
|
base: "flex w-full items-center rounded-md text-sm whitespace-nowrap transition-colors cursor-pointer p-1",
|
|
778
789
|
variants: {
|
|
779
790
|
active: {
|
|
@@ -785,10 +796,10 @@ var item = tv9({
|
|
|
785
796
|
active: false
|
|
786
797
|
}
|
|
787
798
|
});
|
|
788
|
-
var itemIcon =
|
|
799
|
+
var itemIcon = tv10({
|
|
789
800
|
base: "p-2"
|
|
790
801
|
});
|
|
791
|
-
var itemLabel =
|
|
802
|
+
var itemLabel = tv10({
|
|
792
803
|
base: "truncate transition-all duration-200",
|
|
793
804
|
variants: {
|
|
794
805
|
collapsed: {
|
|
@@ -800,22 +811,22 @@ var itemLabel = tv9({
|
|
|
800
811
|
collapsed: false
|
|
801
812
|
}
|
|
802
813
|
});
|
|
803
|
-
var footer =
|
|
814
|
+
var footer = tv10({
|
|
804
815
|
base: "shrink-0 border-t border-neutral-600/50 p-3 flex items-center gap-3 whitespace-nowrap"
|
|
805
816
|
});
|
|
806
|
-
var avatar =
|
|
817
|
+
var avatar = tv10({
|
|
807
818
|
base: "shrink-0 w-8 h-8 rounded-full bg-neutral-600 text-white text-xs font-medium flex items-center justify-center"
|
|
808
819
|
});
|
|
809
|
-
var userInfo =
|
|
820
|
+
var userInfo = tv10({
|
|
810
821
|
base: "flex flex-col min-w-0"
|
|
811
822
|
});
|
|
812
|
-
var userName =
|
|
823
|
+
var userName = tv10({
|
|
813
824
|
base: "text-sm text-white truncate"
|
|
814
825
|
});
|
|
815
|
-
var userEmail =
|
|
826
|
+
var userEmail = tv10({
|
|
816
827
|
base: "text-xs text-neutral-400"
|
|
817
828
|
});
|
|
818
|
-
var toggleButton =
|
|
829
|
+
var toggleButton = tv10({
|
|
819
830
|
base: "shrink-0 border-t border-neutral-600/50 grid p-2 [&>button]:justify-start [&>button]:overflow-hidden [&>button]:whitespace-nowrap"
|
|
820
831
|
});
|
|
821
832
|
|
|
@@ -1179,8 +1190,8 @@ var ConnectedModal = ({
|
|
|
1179
1190
|
import { LoaderCircle } from "lucide-react";
|
|
1180
1191
|
|
|
1181
1192
|
// core/spinner/spinner.styles.ts
|
|
1182
|
-
import { tv as
|
|
1183
|
-
var spinner =
|
|
1193
|
+
import { tv as tv11 } from "tailwind-variants";
|
|
1194
|
+
var spinner = tv11({
|
|
1184
1195
|
base: "animate-spin w-20 h-20 text-white stroke-[0.3]"
|
|
1185
1196
|
});
|
|
1186
1197
|
|
|
@@ -1189,8 +1200,8 @@ import { jsx as jsx21 } from "react/jsx-runtime";
|
|
|
1189
1200
|
var Spinner = ({ className }) => /* @__PURE__ */ jsx21(LoaderCircle, { className: spinner({ className }), strokeWidth: 1 });
|
|
1190
1201
|
|
|
1191
1202
|
// core/loader/loader.styles.ts
|
|
1192
|
-
import { tv as
|
|
1193
|
-
var overlay2 =
|
|
1203
|
+
import { tv as tv12 } from "tailwind-variants";
|
|
1204
|
+
var overlay2 = tv12({
|
|
1194
1205
|
base: "flex fixed justify-center items-center w-full h-full bg-black/20 z-50"
|
|
1195
1206
|
});
|
|
1196
1207
|
|