@vantageos/mosaic-blocks 0.2.3-alpha → 0.3.0-alpha

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.d.ts CHANGED
@@ -1,13 +1,26 @@
1
1
  import * as React from 'react';
2
- import * as class_variance_authority_types from 'class-variance-authority/types';
3
2
  import { Button } from '@base-ui/react/button';
4
3
  import { VariantProps } from 'class-variance-authority';
4
+ import { buttonVariants, badgeVariants } from './server.js';
5
+ import { Accordion } from '@base-ui/react/accordion';
6
+ export { Accordion } from '@base-ui/react/accordion';
7
+ import { Checkbox } from '@base-ui/react/checkbox';
8
+ import { Collapsible } from '@base-ui/react/collapsible';
9
+ import { Progress } from '@base-ui/react/progress';
10
+ import { Radio } from '@base-ui/react/radio';
11
+ import { RadioGroup } from '@base-ui/react/radio-group';
12
+ import { ScrollArea } from '@base-ui/react/scroll-area';
13
+ import { Separator } from '@base-ui/react/separator';
14
+ import { Slider } from '@base-ui/react/slider';
15
+ import { Tabs } from '@base-ui/react/tabs';
5
16
  import { Avatar } from '@base-ui/react/avatar';
6
17
  import { Input } from '@base-ui/react/input';
7
18
  import { Field } from '@base-ui/react/field';
8
19
  import { Switch } from '@base-ui/react/switch';
20
+ export { Tooltip } from '@base-ui/react/tooltip';
21
+ import 'class-variance-authority/types';
9
22
 
10
- declare const version = "0.1.0-alpha.1";
23
+ declare const version = "0.3.0-alpha";
11
24
 
