@yr3/ui 1.0.18 → 1.0.20
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/Collapse/collapse.css +0 -1
- package/dist/components/Collapse/collapse.css.map +1 -1
- package/dist/components/Date/month.css +16 -2
- package/dist/components/Date/month.css.map +1 -1
- package/dist/components/Picker/picker.css +124 -0
- package/dist/components/Picker/picker.css.map +1 -0
- package/dist/index.cjs +327 -113
- package/dist/index.d.cts +78 -13
- package/dist/index.d.ts +78 -13
- package/dist/index.js +326 -113
- package/dist/styles/index.css +139 -3
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1114,13 +1114,22 @@ type CalendarComponentProps = {
|
|
|
1114
1114
|
declare function getMonthCalendar(year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any): CalendarComponentProps;
|
|
1115
1115
|
type CalendarMonthProps = {
|
|
1116
1116
|
year: number;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1117
|
+
value?: string | null;
|
|
1118
|
+
daysFormat?: {
|
|
1119
|
+
month?: string;
|
|
1120
|
+
months?: string[];
|
|
1121
|
+
value?: string;
|
|
1122
|
+
};
|
|
1123
|
+
data: {
|
|
1124
|
+
selected: boolean;
|
|
1125
|
+
years: number[];
|
|
1126
|
+
exclude: {
|
|
1127
|
+
year: number;
|
|
1128
|
+
months: number[];
|
|
1129
|
+
}[];
|
|
1130
|
+
};
|
|
1122
1131
|
};
|
|
1123
|
-
declare function getMonthCalendarProps({ year,
|
|
1132
|
+
declare function getMonthCalendarProps({ year, data, value, daysFormat }: CalendarMonthProps): any;
|
|
1124
1133
|
|
|
1125
1134
|
declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
1126
1135
|
declare const hexToRgb: (hex: string) => {
|
|
@@ -1412,12 +1421,22 @@ type MonthSelectorProps = {
|
|
|
1412
1421
|
name?: string;
|
|
1413
1422
|
value?: string;
|
|
1414
1423
|
defaultValue?: string;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1424
|
+
data: {
|
|
1425
|
+
years: number[];
|
|
1426
|
+
year: number;
|
|
1427
|
+
selected: boolean;
|
|
1428
|
+
exclude: {
|
|
1429
|
+
year: number;
|
|
1430
|
+
months: number[];
|
|
1431
|
+
}[];
|
|
1432
|
+
};
|
|
1433
|
+
daysFormat?: {
|
|
1434
|
+
months?: string[];
|
|
1435
|
+
value?: string;
|
|
1436
|
+
month?: string;
|
|
1437
|
+
};
|
|
1438
|
+
onNext?: (value: string) => void;
|
|
1439
|
+
onLast?: (value: string) => void;
|
|
1421
1440
|
onChange?: (e: any, value: string) => void;
|
|
1422
1441
|
propsComponent?: {
|
|
1423
1442
|
control?: Omit<React$1.ComponentProps<typeof Input>, 'value' | 'onChange'>;
|
|
@@ -1437,6 +1456,14 @@ type MonthSelectorProps = {
|
|
|
1437
1456
|
svg?: React$1.CSSProperties;
|
|
1438
1457
|
color?: keyof Theme['colors'];
|
|
1439
1458
|
};
|
|
1459
|
+
text?: Omit<TextProps, 'children'> & {
|
|
1460
|
+
button?: React$1.CSSProperties;
|
|
1461
|
+
};
|
|
1462
|
+
container?: {
|
|
1463
|
+
color?: keyof Theme['colors'];
|
|
1464
|
+
ui?: UIProps;
|
|
1465
|
+
style?: React$1.CSSProperties;
|
|
1466
|
+
};
|
|
1440
1467
|
};
|
|
1441
1468
|
};
|
|
1442
1469
|
declare const MonthSelector: React$1.FC<MonthSelectorProps>;
|
|
@@ -1619,6 +1646,44 @@ type PendingProps = {
|
|
|
1619
1646
|
};
|
|
1620
1647
|
declare const Pending: React.FC<PendingProps>;
|
|
1621
1648
|
|
|
1649
|
+
type PickerChangeEvent = {
|
|
1650
|
+
event: React$1.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1651
|
+
target: {
|
|
1652
|
+
name?: string;
|
|
1653
|
+
value: string;
|
|
1654
|
+
};
|
|
1655
|
+
currentTarget: {
|
|
1656
|
+
name?: string;
|
|
1657
|
+
value: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
type PickerProps = {
|
|
1661
|
+
children?: React$1.ReactNode;
|
|
1662
|
+
error?: boolean;
|
|
1663
|
+
label?: string;
|
|
1664
|
+
name?: string;
|
|
1665
|
+
disabled?: boolean;
|
|
1666
|
+
variant?: ControlProps['variant'];
|
|
1667
|
+
color?: keyof Theme['colors'];
|
|
1668
|
+
propsComponent?: {
|
|
1669
|
+
control?: Omit<ControlProps, 'children'>;
|
|
1670
|
+
wrapper?: {
|
|
1671
|
+
ui?: UIProps;
|
|
1672
|
+
style?: React$1.CSSProperties;
|
|
1673
|
+
};
|
|
1674
|
+
icon?: {
|
|
1675
|
+
style?: React$1.CSSProperties;
|
|
1676
|
+
component?: React$1.ReactNode;
|
|
1677
|
+
color?: keyof Theme['colors'];
|
|
1678
|
+
};
|
|
1679
|
+
label?: Omit<LabelProps, 'text'>;
|
|
1680
|
+
};
|
|
1681
|
+
value?: string;
|
|
1682
|
+
onChange?: (e: PickerChangeEvent, value: string) => void;
|
|
1683
|
+
closeOnSelect?: boolean;
|
|
1684
|
+
};
|
|
1685
|
+
declare const Picker: React$1.FC<PickerProps>;
|
|
1686
|
+
|
|
1622
1687
|
type SelectorChangeEvent = {
|
|
1623
1688
|
event: React$1.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1624
1689
|
target: {
|
|
@@ -1838,4 +1903,4 @@ declare const breakUp: (bp: number) => string;
|
|
|
1838
1903
|
declare const breakDown: (bp: number) => string;
|
|
1839
1904
|
declare function useBreakpoint(queryInput: QueryInput): boolean;
|
|
1840
1905
|
|
|
1841
|
-
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconCalendar, IconClose, IconDown, IconLeft, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|
|
1906
|
+
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconCalendar, IconClose, IconDown, IconLeft, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, Picker, type PickerChangeEvent, type PickerProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1114,13 +1114,22 @@ type CalendarComponentProps = {
|
|
|
1114
1114
|
declare function getMonthCalendar(year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any): CalendarComponentProps;
|
|
1115
1115
|
type CalendarMonthProps = {
|
|
1116
1116
|
year: number;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1117
|
+
value?: string | null;
|
|
1118
|
+
daysFormat?: {
|
|
1119
|
+
month?: string;
|
|
1120
|
+
months?: string[];
|
|
1121
|
+
value?: string;
|
|
1122
|
+
};
|
|
1123
|
+
data: {
|
|
1124
|
+
selected: boolean;
|
|
1125
|
+
years: number[];
|
|
1126
|
+
exclude: {
|
|
1127
|
+
year: number;
|
|
1128
|
+
months: number[];
|
|
1129
|
+
}[];
|
|
1130
|
+
};
|
|
1122
1131
|
};
|
|
1123
|
-
declare function getMonthCalendarProps({ year,
|
|
1132
|
+
declare function getMonthCalendarProps({ year, data, value, daysFormat }: CalendarMonthProps): any;
|
|
1124
1133
|
|
|
1125
1134
|
declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
1126
1135
|
declare const hexToRgb: (hex: string) => {
|
|
@@ -1412,12 +1421,22 @@ type MonthSelectorProps = {
|
|
|
1412
1421
|
name?: string;
|
|
1413
1422
|
value?: string;
|
|
1414
1423
|
defaultValue?: string;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1424
|
+
data: {
|
|
1425
|
+
years: number[];
|
|
1426
|
+
year: number;
|
|
1427
|
+
selected: boolean;
|
|
1428
|
+
exclude: {
|
|
1429
|
+
year: number;
|
|
1430
|
+
months: number[];
|
|
1431
|
+
}[];
|
|
1432
|
+
};
|
|
1433
|
+
daysFormat?: {
|
|
1434
|
+
months?: string[];
|
|
1435
|
+
value?: string;
|
|
1436
|
+
month?: string;
|
|
1437
|
+
};
|
|
1438
|
+
onNext?: (value: string) => void;
|
|
1439
|
+
onLast?: (value: string) => void;
|
|
1421
1440
|
onChange?: (e: any, value: string) => void;
|
|
1422
1441
|
propsComponent?: {
|
|
1423
1442
|
control?: Omit<React$1.ComponentProps<typeof Input>, 'value' | 'onChange'>;
|
|
@@ -1437,6 +1456,14 @@ type MonthSelectorProps = {
|
|
|
1437
1456
|
svg?: React$1.CSSProperties;
|
|
1438
1457
|
color?: keyof Theme['colors'];
|
|
1439
1458
|
};
|
|
1459
|
+
text?: Omit<TextProps, 'children'> & {
|
|
1460
|
+
button?: React$1.CSSProperties;
|
|
1461
|
+
};
|
|
1462
|
+
container?: {
|
|
1463
|
+
color?: keyof Theme['colors'];
|
|
1464
|
+
ui?: UIProps;
|
|
1465
|
+
style?: React$1.CSSProperties;
|
|
1466
|
+
};
|
|
1440
1467
|
};
|
|
1441
1468
|
};
|
|
1442
1469
|
declare const MonthSelector: React$1.FC<MonthSelectorProps>;
|
|
@@ -1619,6 +1646,44 @@ type PendingProps = {
|
|
|
1619
1646
|
};
|
|
1620
1647
|
declare const Pending: React.FC<PendingProps>;
|
|
1621
1648
|
|
|
1649
|
+
type PickerChangeEvent = {
|
|
1650
|
+
event: React$1.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1651
|
+
target: {
|
|
1652
|
+
name?: string;
|
|
1653
|
+
value: string;
|
|
1654
|
+
};
|
|
1655
|
+
currentTarget: {
|
|
1656
|
+
name?: string;
|
|
1657
|
+
value: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
type PickerProps = {
|
|
1661
|
+
children?: React$1.ReactNode;
|
|
1662
|
+
error?: boolean;
|
|
1663
|
+
label?: string;
|
|
1664
|
+
name?: string;
|
|
1665
|
+
disabled?: boolean;
|
|
1666
|
+
variant?: ControlProps['variant'];
|
|
1667
|
+
color?: keyof Theme['colors'];
|
|
1668
|
+
propsComponent?: {
|
|
1669
|
+
control?: Omit<ControlProps, 'children'>;
|
|
1670
|
+
wrapper?: {
|
|
1671
|
+
ui?: UIProps;
|
|
1672
|
+
style?: React$1.CSSProperties;
|
|
1673
|
+
};
|
|
1674
|
+
icon?: {
|
|
1675
|
+
style?: React$1.CSSProperties;
|
|
1676
|
+
component?: React$1.ReactNode;
|
|
1677
|
+
color?: keyof Theme['colors'];
|
|
1678
|
+
};
|
|
1679
|
+
label?: Omit<LabelProps, 'text'>;
|
|
1680
|
+
};
|
|
1681
|
+
value?: string;
|
|
1682
|
+
onChange?: (e: PickerChangeEvent, value: string) => void;
|
|
1683
|
+
closeOnSelect?: boolean;
|
|
1684
|
+
};
|
|
1685
|
+
declare const Picker: React$1.FC<PickerProps>;
|
|
1686
|
+
|
|
1622
1687
|
type SelectorChangeEvent = {
|
|
1623
1688
|
event: React$1.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1624
1689
|
target: {
|
|
@@ -1838,4 +1903,4 @@ declare const breakUp: (bp: number) => string;
|
|
|
1838
1903
|
declare const breakDown: (bp: number) => string;
|
|
1839
1904
|
declare function useBreakpoint(queryInput: QueryInput): boolean;
|
|
1840
1905
|
|
|
1841
|
-
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconCalendar, IconClose, IconDown, IconLeft, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|
|
1906
|
+
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconCalendar, IconClose, IconDown, IconLeft, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, Picker, type PickerChangeEvent, type PickerProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|