@vygruppen/spor-react 6.0.0 → 6.2.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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +18 -0
- package/dist/{CountryCodeSelect-EM747ZM6.mjs → CountryCodeSelect-QBDQ3HTF.mjs} +1 -1
- package/dist/{chunk-GAHDJA6T.mjs → chunk-UIM4MXLY.mjs} +140 -119
- package/dist/index.d.mts +122 -38
- package/dist/index.d.ts +122 -38
- package/dist/index.js +138 -118
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +44 -43
- package/src/button/IconButton.tsx +4 -0
- package/src/linjetag/InfoTag.tsx +23 -2
- package/src/linjetag/LineIcon.tsx +38 -5
- package/src/linjetag/TravelTag.tsx +21 -1
- package/src/linjetag/types.d.ts +17 -2
- package/src/theme/components/button.ts +47 -74
- package/src/theme/components/card-select.ts +1 -0
- package/src/theme/components/line-icon.ts +5 -0
- package/src/theme/components/travel-tag.ts +5 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@6.
|
2
|
+
> @vygruppen/spor-react@6.2.0 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,14 +9,14 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
|
12
|
+
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-UIM4MXLY.mjs".
|
12
13
|
[34mDTS[39m Build start
|
13
|
-
|
14
|
-
[32mCJS[39m
|
15
|
-
[32mCJS[39m ⚡️ Build success in 2004ms
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m507.54 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 2262ms
|
16
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.16 KB[39m
|
17
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
18
|
-
[32mESM[39m [1mdist/chunk-
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
22
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-QBDQ3HTF.mjs [22m[32m1.19 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-UIM4MXLY.mjs [22m[32m398.07 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 2262ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 12347ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m266.83 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m266.83 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 6.2.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 51b98a9: LineTag, TravelTag, LineIcon: Add new variant="custom" option.
|
8
|
+
|
9
|
+
This new variant lets you specify custom foreground and background colors, as well as an icon variant.
|
10
|
+
|
11
|
+
- 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.
|
12
|
+
|
13
|
+
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.
|
14
|
+
|
15
|
+
## 6.1.0
|
16
|
+
|
17
|
+
### Minor Changes
|
18
|
+
|
19
|
+
- 81e1ae6: cardselect: removed some code by mistake, adding it back in
|
20
|
+
|
3
21
|
## 6.0.0
|
4
22
|
|
5
23
|
### Major Changes
|
@@ -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,
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
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
|
-
|
1211
|
+
Flex,
|
1213
1212
|
{
|
1213
|
+
justifyContent: "space-between",
|
1214
|
+
alignItems: "center",
|
1215
|
+
gap: 1,
|
1214
1216
|
visibility: isLoading ? "hidden" : "visible",
|
1215
|
-
|
1216
|
-
textAlign: "left"
|
1217
|
+
"aria-hidden": isLoading
|
1217
1218
|
},
|
1218
|
-
|
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
|
});
|
@@ -3427,7 +3437,7 @@ var texts14 = createTexts({
|
|
3427
3437
|
sv: "Telefonnummer"
|
3428
3438
|
}
|
3429
3439
|
});
|
3430
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
3440
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-QBDQ3HTF.mjs'));
|
3431
3441
|
var Radio = forwardRef((props, ref) => {
|
3432
3442
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
3433
3443
|
});
|
@@ -3615,8 +3625,11 @@ var LineIcon = ({
|
|
3615
3625
|
sx,
|
3616
3626
|
...rest
|
3617
3627
|
}) => {
|
3618
|
-
const styles3 = useMultiStyleConfig("LineIcon", { variant, size: size2 });
|
3619
|
-
const Icon = getCorrectIcon({
|
3628
|
+
const styles3 = useMultiStyleConfig("LineIcon", { variant, size: size2, ...rest });
|
3629
|
+
const Icon = getCorrectIcon({
|
3630
|
+
variant: variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant,
|
3631
|
+
size: size2
|
3632
|
+
});
|
3620
3633
|
if (!Icon) {
|
3621
3634
|
return null;
|
3622
3635
|
}
|
@@ -3628,10 +3641,23 @@ var InfoTag = ({
|
|
3628
3641
|
variant,
|
3629
3642
|
size: size2 = "md",
|
3630
3643
|
title,
|
3631
|
-
description
|
3644
|
+
description,
|
3645
|
+
...customProps
|
3632
3646
|
}) => {
|
3633
|
-
const styles3 = useMultiStyleConfig("InfoTag", {
|
3634
|
-
|
3647
|
+
const styles3 = useMultiStyleConfig("InfoTag", {
|
3648
|
+
variant,
|
3649
|
+
size: size2,
|
3650
|
+
...customProps
|
3651
|
+
});
|
3652
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React69__default.createElement(
|
3653
|
+
LineIcon,
|
3654
|
+
{
|
3655
|
+
variant,
|
3656
|
+
size: size2,
|
3657
|
+
sx: styles3.iconContainer,
|
3658
|
+
...customProps
|
3659
|
+
}
|
3660
|
+
), /* @__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
3661
|
};
|
3636
3662
|
var TravelTag = forwardRef(
|
3637
3663
|
({
|
@@ -3646,10 +3672,20 @@ var TravelTag = forwardRef(
|
|
3646
3672
|
const styles3 = useMultiStyleConfig("TravelTag", {
|
3647
3673
|
variant,
|
3648
3674
|
size: size2,
|
3649
|
-
deviationLevel
|
3675
|
+
deviationLevel,
|
3676
|
+
foregroundColor: variant === "custom" ? rest.foregroundColor : void 0,
|
3677
|
+
backgroundColor: variant === "custom" ? rest.backgroundColor : void 0
|
3650
3678
|
});
|
3651
3679
|
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(
|
3680
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React69__default.createElement(
|
3681
|
+
LineIcon,
|
3682
|
+
{
|
3683
|
+
variant,
|
3684
|
+
size: size2,
|
3685
|
+
sx: styles3.iconContainer,
|
3686
|
+
...rest
|
3687
|
+
}
|
3688
|
+
), /* @__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
3689
|
}
|
3654
3690
|
);
|
3655
3691
|
var getDeviationLevelIcon = ({
|
@@ -10075,7 +10111,6 @@ var config6 = defineStyleConfig$1({
|
|
10075
10111
|
baseStyle: {
|
10076
10112
|
border: 0,
|
10077
10113
|
borderRadius: "xl",
|
10078
|
-
fontWeight: "bold",
|
10079
10114
|
transitionProperty: "common",
|
10080
10115
|
transitionDuration: "normal",
|
10081
10116
|
textWrap: "wrap",
|
@@ -10103,18 +10138,15 @@ var config6 = defineStyleConfig$1({
|
|
10103
10138
|
// hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
|
10104
10139
|
backgroundColor: mode("pine", "coralGreen")(props),
|
10105
10140
|
color: mode("white", "darkTeal")(props),
|
10106
|
-
|
10107
|
-
|
10108
|
-
|
10109
|
-
|
10110
|
-
|
10111
|
-
|
10112
|
-
|
10113
|
-
|
10114
|
-
|
10115
|
-
},
|
10116
|
-
notFocus: { boxShadow: "none" }
|
10117
|
-
}),
|
10141
|
+
_focusVisible: {
|
10142
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
10143
|
+
colors.greenHaze,
|
10144
|
+
colors.azure
|
10145
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
10146
|
+
colors.white,
|
10147
|
+
colors.darkGrey
|
10148
|
+
)(props)}`
|
10149
|
+
},
|
10118
10150
|
_hover: {
|
10119
10151
|
backgroundColor: mode("darkTeal", "blueGreen")(props)
|
10120
10152
|
},
|
@@ -10125,34 +10157,29 @@ var config6 = defineStyleConfig$1({
|
|
10125
10157
|
secondary: (props) => ({
|
10126
10158
|
// FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
|
10127
10159
|
backgroundColor: mode("seaMist", "primaryGreen")(props),
|
10128
|
-
color: mode("darkTeal", "
|
10160
|
+
color: mode("darkTeal", "seaMist")(props),
|
10129
10161
|
// order is important here for now while we do not have global defined background color for darkMode
|
10130
10162
|
_hover: {
|
10131
10163
|
backgroundColor: mode("coralGreen", "greenHaze")(props)
|
10132
10164
|
},
|
10133
|
-
|
10134
|
-
|
10165
|
+
_focusVisible: {
|
10166
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
10167
|
+
colors.greenHaze,
|
10168
|
+
colors.primaryGreen
|
10169
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
10170
|
+
colors.white,
|
10171
|
+
colors.darkTeal
|
10172
|
+
)(props)}`,
|
10173
|
+
_hover: {
|
10135
10174
|
boxShadow: `inset 0 0 0 2px ${mode(
|
10136
10175
|
colors.greenHaze,
|
10137
|
-
colors.
|
10176
|
+
colors.azure
|
10138
10177
|
)(props)}, inset 0 0 0 4px ${mode(
|
10139
10178
|
colors.white,
|
10140
|
-
colors.
|
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"
|
10179
|
+
colors.blackAlpha[500]
|
10180
|
+
)(props)}`
|
10154
10181
|
}
|
10155
|
-
}
|
10182
|
+
},
|
10156
10183
|
_active: {
|
10157
10184
|
backgroundColor: mode("mint", "darkTeal")(props),
|
10158
10185
|
boxShadow: `inset 0 0 0 2px ${mode(
|
@@ -10176,25 +10203,16 @@ var config6 = defineStyleConfig$1({
|
|
10176
10203
|
tertiary: (props) => ({
|
10177
10204
|
backgroundColor: "transparent",
|
10178
10205
|
color: mode("darkGrey", "white")(props),
|
10179
|
-
fontWeight: "normal",
|
10180
10206
|
boxShadow: `inset 0 0 0 1px ${mode(
|
10181
10207
|
colors.blackAlpha[400],
|
10182
10208
|
colors.whiteAlpha[400]
|
10183
10209
|
)(props)}`,
|
10184
|
-
|
10185
|
-
|
10186
|
-
|
10187
|
-
|
10188
|
-
|
10189
|
-
|
10190
|
-
},
|
10191
|
-
notFocus: {
|
10192
|
-
boxShadow: `inset 0 0 0 1px ${mode(
|
10193
|
-
colors.blackAlpha[400],
|
10194
|
-
colors.whiteAlpha[400]
|
10195
|
-
)(props)}`
|
10196
|
-
}
|
10197
|
-
}),
|
10210
|
+
_focusVisible: {
|
10211
|
+
boxShadow: getBoxShadowString({
|
10212
|
+
borderWidth: 2,
|
10213
|
+
borderColor: "azure"
|
10214
|
+
})
|
10215
|
+
},
|
10198
10216
|
_hover: {
|
10199
10217
|
boxShadow: `inset 0 0 0 2px currentColor`
|
10200
10218
|
},
|
@@ -10209,18 +10227,12 @@ var config6 = defineStyleConfig$1({
|
|
10209
10227
|
ghost: (props) => ({
|
10210
10228
|
backgroundColor: "transparent",
|
10211
10229
|
color: mode("darkGrey", "white")(props),
|
10212
|
-
|
10213
|
-
|
10214
|
-
|
10215
|
-
|
10216
|
-
|
10217
|
-
|
10218
|
-
})
|
10219
|
-
},
|
10220
|
-
notFocus: {
|
10221
|
-
outline: "none"
|
10222
|
-
}
|
10223
|
-
}),
|
10230
|
+
_focusVisible: {
|
10231
|
+
boxShadow: getBoxShadowString({
|
10232
|
+
borderColor: mode("greenHaze", "azure")(props),
|
10233
|
+
borderWidth: 2
|
10234
|
+
})
|
10235
|
+
},
|
10224
10236
|
_hover: {
|
10225
10237
|
backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
|
10226
10238
|
_disabled: {
|
@@ -10248,49 +10260,47 @@ var config6 = defineStyleConfig$1({
|
|
10248
10260
|
borderWidth: 2
|
10249
10261
|
})
|
10250
10262
|
},
|
10251
|
-
|
10252
|
-
|
10263
|
+
_focusVisible: {
|
10264
|
+
boxShadow: getBoxShadowString({
|
10265
|
+
borderColor: mode("greenHaze", "azure")(props),
|
10266
|
+
borderWidth: 2,
|
10267
|
+
baseShadow: "sm"
|
10268
|
+
}),
|
10269
|
+
_hover: {
|
10253
10270
|
boxShadow: getBoxShadowString({
|
10254
10271
|
borderColor: mode("greenHaze", "azure")(props),
|
10255
10272
|
borderWidth: 2,
|
10256
|
-
baseShadow: "
|
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"
|
10273
|
+
baseShadow: "md"
|
10274
|
+
})
|
10269
10275
|
}
|
10270
|
-
}
|
10276
|
+
}
|
10271
10277
|
})
|
10272
10278
|
},
|
10273
10279
|
sizes: {
|
10274
10280
|
lg: {
|
10275
10281
|
minHeight: 8,
|
10276
10282
|
minWidth: 8,
|
10277
|
-
fontSize: "18px"
|
10283
|
+
fontSize: "18px",
|
10284
|
+
fontWeight: "bold"
|
10278
10285
|
},
|
10279
10286
|
md: {
|
10280
10287
|
minHeight: 7,
|
10281
10288
|
minWidth: 7,
|
10282
|
-
fontSize: "18px"
|
10289
|
+
fontSize: "18px",
|
10290
|
+
fontWeight: "bold"
|
10283
10291
|
},
|
10284
10292
|
sm: {
|
10285
10293
|
minHeight: 6,
|
10286
10294
|
minWidth: 6,
|
10287
|
-
fontSize: "16px"
|
10295
|
+
fontSize: "16px",
|
10296
|
+
fontWeight: "normal"
|
10288
10297
|
},
|
10289
10298
|
xs: {
|
10290
10299
|
minHeight: 5,
|
10291
10300
|
minWidth: 5,
|
10292
10301
|
fontSize: "16px",
|
10293
|
-
paddingX: 2
|
10302
|
+
paddingX: 2,
|
10303
|
+
fontWeight: "normal"
|
10294
10304
|
}
|
10295
10305
|
},
|
10296
10306
|
defaultProps: {
|
@@ -10583,7 +10593,8 @@ var config8 = helpers3.defineMultiStyleConfig({
|
|
10583
10593
|
borderRadius: "sm",
|
10584
10594
|
boxShadow: "md",
|
10585
10595
|
padding: 3,
|
10586
|
-
color: mode("darkGrey", "white")(props)
|
10596
|
+
color: mode("darkGrey", "white")(props),
|
10597
|
+
...floatingBackground("default", props)
|
10587
10598
|
}
|
10588
10599
|
}),
|
10589
10600
|
variants: {
|
@@ -11973,6 +11984,11 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
11973
11984
|
description: {
|
11974
11985
|
display: "none"
|
11975
11986
|
}
|
11987
|
+
}),
|
11988
|
+
custom: (props) => ({
|
11989
|
+
container: {
|
11990
|
+
backgroundColor: props.foregroundColor
|
11991
|
+
}
|
11976
11992
|
})
|
11977
11993
|
},
|
11978
11994
|
sizes: {
|
@@ -12316,6 +12332,11 @@ var config22 = helpers14.defineMultiStyleConfig({
|
|
12316
12332
|
color: "osloGrey"
|
12317
12333
|
}
|
12318
12334
|
}
|
12335
|
+
}),
|
12336
|
+
custom: (props) => ({
|
12337
|
+
iconContainer: {
|
12338
|
+
backgroundColor: props.backgroundColor
|
12339
|
+
}
|
12319
12340
|
})
|
12320
12341
|
},
|
12321
12342
|
sizes: {
|