@aivex/ui 1.1.0-dev.16 → 1.1.0-dev.17
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/components/Segmented/Segmented.d.ts +3 -3
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +642 -640
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
2
2
|
import { type ReactNode, type RefAttributes } from "react";
|
|
3
|
-
type SegmentedSize = "sm" | "md" | "lg";
|
|
3
|
+
type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
|
|
4
4
|
export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
|
|
5
5
|
size?: SegmentedSize;
|
|
6
6
|
onValueChange?: (value: string) => void;
|
|
7
|
-
|
|
7
|
+
fullWidth?: boolean;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange,
|
|
10
|
+
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export interface SegmentedItemProps extends ToggleGroupItemProps, RefAttributes<HTMLButtonElement> {
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|