warqadui 0.0.61 → 0.0.63
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 +6 -3
- package/dist/index.mjs +6 -3
- package/dist/styles.js +7 -3
- package/dist/styles.mjs +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4772,7 +4772,7 @@ var Dropdown = ({
|
|
|
4772
4772
|
menuClassName,
|
|
4773
4773
|
triggerMode = "click",
|
|
4774
4774
|
align = "right",
|
|
4775
|
-
width = "w-
|
|
4775
|
+
width = "min-w-[160px] w-fit",
|
|
4776
4776
|
onOpenChange
|
|
4777
4777
|
}) => {
|
|
4778
4778
|
const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
|
|
@@ -4868,7 +4868,7 @@ var Dropdown = ({
|
|
|
4868
4868
|
"div",
|
|
4869
4869
|
{
|
|
4870
4870
|
className: cn(
|
|
4871
|
-
"dropdown-portal-menu fixed z-
|
|
4871
|
+
"dropdown-portal-menu fixed z-10000 pt-2 origin-top",
|
|
4872
4872
|
width,
|
|
4873
4873
|
menuClassName
|
|
4874
4874
|
),
|
|
@@ -4888,7 +4888,10 @@ var Dropdown = ({
|
|
|
4888
4888
|
className: cn(
|
|
4889
4889
|
"flex w-full items-center gap-3 px-4 py-3 text-sm transition-all duration-150",
|
|
4890
4890
|
isDanger ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-200",
|
|
4891
|
-
!item.disabled && !isLoading ?
|
|
4891
|
+
!item.disabled && !isLoading ? cn(
|
|
4892
|
+
"cursor-pointer",
|
|
4893
|
+
isDanger ? "hover:bg-red-50 dark:hover:bg-red-900/10 active:bg-red-100 dark:active:bg-red-900/20" : "hover:bg-blue-50/50 dark:hover:bg-blue-900/10 active:bg-blue-100 dark:active:bg-blue-900/20"
|
|
4894
|
+
) : "opacity-40 cursor-not-allowed grayscale",
|
|
4892
4895
|
item.className
|
|
4893
4896
|
),
|
|
4894
4897
|
children: [
|
package/dist/index.mjs
CHANGED
|
@@ -4741,7 +4741,7 @@ var Dropdown = ({
|
|
|
4741
4741
|
menuClassName,
|
|
4742
4742
|
triggerMode = "click",
|
|
4743
4743
|
align = "right",
|
|
4744
|
-
width = "w-
|
|
4744
|
+
width = "min-w-[160px] w-fit",
|
|
4745
4745
|
onOpenChange
|
|
4746
4746
|
}) => {
|
|
4747
4747
|
const [isOpen, setIsOpen] = useState17(false);
|
|
@@ -4837,7 +4837,7 @@ var Dropdown = ({
|
|
|
4837
4837
|
"div",
|
|
4838
4838
|
{
|
|
4839
4839
|
className: cn(
|
|
4840
|
-
"dropdown-portal-menu fixed z-
|
|
4840
|
+
"dropdown-portal-menu fixed z-10000 pt-2 origin-top",
|
|
4841
4841
|
width,
|
|
4842
4842
|
menuClassName
|
|
4843
4843
|
),
|
|
@@ -4857,7 +4857,10 @@ var Dropdown = ({
|
|
|
4857
4857
|
className: cn(
|
|
4858
4858
|
"flex w-full items-center gap-3 px-4 py-3 text-sm transition-all duration-150",
|
|
4859
4859
|
isDanger ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-200",
|
|
4860
|
-
!item.disabled && !isLoading ?
|
|
4860
|
+
!item.disabled && !isLoading ? cn(
|
|
4861
|
+
"cursor-pointer",
|
|
4862
|
+
isDanger ? "hover:bg-red-50 dark:hover:bg-red-900/10 active:bg-red-100 dark:active:bg-red-900/20" : "hover:bg-blue-50/50 dark:hover:bg-blue-900/10 active:bg-blue-100 dark:active:bg-blue-900/20"
|
|
4863
|
+
) : "opacity-40 cursor-not-allowed grayscale",
|
|
4861
4864
|
item.className
|
|
4862
4865
|
),
|
|
4863
4866
|
children: [
|
package/dist/styles.js
CHANGED
|
@@ -523,9 +523,6 @@ select:-webkit-autofill:focus {
|
|
|
523
523
|
.z-50 {
|
|
524
524
|
z-index: 50;
|
|
525
525
|
}
|
|
526
|
-
.z-\\[10000\\] {
|
|
527
|
-
z-index: 10000;
|
|
528
|
-
}
|
|
529
526
|
.mx-0\\.5 {
|
|
530
527
|
margin-left: 0.125rem;
|
|
531
528
|
margin-right: 0.125rem;
|
|
@@ -805,6 +802,10 @@ select:-webkit-autofill:focus {
|
|
|
805
802
|
.w-\\[1\\%\\] {
|
|
806
803
|
width: 1%;
|
|
807
804
|
}
|
|
805
|
+
.w-fit {
|
|
806
|
+
width: -moz-fit-content;
|
|
807
|
+
width: fit-content;
|
|
808
|
+
}
|
|
808
809
|
.w-full {
|
|
809
810
|
width: 100%;
|
|
810
811
|
}
|
|
@@ -823,6 +824,9 @@ select:-webkit-autofill:focus {
|
|
|
823
824
|
.min-w-\\[100px\\] {
|
|
824
825
|
min-width: 100px;
|
|
825
826
|
}
|
|
827
|
+
.min-w-\\[160px\\] {
|
|
828
|
+
min-width: 160px;
|
|
829
|
+
}
|
|
826
830
|
.min-w-\\[40px\\] {
|
|
827
831
|
min-width: 40px;
|
|
828
832
|
}
|
package/dist/styles.mjs
CHANGED
|
@@ -521,9 +521,6 @@ select:-webkit-autofill:focus {
|
|
|
521
521
|
.z-50 {
|
|
522
522
|
z-index: 50;
|
|
523
523
|
}
|
|
524
|
-
.z-\\[10000\\] {
|
|
525
|
-
z-index: 10000;
|
|
526
|
-
}
|
|
527
524
|
.mx-0\\.5 {
|
|
528
525
|
margin-left: 0.125rem;
|
|
529
526
|
margin-right: 0.125rem;
|
|
@@ -803,6 +800,10 @@ select:-webkit-autofill:focus {
|
|
|
803
800
|
.w-\\[1\\%\\] {
|
|
804
801
|
width: 1%;
|
|
805
802
|
}
|
|
803
|
+
.w-fit {
|
|
804
|
+
width: -moz-fit-content;
|
|
805
|
+
width: fit-content;
|
|
806
|
+
}
|
|
806
807
|
.w-full {
|
|
807
808
|
width: 100%;
|
|
808
809
|
}
|
|
@@ -821,6 +822,9 @@ select:-webkit-autofill:focus {
|
|
|
821
822
|
.min-w-\\[100px\\] {
|
|
822
823
|
min-width: 100px;
|
|
823
824
|
}
|
|
825
|
+
.min-w-\\[160px\\] {
|
|
826
|
+
min-width: 160px;
|
|
827
|
+
}
|
|
824
828
|
.min-w-\\[40px\\] {
|
|
825
829
|
min-width: 40px;
|
|
826
830
|
}
|