@vygruppen/spor-react 4.0.1 → 4.0.3
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 +11 -11
- package/CHANGELOG.md +16 -0
- package/dist/{CountryCodeSelect-HCQZVKWU.mjs → CountryCodeSelect-RUH47EQH.mjs} +1 -1
- package/dist/{chunk-3SY4N6MP.mjs → chunk-XT6QVKN5.mjs} +127 -57
- package/dist/index.d.mts +65 -38
- package/dist/index.d.ts +65 -38
- package/dist/index.js +138 -56
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +1 -1
- package/src/datepicker/TimePicker.tsx +5 -3
- package/src/input/CardSelect.tsx +1 -1
- package/src/input/FormErrorMessage.tsx +1 -1
- package/src/input/InfoSelect.tsx +1 -1
- package/src/input/PasswordInput.tsx +1 -0
- package/src/linjetag/InfoTag.tsx +1 -1
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/linjetag/TravelTag.tsx +1 -1
- package/src/loader/DarkSpinner.tsx +5 -3
- package/src/theme/components/info-select.ts +23 -36
- package/src/theme/components/input.ts +12 -5
- package/src/theme/components/list.ts +12 -12
- package/src/theme/components/listbox.ts +13 -7
- package/src/theme/components/select.ts +5 -4
- package/src/theme/utils/background-utils.ts +28 -0
- package/src/theme/utils/border-utils.ts +59 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@4.0.
|
2
|
+
> @vygruppen/spor-react@4.0.3 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -8,15 +8,15 @@
|
|
8
8
|
[34mCLI[39m Target: node16
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
|
-
|
11
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-XT6QVKN5.mjs".
|
12
12
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
-
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m550.61 KB[39m
|
15
|
-
[32mCJS[39m ⚡️ Build success in 3780ms
|
13
|
+
[34mDTS[39m Build start
|
16
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.10 KB[39m
|
17
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
18
|
-
[32mESM[39m [1mdist/chunk-
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
20
|
-
[
|
21
|
-
[
|
22
|
-
[32mDTS[39m
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-RUH47EQH.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-XT6QVKN5.mjs [22m[32m441.18 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 3115ms
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m552.47 KB[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 3116ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 14728ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m265.43 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m265.43 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 4.0.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 1cd9939e: TimePicker: Make defaultValue=null a valid value
|
8
|
+
- 8b4ab3ac: spinner: added darkmode for Darkspinner
|
9
|
+
|
10
|
+
## 4.0.2
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- 0f59ee68: InfoSelect: Added dark mode
|
15
|
+
- 573f649a: Input, PasswordInput, SearchInput, InfoSelect, NativeSelect: Tweak disabled state styling.
|
16
|
+
- d9c2de51: docs: update links
|
17
|
+
- 0cc70e7e: Fix some issues with the styling of lists"
|
18
|
+
|
3
19
|
## 4.0.1
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -1,4 +1,4 @@
|
|
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, 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';
|
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, 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, 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, Portal, 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';
|
@@ -6,7 +6,7 @@ export { tokens10 as tokens };
|
|
6
6
|
import * as React69 from 'react';
|
7
7
|
import React69__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
|
-
import { inlineLoaderColorData, spinnerColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData,
|
9
|
+
import { inlineLoaderColorData, spinnerColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, fullScreenLoaderBlackData, inlineLoaderLightData, spinnerLightData, spinnerDarkData } from '@vygruppen/spor-loader';
|
10
10
|
import { useLottie } from 'lottie-react';
|
11
11
|
import { useDateSegment, useDateField, useDatePicker, I18nProvider, usePopover, DismissButton, Overlay, useOverlayTrigger, useButton, useProgressBar, useCalendar, useDateRangePicker, useDialog, useFilter, useComboBox, useListBox, useOption, useListBoxSection, useSelect, HiddenSelect, useCalendarGrid, useRangeCalendar, useTimeField, useCalendarCell } from 'react-aria';
|
12
12
|
import { motion } from 'framer-motion';
|
@@ -961,7 +961,9 @@ var DarkSpinner = ({
|
|
961
961
|
maxWidth,
|
962
962
|
...props
|
963
963
|
}) => {
|
964
|
-
|
964
|
+
const { colorMode } = useColorMode();
|
965
|
+
const spinnerData = colorMode === "dark" ? spinnerLightData : spinnerDarkData;
|
966
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: spinnerData }))), children && /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
965
967
|
};
|
966
968
|
var LightFullScreenLoader = ({
|
967
969
|
width,
|
@@ -5022,7 +5024,8 @@ var PasswordInput = forwardRef(
|
|
5022
5024
|
type: "button",
|
5023
5025
|
onClick: onToggle,
|
5024
5026
|
borderRadius: "sm",
|
5025
|
-
marginRight: 1
|
5027
|
+
marginRight: 1,
|
5028
|
+
isDisabled: props.disabled || props.isDisabled
|
5026
5029
|
},
|
5027
5030
|
isShowingPassword ? t2(texts13.hidePassword) : t2(texts13.showPassword)
|
5028
5031
|
)));
|
@@ -5110,7 +5113,7 @@ var texts14 = createTexts({
|
|
5110
5113
|
sv: "Telefonnummer"
|
5111
5114
|
}
|
5112
5115
|
});
|
5113
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
5116
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-RUH47EQH.mjs'));
|
5114
5117
|
var Radio = forwardRef((props, ref) => {
|
5115
5118
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
5116
5119
|
});
|
@@ -12910,6 +12913,71 @@ var srOnly2 = {
|
|
12910
12913
|
width: "1px !important",
|
12911
12914
|
whiteSpace: "nowrap !important"
|
12912
12915
|
};
|
12916
|
+
function baseBorder(state2, props) {
|
12917
|
+
switch (state2) {
|
12918
|
+
case "hover":
|
12919
|
+
return {
|
12920
|
+
boxShadow: getBoxShadowString({
|
12921
|
+
borderColor: mode("darkGrey", "white")(props),
|
12922
|
+
borderWidth: 2
|
12923
|
+
})
|
12924
|
+
};
|
12925
|
+
case "focus": {
|
12926
|
+
return {
|
12927
|
+
boxShadow: getBoxShadowString({
|
12928
|
+
borderColor: mode("greenHaze", "azure")(props),
|
12929
|
+
borderWidth: 2
|
12930
|
+
})
|
12931
|
+
};
|
12932
|
+
}
|
12933
|
+
case "disabled": {
|
12934
|
+
return {
|
12935
|
+
boxShadow: getBoxShadowString({
|
12936
|
+
borderColor: mode("platinum", "whiteAlpha.400")(props)
|
12937
|
+
})
|
12938
|
+
};
|
12939
|
+
}
|
12940
|
+
case "selected":
|
12941
|
+
return {
|
12942
|
+
boxShadow: getBoxShadowString({
|
12943
|
+
borderColor: mode("greenHaze", "azure")(props)
|
12944
|
+
})
|
12945
|
+
};
|
12946
|
+
case "invalid": {
|
12947
|
+
return {
|
12948
|
+
boxShadow: getBoxShadowString({
|
12949
|
+
borderColor: "brightRed",
|
12950
|
+
borderWidth: 2
|
12951
|
+
})
|
12952
|
+
};
|
12953
|
+
}
|
12954
|
+
case "default":
|
12955
|
+
default:
|
12956
|
+
return {
|
12957
|
+
boxShadow: getBoxShadowString({
|
12958
|
+
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12959
|
+
})
|
12960
|
+
};
|
12961
|
+
}
|
12962
|
+
}
|
12963
|
+
function baseBackground(state2, props) {
|
12964
|
+
switch (state2) {
|
12965
|
+
case "active":
|
12966
|
+
return {
|
12967
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props)
|
12968
|
+
};
|
12969
|
+
case "selected":
|
12970
|
+
return {
|
12971
|
+
backgroundColor: "pine"
|
12972
|
+
};
|
12973
|
+
case "disabled":
|
12974
|
+
return {
|
12975
|
+
backgroundColor: mode("silver", "whiteAlpha.100")(props)
|
12976
|
+
};
|
12977
|
+
default:
|
12978
|
+
return {};
|
12979
|
+
}
|
12980
|
+
}
|
12913
12981
|
|
12914
12982
|
// src/theme/components/info-select.ts
|
12915
12983
|
var parts6 = anatomy("InfoSelect").parts(
|
@@ -12936,57 +13004,44 @@ var config18 = helpers10.defineMultiStyleConfig({
|
|
12936
13004
|
justifyContent: "space-between",
|
12937
13005
|
alignItems: "center",
|
12938
13006
|
fontSize: "mobile.md",
|
12939
|
-
|
12940
|
-
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12941
|
-
}),
|
13007
|
+
...baseBorder("default", props),
|
12942
13008
|
_hover: {
|
12943
|
-
|
12944
|
-
borderColor: mode("darkGrey", "whiteAlpha.600")(props),
|
12945
|
-
borderWidth: 2
|
12946
|
-
})
|
13009
|
+
...baseBorder("hover", props)
|
12947
13010
|
},
|
12948
13011
|
...focusVisible({
|
12949
13012
|
focus: {
|
12950
|
-
|
12951
|
-
borderColor: "greenHaze",
|
12952
|
-
borderWidth: 2
|
12953
|
-
}),
|
13013
|
+
...baseBorder("focus", props),
|
12954
13014
|
outline: "none"
|
12955
13015
|
},
|
12956
13016
|
notFocus: {
|
12957
|
-
|
12958
|
-
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12959
|
-
})
|
13017
|
+
...baseBorder("default", props)
|
12960
13018
|
}
|
12961
13019
|
}),
|
12962
13020
|
_disabled: {
|
12963
|
-
|
12964
|
-
|
12965
|
-
|
13021
|
+
color: "whiteAlpha.400",
|
13022
|
+
...baseBackground("disabled", props),
|
13023
|
+
_hover: { ...baseBorder("disabled", props) },
|
13024
|
+
_focus: { ...baseBorder("disabled", props) }
|
13025
|
+
},
|
13026
|
+
_active: {
|
13027
|
+
...baseBackground("active", props),
|
13028
|
+
...baseBorder("focus", props)
|
13029
|
+
},
|
13030
|
+
_expanded: {
|
13031
|
+
...baseBackground("active", props),
|
13032
|
+
...baseBorder("focus", props)
|
12966
13033
|
},
|
12967
13034
|
_invalid: {
|
12968
|
-
|
12969
|
-
borderColor: "brightRed",
|
12970
|
-
borderWidth: 2
|
12971
|
-
}),
|
13035
|
+
...baseBorder("invalid", props),
|
12972
13036
|
_hover: {
|
12973
|
-
|
12974
|
-
borderColor: "darkGrey",
|
12975
|
-
borderWidth: 2
|
12976
|
-
})
|
13037
|
+
...baseBorder("hover", props)
|
12977
13038
|
},
|
12978
13039
|
...focusVisible({
|
12979
13040
|
focus: {
|
12980
|
-
|
12981
|
-
borderColor: "greenHaze",
|
12982
|
-
borderWidth: 2
|
12983
|
-
})
|
13041
|
+
...baseBorder("focus", props)
|
12984
13042
|
},
|
12985
13043
|
notFocus: {
|
12986
|
-
|
12987
|
-
borderColor: "brightRed",
|
12988
|
-
borderWidth: 2
|
12989
|
-
})
|
13044
|
+
...baseBorder("invalid", props)
|
12990
13045
|
}
|
12991
13046
|
})
|
12992
13047
|
}
|
@@ -13348,13 +13403,15 @@ var config21 = helpers13.defineMultiStyleConfig({
|
|
13348
13403
|
})
|
13349
13404
|
},
|
13350
13405
|
notFocus: {
|
13351
|
-
boxShadow: getBoxShadowString({ borderColor: "darkGrey" })
|
13406
|
+
boxShadow: getBoxShadowString({ borderColor: mode("darkGrey", "white")(props) })
|
13352
13407
|
}
|
13353
13408
|
}),
|
13354
13409
|
_disabled: {
|
13355
|
-
|
13356
|
-
|
13357
|
-
|
13410
|
+
backgroundColor: mode("blackAlpha.100", "whiteAlpha.100")(props),
|
13411
|
+
boxShadow: getBoxShadowString({
|
13412
|
+
borderColor: mode("blackAlpha.200", "whiteAlpha.200")(props)
|
13413
|
+
}),
|
13414
|
+
cursor: "not-allowed"
|
13358
13415
|
},
|
13359
13416
|
_invalid: {
|
13360
13417
|
boxShadow: getBoxShadowString({
|
@@ -13363,7 +13420,7 @@ var config21 = helpers13.defineMultiStyleConfig({
|
|
13363
13420
|
}),
|
13364
13421
|
_hover: {
|
13365
13422
|
boxShadow: getBoxShadowString({
|
13366
|
-
borderColor: "darkGrey",
|
13423
|
+
borderColor: mode("darkGrey", "white")(props),
|
13367
13424
|
borderWidth: 2
|
13368
13425
|
})
|
13369
13426
|
},
|
@@ -13402,6 +13459,11 @@ var config21 = helpers13.defineMultiStyleConfig({
|
|
13402
13459
|
},
|
13403
13460
|
element: {
|
13404
13461
|
height: "100%"
|
13462
|
+
},
|
13463
|
+
group: {
|
13464
|
+
":has(:disabled)": {
|
13465
|
+
color: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
13466
|
+
}
|
13405
13467
|
}
|
13406
13468
|
})
|
13407
13469
|
});
|
@@ -13608,14 +13670,18 @@ var link_default = config23;
|
|
13608
13670
|
|
13609
13671
|
// src/theme/components/list.ts
|
13610
13672
|
var { defineMultiStyleConfig: defineMultiStyleConfig28, definePartsStyle: definePartsStyle28 } = createMultiStyleConfigHelpers(listAnatomy.keys);
|
13611
|
-
var baseStyleIcon8 = defineStyle({
|
13612
|
-
marginEnd: "2",
|
13613
|
-
display: "inline",
|
13614
|
-
verticalAlign: "text-bottom",
|
13615
|
-
fontFamily: "body"
|
13616
|
-
});
|
13617
13673
|
var baseStyle45 = definePartsStyle28({
|
13618
|
-
|
13674
|
+
container: {
|
13675
|
+
fontSize: ["mobile.sm", "desktop.sm"]
|
13676
|
+
},
|
13677
|
+
item: {
|
13678
|
+
fontFamily: "body"
|
13679
|
+
},
|
13680
|
+
icon: {
|
13681
|
+
marginEnd: "2",
|
13682
|
+
display: "inline",
|
13683
|
+
verticalAlign: "text-bottom"
|
13684
|
+
}
|
13619
13685
|
});
|
13620
13686
|
var list_default = defineMultiStyleConfig28({
|
13621
13687
|
baseStyle: baseStyle45
|
@@ -13630,7 +13696,11 @@ var helpers15 = createMultiStyleConfigHelpers$1(parts10.keys);
|
|
13630
13696
|
var config24 = helpers15.defineMultiStyleConfig({
|
13631
13697
|
baseStyle: (props) => ({
|
13632
13698
|
container: {
|
13633
|
-
|
13699
|
+
// avoiding extra div by blending a transparent color into darkGrey for dark mode
|
13700
|
+
backgroundColor: mode(
|
13701
|
+
"mint",
|
13702
|
+
`color-mix(in srgb, ${colors.darkGrey}, ${colors.white} 10%)`
|
13703
|
+
)(props),
|
13634
13704
|
boxShadow: "sm",
|
13635
13705
|
overflowY: "auto",
|
13636
13706
|
maxHeight: "50vh",
|
@@ -13647,20 +13717,20 @@ var config24 = helpers15.defineMultiStyleConfig({
|
|
13647
13717
|
color: mode("darkGrey", "white")(props),
|
13648
13718
|
cursor: "pointer",
|
13649
13719
|
_hover: {
|
13650
|
-
backgroundColor: mode("seaMist", "
|
13720
|
+
backgroundColor: mode("seaMist", "pine")(props),
|
13651
13721
|
outline: "none"
|
13652
13722
|
},
|
13653
13723
|
_active: {
|
13654
|
-
backgroundColor: mode("mint", "
|
13724
|
+
backgroundColor: mode("mint", "pine")(props),
|
13655
13725
|
outline: "none"
|
13656
13726
|
},
|
13657
13727
|
_focus: {
|
13658
13728
|
outline: "none",
|
13659
|
-
backgroundColor: mode("seaMist", "
|
13729
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
13660
13730
|
},
|
13661
13731
|
_selected: {
|
13662
|
-
|
13663
|
-
color:
|
13732
|
+
...baseBackground("selected", props),
|
13733
|
+
color: "white"
|
13664
13734
|
}
|
13665
13735
|
},
|
13666
13736
|
label: {},
|
@@ -14046,7 +14116,7 @@ var config29 = helpers20.defineMultiStyleConfig({
|
|
14046
14116
|
strokeLinecap: "round",
|
14047
14117
|
fontSize: "1.125rem",
|
14048
14118
|
_disabled: {
|
14049
|
-
|
14119
|
+
color: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
14050
14120
|
}
|
14051
14121
|
}
|
14052
14122
|
})
|
package/dist/index.d.mts
CHANGED
@@ -294,7 +294,7 @@ type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size"
|
|
294
294
|
* </Button>
|
295
295
|
* ```
|
296
296
|
*
|
297
|
-
* @see https://spor.vy.no/
|
297
|
+
* @see https://spor.vy.no/components/button
|
298
298
|
*/
|
299
299
|
declare const Button: _chakra_ui_system_dist_system_types.ComponentWithAs<"button", ButtonProps>;
|
300
300
|
|
@@ -493,9 +493,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
|
493
493
|
value?: TimeValue;
|
494
494
|
/** A default value, if any.
|
495
495
|
*
|
496
|
-
* A `new Time(hours, minutes)` should be passed.
|
496
|
+
* A `new Time(hours, minutes)` should be passed.
|
497
|
+
* Defaults to the current time if not provided.
|
498
|
+
* Can be set to null if you don't want a time to be selected by default.
|
497
499
|
**/
|
498
|
-
defaultValue?: TimeValue;
|
500
|
+
defaultValue?: TimeValue | null;
|
499
501
|
/** Callback for when the time changes */
|
500
502
|
onChange?: (value: TimeValue) => void;
|
501
503
|
/** The maxiumum number of minutes to move when the step buttons are used.
|
@@ -524,7 +526,7 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
|
524
526
|
*
|
525
527
|
* Note that the TimePicker uses the `Time` class to represent the time. This is a class that is part of the `@internationalized/date` package.
|
526
528
|
*
|
527
|
-
* @see https://spor.vy.no/
|
529
|
+
* @see https://spor.vy.no/komponents/timepicker
|
528
530
|
*/
|
529
531
|
declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, isDisabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) => React__default.JSX.Element;
|
530
532
|
|
@@ -676,7 +678,7 @@ type CardSelectProps = BoxProps & {
|
|
676
678
|
* </CardSelect>
|
677
679
|
* ```
|
678
680
|
*
|
679
|
-
* @see https://spor.vy.no/
|
681
|
+
* @see https://spor.vy.no/components/card-select
|
680
682
|
*/
|
681
683
|
declare const CardSelect: _chakra_ui_system_dist_system_types.ComponentWithAs<"button", CardSelectProps>;
|
682
684
|
|
@@ -831,7 +833,7 @@ type FormErrorMessageProps = BoxProps & {
|
|
831
833
|
* </FormControl>
|
832
834
|
* ```
|
833
835
|
*
|
834
|
-
* @see https://spor.vy.no/
|
836
|
+
* @see https://spor.vy.no/components/form-control
|
835
837
|
*/
|
836
838
|
declare const FormErrorMessage: ({ children, ...boxProps }: FormErrorMessageProps) => React__default.JSX.Element | null;
|
837
839
|
|
@@ -969,7 +971,7 @@ type InfoSelectProps<T extends object> = {
|
|
969
971
|
* </InfoSelect>
|
970
972
|
* ```
|
971
973
|
*
|
972
|
-
* @see https://spor.vy.no/
|
974
|
+
* @see https://spor.vy.no/components/info-select
|
973
975
|
*/
|
974
976
|
declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
|
975
977
|
|
@@ -1343,7 +1345,7 @@ type InfoTagProps = TagProps;
|
|
1343
1345
|
* />
|
1344
1346
|
* ```
|
1345
1347
|
*
|
1346
|
-
* @see https://spor.vy.no/
|
1348
|
+
* @see https://spor.vy.no/components/line-tags
|
1347
1349
|
*/
|
1348
1350
|
declare const InfoTag: ({ variant, size, title, description, }: InfoTagProps) => React__default.JSX.Element;
|
1349
1351
|
|
@@ -1366,7 +1368,7 @@ type LineIconProps = BoxProps & {
|
|
1366
1368
|
* <LineIcon variant="subway" size="lg" />
|
1367
1369
|
* ```
|
1368
1370
|
*
|
1369
|
-
* @see https://spor.vy.no/
|
1371
|
+
* @see https://spor.vy.no/components/line-tags
|
1370
1372
|
*/
|
1371
1373
|
declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => React__default.JSX.Element | null;
|
1372
1374
|
|
@@ -1409,7 +1411,7 @@ type TravelTagProps = TagProps & BoxProps & {
|
|
1409
1411
|
* />
|
1410
1412
|
* ```
|
1411
1413
|
*
|
1412
|
-
* @see https://spor.vy.no/
|
1414
|
+
* @see https://spor.vy.no/components/line-tags
|
1413
1415
|
*/
|
1414
1416
|
declare const TravelTag: _chakra_ui_system_dist_system_types.ComponentWithAs<As, TravelTagProps>;
|
1415
1417
|
|
@@ -3445,7 +3447,7 @@ declare const theme: {
|
|
3445
3447
|
} | undefined;
|
3446
3448
|
defaultProps?: {
|
3447
3449
|
size?: string | number | undefined;
|
3448
|
-
variant?: "base" | "green" | "light" | "
|
3450
|
+
variant?: "base" | "green" | "light" | "dark" | "accent" | "brand" | undefined;
|
3449
3451
|
colorScheme?: string | undefined;
|
3450
3452
|
} | undefined;
|
3451
3453
|
parts: ("text" | "container" | "icon")[];
|
@@ -3527,26 +3529,54 @@ declare const theme: {
|
|
3527
3529
|
};
|
3528
3530
|
button: {
|
3529
3531
|
_disabled: {
|
3530
|
-
boxShadow: string;
|
3531
3532
|
_hover: {
|
3532
3533
|
boxShadow: string;
|
3533
3534
|
};
|
3534
3535
|
_focus: {
|
3535
3536
|
boxShadow: string;
|
3536
3537
|
};
|
3538
|
+
backgroundColor: string;
|
3539
|
+
color: string;
|
3540
|
+
} | {
|
3541
|
+
_hover: {
|
3542
|
+
boxShadow: string;
|
3543
|
+
};
|
3544
|
+
_focus: {
|
3545
|
+
boxShadow: string;
|
3546
|
+
};
|
3547
|
+
backgroundColor?: undefined;
|
3548
|
+
color: string;
|
3549
|
+
};
|
3550
|
+
_active: {
|
3551
|
+
boxShadow: string;
|
3552
|
+
backgroundColor: string;
|
3553
|
+
} | {
|
3554
|
+
boxShadow: string;
|
3555
|
+
backgroundColor?: undefined;
|
3556
|
+
};
|
3557
|
+
_expanded: {
|
3558
|
+
boxShadow: string;
|
3559
|
+
backgroundColor: string;
|
3560
|
+
} | {
|
3561
|
+
boxShadow: string;
|
3562
|
+
backgroundColor?: undefined;
|
3537
3563
|
};
|
3538
3564
|
_invalid: {
|
3539
3565
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
3540
3566
|
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
3541
3567
|
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
3542
|
-
boxShadow: string;
|
3543
3568
|
_hover: {
|
3544
3569
|
boxShadow: string;
|
3545
3570
|
};
|
3571
|
+
boxShadow: string;
|
3546
3572
|
};
|
3547
3573
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
3548
3574
|
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
3549
3575
|
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
3576
|
+
_hover: {
|
3577
|
+
boxShadow: string;
|
3578
|
+
};
|
3579
|
+
boxShadow: string;
|
3550
3580
|
appearance: string;
|
3551
3581
|
borderTopRadius: string;
|
3552
3582
|
borderBottomRadius: string | number;
|
@@ -3556,10 +3586,6 @@ declare const theme: {
|
|
3556
3586
|
justifyContent: string;
|
3557
3587
|
alignItems: string;
|
3558
3588
|
fontSize: string;
|
3559
|
-
boxShadow: string;
|
3560
|
-
_hover: {
|
3561
|
-
boxShadow: string;
|
3562
|
-
};
|
3563
3589
|
};
|
3564
3590
|
arrowIcon: {};
|
3565
3591
|
}) | undefined;
|
@@ -3716,13 +3742,9 @@ declare const theme: {
|
|
3716
3742
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
3717
3743
|
field: {
|
3718
3744
|
_disabled: {
|
3745
|
+
backgroundColor: string;
|
3719
3746
|
boxShadow: string;
|
3720
|
-
|
3721
|
-
boxShadow: string;
|
3722
|
-
};
|
3723
|
-
_focus: {
|
3724
|
-
boxShadow: string;
|
3725
|
-
};
|
3747
|
+
cursor: string;
|
3726
3748
|
};
|
3727
3749
|
_invalid: {
|
3728
3750
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
@@ -3777,6 +3799,11 @@ declare const theme: {
|
|
3777
3799
|
element: {
|
3778
3800
|
height: string;
|
3779
3801
|
};
|
3802
|
+
group: {
|
3803
|
+
":has(:disabled)": {
|
3804
|
+
color: string;
|
3805
|
+
};
|
3806
|
+
};
|
3780
3807
|
}) | undefined;
|
3781
3808
|
sizes?: {
|
3782
3809
|
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
@@ -3981,11 +4008,16 @@ declare const theme: {
|
|
3981
4008
|
};
|
3982
4009
|
List: {
|
3983
4010
|
baseStyle?: {
|
4011
|
+
container: {
|
4012
|
+
fontSize: ("mobile.sm" | "desktop.sm")[];
|
4013
|
+
};
|
4014
|
+
item: {
|
4015
|
+
fontFamily: string;
|
4016
|
+
};
|
3984
4017
|
icon: {
|
3985
4018
|
marginEnd: string;
|
3986
4019
|
display: string;
|
3987
4020
|
verticalAlign: string;
|
3988
|
-
fontFamily: string;
|
3989
4021
|
};
|
3990
4022
|
} | undefined;
|
3991
4023
|
sizes?: {
|
@@ -4008,7 +4040,7 @@ declare const theme: {
|
|
4008
4040
|
ListBox: {
|
4009
4041
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4010
4042
|
container: {
|
4011
|
-
|
4043
|
+
backgroundColor: string;
|
4012
4044
|
boxShadow: string;
|
4013
4045
|
overflowY: string;
|
4014
4046
|
maxHeight: string;
|
@@ -4037,8 +4069,11 @@ declare const theme: {
|
|
4037
4069
|
backgroundColor: string;
|
4038
4070
|
};
|
4039
4071
|
_selected: {
|
4072
|
+
color: string;
|
4040
4073
|
backgroundColor: string;
|
4074
|
+
} | {
|
4041
4075
|
color: string;
|
4076
|
+
backgroundColor?: undefined;
|
4042
4077
|
};
|
4043
4078
|
};
|
4044
4079
|
label: {};
|
@@ -4400,13 +4435,9 @@ declare const theme: {
|
|
4400
4435
|
background: string;
|
4401
4436
|
};
|
4402
4437
|
_disabled: {
|
4438
|
+
backgroundColor: string;
|
4403
4439
|
boxShadow: string;
|
4404
|
-
|
4405
|
-
boxShadow: string;
|
4406
|
-
};
|
4407
|
-
_focus: {
|
4408
|
-
boxShadow: string;
|
4409
|
-
};
|
4440
|
+
cursor: string;
|
4410
4441
|
};
|
4411
4442
|
_invalid: {
|
4412
4443
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
@@ -4466,7 +4497,7 @@ declare const theme: {
|
|
4466
4497
|
strokeLinecap: string;
|
4467
4498
|
fontSize: string;
|
4468
4499
|
_disabled: {
|
4469
|
-
|
4500
|
+
color: string;
|
4470
4501
|
};
|
4471
4502
|
};
|
4472
4503
|
}) | undefined;
|
@@ -5217,13 +5248,9 @@ declare const theme: {
|
|
5217
5248
|
};
|
5218
5249
|
};
|
5219
5250
|
_disabled: {
|
5251
|
+
backgroundColor: string;
|
5220
5252
|
boxShadow: string;
|
5221
|
-
|
5222
|
-
boxShadow: string;
|
5223
|
-
};
|
5224
|
-
_focus: {
|
5225
|
-
boxShadow: string;
|
5226
|
-
};
|
5253
|
+
cursor: string;
|
5227
5254
|
};
|
5228
5255
|
_invalid: {
|
5229
5256
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|