@mindly/ui-components 5.48.0 → 5.49.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/cjs/index.js +6 -6
- package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +11 -1
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +10 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +11 -1
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +10 -0
- package/dist/index.d.ts +93 -76
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ListBoxProps } from './types';
|
|
2
|
-
export default function ListBox<T extends Record<string, unknown>>(props: ListBoxProps<T>): JSX.Element;
|
|
2
|
+
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, ...props }: ListBoxProps<T>): JSX.Element;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
import { AriaListBoxProps } from 'react-aria';
|
|
2
|
-
|
|
2
|
+
import { IconProps } from '../../types';
|
|
3
|
+
export declare enum ListBoxSelectionType {
|
|
4
|
+
Checkbox = "checkbox",
|
|
5
|
+
Radio = "radio"
|
|
6
|
+
}
|
|
7
|
+
export type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
8
|
+
type?: ListBoxSelectionType;
|
|
9
|
+
enableSelection?: boolean;
|
|
10
|
+
selectedIconProps?: IconProps;
|
|
11
|
+
selectionPosition?: 'start' | 'end';
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ItemProps } from 'react-stately';
|
|
3
3
|
import { ListBoxItemProps, ListOptionsProps } from './types';
|
|
4
|
-
export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & React.RefAttributes<
|
|
4
|
+
export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & React.RefAttributes<HTMLIonItemElement>>;
|
|
5
5
|
export declare const ListBoxItem: (props: ItemProps<unknown> & ListBoxItemProps) => JSX.Element;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import { ListState, Node } from 'react-stately';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { ListBoxSelectionType } from '../ListBox/types';
|
|
4
|
+
import { IconProps } from '../../types';
|
|
3
5
|
export type ListOptionsProps = {
|
|
4
6
|
item: Node<unknown>;
|
|
5
7
|
state: ListState<unknown>;
|
|
6
8
|
icon?: React.ReactNode;
|
|
7
9
|
divider?: boolean;
|
|
8
10
|
value?: string;
|
|
11
|
+
selectedIconProps?: IconProps;
|
|
12
|
+
type?: ListBoxSelectionType;
|
|
13
|
+
selectionPosition?: 'start' | 'end';
|
|
14
|
+
enableSelection?: boolean;
|
|
15
|
+
customContent?: boolean;
|
|
9
16
|
};
|
|
10
17
|
export type ListBoxItemProps = {
|
|
11
18
|
icon?: React.ReactNode;
|
|
19
|
+
type?: ListBoxSelectionType;
|
|
20
|
+
selectedIconProps?: IconProps;
|
|
12
21
|
divider?: boolean;
|
|
13
22
|
value?: string;
|
|
14
23
|
children: React.ReactNode;
|
|
15
24
|
className?: string;
|
|
25
|
+
onClick?: HTMLIonItemElement["onclick"];
|
|
16
26
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1535,82 +1535,6 @@ type AppHeaderProps = {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
declare const AppHeader_v2: FC<AppHeaderProps>;
|
|
1537
1537
|
|
|
1538
|
-
type ListOptionsProps = {
|
|
1539
|
-
item: Node<unknown>;
|
|
1540
|
-
state: ListState<unknown>;
|
|
1541
|
-
icon?: React.ReactNode;
|
|
1542
|
-
divider?: boolean;
|
|
1543
|
-
value?: string;
|
|
1544
|
-
};
|
|
1545
|
-
type ListBoxItemProps = {
|
|
1546
|
-
icon?: React.ReactNode;
|
|
1547
|
-
divider?: boolean;
|
|
1548
|
-
value?: string;
|
|
1549
|
-
children: React.ReactNode;
|
|
1550
|
-
className?: string;
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
|
-
declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & React.RefAttributes<HTMLLIElement>>;
|
|
1554
|
-
declare const ListBoxItem: (props: ItemProps$1<unknown> & ListBoxItemProps) => JSX.Element;
|
|
1555
|
-
|
|
1556
|
-
type ListBoxProps<T> = AriaListBoxProps<T>;
|
|
1557
|
-
|
|
1558
|
-
declare function ListBox<T extends Record<string, unknown>>(props: ListBoxProps<T>): JSX.Element;
|
|
1559
|
-
|
|
1560
|
-
type BaseTypeProps = {
|
|
1561
|
-
onDatePress?: (date: string, evt: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1562
|
-
locale: string;
|
|
1563
|
-
timeZone?: string;
|
|
1564
|
-
selectionMode?: SelectionMode;
|
|
1565
|
-
renderCustomDateContent?: (date: string, formattedDate: string, isSelected: boolean, isToday: boolean) => React.ReactNode;
|
|
1566
|
-
};
|
|
1567
|
-
type CalendarProps = Omit<AriaCalendarProps<DateValue>, 'minValue' | 'defaultValue' | 'maxValue'> & BaseTypeProps & {
|
|
1568
|
-
minValue?: string;
|
|
1569
|
-
defaultValue?: string;
|
|
1570
|
-
maxValue?: string;
|
|
1571
|
-
slots?: Record<string, any[]>;
|
|
1572
|
-
fullWidth?: boolean;
|
|
1573
|
-
isShowWeekNames?: boolean;
|
|
1574
|
-
isShowMonthNavigation?: boolean;
|
|
1575
|
-
defaultSelectDates: string[];
|
|
1576
|
-
selectionBehavior?: SelectionBehavior;
|
|
1577
|
-
onSelectionChange: (dates: string[]) => void;
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
|
|
1581
|
-
|
|
1582
|
-
type VerticalCalendarProps = CalendarProps & {
|
|
1583
|
-
visibleDuration?: number;
|
|
1584
|
-
};
|
|
1585
|
-
declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): JSX.Element;
|
|
1586
|
-
|
|
1587
|
-
type VerticalCalendarMonthSkeletonProps = {
|
|
1588
|
-
days: number;
|
|
1589
|
-
};
|
|
1590
|
-
declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): JSX.Element;
|
|
1591
|
-
|
|
1592
|
-
declare function VerticalCalendarSkeleton(): JSX.Element;
|
|
1593
|
-
|
|
1594
|
-
interface TextareaV2Props extends Omit<JSX$1.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
|
|
1595
|
-
borderTop?: boolean;
|
|
1596
|
-
showCounter?: boolean;
|
|
1597
|
-
className?: string;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
declare const _default$i: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaV2Props & React__default.RefAttributes<HTMLIonTextareaElement>>>;
|
|
1601
|
-
|
|
1602
|
-
type RatingProps = {
|
|
1603
|
-
initialRating?: number;
|
|
1604
|
-
onChange?: (value: number) => void;
|
|
1605
|
-
onClick?: (value: number) => void;
|
|
1606
|
-
onHover?: (value: number) => void;
|
|
1607
|
-
size?: number;
|
|
1608
|
-
className?: string;
|
|
1609
|
-
readonly?: boolean;
|
|
1610
|
-
};
|
|
1611
|
-
|
|
1612
|
-
declare const _default$h: React__default.NamedExoticComponent<RatingProps>;
|
|
1613
|
-
|
|
1614
1538
|
declare enum CircleRatingSize {
|
|
1615
1539
|
'S' = "S",
|
|
1616
1540
|
'M' = "M",
|
|
@@ -1792,6 +1716,99 @@ declare enum SupportedCurrency {
|
|
|
1792
1716
|
'USD' = "USD"
|
|
1793
1717
|
}
|
|
1794
1718
|
|
|
1719
|
+
declare enum ListBoxSelectionType {
|
|
1720
|
+
Checkbox = "checkbox",
|
|
1721
|
+
Radio = "radio"
|
|
1722
|
+
}
|
|
1723
|
+
type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
1724
|
+
type?: ListBoxSelectionType;
|
|
1725
|
+
enableSelection?: boolean;
|
|
1726
|
+
selectedIconProps?: IconProps$z;
|
|
1727
|
+
selectionPosition?: 'start' | 'end';
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
type ListOptionsProps = {
|
|
1731
|
+
item: Node<unknown>;
|
|
1732
|
+
state: ListState<unknown>;
|
|
1733
|
+
icon?: React.ReactNode;
|
|
1734
|
+
divider?: boolean;
|
|
1735
|
+
value?: string;
|
|
1736
|
+
selectedIconProps?: IconProps$z;
|
|
1737
|
+
type?: ListBoxSelectionType;
|
|
1738
|
+
selectionPosition?: 'start' | 'end';
|
|
1739
|
+
enableSelection?: boolean;
|
|
1740
|
+
customContent?: boolean;
|
|
1741
|
+
};
|
|
1742
|
+
type ListBoxItemProps = {
|
|
1743
|
+
icon?: React.ReactNode;
|
|
1744
|
+
type?: ListBoxSelectionType;
|
|
1745
|
+
selectedIconProps?: IconProps$z;
|
|
1746
|
+
divider?: boolean;
|
|
1747
|
+
value?: string;
|
|
1748
|
+
children: React.ReactNode;
|
|
1749
|
+
className?: string;
|
|
1750
|
+
onClick?: HTMLIonItemElement["onclick"];
|
|
1751
|
+
};
|
|
1752
|
+
|
|
1753
|
+
declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & React.RefAttributes<HTMLIonItemElement>>;
|
|
1754
|
+
declare const ListBoxItem: (props: ItemProps$1<unknown> & ListBoxItemProps) => JSX.Element;
|
|
1755
|
+
|
|
1756
|
+
declare function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, ...props }: ListBoxProps<T>): JSX.Element;
|
|
1757
|
+
|
|
1758
|
+
type BaseTypeProps = {
|
|
1759
|
+
onDatePress?: (date: string, evt: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1760
|
+
locale: string;
|
|
1761
|
+
timeZone?: string;
|
|
1762
|
+
selectionMode?: SelectionMode;
|
|
1763
|
+
renderCustomDateContent?: (date: string, formattedDate: string, isSelected: boolean, isToday: boolean) => React.ReactNode;
|
|
1764
|
+
};
|
|
1765
|
+
type CalendarProps = Omit<AriaCalendarProps<DateValue>, 'minValue' | 'defaultValue' | 'maxValue'> & BaseTypeProps & {
|
|
1766
|
+
minValue?: string;
|
|
1767
|
+
defaultValue?: string;
|
|
1768
|
+
maxValue?: string;
|
|
1769
|
+
slots?: Record<string, any[]>;
|
|
1770
|
+
fullWidth?: boolean;
|
|
1771
|
+
isShowWeekNames?: boolean;
|
|
1772
|
+
isShowMonthNavigation?: boolean;
|
|
1773
|
+
defaultSelectDates: string[];
|
|
1774
|
+
selectionBehavior?: SelectionBehavior;
|
|
1775
|
+
onSelectionChange: (dates: string[]) => void;
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
|
|
1779
|
+
|
|
1780
|
+
type VerticalCalendarProps = CalendarProps & {
|
|
1781
|
+
visibleDuration?: number;
|
|
1782
|
+
};
|
|
1783
|
+
declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): JSX.Element;
|
|
1784
|
+
|
|
1785
|
+
type VerticalCalendarMonthSkeletonProps = {
|
|
1786
|
+
days: number;
|
|
1787
|
+
};
|
|
1788
|
+
declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): JSX.Element;
|
|
1789
|
+
|
|
1790
|
+
declare function VerticalCalendarSkeleton(): JSX.Element;
|
|
1791
|
+
|
|
1792
|
+
interface TextareaV2Props extends Omit<JSX$1.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
|
|
1793
|
+
borderTop?: boolean;
|
|
1794
|
+
showCounter?: boolean;
|
|
1795
|
+
className?: string;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
declare const _default$i: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaV2Props & React__default.RefAttributes<HTMLIonTextareaElement>>>;
|
|
1799
|
+
|
|
1800
|
+
type RatingProps = {
|
|
1801
|
+
initialRating?: number;
|
|
1802
|
+
onChange?: (value: number) => void;
|
|
1803
|
+
onClick?: (value: number) => void;
|
|
1804
|
+
onHover?: (value: number) => void;
|
|
1805
|
+
size?: number;
|
|
1806
|
+
className?: string;
|
|
1807
|
+
readonly?: boolean;
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
declare const _default$h: React__default.NamedExoticComponent<RatingProps>;
|
|
1811
|
+
|
|
1795
1812
|
declare const RatingCircleWrapper: FC<CircleRatingComponentProps & {
|
|
1796
1813
|
t: WithTranslation | any;
|
|
1797
1814
|
}>;
|