@vygruppen/spor-react 3.7.3 → 3.7.5
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 +21 -0
- package/dist/{CountryCodeSelect-WGNXQHWO.mjs → CountryCodeSelect-SNFTRR3O.mjs} +1 -1
- package/dist/{chunk-D2XVZVE6.mjs → chunk-GIAB4PHV.mjs} +213 -131
- package/dist/index.d.mts +40 -22
- package/dist/index.d.ts +40 -22
- package/dist/index.js +212 -128
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +1 -0
- package/src/button/FloatingActionButton.tsx +76 -61
- package/src/input/ChoiceChip.tsx +2 -0
- package/src/theme/components/accordion.ts +38 -21
- package/src/theme/components/breadcrumb.ts +21 -17
- package/src/theme/components/button.ts +71 -24
- package/src/theme/components/choice-chip.ts +22 -9
- package/src/theme/components/input.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.7.
|
2
|
+
> @vygruppen/spor-react@3.7.5 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -10,13 +10,13 @@
|
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
12
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
-
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
13
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-GIAB4PHV.mjs".
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m539.16 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 3758ms
|
16
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.09 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-SNFTRR3O.mjs [22m[32m1.19 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-GIAB4PHV.mjs [22m[32m430.78 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 3759ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 18414ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m256.32 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m256.32 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 3.7.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- fde28bf1: Input: Changed active-color to mint for light mode
|
8
|
+
- 6778a4cf: Breadcrumb: Fix focus
|
9
|
+
- e9fdce39: Fix bug where you couldn't use FAB as a link
|
10
|
+
|
11
|
+
## 3.7.4
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- 637d713b: Accordion, ExpandableItem: Set the correct minimum height
|
16
|
+
- 75971916: Dark mode support for Accordion
|
17
|
+
- 6854e54a: Updated buttons to support dark mode with some minor touch ups to the current styles.
|
18
|
+
Variant `tertiary`-buttons are now deprecated as we are updating our visual structure
|
19
|
+
with a more minimalistic selection; please use `secondary` instead.
|
20
|
+
- 1a88ad5a: Tweaked ChoiceChip colors, and added dark mode
|
21
|
+
- e48e91d5: Breadcrumb: Add dark mode support
|
22
|
+
- 5012de56: FloatingActionButton: Make the isTextVisible prop work as expected
|
23
|
+
|
3
24
|
## 3.7.3
|
4
25
|
|
5
26
|
### Patch Changes
|
@@ -1,10 +1,10 @@
|
|
1
|
-
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, useStyleConfig, Badge as Badge$1, Code as Code$1, Text,
|
1
|
+
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, useBreakpointValue, 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, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useColorModeValue, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerCloseButton, DrawerBody, usePopoverContext, DarkMode, PopoverCloseButton, ChakraProvider, HStack, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
2
2
|
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Collapse, 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, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, UnorderedList, VStack, Wrap, WrapItem, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
|
3
3
|
import tokens10__default from '@vygruppen/spor-design-tokens';
|
4
4
|
import * as tokens10 from '@vygruppen/spor-design-tokens';
|
5
5
|
export { tokens10 as tokens };
|
6
6
|
import * as React50 from 'react';
|
7
|
-
import React50__default, { createContext, forwardRef as forwardRef$1, useRef, useState,
|
7
|
+
import React50__default, { createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, useId, Suspense, useMemo, useContext, useCallback } from 'react';
|
8
8
|
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, DropdownRightFill18Icon, DropdownLeftFill18Icon, DropdownDownFill18Icon, DropdownDownFill24Icon, DropdownUpFill24Icon, ArrowRightFill18Icon, DropdownLeftFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, ErrorOutline24Icon, AltTransportOutline24Icon, WarningOutline24Icon, SuccessOutline24Icon, InformationOutline24Icon, TrainFill18Icon, TrainFill24Icon, TrainFill30Icon, ExpressBusFill18Icon, ExpressBusFill24Icon, ExpressBusFill30Icon, BusFill18Icon, BusFill24Icon, BusFill30Icon, FerryFill18Icon, FerryFill24Icon, FerryFill30Icon, SubwayFill18Icon, SubwayFill24Icon, SubwayFill30Icon, TramFill18Icon, TramFill24Icon, TramFill30Icon, AltTransportFill18Icon, AltTransportFill24Icon, AltTransportFill30Icon, WalkFill18Icon, WalkFill24Icon, WalkFill30Icon } from '@vygruppen/spor-icon-react';
|
9
9
|
import { inlineLoaderColorData, spinnerColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData, spinnerLightData } from '@vygruppen/spor-loader';
|
10
10
|
import { useLottie } from 'lottie-react';
|
@@ -1284,71 +1284,76 @@ var texts4 = createTexts({
|
|
1284
1284
|
}
|
1285
1285
|
});
|
1286
1286
|
var MotionBox = motion(Box);
|
1287
|
-
var FloatingActionButton = (
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
placement = "bottom right",
|
1293
|
-
...props
|
1294
|
-
}) => {
|
1295
|
-
const [isTextVisible, setIsTextVisible] = React50__default.useState(
|
1296
|
-
externalIsTextVisible !== void 0 ? externalIsTextVisible : true
|
1297
|
-
);
|
1298
|
-
const scrollDirection = useScrollDirection();
|
1299
|
-
React50__default.useEffect(() => {
|
1300
|
-
if (externalIsTextVisible !== void 0) {
|
1301
|
-
return;
|
1302
|
-
}
|
1303
|
-
const id = window.setTimeout(
|
1304
|
-
() => setIsTextVisible(scrollDirection !== "down"),
|
1305
|
-
1e3
|
1306
|
-
);
|
1307
|
-
return () => window.clearTimeout(id);
|
1308
|
-
}, [scrollDirection, externalIsTextVisible]);
|
1309
|
-
React50__default.useEffect(() => {
|
1310
|
-
setIsTextVisible(!!externalIsTextVisible);
|
1311
|
-
}, [externalIsTextVisible]);
|
1312
|
-
const style = useMultiStyleConfig("FloatingActionButton", {
|
1287
|
+
var FloatingActionButton = forwardRef(
|
1288
|
+
({
|
1289
|
+
as,
|
1290
|
+
children,
|
1291
|
+
icon,
|
1313
1292
|
variant,
|
1314
|
-
isTextVisible,
|
1315
|
-
placement
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1293
|
+
isTextVisible: externalIsTextVisible,
|
1294
|
+
placement = "bottom right",
|
1295
|
+
...props
|
1296
|
+
}, ref) => {
|
1297
|
+
const [isTextVisible, setIsTextVisible] = React50__default.useState(
|
1298
|
+
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
1299
|
+
);
|
1300
|
+
const scrollDirection = useScrollDirection();
|
1301
|
+
useEffect(() => {
|
1302
|
+
if (externalIsTextVisible !== void 0) {
|
1303
|
+
return;
|
1304
|
+
}
|
1305
|
+
const id = window.setTimeout(
|
1306
|
+
() => setIsTextVisible(scrollDirection !== "down"),
|
1307
|
+
1e3
|
1308
|
+
);
|
1309
|
+
return () => window.clearTimeout(id);
|
1310
|
+
}, [scrollDirection, externalIsTextVisible]);
|
1311
|
+
useEffect(() => {
|
1312
|
+
setIsTextVisible(!!externalIsTextVisible);
|
1313
|
+
}, [externalIsTextVisible]);
|
1314
|
+
const style = useMultiStyleConfig("FloatingActionButton", {
|
1315
|
+
variant,
|
1316
|
+
isTextVisible,
|
1317
|
+
placement
|
1318
|
+
});
|
1319
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1327
1320
|
MotionBox,
|
1328
1321
|
{
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1322
|
+
__css: style.container,
|
1323
|
+
"aria-label": children,
|
1324
|
+
ref,
|
1325
|
+
...props
|
1326
|
+
},
|
1327
|
+
/* @__PURE__ */ React50__default.createElement(Box, { __css: style.icon }, icon),
|
1328
|
+
/* @__PURE__ */ React50__default.createElement(
|
1329
|
+
MotionBox,
|
1330
|
+
{
|
1331
|
+
animate: isTextVisible ? "show" : "hide",
|
1332
|
+
initial: externalIsTextVisible ? "show" : "hide",
|
1333
|
+
variants: {
|
1334
|
+
show: {
|
1335
|
+
opacity: 1,
|
1336
|
+
width: "auto",
|
1337
|
+
visibility: "visible"
|
1338
|
+
},
|
1339
|
+
hide: {
|
1340
|
+
opacity: 0,
|
1341
|
+
width: 0,
|
1342
|
+
visibility: "hidden"
|
1343
|
+
}
|
1336
1344
|
},
|
1337
|
-
|
1338
|
-
opacity: 0,
|
1339
|
-
width: 0,
|
1340
|
-
visibility: "hidden"
|
1341
|
-
}
|
1345
|
+
__css: style.text
|
1342
1346
|
},
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
};
|
1347
|
+
children
|
1348
|
+
)
|
1349
|
+
);
|
1350
|
+
}
|
1351
|
+
);
|
1349
1352
|
var useScrollDirection = () => {
|
1350
1353
|
const [scrollDirection, setScrollDirection] = React50__default.useState(null);
|
1351
|
-
const lastScrollPosition = React50__default.useRef(
|
1354
|
+
const lastScrollPosition = React50__default.useRef(
|
1355
|
+
typeof window !== "undefined" ? window.scrollY : 0
|
1356
|
+
);
|
1352
1357
|
React50__default.useEffect(() => {
|
1353
1358
|
const onScroll = () => {
|
1354
1359
|
const delta = window.scrollY - lastScrollPosition.current;
|
@@ -4298,7 +4303,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4298
4303
|
__css: styles3.container,
|
4299
4304
|
"data-checked": dataAttr(state2.isChecked),
|
4300
4305
|
"data-hover": dataAttr(state2.isHovered),
|
4301
|
-
"data-focus": dataAttr(state2.isFocused)
|
4306
|
+
"data-focus": dataAttr(state2.isFocused),
|
4307
|
+
"data-active": dataAttr(state2.isActive),
|
4308
|
+
"data-disabled": dataAttr(state2.isDisabled)
|
4302
4309
|
},
|
4303
4310
|
icon && /* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
4304
4311
|
/* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, variant !== "icon" && children),
|
@@ -5083,7 +5090,7 @@ var texts14 = createTexts({
|
|
5083
5090
|
sv: "Telefonnummer"
|
5084
5091
|
}
|
5085
5092
|
});
|
5086
|
-
var LazyCountryCodeSelect = React50__default.lazy(() => import('./CountryCodeSelect-
|
5093
|
+
var LazyCountryCodeSelect = React50__default.lazy(() => import('./CountryCodeSelect-SNFTRR3O.mjs'));
|
5087
5094
|
var Radio = forwardRef((props, ref) => {
|
5088
5095
|
return /* @__PURE__ */ React50__default.createElement(Radio$1, { ...props, ref });
|
5089
5096
|
});
|
@@ -11056,11 +11063,9 @@ var styles2 = {
|
|
11056
11063
|
}
|
11057
11064
|
})
|
11058
11065
|
};
|
11059
|
-
|
11060
|
-
// src/theme/components/accordion.ts
|
11061
11066
|
var helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
11062
11067
|
var config3 = helpers.defineMultiStyleConfig({
|
11063
|
-
baseStyle: {
|
11068
|
+
baseStyle: (props) => ({
|
11064
11069
|
container: {
|
11065
11070
|
border: "none",
|
11066
11071
|
borderRadius: "sm"
|
@@ -11072,7 +11077,7 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11072
11077
|
borderRadius: "sm",
|
11073
11078
|
display: "flex",
|
11074
11079
|
justifyContent: "space-between",
|
11075
|
-
color: "darkGrey",
|
11080
|
+
color: mode("darkGrey", "white")(props),
|
11076
11081
|
textAlign: "left",
|
11077
11082
|
fontFamily: "body",
|
11078
11083
|
fontWeight: "bold",
|
@@ -11084,7 +11089,7 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11084
11089
|
},
|
11085
11090
|
focus: {
|
11086
11091
|
boxShadow: getBoxShadowString({
|
11087
|
-
borderColor: "greenHaze",
|
11092
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11088
11093
|
borderWidth: 2
|
11089
11094
|
})
|
11090
11095
|
}
|
@@ -11101,23 +11106,26 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11101
11106
|
icon: {
|
11102
11107
|
fontSize: "1.25em"
|
11103
11108
|
}
|
11104
|
-
},
|
11109
|
+
}),
|
11105
11110
|
variants: {
|
11106
|
-
list: {
|
11111
|
+
list: (props) => ({
|
11107
11112
|
button: {
|
11108
11113
|
boxShadow: "none",
|
11109
11114
|
_hover: {
|
11110
|
-
backgroundColor: "seaMist"
|
11115
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11111
11116
|
},
|
11112
11117
|
_active: {
|
11113
|
-
backgroundColor: "mint"
|
11118
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11114
11119
|
}
|
11115
11120
|
}
|
11116
|
-
},
|
11117
|
-
outline: {
|
11121
|
+
}),
|
11122
|
+
outline: (props) => ({
|
11118
11123
|
container: {
|
11119
11124
|
boxShadow: getBoxShadowString({
|
11120
|
-
borderColor:
|
11125
|
+
borderColor: mode(
|
11126
|
+
colors.blackAlpha["400"],
|
11127
|
+
colors.whiteAlpha["400"]
|
11128
|
+
)(props)
|
11121
11129
|
})
|
11122
11130
|
},
|
11123
11131
|
button: {
|
@@ -11126,23 +11134,24 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11126
11134
|
},
|
11127
11135
|
_hover: {
|
11128
11136
|
boxShadow: getBoxShadowString({
|
11129
|
-
borderColor: "darkGrey",
|
11137
|
+
borderColor: mode("darkGrey", "white")(props),
|
11130
11138
|
borderWidth: 2
|
11131
11139
|
})
|
11132
11140
|
},
|
11133
11141
|
_active: {
|
11134
|
-
backgroundColor: "mint",
|
11142
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
11135
11143
|
boxShadow: getBoxShadowString({
|
11136
|
-
borderColor: "darkGrey"
|
11144
|
+
borderColor: mode("darkGrey", colors.whiteAlpha[400])(props)
|
11137
11145
|
})
|
11138
11146
|
}
|
11139
11147
|
}
|
11140
|
-
},
|
11141
|
-
card: {
|
11148
|
+
}),
|
11149
|
+
card: (props) => ({
|
11142
11150
|
container: {
|
11151
|
+
backgroundColor: mode("white", "whiteAlpha.100")(props),
|
11143
11152
|
boxShadow: getBoxShadowString({
|
11144
|
-
baseShadow: "sm",
|
11145
|
-
borderColor: "silver"
|
11153
|
+
baseShadow: mode("sm", "none")(props),
|
11154
|
+
borderColor: mode("silver", "whiteAlpha.400")(props)
|
11146
11155
|
})
|
11147
11156
|
},
|
11148
11157
|
button: {
|
@@ -11150,20 +11159,30 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11150
11159
|
borderBottomRadius: "none"
|
11151
11160
|
},
|
11152
11161
|
_hover: {
|
11153
|
-
backgroundColor: "seaMist"
|
11162
|
+
backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
|
11163
|
+
boxShadow: getBoxShadowString({
|
11164
|
+
borderColor: mode("darkGrey", "white")(props),
|
11165
|
+
borderWidth: 1
|
11166
|
+
})
|
11154
11167
|
},
|
11155
11168
|
_active: {
|
11156
|
-
backgroundColor: "mint"
|
11169
|
+
backgroundColor: mode("mint", "inherit")(props),
|
11170
|
+
boxShadow: getBoxShadowString({
|
11171
|
+
baseShadow: "none",
|
11172
|
+
borderWidth: 1,
|
11173
|
+
borderColor: mode("darkGrey", "whiteAlpha.400")(props)
|
11174
|
+
})
|
11157
11175
|
}
|
11158
11176
|
}
|
11159
|
-
}
|
11177
|
+
})
|
11160
11178
|
},
|
11161
11179
|
sizes: {
|
11162
11180
|
sm: {
|
11163
11181
|
button: {
|
11164
11182
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
11165
11183
|
paddingX: 2,
|
11166
|
-
paddingY: 1
|
11184
|
+
paddingY: 1,
|
11185
|
+
minHeight: 6
|
11167
11186
|
},
|
11168
11187
|
panel: {
|
11169
11188
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
@@ -11174,7 +11193,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11174
11193
|
button: {
|
11175
11194
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11176
11195
|
paddingX: 3,
|
11177
|
-
paddingY: 1
|
11196
|
+
paddingY: 1,
|
11197
|
+
minHeight: 7
|
11178
11198
|
},
|
11179
11199
|
panel: {
|
11180
11200
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11185,7 +11205,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11185
11205
|
button: {
|
11186
11206
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11187
11207
|
paddingX: 3,
|
11188
|
-
paddingY: 2
|
11208
|
+
paddingY: 2,
|
11209
|
+
minHeight: 8
|
11189
11210
|
},
|
11190
11211
|
panel: {
|
11191
11212
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11343,10 +11364,8 @@ var colorCombinations = {
|
|
11343
11364
|
color: "darkGrey"
|
11344
11365
|
}
|
11345
11366
|
};
|
11346
|
-
|
11347
|
-
// src/theme/components/breadcrumb.ts
|
11348
11367
|
var { defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
|
11349
|
-
var baseStyleLink2 = defineStyle({
|
11368
|
+
var baseStyleLink2 = defineStyle((props) => ({
|
11350
11369
|
transitionProperty: "common",
|
11351
11370
|
transitionDuration: "fast",
|
11352
11371
|
transitionTimingFunction: "ease-out",
|
@@ -11359,26 +11378,31 @@ var baseStyleLink2 = defineStyle({
|
|
11359
11378
|
paddingX: 0.5,
|
11360
11379
|
borderRadius: "xs",
|
11361
11380
|
_hover: {
|
11362
|
-
backgroundColor: "
|
11363
|
-
},
|
11364
|
-
_focusVisible: {
|
11365
|
-
boxShadow: getBoxShadowString({
|
11366
|
-
borderColor: "greenHaze",
|
11367
|
-
borderWidth: 2
|
11368
|
-
})
|
11381
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11369
11382
|
},
|
11383
|
+
...focusVisible({
|
11384
|
+
focus: {
|
11385
|
+
boxShadow: getBoxShadowString({
|
11386
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11387
|
+
borderWidth: 2
|
11388
|
+
})
|
11389
|
+
},
|
11390
|
+
notFocus: {
|
11391
|
+
notFocus: { boxShadow: "none" }
|
11392
|
+
}
|
11393
|
+
}),
|
11370
11394
|
_active: {
|
11371
|
-
backgroundColor: "mint"
|
11395
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11372
11396
|
}
|
11373
11397
|
}
|
11374
|
-
});
|
11375
|
-
var baseStyle43 = definePartsStyle27({
|
11376
|
-
link: baseStyleLink2,
|
11398
|
+
}));
|
11399
|
+
var baseStyle43 = definePartsStyle27((props) => ({
|
11400
|
+
link: baseStyleLink2(props),
|
11377
11401
|
list: {
|
11378
11402
|
flexWrap: "wrap",
|
11379
11403
|
alignItems: "flex-start"
|
11380
11404
|
}
|
11381
|
-
});
|
11405
|
+
}));
|
11382
11406
|
var breadcrumb_default = defineMultiStyleConfig27({
|
11383
11407
|
baseStyle: baseStyle43
|
11384
11408
|
});
|
@@ -11407,28 +11431,39 @@ var config6 = defineStyleConfig$1({
|
|
11407
11431
|
}
|
11408
11432
|
},
|
11409
11433
|
variants: {
|
11410
|
-
control: {
|
11411
|
-
backgroundColor: "darkTeal",
|
11412
|
-
color: "white",
|
11434
|
+
control: (props) => ({
|
11435
|
+
backgroundColor: mode("darkTeal", "mint")(props),
|
11436
|
+
color: mode("white", "darkTeal")(props),
|
11413
11437
|
...focusVisible({
|
11414
11438
|
focus: {
|
11415
|
-
boxShadow: `inset 0 0 0 4px ${
|
11439
|
+
boxShadow: `inset 0 0 0 4px ${mode(
|
11440
|
+
colors.darkTeal,
|
11441
|
+
colors.seaMist
|
11442
|
+
)(props)}, inset 0 0 0 6px currentColor`
|
11416
11443
|
},
|
11417
11444
|
notFocus: { boxShadow: "none" }
|
11418
11445
|
}),
|
11419
11446
|
_hover: {
|
11420
|
-
backgroundColor: "night"
|
11447
|
+
backgroundColor: mode("night", "coralGreen")(props)
|
11421
11448
|
},
|
11422
11449
|
_active: {
|
11423
|
-
backgroundColor: "pine"
|
11450
|
+
backgroundColor: mode("pine", "white")(props)
|
11424
11451
|
}
|
11425
|
-
},
|
11426
|
-
primary: {
|
11452
|
+
}),
|
11453
|
+
primary: (props) => ({
|
11454
|
+
// FIXME: Update to use a global defined background color for darkMode whenever it is available.
|
11455
|
+
// hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
|
11427
11456
|
backgroundColor: "primaryGreen",
|
11428
11457
|
color: "white",
|
11429
11458
|
...focusVisible({
|
11430
11459
|
focus: {
|
11431
|
-
boxShadow: `inset 0 0 0
|
11460
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11461
|
+
colors.greenHaze,
|
11462
|
+
colors.azure
|
11463
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11464
|
+
colors.white,
|
11465
|
+
colors.darkGrey
|
11466
|
+
)(props)}`
|
11432
11467
|
},
|
11433
11468
|
notFocus: { boxShadow: "none" }
|
11434
11469
|
}),
|
@@ -11438,25 +11473,61 @@ var config6 = defineStyleConfig$1({
|
|
11438
11473
|
_active: {
|
11439
11474
|
backgroundColor: "azure"
|
11440
11475
|
}
|
11441
|
-
},
|
11442
|
-
secondary: {
|
11443
|
-
|
11444
|
-
|
11476
|
+
}),
|
11477
|
+
secondary: (props) => ({
|
11478
|
+
// FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
|
11479
|
+
backgroundColor: mode("seaMist", "whiteAlpha.100")(props),
|
11480
|
+
color: mode("darkTeal", "white")(props),
|
11481
|
+
// order is important here for now while we do not have global defined background color for darkMode
|
11482
|
+
_hover: {
|
11483
|
+
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props)
|
11484
|
+
},
|
11445
11485
|
...focusVisible({
|
11446
11486
|
focus: {
|
11447
|
-
boxShadow: `inset 0 0 0
|
11487
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11488
|
+
colors.greenHaze,
|
11489
|
+
colors.azure
|
11490
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11491
|
+
colors.white,
|
11492
|
+
colors.blackAlpha[300]
|
11493
|
+
)(props)}`,
|
11494
|
+
_hover: {
|
11495
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11496
|
+
colors.greenHaze,
|
11497
|
+
colors.azure
|
11498
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11499
|
+
colors.white,
|
11500
|
+
colors.blackAlpha[500]
|
11501
|
+
)(props)}`
|
11502
|
+
}
|
11448
11503
|
},
|
11449
11504
|
notFocus: {
|
11450
11505
|
boxShadow: "none"
|
11451
11506
|
}
|
11452
11507
|
}),
|
11453
|
-
_hover: {
|
11454
|
-
backgroundColor: "blueGreen"
|
11455
|
-
},
|
11456
11508
|
_active: {
|
11457
|
-
backgroundColor: "mint"
|
11509
|
+
backgroundColor: mode("mint", "whiteAlpha.300")(props),
|
11510
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11511
|
+
colors.greenHaze,
|
11512
|
+
colors.azure
|
11513
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11514
|
+
colors.white,
|
11515
|
+
colors.blackAlpha[600]
|
11516
|
+
)(props)}`,
|
11517
|
+
_hover: {
|
11518
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11519
|
+
colors.greenHaze,
|
11520
|
+
colors.azure
|
11521
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11522
|
+
colors.white,
|
11523
|
+
colors.blackAlpha[600]
|
11524
|
+
)(props)}`
|
11525
|
+
}
|
11458
11526
|
}
|
11459
|
-
},
|
11527
|
+
}),
|
11528
|
+
/**
|
11529
|
+
* @deprecated use `secondary` instead.
|
11530
|
+
*/
|
11460
11531
|
tertiary: {
|
11461
11532
|
backgroundColor: "mint",
|
11462
11533
|
color: "darkGrey",
|
@@ -11485,7 +11556,7 @@ var config6 = defineStyleConfig$1({
|
|
11485
11556
|
...focusVisible({
|
11486
11557
|
focus: {
|
11487
11558
|
boxShadow: getBoxShadowString({
|
11488
|
-
borderWidth:
|
11559
|
+
borderWidth: 2,
|
11489
11560
|
borderColor: "greenHaze"
|
11490
11561
|
})
|
11491
11562
|
},
|
@@ -11992,32 +12063,43 @@ var helpers5 = createMultiStyleConfigHelpers$1(parts3.keys);
|
|
11992
12063
|
var config10 = helpers5.defineMultiStyleConfig({
|
11993
12064
|
baseStyle: (props) => ({
|
11994
12065
|
container: {
|
11995
|
-
backgroundColor: "white",
|
12066
|
+
backgroundColor: mode("white", "transparent")(props),
|
11996
12067
|
boxShadow: getBoxShadowString({ borderColor: "celadon" }),
|
11997
|
-
color: "darkTeal",
|
12068
|
+
color: mode("darkTeal", "white")(props),
|
11998
12069
|
display: "inline-flex",
|
11999
12070
|
alignItems: "center",
|
12000
12071
|
fontSize: "16px",
|
12001
12072
|
px: 1,
|
12002
12073
|
_checked: {
|
12003
|
-
|
12074
|
+
color: "white",
|
12075
|
+
background: "pine",
|
12004
12076
|
boxShadow: getBoxShadowString({ borderColor: "celadon" })
|
12005
12077
|
},
|
12006
12078
|
"input:focus-visible + &": {
|
12007
|
-
boxShadow:
|
12008
|
-
|
12009
|
-
|
12010
|
-
}
|
12079
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
12080
|
+
colors.greenHaze,
|
12081
|
+
colors.azure
|
12082
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
12083
|
+
colors.white,
|
12084
|
+
colors.darkGrey
|
12085
|
+
)(props)}`
|
12011
12086
|
},
|
12012
12087
|
"@media (hover:hover)": {
|
12013
12088
|
_hover: {
|
12089
|
+
color: mode("darkTeal", "white")(props),
|
12014
12090
|
boxShadow: getBoxShadowString({
|
12015
12091
|
borderColor: "greenHaze",
|
12016
12092
|
borderWidth: 2
|
12017
12093
|
}),
|
12018
|
-
background: "
|
12094
|
+
background: mode("coralGreen", "whiteAlpha.200")(props),
|
12019
12095
|
cursor: "pointer"
|
12020
12096
|
}
|
12097
|
+
},
|
12098
|
+
_active: {
|
12099
|
+
backgroundColor: mode("mint", "whiteAlpha.300")(props),
|
12100
|
+
boxShadow: getBoxShadowString({
|
12101
|
+
borderColor: "pine"
|
12102
|
+
})
|
12021
12103
|
}
|
12022
12104
|
},
|
12023
12105
|
icon: {
|
@@ -13010,7 +13092,7 @@ var config21 = helpers13.defineMultiStyleConfig({
|
|
13010
13092
|
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
13011
13093
|
}),
|
13012
13094
|
_active: {
|
13013
|
-
backgroundColor: mode("
|
13095
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
13014
13096
|
boxShadow: getBoxShadowString({
|
13015
13097
|
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
13016
13098
|
})
|