@still-void/ui 3.0.0 → 3.0.1
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/CHANGELOG.md +8 -0
- package/dist/react/client/index.cjs +38 -30
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/client/index.js +38 -30
- package/dist/react/client/index.js.map +1 -1
- package/dist/style.css +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @still-void/ui
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#13](https://github.com/KalleoPinheiro/still-void/pull/13) [`18d4660`](https://github.com/KalleoPinheiro/still-void/commit/18d4660d0d4996adacdaf04d5a732952acf17e90) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - Give every Radix-derived component in the client family a real `displayName`. `Dialog`, `Tabs`, `Tooltip`, `Select`, `DropdownMenu`, and `AlertDialog` previously copied `displayName` from the underlying Radix primitive (`X.displayName = XPrimitive.Y.displayName`), but `@radix-ui/react-dialog`, `-tabs`, `-tooltip`, `-select`, and `-dropdown-menu` never declare one — so every one of these components showed up as `ForwardRef` in React DevTools instead of its own name. No behavior change.
|
|
8
|
+
|
|
9
|
+
- [#13](https://github.com/KalleoPinheiro/still-void/pull/13) [`64fa362`](https://github.com/KalleoPinheiro/still-void/commit/64fa3625070259b167372151c52fa1f4bffb2b64) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - `Tabs` now emits the `sv-tabs` container class on its root element and merges any consumer `className`, matching every other member of the family. `.sv-tabs` was already published in the package's CSS but nothing rendered it — worse, its default `align-items: stretch` would have forced the `inline-flex` `.sv-tabs__list` to the container's full width the moment a consumer applied the class by hand, so the rule now sets `align-items: flex-start`. No existing usage changes: `Tabs` still accepts every prop `TabsPrimitive.Root` does.
|
|
10
|
+
|
|
3
11
|
## 3.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -574,7 +574,7 @@ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
574
574
|
...props
|
|
575
575
|
}
|
|
576
576
|
));
|
|
577
|
-
DialogOverlay.displayName =
|
|
577
|
+
DialogOverlay.displayName = "DialogOverlay";
|
|
578
578
|
var DialogContent = React2.forwardRef(({ className, children, showCloseButton = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DialogPortal, { children: [
|
|
579
579
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogOverlay, {}),
|
|
580
580
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
@@ -594,7 +594,7 @@ var DialogContent = React2.forwardRef(({ className, children, showCloseButton =
|
|
|
594
594
|
}
|
|
595
595
|
)
|
|
596
596
|
] }));
|
|
597
|
-
DialogContent.displayName =
|
|
597
|
+
DialogContent.displayName = "DialogContent";
|
|
598
598
|
var DialogHeader = ({
|
|
599
599
|
className,
|
|
600
600
|
...props
|
|
@@ -613,7 +613,7 @@ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
613
613
|
...props
|
|
614
614
|
}
|
|
615
615
|
));
|
|
616
|
-
DialogTitle.displayName =
|
|
616
|
+
DialogTitle.displayName = "DialogTitle";
|
|
617
617
|
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
618
618
|
DialogPrimitive.Description,
|
|
619
619
|
{
|
|
@@ -622,7 +622,7 @@ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
622
622
|
...props
|
|
623
623
|
}
|
|
624
624
|
));
|
|
625
|
-
DialogDescription.displayName =
|
|
625
|
+
DialogDescription.displayName = "DialogDescription";
|
|
626
626
|
|
|
627
627
|
// src/components/ui/alert-dialog.tsx
|
|
628
628
|
var React3 = __toESM(require("react"), 1);
|
|
@@ -639,7 +639,7 @@ var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /*
|
|
|
639
639
|
...props
|
|
640
640
|
}
|
|
641
641
|
));
|
|
642
|
-
AlertDialogOverlay.displayName =
|
|
642
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
643
643
|
var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AlertDialogPortal, { children: [
|
|
644
644
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AlertDialogOverlay, {}),
|
|
645
645
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
@@ -652,7 +652,7 @@ var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /*
|
|
|
652
652
|
}
|
|
653
653
|
)
|
|
654
654
|
] }));
|
|
655
|
-
AlertDialogContent.displayName =
|
|
655
|
+
AlertDialogContent.displayName = "AlertDialogContent";
|
|
656
656
|
var AlertDialogHeader = ({
|
|
657
657
|
className,
|
|
658
658
|
...props
|
|
@@ -671,7 +671,7 @@ var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
671
671
|
...props
|
|
672
672
|
}
|
|
673
673
|
));
|
|
674
|
-
AlertDialogTitle.displayName =
|
|
674
|
+
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
675
675
|
var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
676
676
|
AlertDialogPrimitive.Description,
|
|
677
677
|
{
|
|
@@ -680,7 +680,7 @@ var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) =>
|
|
|
680
680
|
...props
|
|
681
681
|
}
|
|
682
682
|
));
|
|
683
|
-
AlertDialogDescription.displayName =
|
|
683
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
684
684
|
var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
685
685
|
AlertDialogPrimitive.Action,
|
|
686
686
|
{
|
|
@@ -689,7 +689,7 @@ var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
689
689
|
...props
|
|
690
690
|
}
|
|
691
691
|
));
|
|
692
|
-
AlertDialogAction.displayName =
|
|
692
|
+
AlertDialogAction.displayName = "AlertDialogAction";
|
|
693
693
|
var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
694
694
|
AlertDialogPrimitive.Cancel,
|
|
695
695
|
{
|
|
@@ -698,7 +698,7 @@ var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
698
698
|
...props
|
|
699
699
|
}
|
|
700
700
|
));
|
|
701
|
-
AlertDialogCancel.displayName =
|
|
701
|
+
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
702
702
|
|
|
703
703
|
// src/components/ui/select.tsx
|
|
704
704
|
var React4 = __toESM(require("react"), 1);
|
|
@@ -727,7 +727,7 @@ var SelectTrigger = React4.forwardRef(
|
|
|
727
727
|
)
|
|
728
728
|
)
|
|
729
729
|
);
|
|
730
|
-
SelectTrigger.displayName =
|
|
730
|
+
SelectTrigger.displayName = "SelectTrigger";
|
|
731
731
|
var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
732
732
|
SelectPrimitive.ScrollUpButton,
|
|
733
733
|
{
|
|
@@ -737,7 +737,7 @@ var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /
|
|
|
737
737
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-up" })
|
|
738
738
|
}
|
|
739
739
|
));
|
|
740
|
-
SelectScrollUpButton.displayName =
|
|
740
|
+
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
741
741
|
var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
742
742
|
SelectPrimitive.ScrollDownButton,
|
|
743
743
|
{
|
|
@@ -747,7 +747,7 @@ var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
747
747
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-down" })
|
|
748
748
|
}
|
|
749
749
|
));
|
|
750
|
-
SelectScrollDownButton.displayName =
|
|
750
|
+
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
751
751
|
var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
752
752
|
SelectPrimitive.Content,
|
|
753
753
|
{
|
|
@@ -771,7 +771,7 @@ var SelectContent = React4.forwardRef(({ className, children, position = "popper
|
|
|
771
771
|
]
|
|
772
772
|
}
|
|
773
773
|
) }));
|
|
774
|
-
SelectContent.displayName =
|
|
774
|
+
SelectContent.displayName = "SelectContent";
|
|
775
775
|
var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
776
776
|
SelectPrimitive.Item,
|
|
777
777
|
{
|
|
@@ -784,7 +784,7 @@ var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ *
|
|
|
784
784
|
]
|
|
785
785
|
}
|
|
786
786
|
));
|
|
787
|
-
SelectItem.displayName =
|
|
787
|
+
SelectItem.displayName = "SelectItem";
|
|
788
788
|
var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
789
789
|
SelectPrimitive.Label,
|
|
790
790
|
{
|
|
@@ -793,7 +793,7 @@ var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
793
793
|
...props
|
|
794
794
|
}
|
|
795
795
|
));
|
|
796
|
-
SelectLabel.displayName =
|
|
796
|
+
SelectLabel.displayName = "SelectLabel";
|
|
797
797
|
var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
798
798
|
SelectPrimitive.Separator,
|
|
799
799
|
{
|
|
@@ -802,7 +802,7 @@ var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
802
802
|
...props
|
|
803
803
|
}
|
|
804
804
|
));
|
|
805
|
-
SelectSeparator.displayName =
|
|
805
|
+
SelectSeparator.displayName = "SelectSeparator";
|
|
806
806
|
|
|
807
807
|
// src/components/ui/dropdown-menu.tsx
|
|
808
808
|
var React5 = __toESM(require("react"), 1);
|
|
@@ -828,7 +828,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(
|
|
|
828
828
|
}
|
|
829
829
|
)
|
|
830
830
|
);
|
|
831
|
-
DropdownMenuSubTrigger.displayName =
|
|
831
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
832
832
|
var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
833
833
|
DropdownMenuPrimitive.SubContent,
|
|
834
834
|
{
|
|
@@ -837,7 +837,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
|
837
837
|
...props
|
|
838
838
|
}
|
|
839
839
|
));
|
|
840
|
-
DropdownMenuSubContent.displayName =
|
|
840
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
841
841
|
var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
842
842
|
DropdownMenuPrimitive.Content,
|
|
843
843
|
{
|
|
@@ -846,7 +846,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /*
|
|
|
846
846
|
...props
|
|
847
847
|
}
|
|
848
848
|
) }));
|
|
849
|
-
DropdownMenuContent.displayName =
|
|
849
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
850
850
|
var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
851
851
|
DropdownMenuPrimitive.Item,
|
|
852
852
|
{
|
|
@@ -855,7 +855,7 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
855
855
|
...props
|
|
856
856
|
}
|
|
857
857
|
));
|
|
858
|
-
DropdownMenuItem.displayName =
|
|
858
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
859
859
|
var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
860
860
|
DropdownMenuPrimitive.CheckboxItem,
|
|
861
861
|
{
|
|
@@ -868,7 +868,7 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon =
|
|
|
868
868
|
]
|
|
869
869
|
}
|
|
870
870
|
));
|
|
871
|
-
DropdownMenuCheckboxItem.displayName =
|
|
871
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
872
872
|
var DropdownMenuRadioItem = React5.forwardRef(
|
|
873
873
|
({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
874
874
|
DropdownMenuPrimitive.RadioItem,
|
|
@@ -883,7 +883,7 @@ var DropdownMenuRadioItem = React5.forwardRef(
|
|
|
883
883
|
}
|
|
884
884
|
)
|
|
885
885
|
);
|
|
886
|
-
DropdownMenuRadioItem.displayName =
|
|
886
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
887
887
|
var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
888
888
|
DropdownMenuPrimitive.Label,
|
|
889
889
|
{
|
|
@@ -892,7 +892,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
|
|
|
892
892
|
...props
|
|
893
893
|
}
|
|
894
894
|
));
|
|
895
|
-
DropdownMenuLabel.displayName =
|
|
895
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
896
896
|
var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
897
897
|
DropdownMenuPrimitive.Separator,
|
|
898
898
|
{
|
|
@@ -901,7 +901,7 @@ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) =>
|
|
|
901
901
|
...props
|
|
902
902
|
}
|
|
903
903
|
));
|
|
904
|
-
DropdownMenuSeparator.displayName =
|
|
904
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
905
905
|
var DropdownMenuShortcut = ({
|
|
906
906
|
className,
|
|
907
907
|
...props
|
|
@@ -912,7 +912,15 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
912
912
|
var React6 = __toESM(require("react"), 1);
|
|
913
913
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
914
914
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
915
|
-
var Tabs =
|
|
915
|
+
var Tabs = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
916
|
+
TabsPrimitive.Root,
|
|
917
|
+
{
|
|
918
|
+
ref,
|
|
919
|
+
className: cn("sv-tabs", className),
|
|
920
|
+
...props
|
|
921
|
+
}
|
|
922
|
+
));
|
|
923
|
+
Tabs.displayName = "Tabs";
|
|
916
924
|
var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
917
925
|
TabsPrimitive.List,
|
|
918
926
|
{
|
|
@@ -921,7 +929,7 @@ var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
921
929
|
...props
|
|
922
930
|
}
|
|
923
931
|
));
|
|
924
|
-
TabsList.displayName =
|
|
932
|
+
TabsList.displayName = "TabsList";
|
|
925
933
|
var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
926
934
|
TabsPrimitive.Trigger,
|
|
927
935
|
{
|
|
@@ -930,7 +938,7 @@ var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
930
938
|
...props
|
|
931
939
|
}
|
|
932
940
|
));
|
|
933
|
-
TabsTrigger.displayName =
|
|
941
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
934
942
|
var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
935
943
|
TabsPrimitive.Content,
|
|
936
944
|
{
|
|
@@ -939,7 +947,7 @@ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
939
947
|
...props
|
|
940
948
|
}
|
|
941
949
|
));
|
|
942
|
-
TabsContent.displayName =
|
|
950
|
+
TabsContent.displayName = "TabsContent";
|
|
943
951
|
|
|
944
952
|
// src/components/ui/tooltip.tsx
|
|
945
953
|
var React7 = __toESM(require("react"), 1);
|
|
@@ -957,7 +965,7 @@ var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
957
965
|
...props
|
|
958
966
|
}
|
|
959
967
|
));
|
|
960
|
-
TooltipContent.displayName =
|
|
968
|
+
TooltipContent.displayName = "TooltipContent";
|
|
961
969
|
// Annotate the CommonJS export names for ESM import in node:
|
|
962
970
|
0 && (module.exports = {
|
|
963
971
|
AlertDialog,
|