@northlight/ui 2.35.3 → 2.36.0

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.
@@ -1,4 +1,4 @@
1
- import { Accordion as Accordion$1, AccordionButton as AccordionButton$1, AccordionPanel as AccordionPanel$1, AccordionItem as AccordionItem$1, useInterval, useMediaQuery, useToken as useToken$1, extendTheme, Box, useMultiStyleConfig, chakra, Alert as Alert$2, AspectRatio as AspectRatio$1, forwardRef, useStyleConfig, Icon as Icon$2, Heading, Text, FormLabel as FormLabel$1, VisuallyHidden, HStack, Badge as Badge$2, Spinner as Spinner$2, Button as Button$2, Checkbox as Checkbox$2, FormControl, Stack, FormErrorMessage, Flex, CheckboxGroup, IconButton as IconButton$1, Popover as Popover$2, Portal, useDisclosure, useBoolean, PopoverTrigger, PopoverContent, PopoverHeader, PopoverBody, SimpleGrid, SlideFade as SlideFade$1, Table as Table$2, Thead, Tr, Tbody, Select as Select$2, PopoverAnchor, InputGroup, InputRightElement, Link as Link$1, Spacer, useOutsideClick, Tooltip as Tooltip$2, VStack, Circle, Center, Fade as Fade$1, ScaleFade as ScaleFade$1, Slide as Slide$1, Collapse as Collapse$1, CloseButton as CloseButton$1, Radio as Radio$2, RadioGroup as RadioGroup$1, Tag as Tag$2, TagLabel, TagRightIcon, useEditableControls, useEditableState, Editable, InputLeftElement, Input as Input$1, EditablePreview, EditableInput, Modal as Modal$2, ModalOverlay, ModalContent, ModalCloseButton, ModalBody as ModalBody$1, ModalHeader, Slider, SliderTrack, SliderFilledTrack, SliderThumb, ModalFooter, Progress, Image as Image$1, ChakraProvider, Menu as Menu$2, NumberInputStepper as NumberInputStepper$1, Divider, NumberIncrementStepper, NumberDecrementStepper, NumberInput as NumberInput$2, NumberInputField as NumberInputField$1, PinInput as PinInput$2, Switch as Switch$2, TabPanel as TabPanel$1, Tabs as Tabs$2, Textarea as Textarea$2, useToast as useToast$1, AlertTitle, AlertDescription, Tab, TabList, useClipboard, Grid, GridItem, theme as theme$1 } from '@chakra-ui/react';
1
+ import { Accordion as Accordion$1, AccordionButton as AccordionButton$1, AccordionPanel as AccordionPanel$1, AccordionItem as AccordionItem$1, useInterval, useMediaQuery, useToken as useToken$1, extendTheme, Box, useMultiStyleConfig, chakra, Alert as Alert$2, AspectRatio as AspectRatio$1, forwardRef, useStyleConfig, Icon as Icon$2, Heading, Text, FormLabel as FormLabel$1, VisuallyHidden, HStack, Badge as Badge$2, Flex, Spinner as Spinner$2, Button as Button$2, Checkbox as Checkbox$2, FormControl, Stack, FormErrorMessage, CheckboxGroup, IconButton as IconButton$1, Popover as Popover$2, Portal, useDisclosure, useBoolean, PopoverTrigger, PopoverContent, PopoverHeader, PopoverBody, SimpleGrid, SlideFade as SlideFade$1, Table as Table$2, Thead, Tr, Tbody, Select as Select$2, PopoverAnchor, InputGroup, InputRightElement, Link as Link$1, Spacer, useOutsideClick, Tooltip as Tooltip$2, VStack, Circle, Center, Fade as Fade$1, ScaleFade as ScaleFade$1, Slide as Slide$1, Collapse as Collapse$1, CloseButton as CloseButton$1, Radio as Radio$2, RadioGroup as RadioGroup$1, Tag as Tag$2, TagLabel, TagRightIcon, useEditableControls, useEditableState, Editable, InputLeftElement, Input as Input$1, EditablePreview, EditableInput, Modal as Modal$2, ModalOverlay, ModalContent, ModalCloseButton, ModalBody as ModalBody$1, ModalHeader, Slider, SliderTrack, SliderFilledTrack, SliderThumb, ModalFooter, Progress, Image as Image$1, ChakraProvider, Menu as Menu$2, NumberInputStepper as NumberInputStepper$1, Divider, NumberIncrementStepper, NumberDecrementStepper, NumberInput as NumberInput$2, NumberInputField as NumberInputField$1, PinInput as PinInput$2, Switch as Switch$2, TabPanel as TabPanel$1, Tabs as Tabs$2, Textarea as Textarea$2, useToast as useToast$1, AlertTitle, AlertDescription, Tab, TabList, useClipboard, Grid, GridItem, theme as theme$1 } from '@chakra-ui/react';
2
2
  export { AbsoluteCenter, AccordionIcon, AlertDescription, AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertIcon, AlertTitle, Box, 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, Mark, 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, Stat, StatArrow, StatGroup, StatHelpText, StatLabel, StatNumber, TabIndicator as StepIndicator, TabPanels as StepPanels, Tab, TabIndicator, TabList, TabPanels, TableCaption, TableContainer, TagCloseButton, TagLabel, TagLeftIcon, TagRightIcon, Tbody, Td, Text, Tfoot, Th, Thead, Tr, UnorderedList, VStack, VisuallyHidden, VisuallyHiddenInput, Wrap, WrapItem, 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 React, { useState, useEffect, useRef, isValidElement, cloneElement, Children, createContext, useContext, forwardRef as forwardRef$1, useImperativeHandle, memo, useMemo, useCallback } from 'react';
4
4
  import { CreatableSelect, chakraComponents, AsyncSelect, Select as Select$3 } from 'chakra-react-select';
@@ -12,7 +12,8 @@ import { palette, WebappComponentsTokensSet, WebappSystemTokensSet, typography,
12
12
  import { keyframes } from '@emotion/react';
13
13
  export { keyframes } from '@emotion/react';
14
14
  import { randomColor, cssVar, mode } from '@chakra-ui/theme-tools';
15
- import { UserSquareDuo, BusinessContactDuo, CheckDuo, ChevronUpDuo, ChevronDownDuo, ColorsDuo, CheckSolid, CalendarDuo, ChevronLeftSolid, ChevronRightSolid, XCloseSolid, CheckCircleSolid, AlertTriangleSolid, AlertCircleSolid, AlertOctagonSolid, InfoSolid, BrightnessSolid, HelpCircleSolid, TrashDuo, SearchDuo, DotsMatrixSolid, DragDuo, EditDuo, ZoomInDuo, Image03Solid, UploadCloudSolid, FileBlankDuo, EditBoxDuo, DownloadDuo, TrashFullDuo, Image03Duo, ChevronUpSolid, ChevronDownSolid, BellSolid, CopyDuo, PlusSolid } from '@northlight/icons';
15
+ import * as NorthlightIcons from '@northlight/icons';
16
+ import { UserSquareDuo, BusinessContactDuo, MediatoolLogoSolid, CheckDuo, ChevronUpDuo, ChevronDownDuo, ColorsDuo, CheckSolid, CalendarDuo, ChevronLeftSolid, ChevronRightSolid, XCloseSolid, CheckCircleSolid, AlertTriangleSolid, AlertCircleSolid, AlertOctagonSolid, InfoSolid, BrightnessSolid, HelpCircleSolid, TrashDuo, SearchDuo, DotsMatrixSolid, DragDuo, EditDuo, ZoomInDuo, Image03Solid, UploadCloudSolid, FileBlankDuo, EditBoxDuo, DownloadDuo, TrashFullDuo, Image03Duo, ChevronUpSolid, ChevronDownSolid, BellSolid, CopyDuo, PlusSolid } from '@northlight/icons';
16
17
  import { joiResolver } from '@hookform/resolvers/joi';
17
18
  import { useCheckboxGroup, useCheckboxGroupItem } from '@react-aria/checkbox';
18
19
  import { useRadioGroup, useRadio } from '@react-aria/radio';
@@ -1046,8 +1047,9 @@ const Input = {
1046
1047
  _focusVisible: {
1047
1048
  bgColor: color.background.input["outline-focus"],
1048
1049
  borderColor: color.border.input.focus,
1050
+ boxShadow: `inset 0 0 0 1px ${color.border.input.focus}`,
1049
1051
  _invalid: {
1050
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1052
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1051
1053
  bgColor: color.background.input["outline-error"],
1052
1054
  borderColor: color.border.input.error
1053
1055
  }
@@ -1058,7 +1060,8 @@ const Input = {
1058
1060
  },
1059
1061
  _invalid: {
1060
1062
  bgColor: color.background.input["outline-error"],
1061
- borderColor: color.border.input.error
1063
+ borderColor: color.border.input.error,
1064
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`
1062
1065
  },
1063
1066
  _disabled: {
1064
1067
  bgColor: color.background.input["outline-disabled"],
@@ -1097,20 +1100,20 @@ const Input = {
1097
1100
  bgColor: color.background.input["filled-hover"]
1098
1101
  },
1099
1102
  _focusVisible: {
1100
- boxShadow: `0 0 0 1px ${color.border.input.focus}`,
1103
+ boxShadow: `inset 0 0 0 1px ${color.border.input.focus}`,
1101
1104
  borderColor: color.border.input.focus,
1102
1105
  bgColor: color.background.input["filled-focus"],
1103
1106
  _readOnly: {
1104
1107
  bgColor: color.background.input["filled-default"]
1105
1108
  },
1106
1109
  _invalid: {
1107
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1110
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1108
1111
  bgColor: color.background.input["outline-error"],
1109
1112
  borderColor: color.border.input.error
1110
1113
  }
1111
1114
  },
1112
1115
  _invalid: {
1113
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1116
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1114
1117
  bgColor: color.background.input["filled-error"],
1115
1118
  borderColor: color.border.input.error
1116
1119
  },
@@ -1197,11 +1200,11 @@ const Input = {
1197
1200
  _focusVisible: {
1198
1201
  bgColor: color.background.input["outline-focus"],
1199
1202
  _hover: {
1200
- boxShadow: `0 0 0 1px ${color.border.ai}`,
1203
+ boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
1201
1204
  borderColor: color.border.ai
1202
1205
  },
1203
1206
  _invalid: {
1204
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1207
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1205
1208
  bgColor: color.background.input["outline-error"],
1206
1209
  borderColor: color.border.input.error
1207
1210
  }
@@ -1645,7 +1648,7 @@ const Tag$1 = {
1645
1648
  };
1646
1649
 
1647
1650
  const Alert$1 = {
1648
- parts: ["container", "title", "description"],
1651
+ parts: ["container", "title", "description", "icon"],
1649
1652
  baseStyle: ({ theme: {
1650
1653
  radii: borderRadius,
1651
1654
  colors: color,
@@ -1657,40 +1660,69 @@ const Alert$1 = {
1657
1660
  paddingEnd: coreSpacing[8],
1658
1661
  width: "auto",
1659
1662
  display: "flex"
1663
+ },
1664
+ title: {
1665
+ lineHeight: "1.25",
1666
+ overflowWrap: "break-word"
1667
+ },
1668
+ description: {
1669
+ lineHeight: "1.25",
1670
+ overflowWrap: "break-word"
1671
+ },
1672
+ icon: {
1673
+ boxSize: 6
1660
1674
  }
1661
1675
  }),
1662
1676
  variants: {
1663
1677
  success: ({ theme: { colors: color } }) => ({
1664
1678
  container: {
1665
1679
  bgColor: color.background.toast.success
1680
+ },
1681
+ icon: {
1682
+ color: color.icon.toast.success
1666
1683
  }
1667
1684
  }),
1668
1685
  warning: ({ theme: { colors: color } }) => ({
1669
1686
  container: {
1670
1687
  bgColor: color.background.toast.warning
1688
+ },
1689
+ icon: {
1690
+ color: color.icon.toast.warning
1671
1691
  }
1672
1692
  }),
1673
1693
  info: ({ theme: { colors: color } }) => ({
1674
1694
  container: {
1675
1695
  bgColor: color.background.toast.info
1696
+ },
1697
+ icon: {
1698
+ color: color.icon.toast.info
1676
1699
  }
1677
1700
  }),
1678
1701
  error: ({ theme: { colors: color } }) => ({
1679
1702
  container: {
1680
1703
  bgColor: color.background.toast.error,
1681
1704
  color: color.text.toast.error
1705
+ },
1706
+ icon: {
1707
+ color: color.icon.toast.error
1682
1708
  }
1683
1709
  }),
1684
1710
  ai: ({ theme: { colors: color } }) => ({
1685
1711
  container: {
1686
1712
  bgColor: color.bg.ai.default,
1687
1713
  color: color.text.inverted
1714
+ },
1715
+ icon: {
1716
+ color: color.icon.toast.ai
1688
1717
  }
1689
1718
  }),
1690
1719
  default: ({ theme: { colors: color } }) => ({
1691
1720
  container: {
1692
1721
  bgColor: color.bg.layer,
1693
1722
  color: color.text.default
1723
+ },
1724
+ icon: {
1725
+ color: color.icon.toast.default
1694
1726
  }
1695
1727
  }),
1696
1728
  ghost: ({ theme: { colors: color } }) => ({
@@ -1700,6 +1732,9 @@ const Alert$1 = {
1700
1732
  borderWidth: "xs",
1701
1733
  borderColor: color.border.default,
1702
1734
  borderStyle: "solid"
1735
+ },
1736
+ icon: {
1737
+ color: color.icon.toast.ghost
1703
1738
  }
1704
1739
  })
1705
1740
  }
@@ -1758,12 +1793,12 @@ const NumberInput$1 = {
1758
1793
  _focusVisible: {
1759
1794
  bg: color.background.input["outline-focus"],
1760
1795
  borderColor: color.border.input.focus,
1761
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`
1796
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.focus}`
1762
1797
  },
1763
1798
  _invalid: {
1764
1799
  bg: color.background.input["outline-error"],
1765
1800
  borderColor: color.border.input.error,
1766
- boxShadow: `0 0 0 1px ${color.border.input.error}`
1801
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`
1767
1802
  },
1768
1803
  _disabled: {
1769
1804
  bg: color.background.input["outline-disabled"],
@@ -1969,10 +2004,10 @@ const DatePicker$1 = {
1969
2004
  _focusWithin: {
1970
2005
  bgColor: color.background.input["outline-focus"],
1971
2006
  borderColor: color.border.textarea.focus,
1972
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`
2007
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.focus}`
1973
2008
  },
1974
2009
  _invalid: {
1975
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
2010
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1976
2011
  borderColor: color.border.input.error
1977
2012
  },
1978
2013
  _disabled: {
@@ -1993,11 +2028,11 @@ const DatePicker$1 = {
1993
2028
  outline: "none",
1994
2029
  rounded: "md",
1995
2030
  _focus: {
1996
- bgColor: "blue.500",
2031
+ bgColor: "bg.brand.default",
1997
2032
  color: color.text.inverted
1998
2033
  },
1999
2034
  _placeholder: {
2000
- color: "red.500"
2035
+ color: "destructive"
2001
2036
  }
2002
2037
  }
2003
2038
  }),
@@ -3760,7 +3795,7 @@ var __spreadValues$2g = (a, b) => {
3760
3795
  return a;
3761
3796
  };
3762
3797
  var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
3763
- var __objRest$1R = (source, exclude) => {
3798
+ var __objRest$1S = (source, exclude) => {
3764
3799
  var target = {};
3765
3800
  for (var prop in source)
3766
3801
  if (__hasOwnProp$2g.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3781,7 +3816,7 @@ function TagsInput(_a) {
3781
3816
  "data-testid": testId,
3782
3817
  value = [],
3783
3818
  onError
3784
- } = _b, rest = __objRest$1R(_b, [
3819
+ } = _b, rest = __objRest$1S(_b, [
3785
3820
  "options",
3786
3821
  "onChange",
3787
3822
  "isLoading",
@@ -3891,7 +3926,7 @@ var __spreadValues$2f = (a, b) => {
3891
3926
  }
3892
3927
  return a;
3893
3928
  };
3894
- var __objRest$1Q = (source, exclude) => {
3929
+ var __objRest$1R = (source, exclude) => {
3895
3930
  var target = {};
3896
3931
  for (var prop in source)
3897
3932
  if (__hasOwnProp$2f.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3908,7 +3943,7 @@ const OrganizationLogo = (_a) => {
3908
3943
  name,
3909
3944
  image,
3910
3945
  variant = "square"
3911
- } = _b, rest = __objRest$1Q(_b, [
3946
+ } = _b, rest = __objRest$1R(_b, [
3912
3947
  "name",
3913
3948
  "image",
3914
3949
  "variant"
@@ -3950,7 +3985,7 @@ var __spreadValues$2e = (a, b) => {
3950
3985
  }
3951
3986
  return a;
3952
3987
  };
3953
- var __objRest$1P = (source, exclude) => {
3988
+ var __objRest$1Q = (source, exclude) => {
3954
3989
  var target = {};
3955
3990
  for (var prop in source)
3956
3991
  if (__hasOwnProp$2e.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3966,7 +4001,7 @@ const Alert = (_a) => {
3966
4001
  var _b = _a, {
3967
4002
  variant = "success",
3968
4003
  children
3969
- } = _b, rest = __objRest$1P(_b, [
4004
+ } = _b, rest = __objRest$1Q(_b, [
3970
4005
  "variant",
3971
4006
  "children"
3972
4007
  ]);
@@ -4007,7 +4042,7 @@ var __spreadValues$2c = (a, b) => {
4007
4042
  }
4008
4043
  return a;
4009
4044
  };
4010
- var __objRest$1O = (source, exclude) => {
4045
+ var __objRest$1P = (source, exclude) => {
4011
4046
  var target = {};
4012
4047
  for (var prop in source)
4013
4048
  if (__hasOwnProp$2c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4025,7 +4060,7 @@ const Icon = forwardRef((_a, ref) => {
4025
4060
  size,
4026
4061
  color,
4027
4062
  boxSize
4028
- } = _b, rest = __objRest$1O(_b, [
4063
+ } = _b, rest = __objRest$1P(_b, [
4029
4064
  "as",
4030
4065
  "size",
4031
4066
  "color",
@@ -4066,7 +4101,7 @@ var __spreadValues$2b = (a, b) => {
4066
4101
  }
4067
4102
  return a;
4068
4103
  };
4069
- var __objRest$1N = (source, exclude) => {
4104
+ var __objRest$1O = (source, exclude) => {
4070
4105
  var target = {};
4071
4106
  for (var prop in source)
4072
4107
  if (__hasOwnProp$2b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4086,7 +4121,7 @@ const Avatar = (_a) => {
4086
4121
  image,
4087
4122
  size,
4088
4123
  bgColor
4089
- } = _b, rest = __objRest$1N(_b, [
4124
+ } = _b, rest = __objRest$1O(_b, [
4090
4125
  "variant",
4091
4126
  "notificationCount",
4092
4127
  "name",
@@ -4134,7 +4169,7 @@ var __spreadValues$2a = (a, b) => {
4134
4169
  }
4135
4170
  return a;
4136
4171
  };
4137
- var __objRest$1M = (source, exclude) => {
4172
+ var __objRest$1N = (source, exclude) => {
4138
4173
  var target = {};
4139
4174
  for (var prop in source)
4140
4175
  if (__hasOwnProp$2a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4150,7 +4185,7 @@ const H1 = forwardRef$1((_a, ref) => {
4150
4185
  var _b = _a, {
4151
4186
  children,
4152
4187
  sx = {}
4153
- } = _b, rest = __objRest$1M(_b, [
4188
+ } = _b, rest = __objRest$1N(_b, [
4154
4189
  "children",
4155
4190
  "sx"
4156
4191
  ]);
@@ -4182,7 +4217,7 @@ var __spreadValues$29 = (a, b) => {
4182
4217
  }
4183
4218
  return a;
4184
4219
  };
4185
- var __objRest$1L = (source, exclude) => {
4220
+ var __objRest$1M = (source, exclude) => {
4186
4221
  var target = {};
4187
4222
  for (var prop in source)
4188
4223
  if (__hasOwnProp$29.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4198,7 +4233,7 @@ const H2 = forwardRef$1((_a, ref) => {
4198
4233
  var _b = _a, {
4199
4234
  children,
4200
4235
  sx = {}
4201
- } = _b, rest = __objRest$1L(_b, [
4236
+ } = _b, rest = __objRest$1M(_b, [
4202
4237
  "children",
4203
4238
  "sx"
4204
4239
  ]);
@@ -4230,7 +4265,7 @@ var __spreadValues$28 = (a, b) => {
4230
4265
  }
4231
4266
  return a;
4232
4267
  };
4233
- var __objRest$1K = (source, exclude) => {
4268
+ var __objRest$1L = (source, exclude) => {
4234
4269
  var target = {};
4235
4270
  for (var prop in source)
4236
4271
  if (__hasOwnProp$28.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4246,7 +4281,7 @@ const H3 = forwardRef$1((_a, ref) => {
4246
4281
  var _b = _a, {
4247
4282
  children,
4248
4283
  sx = {}
4249
- } = _b, rest = __objRest$1K(_b, [
4284
+ } = _b, rest = __objRest$1L(_b, [
4250
4285
  "children",
4251
4286
  "sx"
4252
4287
  ]);
@@ -4278,7 +4313,7 @@ var __spreadValues$27 = (a, b) => {
4278
4313
  }
4279
4314
  return a;
4280
4315
  };
4281
- var __objRest$1J = (source, exclude) => {
4316
+ var __objRest$1K = (source, exclude) => {
4282
4317
  var target = {};
4283
4318
  for (var prop in source)
4284
4319
  if (__hasOwnProp$27.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4294,7 +4329,7 @@ const H4 = forwardRef$1((_a, ref) => {
4294
4329
  var _b = _a, {
4295
4330
  children,
4296
4331
  sx = {}
4297
- } = _b, rest = __objRest$1J(_b, [
4332
+ } = _b, rest = __objRest$1K(_b, [
4298
4333
  "children",
4299
4334
  "sx"
4300
4335
  ]);
@@ -4326,7 +4361,7 @@ var __spreadValues$26 = (a, b) => {
4326
4361
  }
4327
4362
  return a;
4328
4363
  };
4329
- var __objRest$1I = (source, exclude) => {
4364
+ var __objRest$1J = (source, exclude) => {
4330
4365
  var target = {};
4331
4366
  for (var prop in source)
4332
4367
  if (__hasOwnProp$26.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4342,7 +4377,7 @@ const H5 = forwardRef$1((_a, ref) => {
4342
4377
  var _b = _a, {
4343
4378
  children,
4344
4379
  sx = {}
4345
- } = _b, rest = __objRest$1I(_b, [
4380
+ } = _b, rest = __objRest$1J(_b, [
4346
4381
  "children",
4347
4382
  "sx"
4348
4383
  ]);
@@ -4374,7 +4409,7 @@ var __spreadValues$25 = (a, b) => {
4374
4409
  }
4375
4410
  return a;
4376
4411
  };
4377
- var __objRest$1H = (source, exclude) => {
4412
+ var __objRest$1I = (source, exclude) => {
4378
4413
  var target = {};
4379
4414
  for (var prop in source)
4380
4415
  if (__hasOwnProp$25.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4390,7 +4425,7 @@ const H6 = forwardRef$1((_a, ref) => {
4390
4425
  var _b = _a, {
4391
4426
  children,
4392
4427
  sx = {}
4393
- } = _b, rest = __objRest$1H(_b, [
4428
+ } = _b, rest = __objRest$1I(_b, [
4394
4429
  "children",
4395
4430
  "sx"
4396
4431
  ]);
@@ -4422,7 +4457,7 @@ var __spreadValues$24 = (a, b) => {
4422
4457
  }
4423
4458
  return a;
4424
4459
  };
4425
- var __objRest$1G = (source, exclude) => {
4460
+ var __objRest$1H = (source, exclude) => {
4426
4461
  var target = {};
4427
4462
  for (var prop in source)
4428
4463
  if (__hasOwnProp$24.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4439,7 +4474,7 @@ const P = forwardRef$1((_a, ref) => {
4439
4474
  children,
4440
4475
  variant = "16",
4441
4476
  sx = {}
4442
- } = _b, rest = __objRest$1G(_b, [
4477
+ } = _b, rest = __objRest$1H(_b, [
4443
4478
  "children",
4444
4479
  "variant",
4445
4480
  "sx"
@@ -4472,7 +4507,7 @@ var __spreadValues$23 = (a, b) => {
4472
4507
  }
4473
4508
  return a;
4474
4509
  };
4475
- var __objRest$1F = (source, exclude) => {
4510
+ var __objRest$1G = (source, exclude) => {
4476
4511
  var target = {};
4477
4512
  for (var prop in source)
4478
4513
  if (__hasOwnProp$23.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4486,7 +4521,7 @@ var __objRest$1F = (source, exclude) => {
4486
4521
  };
4487
4522
  const Blockquote = forwardRef$1(
4488
4523
  (_a, ref) => {
4489
- var _b = _a, { children, sx = {} } = _b, rest = __objRest$1F(_b, ["children", "sx"]);
4524
+ var _b = _a, { children, sx = {} } = _b, rest = __objRest$1G(_b, ["children", "sx"]);
4490
4525
  const styles = useStyleConfig("Blockquote", { sx });
4491
4526
  return /* @__PURE__ */ React.createElement(Text, __spreadValues$23({ as: "span", sx: styles, ref }, rest), children);
4492
4527
  }
@@ -4508,7 +4543,7 @@ var __spreadValues$22 = (a, b) => {
4508
4543
  }
4509
4544
  return a;
4510
4545
  };
4511
- var __objRest$1E = (source, exclude) => {
4546
+ var __objRest$1F = (source, exclude) => {
4512
4547
  var target = {};
4513
4548
  for (var prop in source)
4514
4549
  if (__hasOwnProp$22.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4524,7 +4559,7 @@ const Capitalized = forwardRef$1((_a, ref) => {
4524
4559
  var _b = _a, {
4525
4560
  children,
4526
4561
  sx = {}
4527
- } = _b, rest = __objRest$1E(_b, [
4562
+ } = _b, rest = __objRest$1F(_b, [
4528
4563
  "children",
4529
4564
  "sx"
4530
4565
  ]);
@@ -4556,7 +4591,7 @@ var __spreadValues$21 = (a, b) => {
4556
4591
  }
4557
4592
  return a;
4558
4593
  };
4559
- var __objRest$1D = (source, exclude) => {
4594
+ var __objRest$1E = (source, exclude) => {
4560
4595
  var target = {};
4561
4596
  for (var prop in source)
4562
4597
  if (__hasOwnProp$21.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4572,7 +4607,7 @@ const Lead = forwardRef$1((_a, ref) => {
4572
4607
  var _b = _a, {
4573
4608
  children,
4574
4609
  sx = {}
4575
- } = _b, rest = __objRest$1D(_b, [
4610
+ } = _b, rest = __objRest$1E(_b, [
4576
4611
  "children",
4577
4612
  "sx"
4578
4613
  ]);
@@ -4604,7 +4639,7 @@ var __spreadValues$20 = (a, b) => {
4604
4639
  }
4605
4640
  return a;
4606
4641
  };
4607
- var __objRest$1C = (source, exclude) => {
4642
+ var __objRest$1D = (source, exclude) => {
4608
4643
  var target = {};
4609
4644
  for (var prop in source)
4610
4645
  if (__hasOwnProp$20.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4620,7 +4655,7 @@ const Small = forwardRef$1((_a, ref) => {
4620
4655
  var _b = _a, {
4621
4656
  children,
4622
4657
  sx = {}
4623
- } = _b, rest = __objRest$1C(_b, [
4658
+ } = _b, rest = __objRest$1D(_b, [
4624
4659
  "children",
4625
4660
  "sx"
4626
4661
  ]);
@@ -4652,7 +4687,7 @@ var __spreadValues$1$ = (a, b) => {
4652
4687
  }
4653
4688
  return a;
4654
4689
  };
4655
- var __objRest$1B = (source, exclude) => {
4690
+ var __objRest$1C = (source, exclude) => {
4656
4691
  var target = {};
4657
4692
  for (var prop in source)
4658
4693
  if (__hasOwnProp$1$.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4668,7 +4703,7 @@ const Tiny = forwardRef$1((_a, ref) => {
4668
4703
  var _b = _a, {
4669
4704
  children,
4670
4705
  sx = {}
4671
- } = _b, rest = __objRest$1B(_b, [
4706
+ } = _b, rest = __objRest$1C(_b, [
4672
4707
  "children",
4673
4708
  "sx"
4674
4709
  ]);
@@ -4700,7 +4735,7 @@ var __spreadValues$1_ = (a, b) => {
4700
4735
  }
4701
4736
  return a;
4702
4737
  };
4703
- var __objRest$1A = (source, exclude) => {
4738
+ var __objRest$1B = (source, exclude) => {
4704
4739
  var target = {};
4705
4740
  for (var prop in source)
4706
4741
  if (__hasOwnProp$1_.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4717,7 +4752,7 @@ const Label = forwardRef$1((_a, ref) => {
4717
4752
  children,
4718
4753
  size = "sm",
4719
4754
  sx = {}
4720
- } = _b, rest = __objRest$1A(_b, [
4755
+ } = _b, rest = __objRest$1B(_b, [
4721
4756
  "children",
4722
4757
  "size",
4723
4758
  "sx"
@@ -4750,7 +4785,7 @@ var __spreadValues$1Z = (a, b) => {
4750
4785
  }
4751
4786
  return a;
4752
4787
  };
4753
- var __objRest$1z = (source, exclude) => {
4788
+ var __objRest$1A = (source, exclude) => {
4754
4789
  var target = {};
4755
4790
  for (var prop in source)
4756
4791
  if (__hasOwnProp$1Z.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4764,7 +4799,7 @@ var __objRest$1z = (source, exclude) => {
4764
4799
  };
4765
4800
  const NumVal = forwardRef$1(
4766
4801
  (_a, ref) => {
4767
- var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1z(_b, ["children", "size", "sx"]);
4802
+ var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1A(_b, ["children", "size", "sx"]);
4768
4803
  const styles = useStyleConfig("NumVal", { sx, size });
4769
4804
  return /* @__PURE__ */ React.createElement(
4770
4805
  Text,
@@ -4874,7 +4909,7 @@ var __spreadValues$1Y = (a, b) => {
4874
4909
  }
4875
4910
  return a;
4876
4911
  };
4877
- var __objRest$1y = (source, exclude) => {
4912
+ var __objRest$1z = (source, exclude) => {
4878
4913
  var target = {};
4879
4914
  for (var prop in source)
4880
4915
  if (__hasOwnProp$1Y.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4891,7 +4926,7 @@ const AvatarGroup = (_a) => {
4891
4926
  children,
4892
4927
  max = Infinity,
4893
4928
  spacing = "-4"
4894
- } = _b, rest = __objRest$1y(_b, [
4929
+ } = _b, rest = __objRest$1z(_b, [
4895
4930
  "children",
4896
4931
  "max",
4897
4932
  "spacing"
@@ -4921,7 +4956,33 @@ var __spreadValues$1X = (a, b) => {
4921
4956
  }
4922
4957
  return a;
4923
4958
  };
4924
- const Badge = forwardRef$1((props, ref) => /* @__PURE__ */ React.createElement(Badge$2, __spreadValues$1X({ ref }, props)));
4959
+ var __objRest$1y = (source, exclude) => {
4960
+ var target = {};
4961
+ for (var prop in source)
4962
+ if (__hasOwnProp$1X.call(source, prop) && exclude.indexOf(prop) < 0)
4963
+ target[prop] = source[prop];
4964
+ if (source != null && __getOwnPropSymbols$1X)
4965
+ for (var prop of __getOwnPropSymbols$1X(source)) {
4966
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1X.call(source, prop))
4967
+ target[prop] = source[prop];
4968
+ }
4969
+ return target;
4970
+ };
4971
+ const Badge = forwardRef$1((props, ref) => {
4972
+ const _a = props, {
4973
+ children,
4974
+ withIcon,
4975
+ iconPosition = "left",
4976
+ iconAs
4977
+ } = _a, rest = __objRest$1y(_a, [
4978
+ "children",
4979
+ "withIcon",
4980
+ "iconPosition",
4981
+ "iconAs"
4982
+ ]);
4983
+ const IconComponent = iconAs ? NorthlightIcons[iconAs] : MediatoolLogoSolid;
4984
+ return /* @__PURE__ */ React.createElement(Badge$2, __spreadValues$1X({ ref }, rest), /* @__PURE__ */ React.createElement(Flex, { align: "center", gap: "1" }, withIcon && iconPosition === "left" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" }), children, withIcon && iconPosition === "right" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" })));
4985
+ });
4925
4986
 
4926
4987
  var __defProp$1W = Object.defineProperty;
4927
4988
  var __getOwnPropSymbols$1W = Object.getOwnPropertySymbols;
@@ -8744,7 +8805,8 @@ const Toolbox = (_a) => {
8744
8805
  onClose,
8745
8806
  autoFocus = true,
8746
8807
  resizeLimit = "full",
8747
- zIndex = coreZIndex.overlay
8808
+ zIndex = coreZIndex.overlay,
8809
+ slideProps
8748
8810
  } = _b, rest = __objRest$10(_b, [
8749
8811
  "isResizable",
8750
8812
  "isOpen",
@@ -8755,7 +8817,8 @@ const Toolbox = (_a) => {
8755
8817
  "onClose",
8756
8818
  "autoFocus",
8757
8819
  "resizeLimit",
8758
- "zIndex"
8820
+ "zIndex",
8821
+ "slideProps"
8759
8822
  ]);
8760
8823
  const { container } = useMultiStyleConfig$1("Toolbox", { size });
8761
8824
  const newChildren = getChildrenWithProps(
@@ -8790,7 +8853,7 @@ const Toolbox = (_a) => {
8790
8853
  },
8791
8854
  /* @__PURE__ */ React.createElement(Portal, null, /* @__PURE__ */ React.createElement(
8792
8855
  Slide,
8793
- {
8856
+ __spreadValues$1d({
8794
8857
  direction,
8795
8858
  in: isOpen,
8796
8859
  style: {
@@ -8798,7 +8861,7 @@ const Toolbox = (_a) => {
8798
8861
  width: adjustableWidth,
8799
8862
  zIndex
8800
8863
  }
8801
- },
8864
+ }, slideProps),
8802
8865
  /* @__PURE__ */ React.createElement(
8803
8866
  Flex,
8804
8867
  __spreadValues$1d({