@yr3/ui 1.0.3 → 1.0.4
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/Calendar/calendar.css +5 -3
- package/dist/components/Calendar/calendar.css.map +1 -1
- package/dist/index.cjs +260 -95
- package/dist/index.d.cts +61 -20
- package/dist/index.d.ts +61 -20
- package/dist/index.js +258 -95
- package/dist/styles/index.css +92 -3
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1287,6 +1287,24 @@ type ImageProps = {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
declare const Image: React$1.FC<ImageProps>;
|
|
1289
1289
|
|
|
1290
|
+
type Props = {
|
|
1291
|
+
onChange?: (files: File[]) => void;
|
|
1292
|
+
multiple?: boolean;
|
|
1293
|
+
ui?: UIProps;
|
|
1294
|
+
bordered?: boolean;
|
|
1295
|
+
style?: React$1.CSSProperties;
|
|
1296
|
+
component?: React$1.ReactNode;
|
|
1297
|
+
defaultImage?: string;
|
|
1298
|
+
variant?: 'base' | 'outlined';
|
|
1299
|
+
propsComponent?: {
|
|
1300
|
+
box?: Omit<BoxProps, 'children'>;
|
|
1301
|
+
text?: Omit<TextProps, 'children' | 'as'> & {
|
|
1302
|
+
primary?: string;
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
declare const ImageDropzone: React$1.FC<Props>;
|
|
1307
|
+
|
|
1290
1308
|
type LabelProps = {
|
|
1291
1309
|
display?: boolean;
|
|
1292
1310
|
text?: string;
|
|
@@ -1390,25 +1408,6 @@ type PlaceData = {
|
|
|
1390
1408
|
placeId?: string;
|
|
1391
1409
|
};
|
|
1392
1410
|
|
|
1393
|
-
type ModalContainerProps = {
|
|
1394
|
-
children?: React$1.ReactNode;
|
|
1395
|
-
size?: 'sm' | 'md' | 'lg';
|
|
1396
|
-
ui?: UIProps;
|
|
1397
|
-
style?: React$1.CSSProperties;
|
|
1398
|
-
};
|
|
1399
|
-
declare const ModalContainer: React$1.FC<ModalContainerProps>;
|
|
1400
|
-
|
|
1401
|
-
type ModalProps = {
|
|
1402
|
-
open?: boolean;
|
|
1403
|
-
onClose?: () => void;
|
|
1404
|
-
children?: React$1.ReactNode;
|
|
1405
|
-
propsComponent?: {
|
|
1406
|
-
container?: Omit<ModalContainerProps, 'children'>;
|
|
1407
|
-
close?: React$1.ReactNode;
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
declare const Modal: React$1.FC<ModalProps>;
|
|
1411
|
-
|
|
1412
1411
|
declare const bem: (block: string) => (element?: string, modifiers?: Record<string, any>) => string;
|
|
1413
1412
|
declare const bemMerge: (...args: any[]) => string;
|
|
1414
1413
|
|
|
@@ -1453,6 +1452,48 @@ type VariantConfig = {
|
|
|
1453
1452
|
};
|
|
1454
1453
|
declare const createVariants: (config: VariantConfig) => (props?: Record<string, any>) => string;
|
|
1455
1454
|
|
|
1455
|
+
type InputAreaVariant = 'filled' | 'outlined' | 'base' | 'lined';
|
|
1456
|
+
type InputAreaProps = {
|
|
1457
|
+
value?: string;
|
|
1458
|
+
defaultValue?: string;
|
|
1459
|
+
variant?: InputAreaVariant;
|
|
1460
|
+
label?: string;
|
|
1461
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1462
|
+
onChange?: (e: React$1.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
|
|
1463
|
+
rows?: number;
|
|
1464
|
+
color?: keyof Theme['colors'];
|
|
1465
|
+
maxLength?: number;
|
|
1466
|
+
validate?: boolean;
|
|
1467
|
+
rich?: boolean;
|
|
1468
|
+
ui?: UIProps;
|
|
1469
|
+
rounded?: boolean;
|
|
1470
|
+
style?: React$1.CSSProperties;
|
|
1471
|
+
propsComponent?: {
|
|
1472
|
+
label?: LabelProps;
|
|
1473
|
+
helperText?: string;
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
declare const InputArea: React$1.FC<InputAreaProps>;
|
|
1477
|
+
|
|
1478
|
+
type ModalContainerProps = {
|
|
1479
|
+
children?: React$1.ReactNode;
|
|
1480
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1481
|
+
ui?: UIProps;
|
|
1482
|
+
style?: React$1.CSSProperties;
|
|
1483
|
+
};
|
|
1484
|
+
declare const ModalContainer: React$1.FC<ModalContainerProps>;
|
|
1485
|
+
|
|
1486
|
+
type ModalProps = {
|
|
1487
|
+
open?: boolean;
|
|
1488
|
+
onClose?: () => void;
|
|
1489
|
+
children?: React$1.ReactNode;
|
|
1490
|
+
propsComponent?: {
|
|
1491
|
+
container?: Omit<ModalContainerProps, 'children'>;
|
|
1492
|
+
close?: React$1.ReactNode;
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
declare const Modal: React$1.FC<ModalProps>;
|
|
1496
|
+
|
|
1456
1497
|
type NotistackAnchorProps = {
|
|
1457
1498
|
vertical: 'top' | 'bottom';
|
|
1458
1499
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -1598,4 +1639,4 @@ declare const IconDown: React.FC<IconProps>;
|
|
|
1598
1639
|
|
|
1599
1640
|
declare const useClickAway: (ref: any, callback: any) => void;
|
|
1600
1641
|
|
|
1601
|
-
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsVariant, IconClose, IconDown, IconSearch, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, Switch, Text, type TextProps, type TextVariant, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, applyTheme, baseTokens, bem, bemMerge, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getMonthCalendar, initTheme, isEmpty, text, times, uiStyle, useBackdrop, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, useTheme };
|
|
1642
|
+
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, Switch, Text, type TextProps, type TextVariant, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, applyTheme, baseTokens, bem, bemMerge, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getMonthCalendar, initTheme, isEmpty, text, times, uiStyle, useBackdrop, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1287,6 +1287,24 @@ type ImageProps = {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
declare const Image: React$1.FC<ImageProps>;
|
|
1289
1289
|
|
|
1290
|
+
type Props = {
|
|
1291
|
+
onChange?: (files: File[]) => void;
|
|
1292
|
+
multiple?: boolean;
|
|
1293
|
+
ui?: UIProps;
|
|
1294
|
+
bordered?: boolean;
|
|
1295
|
+
style?: React$1.CSSProperties;
|
|
1296
|
+
component?: React$1.ReactNode;
|
|
1297
|
+
defaultImage?: string;
|
|
1298
|
+
variant?: 'base' | 'outlined';
|
|
1299
|
+
propsComponent?: {
|
|
1300
|
+
box?: Omit<BoxProps, 'children'>;
|
|
1301
|
+
text?: Omit<TextProps, 'children' | 'as'> & {
|
|
1302
|
+
primary?: string;
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
declare const ImageDropzone: React$1.FC<Props>;
|
|
1307
|
+
|
|
1290
1308
|
type LabelProps = {
|
|
1291
1309
|
display?: boolean;
|
|
1292
1310
|
text?: string;
|
|
@@ -1390,25 +1408,6 @@ type PlaceData = {
|
|
|
1390
1408
|
placeId?: string;
|
|
1391
1409
|
};
|
|
1392
1410
|
|
|
1393
|
-
type ModalContainerProps = {
|
|
1394
|
-
children?: React$1.ReactNode;
|
|
1395
|
-
size?: 'sm' | 'md' | 'lg';
|
|
1396
|
-
ui?: UIProps;
|
|
1397
|
-
style?: React$1.CSSProperties;
|
|
1398
|
-
};
|
|
1399
|
-
declare const ModalContainer: React$1.FC<ModalContainerProps>;
|
|
1400
|
-
|
|
1401
|
-
type ModalProps = {
|
|
1402
|
-
open?: boolean;
|
|
1403
|
-
onClose?: () => void;
|
|
1404
|
-
children?: React$1.ReactNode;
|
|
1405
|
-
propsComponent?: {
|
|
1406
|
-
container?: Omit<ModalContainerProps, 'children'>;
|
|
1407
|
-
close?: React$1.ReactNode;
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
declare const Modal: React$1.FC<ModalProps>;
|
|
1411
|
-
|
|
1412
1411
|
declare const bem: (block: string) => (element?: string, modifiers?: Record<string, any>) => string;
|
|
1413
1412
|
declare const bemMerge: (...args: any[]) => string;
|
|
1414
1413
|
|
|
@@ -1453,6 +1452,48 @@ type VariantConfig = {
|
|
|
1453
1452
|
};
|
|
1454
1453
|
declare const createVariants: (config: VariantConfig) => (props?: Record<string, any>) => string;
|
|
1455
1454
|
|
|
1455
|
+
type InputAreaVariant = 'filled' | 'outlined' | 'base' | 'lined';
|
|
1456
|
+
type InputAreaProps = {
|
|
1457
|
+
value?: string;
|
|
1458
|
+
defaultValue?: string;
|
|
1459
|
+
variant?: InputAreaVariant;
|
|
1460
|
+
label?: string;
|
|
1461
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1462
|
+
onChange?: (e: React$1.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
|
|
1463
|
+
rows?: number;
|
|
1464
|
+
color?: keyof Theme['colors'];
|
|
1465
|
+
maxLength?: number;
|
|
1466
|
+
validate?: boolean;
|
|
1467
|
+
rich?: boolean;
|
|
1468
|
+
ui?: UIProps;
|
|
1469
|
+
rounded?: boolean;
|
|
1470
|
+
style?: React$1.CSSProperties;
|
|
1471
|
+
propsComponent?: {
|
|
1472
|
+
label?: LabelProps;
|
|
1473
|
+
helperText?: string;
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
declare const InputArea: React$1.FC<InputAreaProps>;
|
|
1477
|
+
|
|
1478
|
+
type ModalContainerProps = {
|
|
1479
|
+
children?: React$1.ReactNode;
|
|
1480
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1481
|
+
ui?: UIProps;
|
|
1482
|
+
style?: React$1.CSSProperties;
|
|
1483
|
+
};
|
|
1484
|
+
declare const ModalContainer: React$1.FC<ModalContainerProps>;
|
|
1485
|
+
|
|
1486
|
+
type ModalProps = {
|
|
1487
|
+
open?: boolean;
|
|
1488
|
+
onClose?: () => void;
|
|
1489
|
+
children?: React$1.ReactNode;
|
|
1490
|
+
propsComponent?: {
|
|
1491
|
+
container?: Omit<ModalContainerProps, 'children'>;
|
|
1492
|
+
close?: React$1.ReactNode;
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
declare const Modal: React$1.FC<ModalProps>;
|
|
1496
|
+
|
|
1456
1497
|
type NotistackAnchorProps = {
|
|
1457
1498
|
vertical: 'top' | 'bottom';
|
|
1458
1499
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -1598,4 +1639,4 @@ declare const IconDown: React.FC<IconProps>;
|
|
|
1598
1639
|
|
|
1599
1640
|
declare const useClickAway: (ref: any, callback: any) => void;
|
|
1600
1641
|
|
|
1601
|
-
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsVariant, IconClose, IconDown, IconSearch, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, Switch, Text, type TextProps, type TextVariant, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, applyTheme, baseTokens, bem, bemMerge, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getMonthCalendar, initTheme, isEmpty, text, times, uiStyle, useBackdrop, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, useTheme };
|
|
1642
|
+
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, Switch, Text, type TextProps, type TextVariant, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, applyTheme, baseTokens, bem, bemMerge, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getMonthCalendar, initTheme, isEmpty, text, times, uiStyle, useBackdrop, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, useTheme };
|