@medway-ui/core 1.23.0 → 1.23.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/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, ComponentPropsWithoutRef, ComponentType, ChangeEvent, TableHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1,
|
|
6
|
+
import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Tooltip as Tooltip$1, Tabs as Tabs$1, Separator as Separator$1, Switch as Switch$1, Toast as Toast$2 } from 'radix-ui';
|
|
7
7
|
|
|
8
8
|
interface AlertProps extends ComponentProps<"div"> {
|
|
9
9
|
variant?: "regular" | "emphasis" | "success" | "warning" | "error";
|
|
@@ -874,6 +874,11 @@ declare function SelectScrollUpButton({ className, ...props }: ComponentProps<ty
|
|
|
874
874
|
declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
875
875
|
declare function SelectText({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
876
876
|
|
|
877
|
+
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
878
|
+
declare function Tooltip({ ...props }: ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
879
|
+
declare function TooltipTrigger({ ...props }: ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
880
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
881
|
+
|
|
877
882
|
type SegmentSize = "sm" | "md" | "lg";
|
|
878
883
|
declare function SegmentControl({ className, size, children, ...props }: ComponentProps<typeof Tabs$1.Root> & {
|
|
879
884
|
size?: SegmentSize;
|
|
@@ -884,13 +889,15 @@ interface SegmentControlListProps extends ComponentProps<typeof Tabs$1.List> {
|
|
|
884
889
|
declare function SegmentControlList({ className, containerClassName, ...props }: SegmentControlListProps): react_jsx_runtime.JSX.Element;
|
|
885
890
|
interface SegmentControlTriggerProps extends ComponentProps<typeof Tabs$1.Trigger> {
|
|
886
891
|
icon?: ReactNode;
|
|
892
|
+
tooltip?: ReactNode;
|
|
893
|
+
tooltipSide?: ComponentProps<typeof TooltipContent>["side"];
|
|
887
894
|
badge?: number | string;
|
|
888
895
|
badgeVariant?: BadgeProps["variant"];
|
|
889
896
|
}
|
|
890
897
|
declare const segmentControlTriggerVariants: (props?: ({
|
|
891
898
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
892
899
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
893
|
-
declare function SegmentControlTrigger({ className, icon, badge, badgeVariant, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
900
|
+
declare function SegmentControlTrigger({ className, icon, tooltip, tooltipSide, badge, badgeVariant, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
894
901
|
declare function SegmentControlContent({ className, ...props }: ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime.JSX.Element;
|
|
895
902
|
|
|
896
903
|
declare function Separator({ className, orientation, decorative, ...props }: ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -907,11 +914,6 @@ declare function SheetFooter({ className, ...props }: ComponentProps<"div">): re
|
|
|
907
914
|
declare function SheetTitle({ className, ...props }: ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
908
915
|
declare function SheetDescription({ className, ...props }: ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
909
916
|
|
|
910
|
-
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
911
|
-
declare function Tooltip({ ...props }: ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
912
|
-
declare function TooltipTrigger({ ...props }: ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
913
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
914
|
-
|
|
915
917
|
type SidebarContextProps = {
|
|
916
918
|
state: "expanded" | "collapsed";
|
|
917
919
|
open: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, ComponentPropsWithoutRef, ComponentType, ChangeEvent, TableHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1,
|
|
6
|
+
import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Tooltip as Tooltip$1, Tabs as Tabs$1, Separator as Separator$1, Switch as Switch$1, Toast as Toast$2 } from 'radix-ui';
|
|
7
7
|
|
|
8
8
|
interface AlertProps extends ComponentProps<"div"> {
|
|
9
9
|
variant?: "regular" | "emphasis" | "success" | "warning" | "error";
|
|
@@ -874,6 +874,11 @@ declare function SelectScrollUpButton({ className, ...props }: ComponentProps<ty
|
|
|
874
874
|
declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
875
875
|
declare function SelectText({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
876
876
|
|
|
877
|
+
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
878
|
+
declare function Tooltip({ ...props }: ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
879
|
+
declare function TooltipTrigger({ ...props }: ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
880
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
881
|
+
|
|
877
882
|
type SegmentSize = "sm" | "md" | "lg";
|
|
878
883
|
declare function SegmentControl({ className, size, children, ...props }: ComponentProps<typeof Tabs$1.Root> & {
|
|
879
884
|
size?: SegmentSize;
|
|
@@ -884,13 +889,15 @@ interface SegmentControlListProps extends ComponentProps<typeof Tabs$1.List> {
|
|
|
884
889
|
declare function SegmentControlList({ className, containerClassName, ...props }: SegmentControlListProps): react_jsx_runtime.JSX.Element;
|
|
885
890
|
interface SegmentControlTriggerProps extends ComponentProps<typeof Tabs$1.Trigger> {
|
|
886
891
|
icon?: ReactNode;
|
|
892
|
+
tooltip?: ReactNode;
|
|
893
|
+
tooltipSide?: ComponentProps<typeof TooltipContent>["side"];
|
|
887
894
|
badge?: number | string;
|
|
888
895
|
badgeVariant?: BadgeProps["variant"];
|
|
889
896
|
}
|
|
890
897
|
declare const segmentControlTriggerVariants: (props?: ({
|
|
891
898
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
892
899
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
893
|
-
declare function SegmentControlTrigger({ className, icon, badge, badgeVariant, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
900
|
+
declare function SegmentControlTrigger({ className, icon, tooltip, tooltipSide, badge, badgeVariant, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
894
901
|
declare function SegmentControlContent({ className, ...props }: ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime.JSX.Element;
|
|
895
902
|
|
|
896
903
|
declare function Separator({ className, orientation, decorative, ...props }: ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -907,11 +914,6 @@ declare function SheetFooter({ className, ...props }: ComponentProps<"div">): re
|
|
|
907
914
|
declare function SheetTitle({ className, ...props }: ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
908
915
|
declare function SheetDescription({ className, ...props }: ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
909
916
|
|
|
910
|
-
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
911
|
-
declare function Tooltip({ ...props }: ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
912
|
-
declare function TooltipTrigger({ ...props }: ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
913
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
914
|
-
|
|
915
917
|
type SidebarContextProps = {
|
|
916
918
|
state: "expanded" | "collapsed";
|
|
917
919
|
open: boolean;
|