@vygruppen/spor-react 6.1.0 → 6.2.1

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,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@6.1.0 build
2
+ > @vygruppen/spor-react@6.2.1 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,15 +8,15 @@
8
8
  CLI Target: node16
9
9
  CJS Build start
10
10
  ESM Build start
11
- "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-2L6AHVGG.mjs".
11
+ "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-UHSKIIAP.mjs".
12
12
  "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
13
13
  DTS Build start
14
14
  ESM dist/index.mjs 2.16 KB
15
- ESM dist/CountryCodeSelect-KRCJWBUE.mjs 1.19 KB
16
- ESM dist/chunk-2L6AHVGG.mjs 397.95 KB
17
- ESM ⚡️ Build success in 2136ms
18
- CJS dist/index.js 507.36 KB
19
- CJS ⚡️ Build success in 2136ms
20
- DTS ⚡️ Build success in 12626ms
21
- DTS dist/index.d.ts 265.22 KB
22
- DTS dist/index.d.mts 265.22 KB
15
+ ESM dist/CountryCodeSelect-CJUALQVN.mjs 1.19 KB
16
+ ESM dist/chunk-UHSKIIAP.mjs 397.75 KB
17
+ ESM ⚡️ Build success in 2305ms
18
+ CJS dist/index.js 507.10 KB
19
+ CJS ⚡️ Build success in 2306ms
20
+ DTS ⚡️ Build success in 12726ms
21
+ DTS dist/index.d.ts 267.02 KB
22
+ DTS dist/index.d.mts 267.02 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 6.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e97dddd: Card, NumericStepper: Fix a bug with the focus styles that showed up when it shouldn't have.
8
+
9
+ DatePicker, DateRangePicker: Fix a bug where you wouldn't automatically jump to the next field once a field was filled out
10
+
11
+ ## 6.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 51b98a9: LineTag, TravelTag, LineIcon: Add new variant="custom" option.
16
+
17
+ This new variant lets you specify custom foreground and background colors, as well as an icon variant.
18
+
19
+ - 5c729e5: Button: The Button component is all new and shiny – and with no breaking changes at all. However, since the implementation is completely different, you might want to double check that everything looks as it should.
20
+
21
+ A new feature is that the right icon is now always right aligned, which makes this component much more versatile than before. The variant="control" is now deprecated as well.
22
+
3
23
  ## 6.1.0
4
24
 
5
25
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-2L6AHVGG.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-UHSKIIAP.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import tokens10__default from '@vygruppen/spor-design-tokens';
2
2
  import * as tokens10 from '@vygruppen/spor-design-tokens';
3
3
  export { tokens10 as tokens };
4
- import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Button as Button$1, Box, Center, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, useStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, Flex, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, chakra, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerCloseButton, DrawerBody, usePopoverContext, DarkMode, PopoverCloseButton, ChakraProvider, HStack, useToast as useToast$1, useInterval } from '@chakra-ui/react';
4
+ import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, useStyleConfig, Box, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, chakra, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, Button as Button$1, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerCloseButton, DrawerBody, usePopoverContext, DarkMode, PopoverCloseButton, ChakraProvider, HStack, useToast as useToast$1, useInterval } from '@chakra-ui/react';
5
5
  export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Container, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, Fade, Flex, FormHelperText, Grid, GridItem, HStack, Image, Img, InputGroup, LightMode, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, OrderedList, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, UnorderedList, VStack, Wrap, WrapItem, defineStyleConfig, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
6
6
  import * as React69 from 'react';