12
25
  /**
13
26
  * Placeholder component — infra scaffold only.
@@ -18,10 +31,17 @@ interface PlaceholderProps {
18
31
  }
19
32
  declare function Placeholder({ label }: PlaceholderProps): React.JSX.Element;
20
33
 
21
- declare const buttonVariants: (props?: ({
22
- variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
23
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
24
- } & class_variance_authority_types.ClassProp) | undefined) => string;
34
+ /**
35
+ * MosaicButton — @base-ui/react Button primitive
36
+ *
37
+ * Ported from heyfabrika/styleui (MIT) with namespace and import adaptations.
38
+ * Source: https://github.com/heyfabrika/styleui/blob/main/components/ui/button.tsx
39
+ *
40
+ * Uses @base-ui/react/button as the headless base per ADR-0001.
41
+ * Styling: Tailwind v4 + cva variants. No tailwind-merge needed (single source).
42
+ * API: data-slot="button" attribution, ref as regular prop (React 19).
43
+ */
44
+
25
45
  interface MosaicButtonProps extends Omit<Button.Props, "ref">, VariantProps<typeof buttonVariants> {
26
46
  className?: string;
27
47
  /** ref is typed as HTMLElement to preserve the original public API surface */
@@ -732,6 +752,489 @@ declare namespace MosaicFallingPattern {
732
752
  */
733
753
  declare function useMediaQuery(query: string): boolean;
734
754
 
755
+ /**
756
+ * MosaicAccordion — @base-ui/react Accordion primitive
757
+ *
758
+ * Builds on Accordion.Root + Accordion.Item + Accordion.Header +
759
+ * Accordion.Trigger + Accordion.Panel.
760
+ * Supports single and multiple expansion modes.
761
+ * role=button + aria-expanded + aria-controls managed by the primitive.
762
+ *
763
+ * data-slot="accordion" on Root, "accordion-item" on Item,
764
+ * "accordion-trigger" on Trigger, "accordion-panel" on Panel.
765
+ * Styling: Tailwind v4 semantic tokens only.
766
+ */
767
+
768
+ interface MosaicAccordionProps extends Accordion.Root.Props {
769
+ className?: string;
770
+ ref?: React.Ref<HTMLDivElement>;
771
+ }
772
+ interface MosaicAccordionItemProps extends Accordion.Item.Props {
773
+ className?: string;
774
+ ref?: React.Ref<HTMLDivElement>;
775
+ }
776
+ interface MosaicAccordionTriggerProps extends Omit<Accordion.Trigger.Props, "ref"> {
777
+ className?: string;
778
+ ref?: React.Ref<HTMLButtonElement>;
779
+ }
780
+ interface MosaicAccordionPanelProps extends Accordion.Panel.Props {
781
+ className?: string;
782
+ ref?: React.Ref<HTMLDivElement>;
783
+ }
784
+ /**
785
+ * MosaicAccordion — production Accordion root for @vantageos/mosaic-blocks.
786
+ *
787
+ * Compose with MosaicAccordionItem, MosaicAccordionTrigger, MosaicAccordionPanel.
788
+ * By default, only one item can be open at a time (openMultiple={false}).
789
+ *
790
+ * @example
791
+ * <MosaicAccordion>
792
+ * <MosaicAccordionItem value="item-1">
793
+ * <Accordion.Header>
794
+ * <MosaicAccordionTrigger>Section 1</MosaicAccordionTrigger>
795
+ * </Accordion.Header>
796
+ * <MosaicAccordionPanel>Content 1</MosaicAccordionPanel>
797
+ * </MosaicAccordionItem>
798
+ * </MosaicAccordion>
799
+ */
800
+ declare function MosaicAccordion({ className, ref, ...props }: MosaicAccordionProps): React.JSX.Element;
801
+ declare namespace MosaicAccordion {
802
+ var displayName: string;
803
+ }
804
+ /**
805
+ * MosaicAccordionItem — individual accordion item wrapper.
806
+ * Must supply a unique `value` prop.
807
+ */
808
+ declare function MosaicAccordionItem({ className, ref, ...props }: MosaicAccordionItemProps): React.JSX.Element;
809
+ declare namespace MosaicAccordionItem {
810
+ var displayName: string;
811
+ }
812
+ /**
813
+ * MosaicAccordionTrigger — toggle button inside an accordion item header.
814
+ * Must be placed inside an Accordion.Header.
815
+ */
816
+ declare function MosaicAccordionTrigger({ className, children, ref, ...props }: MosaicAccordionTriggerProps): React.JSX.Element;
817
+ declare namespace MosaicAccordionTrigger {
818
+ var displayName: string;
819
+ }
820
+ /**
821
+ * MosaicAccordionPanel — collapsible content area for an accordion item.
822
+ */
823
+ declare function MosaicAccordionPanel({ className, ref, ...props }: MosaicAccordionPanelProps): React.JSX.Element;
824
+ declare namespace MosaicAccordionPanel {
825
+ var displayName: string;
826
+ }
827
+
828
+ /**
829
+ * MosaicCheckbox — @base-ui/react Checkbox primitive
830
+ *
831
+ * Builds on Checkbox.Root + Checkbox.Indicator.
832
+ * Supports controlled (checked + onCheckedChange) and uncontrolled modes.
833
+ * Indeterminate state supported via checked="mixed".
834
+ * role=checkbox and aria-checked managed by the primitive automatically.
835
+ *
836
+ * data-slot="checkbox" on Root, "checkbox-indicator" on Indicator.
837
+ * Styling: Tailwind v4 semantic tokens only.
838
+ */
839
+
840
+ interface MosaicCheckboxProps extends Checkbox.Root.Props {
841
+ className?: string;
842
+ ref?: React.Ref<HTMLButtonElement>;
843
+ }
844
+ /**
845
+ * MosaicCheckbox — production Checkbox atom for @vantageos/mosaic-blocks.
846
+ *
847
+ * Built on @base-ui/react/checkbox. Supports controlled + uncontrolled + indeterminate.
848
+ * role=checkbox + aria-checked managed automatically by the primitive.
849
+ *
850
+ * @example
851
+ * <MosaicCheckbox aria-label="Accept terms" defaultChecked />
852
+ * <MosaicCheckbox checked={agreed} onCheckedChange={setAgreed} />
853
+ * <MosaicCheckbox checked="mixed" aria-label="Select all" />
854
+ */
855
+ declare function MosaicCheckbox({ className, ref, ...props }: MosaicCheckboxProps): React.JSX.Element;
856
+ declare namespace MosaicCheckbox {
857
+ var displayName: string;
858
+ }
859
+
860
+ /**
861
+ * MosaicCollapsible — @base-ui/react Collapsible primitive
862
+ *
863
+ * Builds on Collapsible.Root + Collapsible.Trigger + Collapsible.Panel.
864
+ * Supports controlled (open + onOpenChange) and uncontrolled modes.
865
+ * aria-expanded and aria-controls managed by the primitive automatically.
866
+ *
867
+ * data-slot="collapsible" on Root, "collapsible-trigger" on Trigger,
868
+ * "collapsible-panel" on Panel.
869
+ * Styling: Tailwind v4 semantic tokens only.
870
+ */
871
+
872
+ interface MosaicCollapsibleProps extends Collapsible.Root.Props {
873
+ className?: string;
874
+ ref?: React.Ref<HTMLDivElement>;
875
+ }
876
+ interface MosaicCollapsibleTriggerProps extends Collapsible.Trigger.Props {
877
+ className?: string;
878
+ ref?: React.Ref<HTMLButtonElement>;
879
+ }
880
+ interface MosaicCollapsiblePanelProps extends Collapsible.Panel.Props {
881
+ className?: string;
882
+ ref?: React.Ref<HTMLDivElement>;
883
+ }
884
+ /**
885
+ * MosaicCollapsible — production Collapsible root for @vantageos/mosaic-blocks.
886
+ *
887
+ * Wrap with MosaicCollapsibleTrigger and MosaicCollapsiblePanel.
888
+ *
889
+ * @example
890
+ * <MosaicCollapsible>
891
+ * <MosaicCollapsibleTrigger>Toggle</MosaicCollapsibleTrigger>
892
+ * <MosaicCollapsiblePanel>Content here</MosaicCollapsiblePanel>
893
+ * </MosaicCollapsible>
894
+ */
895
+ declare function MosaicCollapsible({ className, ref, ...props }: MosaicCollapsibleProps): React.JSX.Element;
896
+ declare namespace MosaicCollapsible {
897
+ var displayName: string;
898
+ }
899
+ /**
900
+ * MosaicCollapsibleTrigger — toggle button for MosaicCollapsible.
901
+ *
902
+ * @example
903
+ * <MosaicCollapsibleTrigger>Show more</MosaicCollapsibleTrigger>
904
+ */
905
+ declare function MosaicCollapsibleTrigger({ className, ref, ...props }: MosaicCollapsibleTriggerProps): React.JSX.Element;
906
+ declare namespace MosaicCollapsibleTrigger {
907
+ var displayName: string;
908
+ }
909
+ /**
910
+ * MosaicCollapsiblePanel — collapsible content panel for MosaicCollapsible.
911
+ *
912
+ * @example
913
+ * <MosaicCollapsiblePanel>Hidden content</MosaicCollapsiblePanel>
914
+ */
915
+ declare function MosaicCollapsiblePanel({ className, ref, ...props }: MosaicCollapsiblePanelProps): React.JSX.Element;
916
+ declare namespace MosaicCollapsiblePanel {
917
+ var displayName: string;
918
+ }
919
+
920
+ /**
921
+ * MosaicProgress — @base-ui/react Progress primitive
922
+ *
923
+ * Builds on Progress.Root + Progress.Track + Progress.Indicator.
924
+ * Supports determinate (value prop) and indeterminate states.
925
+ * aria-valuenow, aria-valuemin, aria-valuemax managed by the primitive.
926
+ *
927
+ * data-slot="progress" on Root, "progress-track" on Track, "progress-indicator" on Indicator.
928
+ * Styling: Tailwind v4 semantic tokens only.
929
+ */
930
+
931
+ interface MosaicProgressProps extends Progress.Root.Props {
932
+ className?: string;
933
+ ref?: React.Ref<HTMLDivElement>;
934
+ }
935
+ /**
936
+ * MosaicProgress — production Progress atom for @vantageos/mosaic-blocks.
937
+ *
938
+ * Built on @base-ui/react/progress. Determinate and indeterminate modes.
939
+ * Pass `value={null}` for indeterminate; pass `value={0–100}` for determinate.
940
+ *
941
+ * @example
942
+ * <MosaicProgress value={60} />
943
+ * <MosaicProgress value={null} aria-label="Loading…" />
944
+ */
945
+ declare function MosaicProgress({ className, value, max, ref, ...props }: MosaicProgressProps): React.JSX.Element;
946
+ declare namespace MosaicProgress {
947
+ var displayName: string;
948
+ }
949
+
950
+ /**
951
+ * MosaicRadioGroup — @base-ui/react RadioGroup + Radio primitives
952
+ *
953
+ * Builds on RadioGroup (from @base-ui/react/radio-group) +
954
+ * Radio.Root + Radio.Indicator (from @base-ui/react/radio).
955
+ * Supports controlled (value + onValueChange) and uncontrolled modes.
956
+ * role=radiogroup + role=radio + aria-checked managed by primitives automatically.
957
+ *
958
+ * data-slot="radio-group" on RadioGroup, "radio" on Radio.Root,
959
+ * "radio-indicator" on Radio.Indicator.
960
+ * Styling: Tailwind v4 semantic tokens only.
961
+ */
962
+
963
+ interface MosaicRadioGroupProps extends RadioGroup.Props {
964
+ className?: string;
965
+ ref?: React.Ref<HTMLDivElement>;
966
+ }
967
+ interface MosaicRadioGroupItemProps extends Radio.Root.Props {
968
+ className?: string;
969
+ ref?: React.Ref<HTMLSpanElement>;
970
+ }
971
+ /**
972
+ * MosaicRadioGroup — production RadioGroup for @vantageos/mosaic-blocks.
973
+ *
974
+ * Wrap with MosaicRadioGroupItem for each option.
975
+ * role=radiogroup is set automatically by the primitive.
976
+ *
977
+ * @example
978
+ * <MosaicRadioGroup value={plan} onValueChange={setPlan} aria-label="Plan">
979
+ * <MosaicRadioGroupItem value="free">Free</MosaicRadioGroupItem>
980
+ * <MosaicRadioGroupItem value="pro">Pro</MosaicRadioGroupItem>
981
+ * </MosaicRadioGroup>
982
+ */
983
+ declare function MosaicRadioGroup({ className, ref, ...props }: MosaicRadioGroupProps): React.JSX.Element;
984
+ declare namespace MosaicRadioGroup {
985
+ var displayName: string;
986
+ }
987
+ /**
988
+ * MosaicRadioGroupItem — individual radio button for MosaicRadioGroup.
989
+ *
990
+ * @example
991
+ * <MosaicRadioGroupItem value="option-a">Option A</MosaicRadioGroupItem>
992
+ */
993
+ declare function MosaicRadioGroupItem({ className, children, ref, ...props }: MosaicRadioGroupItemProps): React.JSX.Element;
994
+ declare namespace MosaicRadioGroupItem {
995
+ var displayName: string;
996
+ }
997
+
998
+ /**
999
+ * MosaicScrollArea — @base-ui/react ScrollArea primitive
1000
+ *
1001
+ * Builds on ScrollArea.Root + ScrollArea.Viewport + ScrollArea.Content +
1002
+ * ScrollArea.Scrollbar + ScrollArea.Thumb + ScrollArea.Corner.
1003
+ * Custom scrollbar styling that matches design tokens.
1004
+ * Native scroll behavior with custom scrollbar overlay.
1005
+ *
1006
+ * data-slot="scroll-area" on Root, "scroll-area-viewport" on Viewport,
1007
+ * "scroll-area-scrollbar" on Scrollbar, "scroll-area-thumb" on Thumb.
1008
+ * Styling: Tailwind v4 semantic tokens only.
1009
+ */
1010
+
1011
+ interface MosaicScrollAreaProps extends ScrollArea.Root.Props {
1012
+ className?: string;
1013
+ /** Whether to show horizontal scrollbar. @default false */
1014
+ horizontal?: boolean;
1015
+ ref?: React.Ref<HTMLDivElement>;
1016
+ }
1017
+ /**
1018
+ * MosaicScrollArea — production ScrollArea atom for @vantageos/mosaic-blocks.
1019
+ *
1020
+ * Built on @base-ui/react/scroll-area. Custom scrollbar with semantic tokens.
1021
+ * Shows vertical scrollbar by default; set horizontal to show horizontal bar too.
1022
+ *
1023
+ * @example
1024
+ * <MosaicScrollArea className="h-48">
1025
+ * <div>Long content here…</div>
1026
+ * </MosaicScrollArea>
1027
+ */
1028
+ declare function MosaicScrollArea({ className, horizontal, children, ref, ...props }: MosaicScrollAreaProps): React.JSX.Element;
1029
+ declare namespace MosaicScrollArea {
1030
+ var displayName: string;
1031
+ }
1032
+
1033
+ /**
1034
+ * MosaicSeparator — @base-ui/react Separator primitive
1035
+ *
1036
+ * A visual and semantic divider. Supports horizontal (default) and vertical orientations.
1037
+ * role=separator and aria attributes managed by the primitive automatically.
1038
+ *
1039
+ * data-slot="separator" on the rendered element.
1040
+ * Styling: Tailwind v4 semantic tokens only.
1041
+ */
1042
+
1043
+ interface MosaicSeparatorProps extends Separator.Props {
1044
+ className?: string;
1045
+ ref?: React.Ref<HTMLDivElement>;
1046
+ }
1047
+ /**
1048
+ * MosaicSeparator — production Separator atom for @vantageos/mosaic-blocks.
1049
+ *
1050
+ * Built on @base-ui/react/separator. Accessible separator with role="separator".
1051
+ * Supports horizontal and vertical orientations.
1052
+ *
1053
+ * @example
1054
+ * <MosaicSeparator />
1055
+ * <MosaicSeparator orientation="vertical" className="h-8" />
1056
+ */
1057
+ declare function MosaicSeparator({ className, orientation, ref, ...props }: MosaicSeparatorProps): React.JSX.Element;
1058
+ declare namespace MosaicSeparator {
1059
+ var displayName: string;
1060
+ }
1061
+
1062
+ /**
1063
+ * MosaicSlider — @base-ui/react Slider primitive
1064
+ *
1065
+ * Builds on Slider.Root + Slider.Control + Slider.Track +
1066
+ * Slider.Indicator + Slider.Thumb.
1067
+ * Supports single value and range (array) values.
1068
+ * role=slider and aria-valuenow managed by the primitive automatically.
1069
+ *
1070
+ * data-slot="slider" on Root, "slider-track" on Track,
1071
+ * "slider-indicator" on Indicator, "slider-thumb" on Thumb.
1072
+ * Styling: Tailwind v4 semantic tokens only.
1073
+ */
1074
+
1075
+ interface MosaicSliderProps extends Slider.Root.Props {
1076
+ className?: string;
1077
+ ref?: React.Ref<HTMLDivElement>;
1078
+ }
1079
+ /**
1080
+ * MosaicSlider — production Slider atom for @vantageos/mosaic-blocks.
1081
+ *
1082
+ * Built on @base-ui/react/slider. Supports single value + range (array).
1083
+ * Keyboard accessible: arrow keys, Home, End.
1084
+ *
1085
+ * @example
1086
+ * <MosaicSlider defaultValue={50} aria-label="Volume" />
1087
+ * <MosaicSlider defaultValue={[20, 80]} aria-label="Price range" />
1088
+ */
1089
+ declare function MosaicSlider({ className, ref, ...props }: MosaicSliderProps): React.JSX.Element;
1090
+ declare namespace MosaicSlider {
1091
+ var displayName: string;
1092
+ }
1093
+
1094
+ /**
1095
+ * MosaicTabs — @base-ui/react Tabs primitive
1096
+ *
1097
+ * Builds on Tabs.Root + Tabs.List + Tabs.Tab + Tabs.Panel + Tabs.Indicator.
1098
+ * Supports controlled (value + onValueChange) and uncontrolled modes.
1099
+ * role=tablist, role=tab, role=tabpanel managed by the primitive automatically.
1100
+ *
1101
+ * data-slot="tabs" on Root, "tabs-list" on List, "tabs-trigger" on Tab,
1102
+ * "tabs-panel" on Panel.
1103
+ * Styling: Tailwind v4 semantic tokens only.
1104
+ */
1105
+
1106
+ interface MosaicTabsProps extends Tabs.Root.Props {
1107
+ className?: string;
1108
+ ref?: React.Ref<HTMLDivElement>;
1109
+ }
1110
+ interface MosaicTabsListProps extends Tabs.List.Props {
1111
+ className?: string;
1112
+ ref?: React.Ref<HTMLDivElement>;
1113
+ }
1114
+ interface MosaicTabsTriggerProps extends Tabs.Tab.Props {
1115
+ className?: string;
1116
+ ref?: React.Ref<HTMLButtonElement>;
1117
+ }
1118
+ interface MosaicTabsPanelProps extends Tabs.Panel.Props {
1119
+ className?: string;
1120
+ ref?: React.Ref<HTMLDivElement>;
1121
+ }
1122
+ /**
1123
+ * MosaicTabs — production Tabs root for @vantageos/mosaic-blocks.
1124
+ *
1125
+ * Compose with MosaicTabsList, MosaicTabsTrigger, MosaicTabsPanel.
1126
+ *
1127
+ * @example
1128
+ * <MosaicTabs defaultValue="overview">
1129
+ * <MosaicTabsList>
1130
+ * <MosaicTabsTrigger value="overview">Overview</MosaicTabsTrigger>
1131
+ * <MosaicTabsTrigger value="details">Details</MosaicTabsTrigger>
1132
+ * </MosaicTabsList>
1133
+ * <MosaicTabsPanel value="overview">Overview content</MosaicTabsPanel>
1134
+ * <MosaicTabsPanel value="details">Details content</MosaicTabsPanel>
1135
+ * </MosaicTabs>
1136
+ */
1137
+ declare function MosaicTabs({ className, ref, ...props }: MosaicTabsProps): React.JSX.Element;
1138
+ declare namespace MosaicTabs {
1139
+ var displayName: string;
1140
+ }
1141
+ /**
1142
+ * MosaicTabsList — the tab bar containing tab triggers.
1143
+ */
1144
+ declare function MosaicTabsList({ className, ref, ...props }: MosaicTabsListProps): React.JSX.Element;
1145
+ declare namespace MosaicTabsList {
1146
+ var displayName: string;
1147
+ }
1148
+ /**
1149
+ * MosaicTabsTrigger — individual tab button.
1150
+ * Must supply a `value` prop matching the corresponding MosaicTabsPanel value.
1151
+ */
1152
+ declare function MosaicTabsTrigger({ className, ref, ...props }: MosaicTabsTriggerProps): React.JSX.Element;
1153
+ declare namespace MosaicTabsTrigger {
1154
+ var displayName: string;
1155
+ }
1156
+ /**
1157
+ * MosaicTabsPanel — content panel revealed by the corresponding tab trigger.
1158
+ * Must supply a `value` prop matching the corresponding MosaicTabsTrigger value.
1159
+ */
1160
+ declare function MosaicTabsPanel({ className, ref, ...props }: MosaicTabsPanelProps): React.JSX.Element;
1161
+ declare namespace MosaicTabsPanel {
1162
+ var displayName: string;
1163
+ }
1164
+
1165
+ /**
1166
+ * MosaicTextarea — native <textarea> styled atom
1167
+ *
1168
+ * No @base-ui/react primitive for textarea — uses the native HTML element.
1169
+ * Consistent token vocabulary with MosaicInput.
1170
+ *
1171
+ * data-slot="textarea" on the rendered <textarea>.
1172
+ * Styling: Tailwind v4 semantic tokens only.
1173
+ */
1174
+
1175
+ interface MosaicTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
1176
+ className?: string;
1177
+ ref?: React.Ref<HTMLTextAreaElement>;
1178
+ }
1179
+ /**
1180
+ * MosaicTextarea — production Textarea atom for @vantageos/mosaic-blocks.
1181
+ *
1182
+ * Styled native <textarea>. Matches MosaicInput visual vocabulary.
1183
+ * Resize: vertical only by default.
1184
+ *
1185
+ * @example
1186
+ * <MosaicTextarea placeholder="Describe your idea…" rows={4} />
1187
+ * <MosaicTextarea disabled value="Read-only text" readOnly />
1188
+ */
1189
+ declare function MosaicTextarea({ className, ref, ...props }: MosaicTextareaProps): React.JSX.Element;
1190
+ declare namespace MosaicTextarea {
1191
+ var displayName: string;
1192
+ }
1193
+
1194
+ /**
1195
+ * MosaicTooltip — @base-ui/react Tooltip primitive
1196
+ *
1197
+ * Builds on Tooltip.Provider + Tooltip.Root + Tooltip.Trigger +
1198
+ * Tooltip.Portal + Tooltip.Positioner + Tooltip.Popup.
1199
+ * role=tooltip managed by the primitive automatically.
1200
+ *
1201
+ * data-slot="tooltip-trigger" on Trigger, "tooltip-content" on Popup.
1202
+ * Styling: Tailwind v4 semantic tokens only.
1203
+ */
1204
+
1205
+ interface MosaicTooltipProps {
1206
+ /** The element that triggers the tooltip */
1207
+ children: React.ReactNode;
1208
+ /** Tooltip content */
1209
+ content: React.ReactNode;
1210
+ /** Delay before opening (ms). @default 600 */
1211
+ delay?: number;
1212
+ /** Side to render the tooltip. @default "top" */
1213
+ side?: "top" | "bottom" | "left" | "right";
1214
+ /** Alignment on the cross axis. @default "center" */
1215
+ align?: "start" | "center" | "end";
1216
+ className?: string;
1217
+ }
1218
+ /**
1219
+ * MosaicTooltip — production Tooltip atom for @vantageos/mosaic-blocks.
1220
+ *
1221
+ * Built on @base-ui/react/tooltip. Wraps trigger + content in a single component.
1222
+ * role=tooltip managed automatically. Keyboard (focus) + pointer accessible.
1223
+ *
1224
+ * @example
1225
+ * <MosaicTooltip content="Delete this item">
1226
+ * <button>Delete</button>
1227
+ * </MosaicTooltip>
1228
+ *
1229
+ * <MosaicTooltip content="Saved!" side="bottom">
1230
+ * <MosaicButton>Save</MosaicButton>
1231
+ * </MosaicTooltip>
1232
+ */
1233
+ declare function MosaicTooltip({ children, content, delay, side, align, className, }: MosaicTooltipProps): React.JSX.Element;
1234
+ declare namespace MosaicTooltip {
1235
+ var displayName: string;
1236
+ }
1237
+
735
1238
  /**
736
1239
  * MosaicCard — style-only composable Card atom
737
1240
  *
@@ -802,9 +1305,15 @@ declare namespace MosaicCardFooter {
802
1305
  var displayName: string;
803
1306
  }
804
1307
 
805
- declare const badgeVariants: (props?: ({
806
- variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
807
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1308
+ /**
1309
+ * MosaicBadge — style-only badge atom
1310
+ *
1311
+ * Renders a <span> with cva variants: default, secondary, destructive, outline.
1312
+ * data-slot="badge" for composability.
1313
+ *
1314
+ * Design tokens: Tailwind v4 semantic classes only. No hardcoded colors.
1315
+ */
1316
+
808
1317
  interface MosaicBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
809
1318
  className?: string;
810
1319
  ref?: React.Ref<HTMLSpanElement>;
@@ -3288,4 +3797,4 @@ interface MosaicClerkWebhookHandlerOptions {
3288
3797
  */
3289
3798
  declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
3290
3799
 
3291
- export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, type MosaicScenario, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, MosaicSwitch, type MosaicSwitchProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
3800
+ export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, type MosaicTooltipProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };