@segmentify/ui 0.0.69 → 0.0.70
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/atoms/code-block.d.ts +7 -0
- package/dist/components/atoms/toggle-group.d.ts +12 -0
- package/dist/components/molecules/logical-operator-toggle.d.ts +12 -0
- package/dist/components/molecules/sortable-multi-list.d.ts +16 -0
- package/dist/index.d.ts +4 -0
- package/dist/segmentify-ui.cjs +164 -164
- package/dist/segmentify-ui.js +23014 -21743
- package/dist/ui.css +72 -0
- package/package.json +24 -21
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type CodeBlockProps = Omit<React.ComponentProps<'pre'>, 'children'> & {
|
|
3
|
+
code: string;
|
|
4
|
+
language?: 'json' | 'text';
|
|
5
|
+
};
|
|
6
|
+
declare function CodeBlock({ code, language, className, ...props }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { CodeBlock };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const toggleGroupVariants: (props?: ({
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const toggleGroupItemVariants: (props?: ({
|
|
8
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
declare function ToggleGroup({ className, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleGroupVariants>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function ToggleGroupItem({ className, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleGroupItemVariants>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type LogicalOperatorValue = 'AND' | 'OR';
|
|
2
|
+
type LogicalOperatorToggleProps = {
|
|
3
|
+
value: LogicalOperatorValue;
|
|
4
|
+
onValueChange: (value: LogicalOperatorValue) => void;
|
|
5
|
+
size?: 'default' | 'sm' | 'lg';
|
|
6
|
+
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
andLabel?: string;
|
|
9
|
+
orLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function LogicalOperatorToggle({ value, onValueChange, size, className, disabled, andLabel, orLabel, }: LogicalOperatorToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { LogicalOperatorToggle };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type SortableMultiContainer = {
|
|
3
|
+
id: string;
|
|
4
|
+
itemIds: string[];
|
|
5
|
+
};
|
|
6
|
+
type SortableMultiListProps = {
|
|
7
|
+
containers: SortableMultiContainer[];
|
|
8
|
+
onReorderWithin: (containerId: string, fromIndex: number, toIndex: number) => void;
|
|
9
|
+
onMoveBetween: (fromContainerId: string, fromIndex: number, toContainerId: string, toIndex: number) => void;
|
|
10
|
+
renderContainer: (container: SortableMultiContainer) => React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
containerClassName?: string;
|
|
13
|
+
orientation?: 'vertical' | 'horizontal';
|
|
14
|
+
};
|
|
15
|
+
declare function SortableMultiList({ containers, onReorderWithin, onMoveBetween, renderContainer, className, containerClassName, orientation, }: SortableMultiListProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { SortableMultiList };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrev
|
|
|
13
13
|
export { Case, ComponentSwitch, Default } from './components/atoms/component-switch';
|
|
14
14
|
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, type ChartConfig, } from './components/atoms/chart';
|
|
15
15
|
export { Checkbox } from './components/atoms/checkbox';
|
|
16
|
+
export { CodeBlock } from './components/atoms/code-block';
|
|
16
17
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './components/atoms/collapsible';
|
|
17
18
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from './components/atoms/command';
|
|
18
19
|
export { ContentWrapper } from './components/atoms/content-wrapper';
|
|
@@ -45,6 +46,7 @@ export { FormSortableList } from './components/organisms/form-sortable-list';
|
|
|
45
46
|
export { FormSwitch } from './components/organisms/form-switch';
|
|
46
47
|
export { FormTextarea } from './components/organisms/form-textarea';
|
|
47
48
|
export { FormPhoneInput } from './components/molecules/form-phone-input';
|
|
49
|
+
export { LogicalOperatorToggle, type LogicalOperatorValue } from './components/molecules/logical-operator-toggle';
|
|
48
50
|
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/atoms/hover-card';
|
|
49
51
|
export { Icon } from './components/atoms/icon';
|
|
50
52
|
export { Input } from './components/atoms/input';
|
|
@@ -76,12 +78,14 @@ export { Skeleton } from './components/atoms/skeleton';
|
|
|
76
78
|
export { Slider } from './components/atoms/slider';
|
|
77
79
|
export { SortableItem } from './components/atoms/sortable-item';
|
|
78
80
|
export { SortableList } from './components/molecules/sortable-list';
|
|
81
|
+
export { SortableMultiList, type SortableMultiContainer } from './components/molecules/sortable-multi-list';
|
|
79
82
|
export { Toaster } from './components/atoms/sonner';
|
|
80
83
|
export { toast } from 'sonner';
|
|
81
84
|
export { Spinner } from './components/atoms/spinner';
|
|
82
85
|
export { Switch } from './components/atoms/switch';
|
|
83
86
|
export { SwitchField } from './components/molecules/switch-field';
|
|
84
87
|
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/atoms/tabs';
|
|
88
|
+
export { ToggleGroup, ToggleGroupItem } from './components/atoms/toggle-group';
|
|
85
89
|
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './components/atoms/table';
|
|
86
90
|
export { Textarea } from './components/atoms/textarea';
|
|
87
91
|
export { TextAreaField } from './components/molecules/textarea-field';
|