@jordan-mace/chaser-design-system 1.2.6 → 1.2.8
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/Accordion/Accordion.d.ts +5 -6
- package/dist/components/Accordion/Accordion.js +4 -4
- package/dist/components/Alert/Alert.d.ts +2 -1
- package/dist/components/Avatar/Avatar.d.ts +2 -2
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +4 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Card/Card.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.d.ts +145 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapse/Collapse.d.ts +3 -3
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.js +15 -8
- package/dist/components/Container/Container.d.ts +155 -3
- package/dist/components/Divider/Divider.d.ts +3 -2
- package/dist/components/Divider/Divider.js +3 -1
- package/dist/components/Drawer/Drawer.d.ts +4 -2
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +6 -3
- package/dist/components/EmptyState/EmptyState.d.ts +3 -3
- package/dist/components/EmptyState/EmptyState.js +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +3 -2
- package/dist/components/FileUpload/FileUpload.js +8 -4
- package/dist/components/Form/Form.d.ts +2 -2
- package/dist/components/Grid/Grid.d.ts +154 -5
- package/dist/components/Grid/Grid.js +4 -4
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/Kbd/Kbd.d.ts +3 -3
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.js +2 -2
- package/dist/components/List/ListItem.d.ts +3 -2
- package/dist/components/List/ListItem.js +2 -2
- package/dist/components/Modal/Modal.d.ts +4 -2
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Navbar/Navbar.d.ts +2 -1
- package/dist/components/Navbar/NavbarItem.d.ts +2 -1
- package/dist/components/NumberInput/NumberInput.d.ts +3 -2
- package/dist/components/Pagination/Pagination.d.ts +4 -2
- package/dist/components/Pagination/Pagination.js +6 -3
- package/dist/components/Popover/Popover.d.ts +3 -2
- package/dist/components/Popover/Popover.js +2 -1
- package/dist/components/Progress/Progress.d.ts +3 -2
- package/dist/components/Radio/Radio.d.ts +145 -0
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +3 -3
- package/dist/components/Select/Select.d.ts +145 -0
- package/dist/components/Separator/Separator.d.ts +4 -3
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -2
- package/dist/components/Spinner/Spinner.d.ts +3 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stack/Stack.d.ts +156 -5
- package/dist/components/Stepper/Stepper.d.ts +3 -2
- package/dist/components/Table/Table.d.ts +3 -4
- package/dist/components/Table/Table.js +6 -6
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Text/Header.d.ts +2 -2
- package/dist/components/Text/P.d.ts +2 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -1
- package/dist/components/Toggle/Toggle.d.ts +3 -2
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -4
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +21 -16
- package/src/components/Alert/Alert.tsx +11 -7
- package/src/components/Avatar/Avatar.tsx +16 -14
- package/src/components/Badge/Badge.tsx +8 -6
- package/src/components/Breadcrumb/Breadcrumb.tsx +7 -10
- package/src/components/Button/Button.tsx +9 -11
- package/src/components/Card/Card.tsx +8 -10
- package/src/components/Checkbox/Checkbox.tsx +11 -8
- package/src/components/Collapse/Collapse.tsx +12 -9
- package/src/components/Combobox/Combobox.tsx +60 -31
- package/src/components/Container/Container.tsx +4 -3
- package/src/components/Divider/Divider.tsx +9 -5
- package/src/components/Drawer/Drawer.tsx +20 -13
- package/src/components/DropdownMenu/DropdownMenu.tsx +37 -15
- package/src/components/EmptyState/EmptyState.tsx +9 -12
- package/src/components/FileUpload/FileUpload.tsx +61 -45
- package/src/components/Form/Form.tsx +6 -8
- package/src/components/Grid/Grid.tsx +18 -13
- package/src/components/Icon/Icon.tsx +7 -6
- package/src/components/Input/Input.tsx +7 -8
- package/src/components/Kbd/Kbd.tsx +5 -4
- package/src/components/List/List.tsx +6 -2
- package/src/components/List/ListItem.tsx +6 -2
- package/src/components/Modal/Modal.tsx +16 -5
- package/src/components/Navbar/Navbar.tsx +2 -1
- package/src/components/Navbar/NavbarItem.tsx +2 -1
- package/src/components/NumberInput/NumberInput.tsx +29 -22
- package/src/components/Pagination/Pagination.tsx +39 -28
- package/src/components/Popover/Popover.tsx +37 -21
- package/src/components/Progress/Progress.tsx +39 -38
- package/src/components/Radio/Radio.tsx +12 -6
- package/src/components/ScrollArea/ScrollArea.tsx +9 -10
- package/src/components/Select/Select.tsx +12 -7
- package/src/components/Separator/Separator.tsx +8 -14
- package/src/components/Skeleton/Skeleton.tsx +11 -13
- package/src/components/Spinner/Spinner.tsx +15 -11
- package/src/components/Stack/Stack.tsx +34 -15
- package/src/components/Stepper/Stepper.tsx +19 -17
- package/src/components/Table/Table.tsx +31 -21
- package/src/components/Tabs/Tabs.tsx +14 -10
- package/src/components/Tag/Tag.tsx +8 -7
- package/src/components/Text/Header.tsx +6 -5
- package/src/components/Text/P.tsx +5 -4
- package/src/components/TextArea/TextArea.tsx +7 -8
- package/src/components/Toggle/Toggle.tsx +16 -7
- package/src/components/Tooltip/Tooltip.tsx +16 -11
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +7 -8
- package/src/styles/reset.css.ts +41 -27
|
@@ -7,19 +7,19 @@ const gapMap = {
|
|
|
7
7
|
medium: '1rem',
|
|
8
8
|
large: '2rem',
|
|
9
9
|
};
|
|
10
|
-
const Grid = forwardRef(({ columns, gap = 'medium', minChildWidth, children,
|
|
10
|
+
const Grid = forwardRef(({ columns, gap = 'medium', minChildWidth, children, ...props }, ref) => {
|
|
11
11
|
const gapValue = gap;
|
|
12
12
|
const gridStyle = {
|
|
13
13
|
display: 'grid',
|
|
14
14
|
gap: gapMap[gapValue],
|
|
15
15
|
};
|
|
16
16
|
if (minChildWidth) {
|
|
17
|
-
gridStyle.gridTemplateColumns = `repeat(auto-fit, minmax(${minChildWidth},
|
|
17
|
+
gridStyle.gridTemplateColumns = `repeat(auto-fit, minmax(${minChildWidth},1fr))`;
|
|
18
18
|
}
|
|
19
19
|
else if (columns) {
|
|
20
|
-
gridStyle.gridTemplateColumns = `repeat(${columns},
|
|
20
|
+
gridStyle.gridTemplateColumns = `repeat(${columns},1fr)`;
|
|
21
21
|
}
|
|
22
|
-
return (_jsx(Box, { ref: ref, className: className, style: { ...gridStyle, ...style }, children: children }));
|
|
22
|
+
return (_jsx(Box, { ref: ref, className: props.className, style: { ...gridStyle, ...props.style }, ...props, children: children }));
|
|
23
23
|
});
|
|
24
24
|
Grid.displayName = 'Grid';
|
|
25
25
|
export default Grid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & Sprinkles & {
|
|
3
4
|
name?: string;
|
|
4
5
|
children?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
6
|
color?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const IconComponent: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & Sprinkles & {
|
|
3
4
|
label?: string;
|
|
4
5
|
fullWidth?: boolean;
|
|
5
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
export type KbdProps = React.HTMLAttributes<HTMLElement> & Sprinkles & {
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
declare const Kbd: ({ children, className, ...props }: KbdProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Kbd;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
declare const List: ({ children, ...props }: {
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
} & Sprinkles) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export default List;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { list } from './styles.css';
|
|
3
3
|
import Box from '../Box';
|
|
4
|
-
const List = ({ children }) => {
|
|
5
|
-
return (_jsx(Box, { as: "ul", className: list, children: children }));
|
|
4
|
+
const List = ({ children, ...props }) => {
|
|
5
|
+
return (_jsx(Box, { as: "ul", className: list, ...props, children: children }));
|
|
6
6
|
};
|
|
7
7
|
export default List;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
declare const ListItem: ({ children, ...props }: {
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
} & Sprinkles) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export default ListItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { listItem } from './styles.css';
|
|
3
3
|
import Box from '../Box';
|
|
4
|
-
const ListItem = ({ children }) => {
|
|
5
|
-
return (_jsx(Box, { as: "li", className: listItem, children: children }));
|
|
4
|
+
const ListItem = ({ children, ...props }) => {
|
|
5
|
+
return (_jsx(Box, { as: "li", className: listItem, ...props, children: children }));
|
|
6
6
|
};
|
|
7
7
|
export default ListItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
2
3
|
export type ModalSize = 'small' | 'medium' | 'large' | 'full';
|
|
3
|
-
|
|
4
|
+
type ModalPropsType = React.HTMLAttributes<HTMLDialogElement> & {
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
title?: string;
|
|
@@ -8,6 +9,7 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
footer?: React.ReactNode;
|
|
10
11
|
showCloseButton?: boolean;
|
|
11
|
-
}
|
|
12
|
+
};
|
|
13
|
+
export type ModalProps = ModalPropsType & Sprinkles;
|
|
12
14
|
declare const Modal: ({ isOpen, onClose, title, size, children, footer, showCloseButton, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default Modal;
|
|
@@ -30,6 +30,6 @@ const Modal = ({ isOpen, onClose, title, size = 'medium', children, footer, show
|
|
|
30
30
|
if (e.target === dialogRef.current) {
|
|
31
31
|
onClose();
|
|
32
32
|
}
|
|
33
|
-
}, ...props, children: [title && (_jsxs(Box, { as: "div", className: modalHeader, children: [_jsx(Box, { as: "h2", className: modalTitle, children: title }), showCloseButton && (_jsx(Box, { as: "button", className: modalCloseButton, onClick: onClose, "aria-label": "Close modal", type: "button", children: "\u00D7" }))] })), _jsx(Box, { as: "div", className: modalBody, children: children }), footer && _jsx(Box, { as: "div", className: modalFooter, children: footer })] }));
|
|
33
|
+
}, ...props, children: [title && (_jsxs(Box, { as: "div", className: modalHeader, children: [_jsx(Box, { as: "h2", className: modalTitle, children: title }), showCloseButton && (_jsx(Box, { as: "button", className: modalCloseButton, onClick: onClose, "aria-label": "Close modal", type: "button", children: "\u00D7" }))] })), _jsx(Box, { as: "div", className: modalBody, children: children }), footer && (_jsx(Box, { as: "div", className: modalFooter, children: footer }))] }));
|
|
34
34
|
};
|
|
35
35
|
export default Modal;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
type NavbarProps = React.HTMLAttributes<HTMLElement> & Sprinkles & {
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
};
|
|
5
6
|
declare const Navbar: (props: NavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
type NavbarItemProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
};
|
|
5
6
|
declare const NavbarItem: (props: NavbarItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
2
3
|
export type NumberInputPosition = 'right' | 'left';
|
|
3
|
-
export
|
|
4
|
+
export type NumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'min' | 'max'> & Sprinkles & {
|
|
4
5
|
label?: string;
|
|
5
6
|
value?: number | '';
|
|
6
7
|
onChange?: (value: number | '') => void;
|
|
@@ -15,6 +16,6 @@ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
15
16
|
fullWidth?: boolean;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
allowEmpty?: boolean;
|
|
18
|
-
}
|
|
19
|
+
};
|
|
19
20
|
declare const NumberInput: ({ label, value, onChange, min, max, step, stepperPosition, placeholder, hint, error, errorMessage, fullWidth, disabled, allowEmpty, className, ...props }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export default NumberInput;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
export type PaginationProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
2
4
|
currentPage: number;
|
|
3
5
|
totalPages: number;
|
|
4
6
|
onPageChange: (page: number) => void;
|
|
@@ -6,5 +8,5 @@ export type PaginationProps = {
|
|
|
6
8
|
showFirstLast?: boolean;
|
|
7
9
|
showPrevNext?: boolean;
|
|
8
10
|
};
|
|
9
|
-
declare const Pagination: ({ currentPage, totalPages, onPageChange, siblingCount, showFirstLast, showPrevNext, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, siblingCount, showFirstLast, showPrevNext, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default Pagination;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { paginationContainer, pageButton, pageButtonVariants, ellipsis } from './styles.css';
|
|
3
|
+
import { paginationContainer, pageButton, pageButtonVariants, ellipsis, } from './styles.css';
|
|
4
4
|
import Box from '../Box';
|
|
5
|
-
const Pagination = ({ currentPage, totalPages, onPageChange, siblingCount = 1, showFirstLast = true, showPrevNext = true, }) => {
|
|
5
|
+
const Pagination = ({ currentPage, totalPages, onPageChange, siblingCount = 1, showFirstLast = true, showPrevNext = true, ...props }) => {
|
|
6
6
|
const generatePageNumbers = () => {
|
|
7
7
|
const pages = [];
|
|
8
8
|
const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);
|
|
@@ -42,6 +42,9 @@ const Pagination = ({ currentPage, totalPages, onPageChange, siblingCount = 1, s
|
|
|
42
42
|
return pages;
|
|
43
43
|
};
|
|
44
44
|
const pages = generatePageNumbers();
|
|
45
|
-
|
|
45
|
+
const { className, ...restProps } = props;
|
|
46
|
+
return (_jsxs(Box, { className: clsx(paginationContainer, className), ...restProps, children: [showFirstLast && (_jsx(Box, { as: "button", className: clsx(pageButton, pageButtonVariants.default), onClick: () => onPageChange(1), disabled: currentPage === 1, children: '<<' })), showPrevNext && (_jsx(Box, { as: "button", className: clsx(pageButton, pageButtonVariants.default), onClick: () => onPageChange(currentPage - 1), disabled: currentPage === 1, children: '<' })), pages.map((page, index) => typeof page === 'number' ? (_jsx(Box, { as: "button", className: clsx(pageButton, page === currentPage
|
|
47
|
+
? pageButtonVariants.active
|
|
48
|
+
: pageButtonVariants.default), onClick: () => onPageChange(page), children: page }, `page-${page}`)) : (_jsx(Box, { className: ellipsis, children: "..." }, `${page}-${index}`))), showPrevNext && (_jsx(Box, { as: "button", className: clsx(pageButton, pageButtonVariants.default), onClick: () => onPageChange(currentPage + 1), disabled: currentPage === totalPages, children: '>' })), showFirstLast && (_jsx(Box, { as: "button", className: clsx(pageButton, pageButtonVariants.default), onClick: () => onPageChange(totalPages), disabled: currentPage === totalPages, children: '>>' }))] }));
|
|
46
49
|
};
|
|
47
50
|
export default Pagination;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
2
3
|
export type PopoverPosition = 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
3
4
|
export type PopoverTriggerType = 'click' | 'hover';
|
|
4
|
-
export
|
|
5
|
+
export type PopoverProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
5
6
|
trigger: React.ReactNode;
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
position?: PopoverPosition;
|
|
@@ -13,6 +14,6 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
13
14
|
closeOnEscape?: boolean;
|
|
14
15
|
defaultOpen?: boolean;
|
|
15
16
|
onOpenChange?: (isOpen: boolean) => void;
|
|
16
|
-
}
|
|
17
|
+
};
|
|
17
18
|
declare const Popover: ({ trigger, children, position, title, footer, showArrow, triggerType, closeOnClickOutside, closeOnEscape, defaultOpen, onOpenChange, className, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default Popover;
|
|
@@ -13,7 +13,8 @@ const Popover = ({ trigger, children, position = 'bottom', title, footer, showAr
|
|
|
13
13
|
if (!closeOnClickOutside)
|
|
14
14
|
return;
|
|
15
15
|
const handleClickOutside = (event) => {
|
|
16
|
-
if (containerRef.current &&
|
|
16
|
+
if (containerRef.current &&
|
|
17
|
+
!containerRef.current.contains(event.target)) {
|
|
17
18
|
setIsOpen(false);
|
|
18
19
|
}
|
|
19
20
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
+
type ProgressProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
2
4
|
value: number;
|
|
3
5
|
max?: number;
|
|
4
6
|
label?: string;
|
|
5
7
|
showPercentage?: boolean;
|
|
6
8
|
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
7
|
-
className?: string;
|
|
8
9
|
};
|
|
9
10
|
declare const Progress: ({ value, max, label, showPercentage, variant, className, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default Progress;
|
|
@@ -8,6 +8,151 @@ type RadioGroupProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
10
|
declare const RadioComponent: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "type" | "onChange"> & {
|
|
11
|
+
display?: ("flex" | "none" | "block" | "inline" | {
|
|
12
|
+
mobile?: "flex" | "none" | "block" | "inline";
|
|
13
|
+
tablet?: "flex" | "none" | "block" | "inline";
|
|
14
|
+
desktop?: "flex" | "none" | "block" | "inline";
|
|
15
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "flex" | "none" | "block" | "inline">;
|
|
16
|
+
width?: ("auto" | "100%" | "50%" | "25%" | {
|
|
17
|
+
mobile?: "auto" | "100%" | "50%" | "25%";
|
|
18
|
+
tablet?: "auto" | "100%" | "50%" | "25%";
|
|
19
|
+
desktop?: "auto" | "100%" | "50%" | "25%";
|
|
20
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
|
|
21
|
+
height?: ("auto" | "100%" | "50%" | "25%" | {
|
|
22
|
+
mobile?: "auto" | "100%" | "50%" | "25%";
|
|
23
|
+
tablet?: "auto" | "100%" | "50%" | "25%";
|
|
24
|
+
desktop?: "auto" | "100%" | "50%" | "25%";
|
|
25
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
|
|
26
|
+
flexDirection?: ("column" | "row" | {
|
|
27
|
+
mobile?: "column" | "row";
|
|
28
|
+
tablet?: "column" | "row";
|
|
29
|
+
desktop?: "column" | "row";
|
|
30
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "column" | "row">;
|
|
31
|
+
justifyContent?: ("space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | {
|
|
32
|
+
mobile?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
33
|
+
tablet?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
34
|
+
desktop?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
35
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start">;
|
|
36
|
+
alignItems?: ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
37
|
+
mobile?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
38
|
+
tablet?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
39
|
+
desktop?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
40
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start">;
|
|
41
|
+
paddingTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
42
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
43
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
44
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
45
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
46
|
+
paddingBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
47
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
48
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
49
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
50
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
51
|
+
paddingLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
52
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
53
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
54
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
55
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
56
|
+
paddingRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
57
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
58
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
59
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
60
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
61
|
+
marginLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
62
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
63
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
64
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
65
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
66
|
+
marginRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
67
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
68
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
69
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
70
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
71
|
+
marginTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
72
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
73
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
74
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
75
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
76
|
+
marginBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
77
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
78
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
79
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
80
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
81
|
+
borderLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
82
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
83
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
84
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
85
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
86
|
+
borderRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
87
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
88
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
89
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
90
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
91
|
+
borderTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
92
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
93
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
94
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
95
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
96
|
+
borderBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
97
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
98
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
99
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
100
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
101
|
+
borderRadius?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
102
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
103
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
104
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
105
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
106
|
+
gap?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
107
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
108
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
109
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
110
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
111
|
+
padding?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
112
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
113
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
114
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
115
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
116
|
+
border?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
117
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
118
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
119
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
120
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
121
|
+
paddingX?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
122
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
123
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
124
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
125
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
126
|
+
paddingY?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
127
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
128
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
129
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
130
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
131
|
+
marginX?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
132
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
133
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
134
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
135
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
136
|
+
marginY?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
137
|
+
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
138
|
+
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
139
|
+
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
140
|
+
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
141
|
+
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start"> | ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
142
|
+
mobile?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
143
|
+
tablet?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
144
|
+
desktop?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
145
|
+
});
|
|
146
|
+
} & {
|
|
147
|
+
color?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
|
|
148
|
+
lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
149
|
+
darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
150
|
+
};
|
|
151
|
+
background?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
|
|
152
|
+
lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
153
|
+
darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
154
|
+
};
|
|
155
|
+
} & {
|
|
11
156
|
label?: string;
|
|
12
157
|
value: string;
|
|
13
158
|
} & React.RefAttributes<HTMLInputElement>> & {
|
|
@@ -13,7 +13,7 @@ const Radio = forwardRef(({ label, className, value, ...props }, ref) => {
|
|
|
13
13
|
context.onChange(value);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
return (_jsxs(Box, { as: "label", className: clsx(radioContainer, className), display: "flex", alignItems: "center", gap: "small", cursor: "pointer", style: { userSelect: 'none' }, children: [_jsx(Box, { as: "input", type: "radio", ref: ref, name: name, value: value, checked: isChecked, onChange: handleChange, className: radioInput, ...props }), label && _jsx(Box, { as: "span", className: radioLabel, children: label })] }));
|
|
16
|
+
return (_jsxs(Box, { as: "label", className: clsx(radioContainer, className), display: "flex", alignItems: "center", gap: "small", cursor: "pointer", style: { userSelect: 'none' }, children: [_jsx(Box, { as: "input", type: "radio", ref: ref, name: name, value: value, checked: isChecked, onChange: handleChange, className: radioInput, ...props }), label && (_jsx(Box, { as: "span", className: radioLabel, children: label }))] }));
|
|
17
17
|
});
|
|
18
18
|
Radio.displayName = 'Radio';
|
|
19
19
|
const RadioGroup = ({ children, name, value, onChange, layout = 'vertical', className, }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
2
3
|
export type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
|
|
3
|
-
export
|
|
4
|
+
export type ScrollAreaProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
orientation?: ScrollAreaOrientation;
|
|
6
7
|
maxHeight?: string | number;
|
|
7
8
|
maxWidth?: string | number;
|
|
8
|
-
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare const ScrollArea: ({ children, orientation, maxHeight, maxWidth, className, ...props }: ScrollAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default ScrollArea;
|