@segmentify/ui 0.0.33 → 0.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentify/ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
3
- import { Button } from '../../components/atoms/button';
4
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
9
- size?: 'default' | 'sm';
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
12
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
13
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
- declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
16
- declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
17
- declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
18
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { Combobox as ComboboxPrimitive } from '@base-ui/react';
3
- declare const Combobox: typeof ComboboxPrimitive.Root;
4
- declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
5
- declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
6
- declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
7
- showTrigger?: boolean;
8
- showClear?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'>): import("react/jsx-runtime").JSX.Element;
11
- declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): import("react/jsx-runtime").JSX.Element;
12
- declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
13
- declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
14
- declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
15
- declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
16
- declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
17
- declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
18
- declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props): import("react/jsx-runtime").JSX.Element;
19
- declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
20
- showRemove?: boolean;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
23
- declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
24
- export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- import { Button } from '../../components/atoms/button';
4
- declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
- declare const inputGroupAddonVariants: (props?: ({
6
- align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
- declare const inputGroupButtonVariants: (props?: ({
10
- size?: "xs" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
11
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
- declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
14
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
15
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
16
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea };
@@ -1,8 +0,0 @@
1
- import { type DateRange } from './presets';
2
- export interface DatePresetContextValue {
3
- range: DateRange;
4
- preset: string | null;
5
- setRange: (range: DateRange, preset?: string | null) => void;
6
- }
7
- export declare const DatePresetContext: import("react").Context<DatePresetContextValue | null>;
8
- export declare function useDatePreset(): DatePresetContextValue;
@@ -1,11 +0,0 @@
1
- import { type Locale } from 'date-fns';
2
- import { type DatePresetItem } from './presets';
3
- export interface DatePresetProps {
4
- presets?: Record<string, DatePresetItem>;
5
- className?: string;
6
- confirmLabel?: string;
7
- placeholder?: string;
8
- disabledCondition?: boolean | ((date: Date) => boolean);
9
- dateLocale?: Locale;
10
- }
11
- export declare function DatePreset({ presets, className, confirmLabel, placeholder, disabledCondition, dateLocale, }: DatePresetProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- export type { DateRange, DatePresetItem } from './presets';
2
- export type { DatePresetContextValue } from './context';
3
- export type { DatePresetProps } from './date-preset';
4
- export type { DatePresetProviderProps } from './root';
5
- export { DATE_PRESETS, DEFAULT_PRESET_KEY, findMatchingPreset } from './presets';
6
- export { useDatePreset } from './context';
7
- export { DatePreset } from './date-preset';
8
- export { DatePresetProvider } from './root';
@@ -1,21 +0,0 @@
1
- export interface DateRange {
2
- from: Date;
3
- to: Date;
4
- }
5
- export interface DateRangeOptional {
6
- from?: Date;
7
- to?: Date;
8
- }
9
- export interface DatePresetItem {
10
- key: string;
11
- label: string;
12
- getRange: () => DateRange;
13
- }
14
- export declare const DATE_PRESETS: Record<string, DatePresetItem>;
15
- export declare const DEFAULT_PRESET_KEY = "LAST_7_DAYS";
16
- /**
17
- * Finds a matching preset for a given date range.
18
- * Compares dates by day (ignores time).
19
- * @returns The matching preset key or null if no match found.
20
- */
21
- export declare function findMatchingPreset(range: DateRange, presets?: Record<string, DatePresetItem>): string | null;
@@ -1,9 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type DateRange } from './presets';
3
- export interface DatePresetProviderProps {
4
- children: ReactNode;
5
- initialRange?: DateRange;
6
- initialPreset?: string | null;
7
- onRangeChange?: (range: DateRange, preset: string | null) => void;
8
- }
9
- export declare function DatePresetProvider({ children, initialRange, initialPreset, onRangeChange, }: DatePresetProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +0,0 @@
1
- import { type Locale } from 'date-fns';
2
- import { type LucideIcon } from 'lucide-react';
3
- import { type ReactNode } from 'react';
4
- export interface IconConfig {
5
- icon: LucideIcon;
6
- bg?: string;
7
- text?: string;
8
- }
9
- export interface TimelineItem {
10
- iconConfig: IconConfig;
11
- title: string;
12
- description: string;
13
- timestamp: number;
14
- tags?: string[];
15
- topRightSlot?: ReactNode;
16
- bottomRightSlot?: ReactNode;
17
- }
18
- export interface TimelineProps {
19
- items: TimelineItem[];
20
- header?: ReactNode;
21
- className?: string;
22
- onItemClick?: (item: TimelineItem, index: number) => void;
23
- dateLocale?: Locale;
24
- }
25
- export declare const Timeline: ({ items, header, className, onItemClick, dateLocale }: TimelineProps) => import("react/jsx-runtime").JSX.Element;