7
7
  import React69__default, { createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, useId, Suspense, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
@@ -1162,60 +1162,70 @@ var SkeletonText = (props) => /* @__PURE__ */ React69__default.createElement(Ske
1162
1162
  // src/button/Button.tsx
1163
1163
  var Button = forwardRef((props, ref) => {
1164
1164
  const {
1165
+ as = "button",
1166
+ fontWeight,
1165
1167
  size: size2,
1166
- variant,
1167
1168
  children,
1168
1169
  isLoading,
1169
1170
  isDisabled,
1170
1171
  leftIcon,
1171
1172
  rightIcon,
1173
+ sx,
1172
1174
  ...rest
1173
1175
  } = props;
1174
1176
  const ariaLabel = useCorrectAriaLabel(props);
1175
1177
  const buttonGroup = useButtonGroup();
1176
- const finalVariant = variant ?? (buttonGroup == null ? void 0 : buttonGroup.variant) ?? "primary";
1177
1178
  const finalSize = size2 ?? (buttonGroup == null ? void 0 : buttonGroup.size) ?? "md";
1179
+ const styles3 = useStyleConfig("Button", {
1180
+ ...buttonGroup,
1181
+ ...rest,
1182
+ size: finalSize,
1183
+ leftIcon,
1184
+ rightIcon
1185
+ });
1186
+ if (fontWeight) {
1187
+ styles3.fontWeight = fontWeight;
1188
+ }
1178
1189
  return /* @__PURE__ */ React69__default.createElement(
1179
- Button$1,
1190
+ Box,
1180
1191
  {
1181
- size: finalSize,
1182
- variant: finalVariant,
1183
1192
  ...rest,
1193
+ as,
1194
+ sx: { ...styles3, ...sx },
1184
1195
  ref,
1185
1196
  "aria-label": ariaLabel,
1186
1197
  "aria-busy": isLoading,
1187
- isDisabled: isDisabled || isLoading,
1188
- leftIcon: isLoading && leftIcon ? /* @__PURE__ */ React69__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, leftIcon) : leftIcon,
1189
- rightIcon: isLoading && rightIcon ? /* @__PURE__ */ React69__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, rightIcon) : rightIcon,
1198
+ disabled: isDisabled || isLoading,
1190
1199
  position: "relative"
1191
1200
  },
1192
- isLoading && /* @__PURE__ */ React69__default.createElement(
1193
- Center,
1201
+ isLoading && /* @__PURE__ */ React69__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React69__default.createElement(
1202
+ ColorInlineLoader,
1194
1203
  {
1195
- position: "absolute",
1196
- right: "0",
1197
- paddingBottom: 1,
1198
- left: "0",
1199
- paddingTop: 2
1200
- },
1201
- /* @__PURE__ */ React69__default.createElement(
1202
- ColorInlineLoader,
1203
- {
1204
- maxWidth: getLoaderWidth(finalSize),
1205
- width: "80%",
1206
- marginX: 2,
1207
- marginY: 2
1208
- }
1209
- )
1210
- ),
1204
+ maxWidth: getLoaderWidth(finalSize),
1205
+ width: "80%",
1206
+ marginX: 2,
1207
+ marginY: 2
1208
+ }
1209
+ )),
1211
1210
  /* @__PURE__ */ React69__default.createElement(
1212
- Box,
1211
+ Flex,
1213
1212
  {
1213
+ justifyContent: "space-between",
1214
+ alignItems: "center",
1215
+ gap: 1,
1214
1216
  visibility: isLoading ? "hidden" : "visible",
1215
- whiteSpace: "normal",
1216
- textAlign: "left"
1217
+ "aria-hidden": isLoading
1217
1218
  },
1218
- children
1219
+ /* @__PURE__ */ React69__default.createElement(Flex, { justifyContent: "center", alignItems: "center", gap: 1 }, leftIcon, /* @__PURE__ */ React69__default.createElement(
1220
+ Box,
1221
+ {
1222
+ visibility: isLoading ? "hidden" : "visible",
1223
+ whiteSpace: "normal",
1224
+ textAlign: "left"
1225
+ },
1226
+ children
1227
+ )),
1228
+ rightIcon
1219
1229
  )
1220
1230
  );
1221
1231
  });
@@ -1996,15 +2006,7 @@ var DateField = forwardRef$1(
1996
2006
  paddingTop: "2px"
1997
2007
  },
1998
2008
  props.label
