@northlight/ui 2.22.1 → 2.22.2
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/es/northlight.d.ts +142 -63
- package/dist/es/northlight.js +2948 -2649
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +2945 -2646
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +4 -4
package/dist/es/northlight.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccordionProps, AccordionButtonProps, AccordionPanelProps, AccordionItemProps, StackDirection, AvatarProps as AvatarProps$1, AlertProps as AlertProps$1, AspectRatioProps, StackProps, BadgeProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, IconButtonProps as IconButtonProps$1, PopoverProps, BoxProps, InputProps, FlexProps, TagProps as TagProps$1, IconProps as IconProps$1, SystemStyleObject, HeadingProps as HeadingProps$1, TextProps, FormLabelProps as FormLabelProps$1, Heading, Text, ModalProps as ModalProps$1, ResponsiveValue, MenuProps as MenuProps$1, NumberInputProps as NumberInputProps$1, PinInputProps as PinInputProps$1, ProgressProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SpinnerProps as SpinnerProps$1, SwitchProps as SwitchProps$1, TableProps as TableProps$1, TabsProps as TabsProps$1, TabPanelProps as TabPanelProps$1, TextareaProps as TextareaProps$1, UseToastOptions as UseToastOptions$1, TooltipProps, FadeProps as FadeProps$1, ScaleFadeProps as ScaleFadeProps$1, SlideProps as SlideProps$1, SlideFadeProps as SlideFadeProps$1, CollapseProps as CollapseProps$1, ModalBodyProps, TabListProps, TabProps, LinkProps, GridProps, GridItemProps, EditableProps as EditableProps$1 } from '@chakra-ui/react';
|
|
1
|
+
import { AccordionProps, AccordionButtonProps, AccordionPanelProps, AccordionItemProps, StackDirection, AvatarProps as AvatarProps$1, AlertProps as AlertProps$1, AspectRatioProps, StackProps, BadgeProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, IconButtonProps as IconButtonProps$1, PopoverProps, BoxProps, InputProps, CenterProps, FlexProps, TagProps as TagProps$1, IconProps as IconProps$1, SystemStyleObject, HeadingProps as HeadingProps$1, TextProps, FormLabelProps as FormLabelProps$1, Heading, Text, ModalProps as ModalProps$1, ResponsiveValue, MenuProps as MenuProps$1, NumberInputProps as NumberInputProps$1, PinInputProps as PinInputProps$1, ProgressProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SpinnerProps as SpinnerProps$1, SwitchProps as SwitchProps$1, TableProps as TableProps$1, TabsProps as TabsProps$1, TabPanelProps as TabPanelProps$1, TextareaProps as TextareaProps$1, UseToastOptions as UseToastOptions$1, TooltipProps, FadeProps as FadeProps$1, ScaleFadeProps as ScaleFadeProps$1, SlideProps as SlideProps$1, SlideFadeProps as SlideFadeProps$1, CollapseProps as CollapseProps$1, ModalBodyProps, TabListProps, TabProps, LinkProps, GridProps, GridItemProps, EditableProps as EditableProps$1 } from '@chakra-ui/react';
|
|
2
2
|
export { AbsoluteCenter, AccordionButtonProps, AccordionIcon, AccordionIconProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AlertDescription, AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertIcon, AlertTitle, AspectRatioProps, BadgeProps, Box, BoxProps, BreadcrumbItem as Breadcrumb, BreadcrumbLink, BreadcrumbSeparator, Breadcrumb as Breadcrumbs, ButtonGroup, Card, CardBody, CardFooter, CardHeader, Center, Modal as ChakraModal, CheckboxGroup, Circle, CircularProgress, CircularProgressLabel, CloseButton, Code, Container, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, Editable, EditableInput, EditablePreview, Flex, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, Heading, Hide, Highlight, Image, Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Kbd, Link, LinkBox, LinkOverlay, List, ListIcon, ListItem, MenuButton, MenuCommand, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, NumberDecrementStepper, NumberIncrementStepper, OrderedList, PinInputField, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RangeSlider, RangeSliderFilledTrack, RangeSliderMark, RangeSliderThumb, RangeSliderTrack, Show, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, Slider, SliderFilledTrack, SliderMark, SliderThumb, SliderTrack, Spacer, Stack, StackDivider, StackProps, Stat, StatArrow, StatGroup, StatHelpText, StatLabel, StatNumber, TabIndicator as StepIndicator, TabPanels as StepPanels, Tab, TabIndicator, TabList, TabPanels, TableBodyProps, TableCaption, TableCaptionProps, TableCellProps, TableColumnHeaderProps, TableContainer, TableContainerProps, TableFooterProps, TableHeadProps, TableRowProps, TagCloseButton, TagLabel, TagLeftIcon, TagRightIcon, Tbody, Td, Text, Tfoot, Th, Thead, Tr, UnorderedList, VStack, VisuallyHidden, VisuallyHiddenInput, Wrap, WrapItem, keyframes, useBoolean, useBreakpoint, useBreakpointValue, useClipboard, useControllableProp, useControllableState, useDisclosure, useEditable, useEditableControls, useEditableState, useInterval, useMediaQuery, useMergeRefs, useNumberInput, useOutsideClick, usePrefersReducedMotion, useRadio, useRadioGroup, useTab, useTabs, useTheme, useToken } from '@chakra-ui/react';
|
|
3
3
|
import { Props, GroupBase, MultiValue, SingleValue, ActionMeta, MenuListProps, SelectInstance, ChakraStylesConfig } from 'chakra-react-select';
|
|
4
4
|
export { AsyncCreatableSelect, AsyncSelect, Select as ChakraReactSelect, CreatableSelect, MultiValue, SingleValue } from 'chakra-react-select';
|
|
@@ -328,7 +328,7 @@ interface OrganizationLogoProps extends AvatarProps$1 {
|
|
|
328
328
|
*/
|
|
329
329
|
declare const OrganizationLogo: ({ name, image, variant, ...rest }: OrganizationLogoProps) => JSX.Element;
|
|
330
330
|
|
|
331
|
-
type AlertVariants = 'success' | 'warning' | 'error' | 'info';
|
|
331
|
+
type AlertVariants = 'success' | 'warning' | 'error' | 'info' | 'danger' | 'ai' | 'default' | 'ghost';
|
|
332
332
|
interface AlertProps extends AlertProps$1 {
|
|
333
333
|
variant?: AlertVariants;
|
|
334
334
|
}
|
|
@@ -1025,7 +1025,7 @@ declare const DatePickerField: (props: DatePickerFieldProps & React__default.Ref
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
declare const DateRangePickerField: (props: DateRangePickerFieldProps & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1027
1027
|
|
|
1028
|
-
interface IntentButtonProps {
|
|
1028
|
+
interface IntentButtonProps extends CenterProps {
|
|
1029
1029
|
icon?: ComponentType<any>;
|
|
1030
1030
|
timeout?: number;
|
|
1031
1031
|
onTimeout?: () => void;
|
|
@@ -1063,7 +1063,7 @@ interface IntentButtonProps {
|
|
|
1063
1063
|
*?)
|
|
1064
1064
|
*
|
|
1065
1065
|
*/
|
|
1066
|
-
declare const IntentButton: ({ icon, timeout, ringColor, onTimeout, tooltipText, "aria-label": ariaLabel, }: IntentButtonProps) => JSX.Element;
|
|
1066
|
+
declare const IntentButton: ({ icon, timeout, ringColor, onTimeout, tooltipText, "aria-label": ariaLabel, ...rest }: IntentButtonProps) => JSX.Element;
|
|
1067
1067
|
|
|
1068
1068
|
interface ToolboxProps extends Omit<FlexProps, 'direction'> {
|
|
1069
1069
|
isResizable?: boolean;
|
|
@@ -1310,17 +1310,20 @@ type ChildrenType$1<PropType = any, PropTypeTwo = any> = ((props: PropType, seco
|
|
|
1310
1310
|
type MultiItemType<itemKeys extends string | number | symbol> = Record<itemKeys, string[]>;
|
|
1311
1311
|
interface DroppableProps extends UseDroppableArguments {
|
|
1312
1312
|
children?: ((props: any) => JSX.Element | JSX.Element[]) | (JSX.Element | JSX.Element[]);
|
|
1313
|
+
'data-testid'?: string;
|
|
1313
1314
|
}
|
|
1314
1315
|
interface DraggableProps extends UseDraggableArguments {
|
|
1315
1316
|
itemLabel?: string;
|
|
1316
1317
|
children?: ChildrenType$1<ListenersType>;
|
|
1317
1318
|
disableDrag?: boolean;
|
|
1319
|
+
'data-testid'?: string;
|
|
1318
1320
|
}
|
|
1319
1321
|
interface SortableItemProps extends UseSortableArguments {
|
|
1320
1322
|
children?: ChildrenType$1<ListenersType>;
|
|
1321
1323
|
itemLabel?: UniqueIdentifier;
|
|
1322
1324
|
dblClickThreshold?: number;
|
|
1323
1325
|
disableDrag?: boolean;
|
|
1326
|
+
'data-testid'?: string;
|
|
1324
1327
|
}
|
|
1325
1328
|
type MovedItemType<T> = {
|
|
1326
1329
|
item: T;
|
|
@@ -1416,7 +1419,7 @@ interface SortableContainerProps {
|
|
|
1416
1419
|
*
|
|
1417
1420
|
*
|
|
1418
1421
|
*/
|
|
1419
|
-
declare const Draggable: ({ itemLabel, children, disableDrag, ...rest }: DraggableProps) => JSX.Element;
|
|
1422
|
+
declare const Draggable: ({ itemLabel, children, disableDrag, "data-testid": dataTestId, ...rest }: DraggableProps) => JSX.Element;
|
|
1420
1423
|
|
|
1421
1424
|
/**
|
|
1422
1425
|
* Wrapper where you can style a container to place draggable elements
|
|
@@ -1454,7 +1457,7 @@ declare const Draggable: ({ itemLabel, children, disableDrag, ...rest }: Draggab
|
|
|
1454
1457
|
* ?)
|
|
1455
1458
|
*
|
|
1456
1459
|
*/
|
|
1457
|
-
declare const Droppable: ({ children, ...rest }: DroppableProps) => JSX.Element;
|
|
1460
|
+
declare const Droppable: ({ children, "data-testid": testId, ...rest }: DroppableProps) => JSX.Element;
|
|
1458
1461
|
|
|
1459
1462
|
/**
|
|
1460
1463
|
* Wrapper that provides context for sortable elements using DnD-kit
|
|
@@ -1477,7 +1480,7 @@ declare const Sortable: (props: SortableContextProps) => JSX.Element;
|
|
|
1477
1480
|
* @example
|
|
1478
1481
|
* (? <SortableItem id="sortable-1"/> ?)
|
|
1479
1482
|
* */
|
|
1480
|
-
declare const SortableItem: ({ itemLabel, dblClickThreshold, children, disableDrag, ...rest }: SortableItemProps) => JSX.Element;
|
|
1483
|
+
declare const SortableItem: ({ itemLabel, dblClickThreshold, children, disableDrag, "data-testid": dataTestId, ...rest }: SortableItemProps) => JSX.Element;
|
|
1481
1484
|
|
|
1482
1485
|
/**
|
|
1483
1486
|
* Default draggable item none other provided in SortableList and MultiSort.
|
|
@@ -2097,7 +2100,7 @@ type ModalBooleans = {
|
|
|
2097
2100
|
confirmDelete?: boolean;
|
|
2098
2101
|
canEditFileName?: boolean;
|
|
2099
2102
|
};
|
|
2100
|
-
interface FilePickerProps {
|
|
2103
|
+
interface FilePickerProps extends Omit<StackProps, 'onChange'> {
|
|
2101
2104
|
/** Ex: acceptFormat="'acceptFormat="video/*, .jpg" */
|
|
2102
2105
|
acceptFormat?: string;
|
|
2103
2106
|
onChange?: (image: File | null) => void;
|
|
@@ -2124,7 +2127,7 @@ interface FilePickerFieldProps extends Omit<FilePickerProps, 'onChange'> {
|
|
|
2124
2127
|
interface MultiFilePickerFieldProps extends Omit<FilePickerFieldProps, 'onChange'> {
|
|
2125
2128
|
onChange?: (File: string[]) => void;
|
|
2126
2129
|
}
|
|
2127
|
-
interface MultiFilePickerProps<T extends FileFormat> extends Omit<FilePickerProps, 'onChange'> {
|
|
2130
|
+
interface MultiFilePickerProps<T extends FileFormat> extends Omit<FilePickerProps, 'onChange'>, Omit<StackProps, 'onChange'> {
|
|
2128
2131
|
onChange?: (files: File[]) => void;
|
|
2129
2132
|
compression?: CompressionType;
|
|
2130
2133
|
files?: T[] | null;
|
|
@@ -2135,7 +2138,7 @@ interface MultiFilePickerProps<T extends FileFormat> extends Omit<FilePickerProp
|
|
|
2135
2138
|
confirmDelete?: boolean;
|
|
2136
2139
|
variant?: 'ai';
|
|
2137
2140
|
}
|
|
2138
|
-
interface MultiFileUploaderProps<T extends FileFormat> {
|
|
2141
|
+
interface MultiFileUploaderProps<T extends FileFormat> extends Omit<BoxProps, 'onChange'> {
|
|
2139
2142
|
/** Ex: acceptFormat="'acceptFormat="video/*, .jpg" */
|
|
2140
2143
|
variant?: 'ai';
|
|
2141
2144
|
acceptFormat?: string;
|
|
@@ -2146,7 +2149,7 @@ interface MultiFileUploaderProps<T extends FileFormat> {
|
|
|
2146
2149
|
updatePreviewFiles?: (files: any[]) => void;
|
|
2147
2150
|
onChange?: (files: File[]) => void;
|
|
2148
2151
|
}
|
|
2149
|
-
interface MultiFileListProps<T extends FileFormat> {
|
|
2152
|
+
interface MultiFileListProps<T extends FileFormat> extends Omit<StackProps, 'onChange'> {
|
|
2150
2153
|
files?: T[];
|
|
2151
2154
|
uploadingFiles?: T[];
|
|
2152
2155
|
deleteFile?: (file: T | FileFormat) => void;
|
|
@@ -2268,7 +2271,7 @@ declare function MultiFileUploader<T extends FileFormat>({ acceptFormat, compres
|
|
|
2268
2271
|
*
|
|
2269
2272
|
*
|
|
2270
2273
|
*/
|
|
2271
|
-
declare function MultiFilePicker<T extends FileFormat>({ acceptFormat, compression, onChange, files, uploadingFiles, deleteFile, confirmDelete, maxFileSize, enablePreLoad, enableSmartLoad, editFileOptions, variant, }: MultiFilePickerProps<T>): JSX.Element;
|
|
2274
|
+
declare function MultiFilePicker<T extends FileFormat>({ acceptFormat, compression, onChange, files, uploadingFiles, deleteFile, confirmDelete, maxFileSize, enablePreLoad, enableSmartLoad, editFileOptions, variant, ...rest }: MultiFilePickerProps<T>): JSX.Element;
|
|
2272
2275
|
|
|
2273
2276
|
/**
|
|
2274
2277
|
* Show list of files, their uploading progress as well as options to edit/delete them
|
|
@@ -2277,7 +2280,7 @@ declare function MultiFilePicker<T extends FileFormat>({ acceptFormat, compressi
|
|
|
2277
2280
|
* @see {@link https://northlight.dev/multi-file-list}
|
|
2278
2281
|
*
|
|
2279
2282
|
*/
|
|
2280
|
-
declare function MultiFileList<T extends FileFormat>({ files, uploadingFiles, onChange, deleteFile, addFile, confirmDelete, editFileOptions, enableSmartLoad, }: MultiFileListProps<T>): JSX.Element;
|
|
2283
|
+
declare function MultiFileList<T extends FileFormat>({ files, uploadingFiles, onChange, deleteFile, addFile, confirmDelete, editFileOptions, enableSmartLoad, ...rest }: MultiFileListProps<T>): JSX.Element;
|
|
2281
2284
|
|
|
2282
2285
|
/**
|
|
2283
2286
|
* The multi file picker component wrapped in a <Field />
|
|
@@ -3295,9 +3298,6 @@ interface UseToastOptions extends UseToastOptions$1 {
|
|
|
3295
3298
|
variant?: AlertVariants;
|
|
3296
3299
|
title?: string;
|
|
3297
3300
|
description?: string;
|
|
3298
|
-
/** if set to true and if there is already another toast visible,
|
|
3299
|
-
* it will update the information on the current visible toast rather
|
|
3300
|
-
* than displaying a new one on top of the previous one */
|
|
3301
3301
|
replacePreviousToast?: boolean;
|
|
3302
3302
|
}
|
|
3303
3303
|
|
|
@@ -3310,10 +3310,12 @@ interface UseToastOptions extends UseToastOptions$1 {
|
|
|
3310
3310
|
* (?
|
|
3311
3311
|
*
|
|
3312
3312
|
<HStack spacing={ 4 }>
|
|
3313
|
+
<Toast variant="default" title="default" />
|
|
3313
3314
|
<Toast variant="success" title="success" />
|
|
3314
3315
|
<Toast variant="warning" title="warning" />
|
|
3315
|
-
<Toast variant="info" title="info" />
|
|
3316
3316
|
<Toast variant="error" title="error" />
|
|
3317
|
+
<Toast variant="info" title="info" />
|
|
3318
|
+
<Toast variant="ai" title="mtGPT" />
|
|
3317
3319
|
</HStack>
|
|
3318
3320
|
* ?)
|
|
3319
3321
|
*
|
|
@@ -3340,60 +3342,137 @@ declare const Toast: ({ variant, title, description, onClose, ...rest }: ToastPr
|
|
|
3340
3342
|
*/
|
|
3341
3343
|
declare const useToast: (defaultOpts?: UseToastOptions) => (opts?: UseToastOptions) => void;
|
|
3342
3344
|
|
|
3345
|
+
type TooltipVariants = 'success' | 'warning' | 'error' | 'info' | 'danger' | 'ai' | 'default' | 'ghost';
|
|
3346
|
+
interface OurTooltipProps extends TooltipProps {
|
|
3347
|
+
variant?: TooltipVariants;
|
|
3348
|
+
description?: string;
|
|
3349
|
+
hasIcon?: boolean;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3343
3352
|
/**
|
|
3353
|
+
* A tooltip is a brief, informative message that appears when a user interacts with an element.
|
|
3344
3354
|
* @see {@link https://northlight.dev/reference/tooltip}
|
|
3345
3355
|
*
|
|
3346
3356
|
* @example
|
|
3347
3357
|
* (?
|
|
3348
|
-
* <
|
|
3349
|
-
*
|
|
3350
|
-
*
|
|
3358
|
+
* <HStack>
|
|
3359
|
+
* <Tooltip
|
|
3360
|
+
* description="Here’s a regular tooltip with some with icon
|
|
3361
|
+
* inside of it that’s supposed to be substantially large.">
|
|
3362
|
+
* <Badge>ICON</Badge>
|
|
3363
|
+
* </Tooltip>
|
|
3364
|
+
* <Tooltip
|
|
3365
|
+
* hasIcon={ false }
|
|
3366
|
+
* description="Here’s a regular tooltip with some text without icon
|
|
3367
|
+
* inside of it that’s supposed to be substantially large."
|
|
3368
|
+
* >
|
|
3369
|
+
* <Badge>NOICON</Badge>
|
|
3370
|
+
* </Tooltip>
|
|
3371
|
+
* </HStack>
|
|
3351
3372
|
* ?)
|
|
3352
3373
|
*
|
|
3353
|
-
* @example (Example)
|
|
3354
|
-
* You can render a custom component
|
|
3355
|
-
* (?
|
|
3356
|
-
* +
|
|
3357
|
-
* const TooltipContent = (
|
|
3358
|
-
* <Box>
|
|
3359
|
-
* <Label size="sm">Text</Label>
|
|
3360
|
-
* <P sx={{color: 'text.inverted'}}>Content</P>
|
|
3361
|
-
* </Box>
|
|
3362
|
-
* )
|
|
3363
|
-
*
|
|
3364
|
-
* const ExampleTooltip = () => {
|
|
3365
|
-
* return (
|
|
3366
|
-
* <Tooltip label={TooltipContent}>
|
|
3367
|
-
* <Badge>Hover here</Badge>
|
|
3368
|
-
* </Tooltip>
|
|
3369
|
-
* )}
|
|
3370
|
-
*
|
|
3371
|
-
* render(<ExampleTooltip />)
|
|
3372
|
-
* ?)
|
|
3373
3374
|
*
|
|
3374
|
-
* @example
|
|
3375
|
-
* Try out a variant, success, info, warning, danger, ghost
|
|
3375
|
+
* @example
|
|
3376
3376
|
* (?
|
|
3377
3377
|
* <HStack>
|
|
3378
|
-
*
|
|
3379
|
-
*
|
|
3380
|
-
*
|
|
3381
|
-
*
|
|
3382
|
-
*
|
|
3383
|
-
* </
|
|
3384
|
-
*
|
|
3385
|
-
*
|
|
3386
|
-
*
|
|
3387
|
-
*
|
|
3388
|
-
*
|
|
3389
|
-
*
|
|
3390
|
-
*
|
|
3391
|
-
*
|
|
3392
|
-
*
|
|
3378
|
+
* <VStack>
|
|
3379
|
+
* <Tooltip
|
|
3380
|
+
* variant="success"
|
|
3381
|
+
* description="This is a successful message"
|
|
3382
|
+
* >
|
|
3383
|
+
* <Badge colorScheme="green">Success</Badge>
|
|
3384
|
+
* </Tooltip>
|
|
3385
|
+
* <Tooltip
|
|
3386
|
+
* variant="success"
|
|
3387
|
+
* title="Please check fields"
|
|
3388
|
+
* description="This is a successful message with a title and an icon
|
|
3389
|
+
* that’s supposed to be substantially large."
|
|
3390
|
+
* >
|
|
3391
|
+
* <Badge colorScheme="green">Success</Badge>
|
|
3392
|
+
* </Tooltip>
|
|
3393
|
+
* </VStack>
|
|
3394
|
+
* <VStack>
|
|
3395
|
+
* <Tooltip
|
|
3396
|
+
* variant="info"
|
|
3397
|
+
* description="This is an informative text"
|
|
3398
|
+
* >
|
|
3399
|
+
* <Badge colorScheme="blue">Info</Badge>
|
|
3400
|
+
* </Tooltip>
|
|
3401
|
+
* <Tooltip
|
|
3402
|
+
* variant="info"
|
|
3403
|
+
* title="Please check fields"
|
|
3404
|
+
* description="This is an informative text with a title and an icon
|
|
3405
|
+
* that’s supposed to be substantially large."
|
|
3406
|
+
* >
|
|
3407
|
+
* <Badge colorScheme="blue">Info</Badge>
|
|
3408
|
+
* </Tooltip>
|
|
3409
|
+
* </VStack>
|
|
3410
|
+
* <VStack>
|
|
3411
|
+
* <Tooltip
|
|
3412
|
+
* variant="warning"
|
|
3413
|
+
* description="This is a warning"
|
|
3414
|
+
* >
|
|
3415
|
+
* <Badge colorScheme="yellow">Warning</Badge>
|
|
3416
|
+
* </Tooltip>
|
|
3417
|
+
* <Tooltip
|
|
3418
|
+
* variant="warning"
|
|
3419
|
+
* title="Please check fields"
|
|
3420
|
+
* description="This is a warning with a title and an icon
|
|
3421
|
+
* that’s supposed to be substantially large."
|
|
3422
|
+
* >
|
|
3423
|
+
* <Badge colorScheme="yellow">Warning</Badge>
|
|
3424
|
+
* </Tooltip>
|
|
3425
|
+
* </VStack>
|
|
3426
|
+
* <VStack>
|
|
3427
|
+
* <Tooltip
|
|
3428
|
+
* variant="danger"
|
|
3429
|
+
* description="This is an error message"
|
|
3430
|
+
* >
|
|
3431
|
+
* <Badge colorScheme="red">Error</Badge>
|
|
3432
|
+
* </Tooltip>
|
|
3433
|
+
* <Tooltip
|
|
3434
|
+
* variant="danger"
|
|
3435
|
+
* title="Please check fields"
|
|
3436
|
+
* description="This is an error message with a title and an icon
|
|
3437
|
+
* that’s supposed to be substantially large."
|
|
3438
|
+
* >
|
|
3439
|
+
* <Badge colorScheme="red">Error</Badge>
|
|
3440
|
+
* </Tooltip>
|
|
3441
|
+
* </VStack>
|
|
3442
|
+
* <VStack>
|
|
3443
|
+
* <Tooltip
|
|
3444
|
+
* variant="ai"
|
|
3445
|
+
* description="This is an AI message">
|
|
3446
|
+
* <Badge colorScheme="teal" variant="subtle">AI</Badge>
|
|
3447
|
+
* </Tooltip>
|
|
3448
|
+
* <Tooltip
|
|
3449
|
+
* variant="ai"
|
|
3450
|
+
* title="Please check fields"
|
|
3451
|
+
* description="This is an AI message with a title and an icon
|
|
3452
|
+
* that’s supposed to be substantially large."
|
|
3453
|
+
* >
|
|
3454
|
+
* <Badge colorScheme="teal" variant="subtle">AI</Badge>
|
|
3455
|
+
* </Tooltip>
|
|
3456
|
+
* </VStack>
|
|
3457
|
+
* <VStack>
|
|
3458
|
+
* <Tooltip
|
|
3459
|
+
* variant="ghost"
|
|
3460
|
+
* description="This is an clean message">
|
|
3461
|
+
* <Badge>Ghost</Badge>
|
|
3462
|
+
* </Tooltip>
|
|
3463
|
+
* <Tooltip
|
|
3464
|
+
* variant="ghost"
|
|
3465
|
+
* title="Please check fields"
|
|
3466
|
+
* description="This is an clean message with a title and an icon
|
|
3467
|
+
* that’s supposed to be substantially large."
|
|
3468
|
+
* >
|
|
3469
|
+
* <Badge>Ghost</Badge>
|
|
3470
|
+
* </Tooltip>
|
|
3471
|
+
* </VStack>
|
|
3393
3472
|
* </HStack>
|
|
3394
3473
|
* ?)
|
|
3395
3474
|
*/
|
|
3396
|
-
declare const Tooltip:
|
|
3475
|
+
declare const Tooltip: React__default.FC<OurTooltipProps>;
|
|
3397
3476
|
|
|
3398
3477
|
type DurationType = number | null;
|
|
3399
3478
|
type OffsetType = number | string;
|
|
@@ -3549,7 +3628,7 @@ declare const SlideFade: ({ children, enterDuration, exitDuration, duration, in:
|
|
|
3549
3628
|
*/
|
|
3550
3629
|
declare const Collapse: ({ children, enterDuration, exitDuration, duration, in: show, disableFocus, hideDisplay, enterDelay, exitDelay, onTransitionComplete, ...rest }: CollapseProps) => JSX.Element;
|
|
3551
3630
|
|
|
3552
|
-
interface StatusPinProps {
|
|
3631
|
+
interface StatusPinProps extends BoxProps {
|
|
3553
3632
|
size?: PinSize;
|
|
3554
3633
|
variant: PinVariant;
|
|
3555
3634
|
}
|
|
@@ -3580,10 +3659,10 @@ interface StatusPinProps {
|
|
|
3580
3659
|
* ?)
|
|
3581
3660
|
*
|
|
3582
3661
|
*/
|
|
3583
|
-
declare const StatusPin: ({ size, variant }: StatusPinProps) => JSX.Element;
|
|
3662
|
+
declare const StatusPin: ({ size, variant, ...rest }: StatusPinProps) => JSX.Element;
|
|
3584
3663
|
|
|
3585
3664
|
type BlockVariant = 'working' | 'pending' | 'approved' | 'rejected';
|
|
3586
|
-
interface StatusBlockProps {
|
|
3665
|
+
interface StatusBlockProps extends Omit<TagProps$1, 'bgColor'> {
|
|
3587
3666
|
variant: BlockVariant;
|
|
3588
3667
|
}
|
|
3589
3668
|
type BlockVariantColorTuple = [`${Color}.${ColorGrade}`, `${Color}.${ColorGrade}`];
|
|
@@ -3595,7 +3674,7 @@ declare const statusIconMap: Record<BlockVariant, any>;
|
|
|
3595
3674
|
* @example
|
|
3596
3675
|
* (? <StatusBlock variant="approved" /> ?)
|
|
3597
3676
|
*/
|
|
3598
|
-
declare const StatusBlock: ({ variant }: StatusBlockProps) => JSX.Element;
|
|
3677
|
+
declare const StatusBlock: ({ variant, ...rest }: StatusBlockProps) => JSX.Element;
|
|
3599
3678
|
|
|
3600
3679
|
interface AsyncErrorProps extends AlertProps {
|
|
3601
3680
|
message?: string;
|
|
@@ -3893,7 +3972,7 @@ interface SplitPaneProps extends GridProps {
|
|
|
3893
3972
|
* @see {@link https://northlight.dev/reference/split-pane}
|
|
3894
3973
|
*
|
|
3895
3974
|
*/
|
|
3896
|
-
declare const SplitPane: ({ children, initialSplit, isOpen, minLeftWidth, minRightWidth, }: SplitPaneProps) => JSX.Element;
|
|
3975
|
+
declare const SplitPane: ({ children, initialSplit, isOpen, minLeftWidth, minRightWidth, ...rest }: SplitPaneProps) => JSX.Element;
|
|
3897
3976
|
|
|
3898
3977
|
/**
|
|
3899
3978
|
* Wrapper around child of split pane
|