alope-ui 1.2.67 → 1.6.0

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.
@@ -1,9 +1,7 @@
1
1
  import { default as React } from 'react';
2
- interface BottomNavbarProps {
2
+ export interface BottomNavbarProps {
3
3
  children: React.ReactNode;
4
- className?: string;
5
4
  value: string;
6
5
  onChangeValue: (value: string) => void;
7
6
  }
8
7
  export declare const BottomNavbar: React.FC<BottomNavbarProps>;
9
- export {};
@@ -5,7 +5,6 @@ export interface BottomNavbarActionProps {
5
5
  value: string;
6
6
  selectedValue?: string;
7
7
  onChangeValue?: (value: string) => void;
8
- labelClassName?: string;
9
- className?: string;
8
+ disabled?: boolean;
10
9
  }
11
10
  export declare const BottomNavbarAction: React.FC<BottomNavbarActionProps>;
@@ -1,17 +1,18 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
2
  declare const CodeInputSize: {
3
- sm: string;
4
- md: string;
5
- lg: string;
6
- xl: string;
3
+ readonly sm: "w-10 h-10 text-sm";
4
+ readonly md: "w-12 h-12 text-base";
5
+ readonly lg: "w-14 h-14 text-lg";
6
+ readonly xl: "w-16 h-16 text-xl";
7
7
  };
8
+ export type CodeInputSizeType = keyof typeof CodeInputSize;
8
9
  export type CodeInputProps = {
9
10
  label?: string;
11
+ error?: string;
10
12
  value: string;
11
13
  length: number;
12
- labelClassName?: string;
13
14
  onCodeChange: (code: string) => void;
14
- inputSize?: keyof typeof CodeInputSize;
15
- } & Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>;
15
+ inputSize?: CodeInputSizeType;
16
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "className" | "value" | "maxLength">;
16
17
  export declare const CodeInput: React.FC<CodeInputProps>;
17
18
  export {};
@@ -1,14 +1,15 @@
1
- export type CollectionProps<T> = {
1
+ import { default as React } from 'react';
2
+ export type CollectionItemBase = {
3
+ id: string | number;
4
+ name?: string;
5
+ };
6
+ export type CollectionProps<T extends CollectionItemBase> = {
2
7
  title?: string;
3
8
  data: T[];
4
9
  children?: (item: T, index: number, isActive: boolean) => React.ReactNode;
5
- className?: string;
6
- wrapperClassName?: string;
7
- suffixIcon?: React.ReactNode | ((item?: T, index?: number, isActive?: boolean) => React.ReactNode);
8
- activeItem?: any;
10
+ suffixIcon?: React.ReactNode | ((item: T, index: number, isActive: boolean) => React.ReactNode);
11
+ activeItem?: T["id"] | null;
9
12
  onChangeActive?: (item: T, index: number) => void;
13
+ emptyMessage?: React.ReactNode;
10
14
  };
11
- export declare function Collection<T extends {
12
- id: any;
13
- name?: string;
14
- }>({ data, title, className, wrapperClassName, children, suffixIcon, activeItem, onChangeActive, }: CollectionProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Collection<T extends CollectionItemBase>({ data, title, children, suffixIcon, activeItem, onChangeActive, emptyMessage, }: CollectionProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,43 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ declare const DatePickerColors: {
3
+ readonly primary: {
4
+ readonly header: "bg-primary dark:bg-primary-dark";
5
+ readonly icon: "hover:bg-primary-700 dark:hover:bg-primary-dark-700";
6
+ readonly day: "bg-primary dark:bg-primary-dark text-white";
7
+ readonly today: "ring-1 ring-primary dark:ring-primary-dark";
8
+ };
9
+ readonly success: {
10
+ readonly header: "bg-success dark:bg-success-dark";
11
+ readonly icon: "hover:bg-success-700 dark:hover:bg-success-dark-700";
12
+ readonly day: "bg-success dark:bg-success-dark text-white";
13
+ readonly today: "ring-1 ring-success dark:ring-success-dark";
14
+ };
15
+ readonly info: {
16
+ readonly header: "bg-info dark:bg-info-dark";
17
+ readonly icon: "hover:bg-info-700 dark:hover:bg-info-dark-700";
18
+ readonly day: "bg-info dark:bg-info-dark text-white";
19
+ readonly today: "ring-1 ring-info dark:ring-info-dark";
20
+ };
21
+ readonly error: {
22
+ readonly header: "bg-error dark:bg-error-dark";
23
+ readonly icon: "hover:bg-error-700 dark:hover:bg-error-dark-700";
24
+ readonly day: "bg-error dark:bg-error-dark text-white";
25
+ readonly today: "ring-1 ring-error dark:ring-error-dark";
26
+ };
27
+ readonly warning: {
28
+ readonly header: "bg-warning dark:bg-warning-dark";
29
+ readonly icon: "hover:bg-warning-700 dark:hover:bg-warning-dark-700";
30
+ readonly day: "bg-warning dark:bg-warning-dark text-white";
31
+ readonly today: "ring-1 ring-warning dark:ring-warning-dark";
32
+ };
33
+ };
34
+ export type DatePickerColor = keyof typeof DatePickerColors;
35
+ export type DatePickerProps = {
36
+ label?: string;
37
+ error?: string;
38
+ selectedDate?: Date | null;
39
+ color?: DatePickerColor;
40
+ onDateChange?: (date: Date) => void;
41
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'value' | 'onChange'>;
42
+ export declare const DatePicker: React.FC<DatePickerProps>;
1
43
  export {};
@@ -1,18 +1,23 @@
1
+ import { default as React } from 'react';
1
2
  import { ButtonVariant, ButtonColor } from '../Button/Button';
2
3
  declare const FABSizes: {
3
- sm: string;
4
- md: string;
5
- lg: string;
4
+ readonly sm: "w-11 h-11 text-sm font-medium rounded-full";
5
+ readonly md: "w-14 h-14 text-base font-semibold tracking-[.2px] rounded-full";
6
+ readonly lg: "w-16 h-16 text-lg font-semibold rounded-full";
6
7
  };
7
- type FABProps = {
8
+ export type FABDirection = 'horizontal' | 'vertical';
9
+ export type FABSize = keyof typeof FABSizes;
10
+ export type FABProps = {
8
11
  children: React.ReactNode;
9
- direction?: 'horizontal' | 'vertical';
10
- size?: keyof typeof FABSizes;
12
+ direction?: FABDirection;
13
+ size?: FABSize;
11
14
  variant?: ButtonVariant;
12
15
  variantType?: ButtonColor;
13
16
  isOpen: boolean;
14
17
  onOpen: () => void;
15
18
  icon?: React.ReactNode;
19
+ disabled?: boolean;
20
+ ariaLabel?: string;
16
21
  };
17
- export declare const FAB: ({ children, direction, size, variant, variantType, isOpen, onOpen, icon }: FABProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const FAB: React.FC<FABProps>;
18
23
  export {};
@@ -1,13 +1,13 @@
1
1
  import { default as React } from 'react';
2
- type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "lg" | "xl" | "2xl";
2
+ export type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "2xl";
3
+ export type MasonryColsCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
4
+ export type MasonryGapSize = 1 | 2 | 3 | 4 | 5 | 6;
3
5
  export type ResponsiveValueMasonry<T extends number | string> = T | Partial<Record<Breakpoint, T>>;
4
- type ResponsiveCols = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
5
- type ResponsiveGap = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6>;
6
- export interface MasonryProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ export type ResponsiveCols = ResponsiveValueMasonry<MasonryColsCount>;
7
+ export type ResponsiveGap = ResponsiveValueMasonry<MasonryGapSize>;
8
+ export interface MasonryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
7
9
  children: React.ReactNode;
8
- className?: string;
9
10
  cols?: ResponsiveCols;
10
11
  gap?: ResponsiveGap;
11
12
  }
12
13
  export declare const Masonry: React.ForwardRefExoticComponent<MasonryProps & React.RefAttributes<HTMLDivElement>>;
13
- export {};
@@ -1,10 +1,11 @@
1
1
  import { default as React } from 'react';
2
+ export type SkeletonAnimode = "shimmer" | "flash";
2
3
  export type SkeletonProps = {
3
- width?: string;
4
- height?: string;
4
+ width?: string | number;
5
+ height?: string | number;
5
6
  rounded?: boolean;
6
7
  isLoading?: boolean;
7
8
  children?: React.ReactNode;
8
- animode?: "shimmer" | "flash";
9
+ animode?: SkeletonAnimode;
9
10
  };
10
11
  export declare const Skeleton: React.FC<SkeletonProps>;
@@ -1,26 +1,29 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
2
  declare const SliderColor: {
3
- primary: string;
4
- error: string;
5
- warning: string;
6
- success: string;
7
- info: string;
8
- secondary: string;
3
+ readonly primary: string;
4
+ readonly error: string;
5
+ readonly warning: string;
6
+ readonly success: string;
7
+ readonly info: string;
8
+ readonly secondary: string;
9
9
  };
10
10
  declare const SliderSize: {
11
- sm: string;
12
- md: string;
13
- lg: string;
14
- xl: string;
11
+ readonly sm: "h-1 [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:h-3";
12
+ readonly md: "h-2 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:h-4";
13
+ readonly lg: "h-3 [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5";
14
+ readonly xl: "h-4 [&::-webkit-slider-thumb]:w-6 [&::-webkit-slider-thumb]:h-6 [&::-moz-range-thumb]:w-6 [&::-moz-range-thumb]:h-6";
15
15
  };
16
+ export type SliderColorType = keyof typeof SliderColor;
17
+ export type SliderSizeType = keyof typeof SliderSize;
16
18
  export type SliderProps = {
17
19
  label?: string;
18
20
  prefixIcon?: React.ReactNode;
19
21
  suffixIcon?: React.ReactNode;
20
- color?: keyof typeof SliderColor;
21
- sliderSize?: keyof typeof SliderSize;
22
+ color?: SliderColorType;
23
+ sliderSize?: SliderSizeType;
22
24
  showTooltip?: boolean;
23
25
  showMarks?: boolean;
24
- } & InputHTMLAttributes<HTMLInputElement>;
26
+ showInput?: boolean;
27
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "size" | "type">;
25
28
  export declare const Slider: React.FC<SliderProps>;
26
29
  export {};
@@ -1,31 +1,25 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- declare const DotColors: {
3
- success: string;
4
- info: string;
5
- error: string;
6
- warning: string;
7
- primary: string;
8
- default: string;
9
- };
10
2
  declare const LineColors: {
11
- success: string;
12
- info: string;
13
- error: string;
14
- warning: string;
15
- primary: string;
16
- default: string;
3
+ readonly default: "border-gray-200 dark:border-neutral-800 md:before:border-gray-200 md:dark:before:border-neutral-800";
4
+ readonly primary: "border-primary dark:border-primary-dark md:before:border-primary md:dark:before:border-primary-dark";
5
+ readonly success: "border-success dark:border-success-dark md:before:border-success md:dark:before:border-success-dark";
6
+ readonly info: "border-info dark:border-info-dark md:before:border-info md:dark:before:border-info-dark";
7
+ readonly error: "border-error dark:border-error-dark md:before:border-error md:dark:before:border-error-dark";
8
+ readonly warning: "border-warning dark:border-warning-dark md:before:border-warning md:dark:before:border-warning-dark";
17
9
  };
10
+ export type TimelinePosition = "split" | "right" | "left";
11
+ export type TimelineColor = keyof typeof LineColors;
18
12
  export type TimelineProps = {
19
- position?: 'split' | 'right' | 'left';
20
- lineColor?: keyof typeof LineColors;
13
+ position?: TimelinePosition;
14
+ lineColor?: TimelineColor;
21
15
  children: ReactNode;
22
16
  };
23
17
  export type TimelineItemProps = {
24
18
  title: string;
25
19
  time: string;
26
- children: ReactNode;
27
- dotColor?: keyof typeof DotColors;
28
- icon?: React.ReactNode;
20
+ children?: ReactNode;
21
+ dotColor?: TimelineColor;
22
+ icon?: ReactNode;
29
23
  };
30
24
  export declare const Timeline: React.FC<TimelineProps> & {
31
25
  Item: React.FC<TimelineItemProps>;