1999
- ), /* @__PURE__ */ React69__default.createElement(Flex, { ...fieldProps, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React69__default.createElement(
2000
- DateTimeSegment,
2001
- {
2002
- ref: i === 0 ? ref : void 0,
2003
- key: i,
2004
- segment,
2005
- state: state2
2006
- }
2007
- ))), /* @__PURE__ */ React69__default.createElement(
2009
+ ), /* @__PURE__ */ React69__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React69__default.createElement(DateTimeSegment, { key: i, segment, state: state2 }))), /* @__PURE__ */ React69__default.createElement(
2008
2010
  "input",
2009
2011
  {
2010
2012
  type: "hidden",
@@ -3094,13 +3096,6 @@ var getBoxShadowString = (args) => {
3094
3096
  return allShadows.join(", ");
3095
3097
  };
3096
3098
 
3097
- // src/theme/utils/focus-utils.ts
3098
- var focusVisible = ({ notFocus, focus }) => ({
3099
- _focus: focus,
3100
- _focusVisible: focus,
3101
- "&[data-focus]:not([data-focus-visible])": notFocus
3102
- });
3103
-
3104
3099
  // src/input/NumericStepper.tsx
3105
3100
  function NumericStepper({
3106
3101
  name: nameProp,
@@ -3222,12 +3217,9 @@ var VerySmallButton = (props) => {
3222
3217
  size: "xs",
3223
3218
  minWidth: "24px",
3224
3219
  minHeight: "24px",
3225
- sx: focusVisible({
3226
- notFocus: { boxShadow: "none" },
3227
- focus: {
3228
- boxShadow: "inset 0 0 0 2px var(--spor-colors-pine), inset 0 0 0 3px white"
3229
- }
3230
- }),
3220
+ _focusVisible: {
3221
+ boxShadow: "inset 0 0 0 2px var(--spor-colors-pine), inset 0 0 0 3px white"
3222
+ },
3231
3223
  ...props
3232
3224
  }
3233
3225
  );
@@ -3427,7 +3419,7 @@ var texts14 = createTexts({
3427
3419
  sv: "Telefonnummer"
3428
3420
  }
3429
3421
  });
3430
- var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-KRCJWBUE.mjs'));
3422
+ var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-CJUALQVN.mjs'));
3431
3423
  var Radio = forwardRef((props, ref) => {
3432
3424
  return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
3433
3425
  });
@@ -3615,8 +3607,11 @@ var LineIcon = ({
3615
3607
  sx,
3616
3608
  ...rest
3617
3609
  }) => {
3618
- const styles3 = useMultiStyleConfig("LineIcon", { variant, size: size2 });
3619
- const Icon = getCorrectIcon({ variant, size: size2 });
3610
+ const styles3 = useMultiStyleConfig("LineIcon", { variant, size: size2, ...rest });
3611
+ const Icon = getCorrectIcon({
3612
+ variant: variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant,
3613
+ size: size2
3614
+ });
3620
3615
  if (!Icon) {
3621
3616
  return null;
3622
3617
  }
@@ -3628,10 +3623,23 @@ var InfoTag = ({
3628
3623
  variant,
3629
3624
  size: size2 = "md",
3630
3625
  title,
3631
- description
3626
+ description,
3627
+ ...customProps
3632
3628
  }) => {
3633
- const styles3 = useMultiStyleConfig("InfoTag", { variant, size: size2 });
3634
- return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React69__default.createElement(LineIcon, { variant, size: size2, sx: styles3.iconContainer }), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
3629
+ const styles3 = useMultiStyleConfig("InfoTag", {
3630
+ variant,
3631
+ size: size2,
3632
+ ...customProps
3633
+ });
3634
+ return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React69__default.createElement(
3635
+ LineIcon,
3636
+ {
3637
+ variant,
3638
+ size: size2,
3639
+ sx: styles3.iconContainer,
3640
+ ...customProps
3641
+ }
3642
+ ), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
3635
3643
  };
3636
3644
  var TravelTag = forwardRef(
3637
3645
  ({
@@ -3646,10 +3654,20 @@ var TravelTag = forwardRef(
3646
3654
  const styles3 = useMultiStyleConfig("TravelTag", {
3647
3655
  variant,
3648
3656
  size: size2,
3649
- deviationLevel
3657
+ deviationLevel,
3658
+ foregroundColor: variant === "custom" ? rest.foregroundColor : void 0,
3659
+ backgroundColor: variant === "custom" ? rest.backgroundColor : void 0
3650
3660
  });
3651
3661
  const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
3652
- return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React69__default.createElement(LineIcon, { variant, size: size2, sx: styles3.iconContainer }), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React69__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
3662
+ return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React69__default.createElement(
3663
+ LineIcon,
3664
+ {
3665
+ variant,
3666
+ size: size2,
3667
+ sx: styles3.iconContainer,
3668
+ ...rest
3669
+ }
3670
+ ), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React69__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
3653
3671
  }
3654
3672
  );
3655
3673
  var getDeviationLevelIcon = ({
@@ -9728,6 +9746,13 @@ var styles2 = {
9728
9746
  }
9729
9747
  })
9730
9748
  };
9749
+
9750
+ // src/theme/utils/focus-utils.ts
9751
+ var focusVisible = ({ notFocus, focus }) => ({
9752
+ _focus: focus,
9753
+ _focusVisible: focus,
9754
+ "&[data-focus]:not([data-focus-visible])": notFocus
9755
+ });
9731
9756
  var helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
9732
9757
  var config3 = helpers.defineMultiStyleConfig({
9733
9758
  baseStyle: (props) => ({
@@ -10075,7 +10100,6 @@ var config6 = defineStyleConfig$1({
10075
10100
  baseStyle: {
10076
10101
  border: 0,
10077
10102
  borderRadius: "xl",
10078
- fontWeight: "bold",
10079
10103
  transitionProperty: "common",
10080
10104
  transitionDuration: "normal",
10081
10105
  textWrap: "wrap",
@@ -10103,18 +10127,15 @@ var config6 = defineStyleConfig$1({
10103
10127
  // hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
10104
10128
  backgroundColor: mode("pine", "coralGreen")(props),
10105
10129
  color: mode("white", "darkTeal")(props),
10106
- ...focusVisible({
10107
- focus: {
10108
- boxShadow: `inset 0 0 0 2px ${mode(
10109
- colors.greenHaze,
10110
- colors.azure
10111
- )(props)}, inset 0 0 0 4px ${mode(
10112
- colors.white,
10113
- colors.darkGrey
10114
- )(props)}`
10115
- },
10116
- notFocus: { boxShadow: "none" }
10117
- }),
10130
+ _focusVisible: {
10131
+ boxShadow: `inset 0 0 0 2px ${mode(
10132
+ colors.greenHaze,
10133
+ colors.azure
10134
+ )(props)}, inset 0 0 0 4px ${mode(
10135
+ colors.white,
10136
+ colors.darkGrey
10137
+ )(props)}`
10138
+ },
10118
10139
  _hover: {
10119
10140
  backgroundColor: mode("darkTeal", "blueGreen")(props)
10120
10141
  },
@@ -10125,34 +10146,29 @@ var config6 = defineStyleConfig$1({
10125
10146
  secondary: (props) => ({
10126
10147
  // FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
10127
10148
  backgroundColor: mode("seaMist", "primaryGreen")(props),
10128
- color: mode("darkTeal", "white")(props),
10149
+ color: mode("darkTeal", "seaMist")(props),
10129
10150
  // order is important here for now while we do not have global defined background color for darkMode
10130
10151
  _hover: {
10131
10152
  backgroundColor: mode("coralGreen", "greenHaze")(props)
10132
10153
  },
10133
- ...focusVisible({
10134
- focus: {
10154
+ _focusVisible: {
10155
+ boxShadow: `inset 0 0 0 2px ${mode(
10156
+ colors.greenHaze,
10157
+ colors.primaryGreen
10158
+ )(props)}, inset 0 0 0 4px ${mode(
10159
+ colors.white,
10160
+ colors.darkTeal
10161
+ )(props)}`,
10162
+ _hover: {
10135
10163
  boxShadow: `inset 0 0 0 2px ${mode(
10136
10164
  colors.greenHaze,
10137
- colors.primaryGreen
10165
+ colors.azure
10138
10166
  )(props)}, inset 0 0 0 4px ${mode(
10139
10167
  colors.white,
10140
- colors.darkTeal
10141
- )(props)}`,
10142
- _hover: {
10143
- boxShadow: `inset 0 0 0 2px ${mode(
10144
- colors.greenHaze,
10145
- colors.azure
10146
- )(props)}, inset 0 0 0 4px ${mode(
10147
- colors.white,
10148
- colors.blackAlpha[500]
10149
- )(props)}`
10150
- }
10151
- },
10152
- notFocus: {
10153
- boxShadow: "none"
10168
+ colors.blackAlpha[500]
10169
+ )(props)}`
10154
10170
  }
10155
- }),
10171
+ },
10156
10172
  _active: {
10157
10173
  backgroundColor: mode("mint", "darkTeal")(props),
10158
10174
  boxShadow: `inset 0 0 0 2px ${mode(
@@ -10176,25 +10192,16 @@ var config6 = defineStyleConfig$1({
10176
10192
  tertiary: (props) => ({
10177
10193
  backgroundColor: "transparent",
10178
10194
  color: mode("darkGrey", "white")(props),
10179
- fontWeight: "normal",
10180
10195
  boxShadow: `inset 0 0 0 1px ${mode(
10181
10196
  colors.blackAlpha[400],
10182
10197
  colors.whiteAlpha[400]
10183
10198
  )(props)}`,
10184
- ...focusVisible({
10185
- focus: {
10186
- boxShadow: getBoxShadowString({
10187
- borderWidth: 2,
10188
- borderColor: "azure"
10189
- })
10190
- },
10191
- notFocus: {
10192
- boxShadow: `inset 0 0 0 1px ${mode(
10193
- colors.blackAlpha[400],
10194
- colors.whiteAlpha[400]
10195
- )(props)}`
10196
- }
10197
- }),
10199
+ _focusVisible: {
10200
+ boxShadow: getBoxShadowString({
10201
+ borderWidth: 2,
10202
+ borderColor: "azure"
10203
+ })
10204
+ },
10198
10205
  _hover: {
10199
10206
  boxShadow: `inset 0 0 0 2px currentColor`
10200
10207
  },
@@ -10209,18 +10216,12 @@ var config6 = defineStyleConfig$1({
10209
10216
  ghost: (props) => ({
10210
10217
  backgroundColor: "transparent",
10211
10218
  color: mode("darkGrey", "white")(props),
10212
- fontWeight: "normal",
10213
- ...focusVisible({
10214
- focus: {
10215
- boxShadow: getBoxShadowString({
10216
- borderColor: mode("greenHaze", "azure")(props),
10217
- borderWidth: 2
10218
- })
10219
- },
10220
- notFocus: {
10221
- outline: "none"
10222
- }
10223
- }),
10219
+ _focusVisible: {
10220
+ boxShadow: getBoxShadowString({
10221
+ borderColor: mode("greenHaze", "azure")(props),
10222
+ borderWidth: 2
10223
+ })
10224
+ },
10224
10225
  _hover: {
10225
10226
  backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
10226
10227
  _disabled: {
@@ -10248,49 +10249,47 @@ var config6 = defineStyleConfig$1({
10248
10249
  borderWidth: 2
10249
10250
  })
10250
10251
  },
10251
- ...focusVisible({
10252
- focus: {
10252
+ _focusVisible: {
10253
+ boxShadow: getBoxShadowString({
10254
+ borderColor: mode("greenHaze", "azure")(props),
10255
+ borderWidth: 2,
10256
+ baseShadow: "sm"
10257
+ }),
10258
+ _hover: {
10253
10259
  boxShadow: getBoxShadowString({
10254
10260
  borderColor: mode("greenHaze", "azure")(props),
10255
10261
  borderWidth: 2,
10256
- baseShadow: "sm"
10257
- }),
10258
- _hover: {
10259
- boxShadow: getBoxShadowString({
10260
- borderColor: mode("greenHaze", "azure")(props),
10261
- borderWidth: 2,
10262
- baseShadow: "md"
10263
- })
10264
- }
10265
- },
10266
- notFocus: {
10267
- outline: "none",
10268
- boxShadow: "sm"
10262
+ baseShadow: "md"
10263
+ })
10269
10264
  }
10270
- })
10265
+ }
10271
10266
  })
10272
10267
  },
10273
10268
  sizes: {
10274
10269
  lg: {
10275
10270
  minHeight: 8,
10276
10271
  minWidth: 8,
10277
- fontSize: "18px"
10272
+ fontSize: "18px",
10273
+ fontWeight: "bold"
10278
10274
  },
10279
10275
  md: {
10280
10276
  minHeight: 7,
10281
10277
  minWidth: 7,
10282
- fontSize: "18px"
10278
+ fontSize: "18px",
10279
+ fontWeight: "bold"
10283
10280
  },
10284
10281
  sm: {
10285
10282
  minHeight: 6,
10286
10283
  minWidth: 6,
10287
- fontSize: "16px"
10284
+ fontSize: "16px",
10285
+ fontWeight: "normal"
10288
10286
  },
10289
10287
  xs: {
10290
10288
  minHeight: 5,
10291
10289
  minWidth: 5,
10292
10290
  fontSize: "16px",
10293
- paddingX: 2
10291
+ paddingX: 2,
10292
+ fontWeight: "normal"
10294
10293
  }
10295
10294
  },
10296
10295
  defaultProps: {
@@ -10314,21 +10313,15 @@ var config7 = defineStyleConfig$1({
10314
10313
  ...getColorSchemeClickableProps(props),
10315
10314
  _hover: getColorSchemeHoverProps(props),
10316
10315
  _active: getColorSchemeActiveProps(props),
10317
- ...focusVisible({
10318
- focus: {
10319
- boxShadow: getBoxShadowString({
10320
- borderColor: mode("greenHaze", "azure")(props),
10321
- borderWidth: 2,
10322
- isInset: false
10323
- }),
10324
- outline: "none",
10325
- _active: getColorSchemeActiveProps(props)
10326
- },
10327
- notFocus: {
10328
- ...getColorSchemeClickableProps(props),
10329
- _active: getColorSchemeActiveProps(props)
10330
- }
10331
- }),
10316
+ _focusVisible: {
10317
+ boxShadow: getBoxShadowString({
10318
+ borderColor: mode("greenHaze", "azure")(props),
10319
+ borderWidth: 2,
10320
+ isInset: false
10321
+ }),
10322
+ outline: "none",
10323
+ _active: getColorSchemeActiveProps(props)
10324
+ },
10332
10325
  _disabled: {
10333
10326
  backgroundColor: "platinum",
10334
10327
  boxShadow: getBoxShadowString({
@@ -11974,6 +11967,11 @@ var config19 = helpers11.defineMultiStyleConfig({
11974
11967
  description: {
11975
11968
  display: "none"
11976
11969
  }
11970
+ }),
11971
+ custom: (props) => ({
11972
+ container: {
11973
+ backgroundColor: props.foregroundColor
11974
+ }
11977
11975
  })
11978
11976
  },
11979
11977
  sizes: {
@@ -12317,6 +12315,11 @@ var config22 = helpers14.defineMultiStyleConfig({
12317
12315
  color: "osloGrey"
12318
12316
  }
12319
12317
  }
12318
+ }),
12319
+ custom: (props) => ({
12320
+ iconContainer: {
12321
+ backgroundColor: props.backgroundColor
12322
+ }
12320
12323
  })
12321
12324
  },
12322
12325
  sizes: {