@vygruppen/spor-react 9.8.3 → 9.9.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 +9 -9
- package/CHANGELOG.md +11 -0
- package/dist/{CountryCodeSelect-C2XKHNTP.mjs → CountryCodeSelect-U25NF65N.mjs} +1 -1
- package/dist/{chunk-ZDOSE4VD.mjs → chunk-TEDOVPXZ.mjs} +87 -27
- package/dist/index.d.mts +55 -24
- package/dist/index.d.ts +55 -24
- package/dist/index.js +85 -25
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/alert/BaseAlert.tsx +2 -0
- package/src/alert/ClosableAlert.tsx +11 -2
- package/src/alert/ExpandableAlert.tsx +3 -1
- package/src/alert/StaticAlert.tsx +10 -2
- package/src/input/InfoSelect.tsx +33 -14
- package/src/input/ListBox.tsx +1 -0
- package/src/layout/PressableCard.tsx +2 -2
- package/src/layout/StaticCard.tsx +0 -1
- package/src/theme/components/alert.ts +1 -0
- package/src/theme/components/info-select.ts +12 -1
- package/src/theme/components/listbox.ts +5 -5
- package/src/theme/components/pressable-card.ts +6 -1
- package/src/theme/utils/floating-utils.ts +3 -3
- package/src/theme/utils/ghost-utils.ts +19 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.
|
2
|
+
> @vygruppen/spor-react@9.9.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,12 +9,12 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m511.25 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2246ms
|
14
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.11 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-U25NF65N.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-TEDOVPXZ.mjs [22m[32m400.45 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2246ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 11587ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m338.81 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m338.81 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 9.9.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 70e5a92: InfoSelect: bugfixes. #1043
|
8
|
+
- d4f8abf: Added possibility for title with ClosableAlert and StaticAlert. Some minor bugfixes with colors on darkmode.
|
9
|
+
|
10
|
+
### Patch Changes
|
11
|
+
|
12
|
+
- 0baf753: PressableCard: Make variant optional. Fix background on darkmode.
|
13
|
+
|
3
14
|
## 9.8.3
|
4
15
|
|
5
16
|
### Patch Changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import tokens11__default from '@vygruppen/spor-design-tokens';
|
2
2
|
import * as tokens11 from '@vygruppen/spor-design-tokens';
|
3
3
|
export { tokens11 as tokens };
|
4
|
-
import { forwardRef, Divider as Divider$1, Stack as Stack$1, useRadio, useStyleConfig, chakra, Box,
|
4
|
+
import { forwardRef, Divider as Divider$1, Stack as Stack$1, useRadio, useStyleConfig, chakra, Box, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, 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, 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, useRadioGroup, 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, DrawerBody, DrawerHeader, useMediaQuery, DrawerCloseButton, DarkMode, PopoverCloseButton, usePopoverContext, UnorderedList, ChakraProvider, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
5
5
|
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, 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 React73 from 'react';
|
7
7
|
import React73__default, { useId, createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, Suspense, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
|
@@ -859,11 +859,11 @@ var StaticCard = forwardRef(
|
|
859
859
|
const styles3 = useStyleConfig("StaticCard", {
|
860
860
|
colorScheme
|
861
861
|
});
|
862
|
-
return /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3, ...props, ref }, children
|
862
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3, ...props, ref }, children);
|
863
863
|
}
|
864
864
|
);
|
865
865
|
var PressableCard = forwardRef(
|
866
|
-
({ children, variant = "
|
866
|
+
({ children, variant = "floating", ...props }, ref) => {
|
867
867
|
const styles3 = useStyleConfig("PressableCard", {
|
868
868
|
variant
|
869
869
|
});
|
@@ -1546,6 +1546,7 @@ var BaseAlert = ({
|
|
1546
1546
|
// src/alert/ClosableAlert.tsx
|
1547
1547
|
var ClosableAlert = ({
|
1548
1548
|
variant,
|
1549
|
+
title,
|
1549
1550
|
children,
|
1550
1551
|
onClose: externalOnClose = () => {
|
1551
1552
|
}
|
@@ -1570,7 +1571,7 @@ var ClosableAlert = ({
|
|
1570
1571
|
"aria-label": t2(texts6.close),
|
1571
1572
|
sx: styles3.closeButton
|
1572
1573
|
}
|
1573
|
-
), /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant }), children);
|
1574
|
+
), /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React73__default.createElement(Flex, { direction: "column", gap: title ? 2 : void 0, textAlign: "left" }, title && /* @__PURE__ */ React73__default.createElement(Box, { fontWeight: "bold" }, title), /* @__PURE__ */ React73__default.createElement(Box, { marginRight: 1 }, children)));
|
1574
1575
|
};
|
1575
1576
|
var texts6 = createTexts({
|
1576
1577
|
close: {
|
@@ -1616,16 +1617,21 @@ var ExpandableAlert = ({
|
|
1616
1617
|
overflow: "hidden",
|
1617
1618
|
"-webkit-line-clamp": "1",
|
1618
1619
|
"-webkit-box-orient": "vertical"
|
1619
|
-
}
|
1620
|
+
},
|
1621
|
+
color: "darkGrey"
|
1620
1622
|
},
|
1621
1623
|
title
|
1622
1624
|
)),
|
1623
|
-
/* @__PURE__ */ React73__default.createElement(AccordionIcon,
|
1625
|
+
/* @__PURE__ */ React73__default.createElement(AccordionIcon, { color: "darkGrey" })
|
1624
1626
|
)), /* @__PURE__ */ React73__default.createElement(AccordionPanel, null, children))
|
1625
1627
|
));
|
1626
1628
|
};
|
1627
|
-
var StaticAlert = ({
|
1628
|
-
|
1629
|
+
var StaticAlert = ({
|
1630
|
+
children,
|
1631
|
+
title,
|
1632
|
+
...props
|
1633
|
+
}) => {
|
1634
|
+
return /* @__PURE__ */ React73__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant: props.variant }), /* @__PURE__ */ React73__default.createElement(Flex, { direction: "column", gap: title ? 2 : void 0, textAlign: "left" }, title && /* @__PURE__ */ React73__default.createElement(Box, { fontWeight: "bold" }, title), /* @__PURE__ */ React73__default.createElement(Box, null, children)));
|
1629
1635
|
};
|
1630
1636
|
var Breadcrumb = (props) => {
|
1631
1637
|
const iconColor = useColorModeValue("blackAlpha.400", "whiteAlpha.400");
|
@@ -3046,13 +3052,11 @@ function ListBoxSection({ section, state: state2 }) {
|
|
3046
3052
|
// src/input/InfoSelect.tsx
|
3047
3053
|
function InfoSelect({
|
3048
3054
|
placeholder,
|
3049
|
-
width = "100%",
|
3050
|
-
height = "auto",
|
3051
3055
|
onChange,
|
3052
3056
|
value,
|
3053
3057
|
isLabelSrOnly,
|
3054
3058
|
defaultValue,
|
3055
|
-
variant
|
3059
|
+
variant,
|
3056
3060
|
...props
|
3057
3061
|
}) {
|
3058
3062
|
const renamedProps = {
|
@@ -3079,7 +3083,8 @@ function InfoSelect({
|
|
3079
3083
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
3080
3084
|
const { t: t2 } = useTranslation();
|
3081
3085
|
const formControl = useFormControlProps(props);
|
3082
|
-
|
3086
|
+
const hasChosenValue = state2.selectedItem !== null;
|
3087
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React73__default.createElement(
|
3083
3088
|
HiddenSelect,
|
3084
3089
|
{
|
3085
3090
|
state: state2,
|
@@ -3094,13 +3099,36 @@ function InfoSelect({
|
|
3094
3099
|
ref: triggerRef,
|
3095
3100
|
sx: styles3.button,
|
3096
3101
|
...buttonProps,
|
3097
|
-
width,
|
3098
|
-
height,
|
3099
3102
|
"data-attachable": true,
|
3100
3103
|
"aria-invalid": formControl.isInvalid,
|
3101
3104
|
"aria-describedby": formControl["aria-describedby"]
|
3102
3105
|
},
|
3103
|
-
/* @__PURE__ */ React73__default.createElement(
|
3106
|
+
/* @__PURE__ */ React73__default.createElement(chakra.div, { sx: styles3.innerButton }, /* @__PURE__ */ React73__default.createElement(
|
3107
|
+
chakra.div,
|
3108
|
+
{
|
3109
|
+
...labelProps,
|
3110
|
+
sx: {
|
3111
|
+
...styles3.label,
|
3112
|
+
...hasChosenValue && {
|
3113
|
+
transform: "scale(0.825) translateY(-10px) translateX(-10%)",
|
3114
|
+
transitionProperty: "var(--spor-transition-property-common)",
|
3115
|
+
transitionDuration: "var(--spor-transition-duration-normal)"
|
3116
|
+
}
|
3117
|
+
}
|
3118
|
+
},
|
3119
|
+
props.label
|
3120
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3121
|
+
Box,
|
3122
|
+
{
|
3123
|
+
...valueProps,
|
3124
|
+
h: !hasChosenValue ? "0px" : "18px",
|
3125
|
+
hidden: !hasChosenValue,
|
3126
|
+
transform: "scale(1) translateY(-10px)",
|
3127
|
+
transitionProperty: "var(--spor-transition-property-common)",
|
3128
|
+
transitionDuration: "var(--spor-transition-duration-normal)"
|
3129
|
+
},
|
3130
|
+
state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)
|
3131
|
+
)),
|
3104
3132
|
/* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React73__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React73__default.createElement(DropdownDownFill24Icon, null))
|
3105
3133
|
), state2.isOpen && /* @__PURE__ */ React73__default.createElement(
|
3106
3134
|
Popover3,
|
@@ -3445,7 +3473,7 @@ var texts14 = createTexts({
|
|
3445
3473
|
sv: "Telefonnummer"
|
3446
3474
|
}
|
3447
3475
|
});
|
3448
|
-
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-
|
3476
|
+
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-U25NF65N.mjs'));
|
3449
3477
|
var Radio = forwardRef((props, ref) => {
|
3450
3478
|
return /* @__PURE__ */ React73__default.createElement(Radio$1, { ...props, ref });
|
3451
3479
|
});
|
@@ -9960,14 +9988,14 @@ function floatingBackground(state2, props) {
|
|
9960
9988
|
return {
|
9961
9989
|
backgroundColor: mode(
|
9962
9990
|
"floating.surface.hover.light",
|
9963
|
-
|
9991
|
+
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
9964
9992
|
)(props)
|
9965
9993
|
};
|
9966
9994
|
case "default":
|
9967
9995
|
return {
|
9968
9996
|
backgroundColor: mode(
|
9969
|
-
"
|
9970
|
-
|
9997
|
+
"white",
|
9998
|
+
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
9971
9999
|
)(props)
|
9972
10000
|
};
|
9973
10001
|
}
|
@@ -10024,7 +10052,10 @@ function ghostBackground(state2, props) {
|
|
10024
10052
|
};
|
10025
10053
|
case "selected": {
|
10026
10054
|
return {
|
10027
|
-
backgroundColor: mode(
|
10055
|
+
backgroundColor: mode(
|
10056
|
+
"ghost.surface.selected.light",
|
10057
|
+
"ghost.surface.selected.dark"
|
10058
|
+
)(props)
|
10028
10059
|
};
|
10029
10060
|
}
|
10030
10061
|
case "default":
|
@@ -10033,6 +10064,18 @@ function ghostBackground(state2, props) {
|
|
10033
10064
|
};
|
10034
10065
|
}
|
10035
10066
|
}
|
10067
|
+
function ghostText(state2, props) {
|
10068
|
+
switch (state2) {
|
10069
|
+
case "selected":
|
10070
|
+
return {
|
10071
|
+
color: mode("ghost.text.light", "ghost.text.dark")(props)
|
10072
|
+
};
|
10073
|
+
default:
|
10074
|
+
return {
|
10075
|
+
color: mode("ghost.text.light", "ghost.text.dark")(props)
|
10076
|
+
};
|
10077
|
+
}
|
10078
|
+
}
|
10036
10079
|
|
10037
10080
|
// src/theme/components/accordion.ts
|
10038
10081
|
var helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
@@ -10182,7 +10225,8 @@ var config3 = helpers2.defineMultiStyleConfig({
|
|
10182
10225
|
closeButton: {
|
10183
10226
|
position: "absolute",
|
10184
10227
|
top: 1,
|
10185
|
-
right: 1
|
10228
|
+
right: 1,
|
10229
|
+
color: "darkGrey"
|
10186
10230
|
}
|
10187
10231
|
},
|
10188
10232
|
variants: {
|
@@ -11869,18 +11913,28 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
11869
11913
|
container: {},
|
11870
11914
|
label: {
|
11871
11915
|
position: "relative",
|
11916
|
+
fontSize: ["mobile.xs", "desktop.sm"],
|
11872
11917
|
...props.isLabelSrOnly ? srOnly2 : {}
|
11873
11918
|
},
|
11919
|
+
innerButton: {
|
11920
|
+
display: "flex",
|
11921
|
+
flexDir: "column",
|
11922
|
+
alignItems: "start",
|
11923
|
+
justifyContent: "start"
|
11924
|
+
},
|
11874
11925
|
button: {
|
11926
|
+
display: "flex",
|
11875
11927
|
appearance: "none",
|
11928
|
+
width: "100%",
|
11929
|
+
height: "54px",
|
11876
11930
|
borderTopRadius: "sm",
|
11877
11931
|
borderBottomRadius: props.isOpen ? 0 : "sm",
|
11878
11932
|
paddingY: 1.5,
|
11879
11933
|
paddingX: 3,
|
11880
|
-
display: "flex",
|
11881
11934
|
justifyContent: "space-between",
|
11882
11935
|
alignItems: "center",
|
11883
11936
|
fontSize: "mobile.md",
|
11937
|
+
h: 8,
|
11884
11938
|
...baseBorder("default", props),
|
11885
11939
|
_hover: {
|
11886
11940
|
...baseBorder("hover", props)
|
@@ -11898,6 +11952,7 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
11898
11952
|
...baseBorder("invalid", props)
|
11899
11953
|
}
|
11900
11954
|
},
|
11955
|
+
placeholder: {},
|
11901
11956
|
arrowIcon: {}
|
11902
11957
|
}),
|
11903
11958
|
variants: {
|
@@ -12527,7 +12582,7 @@ var config25 = helpers16.defineMultiStyleConfig({
|
|
12527
12582
|
marginY: 1,
|
12528
12583
|
marginX: 1,
|
12529
12584
|
borderRadius: "sm",
|
12530
|
-
|
12585
|
+
...ghostText("default", props),
|
12531
12586
|
cursor: "pointer",
|
12532
12587
|
outline: "none",
|
12533
12588
|
_active: {
|
@@ -12540,15 +12595,15 @@ var config25 = helpers16.defineMultiStyleConfig({
|
|
12540
12595
|
...ghostBackground("selected", props)
|
12541
12596
|
},
|
12542
12597
|
_selected: {
|
12543
|
-
...ghostBackground("
|
12598
|
+
...ghostBackground("active", props)
|
12544
12599
|
}
|
12545
12600
|
},
|
12546
12601
|
label: {},
|
12547
12602
|
description: {
|
12548
12603
|
fontSize: ["mobile.xs", "desktop.xs"],
|
12549
|
-
|
12604
|
+
...ghostText("default", props),
|
12550
12605
|
"[aria-selected='true'] &": {
|
12551
|
-
|
12606
|
+
...ghostText("selected", props)
|
12552
12607
|
}
|
12553
12608
|
}
|
12554
12609
|
})
|
@@ -13725,9 +13780,14 @@ var config44 = defineStyleConfig$1({
|
|
13725
13780
|
display: "block",
|
13726
13781
|
borderRadius: "md",
|
13727
13782
|
cursor: "pointer",
|
13728
|
-
|
13783
|
+
transitionProperty: "common",
|
13784
|
+
transitionDuration: "fast",
|
13785
|
+
"button&, a&, label&, &.is-clickable": {
|
13786
|
+
...focusVisibleStyles(props)
|
13787
|
+
},
|
13729
13788
|
_disabled: {
|
13730
13789
|
...baseBackground("disabled", props),
|
13790
|
+
...baseBorder("disabled", props),
|
13731
13791
|
...baseText("disabled", props),
|
13732
13792
|
outline: "none",
|
13733
13793
|
pointerEvents: "none"
|
package/dist/index.d.mts
CHANGED
@@ -211,7 +211,7 @@ declare const StaticCard: _chakra_ui_system_dist_system_types.ComponentWithAs<As
|
|
211
211
|
|
212
212
|
type PressableCardProps = BoxProps & {
|
213
213
|
/** Defaults to "base" */
|
214
|
-
variant
|
214
|
+
variant?: "floating" | "accent" | "base";
|
215
215
|
};
|
216
216
|
/**
|
217
217
|
* `PressableCard` is a component that renders a pressable card.
|
@@ -333,6 +333,8 @@ type BaseAlertProps = BoxProps & {
|
|
333
333
|
variant: "info" | "success" | "warning" | "alt-transport" | "error";
|
334
334
|
/** The body content of the alert */
|
335
335
|
children: React.ReactNode;
|
336
|
+
/** The title of the alert */
|
337
|
+
title?: string;
|
336
338
|
};
|
337
339
|
|
338
340
|
type ClosableAlertProps = BaseAlertProps & {
|
@@ -361,7 +363,7 @@ type ClosableAlertProps = BaseAlertProps & {
|
|
361
363
|
* <Text>Some info here</Text>
|
362
364
|
* </ClosableAlert>
|
363
365
|
*/
|
364
|
-
declare const ClosableAlert: ({ variant, children, onClose: externalOnClose, }: ClosableAlertProps) => React.JSX.Element | null;
|
366
|
+
declare const ClosableAlert: ({ variant, title, children, onClose: externalOnClose, }: ClosableAlertProps) => React.JSX.Element | null;
|
365
367
|
|
366
368
|
type ExpandableAlertProps = BaseAlertProps & {
|
367
369
|
/** The title string */
|
@@ -401,7 +403,7 @@ type StaticAlertProps = BaseAlertProps;
|
|
401
403
|
* </StaticAlert>
|
402
404
|
* ```
|
403
405
|
*/
|
404
|
-
declare const StaticAlert: ({ children, ...props }: StaticAlertProps) => React.JSX.Element;
|
406
|
+
declare const StaticAlert: ({ children, title, ...props }: StaticAlertProps) => React.JSX.Element;
|
405
407
|
|
406
408
|
type BreadcrumbProps = Omit<BreadcrumbProps$1, "variant"> & {
|
407
409
|
variant?: "base" | "ghost";
|
@@ -1174,7 +1176,7 @@ type InfoSelectProps<T extends object> = {
|
|
1174
1176
|
*
|
1175
1177
|
* @see https://spor.vy.no/components/info-select
|
1176
1178
|
*/
|
1177
|
-
declare function InfoSelect<T extends object>({ placeholder,
|
1179
|
+
declare function InfoSelect<T extends object>({ placeholder, onChange, value, isLabelSrOnly, defaultValue, variant, ...props }: InfoSelectProps<T>): React.JSX.Element;
|
1178
1180
|
|
1179
1181
|
type InputProps = Omit<InputProps$1, "variant" | "size"> & {
|
1180
1182
|
/** The input's label */
|
@@ -2534,6 +2536,7 @@ declare const theme: {
|
|
2534
2536
|
position: string;
|
2535
2537
|
top: number;
|
2536
2538
|
right: number;
|
2539
|
+
color: string;
|
2537
2540
|
};
|
2538
2541
|
} | undefined;
|
2539
2542
|
sizes?: {
|
@@ -4619,6 +4622,13 @@ declare const theme: {
|
|
4619
4622
|
position: string;
|
4620
4623
|
width?: string | undefined;
|
4621
4624
|
whiteSpace?: string | undefined;
|
4625
|
+
fontSize: ("desktop.sm" | "mobile.xs")[];
|
4626
|
+
};
|
4627
|
+
innerButton: {
|
4628
|
+
display: string;
|
4629
|
+
flexDir: string;
|
4630
|
+
alignItems: string;
|
4631
|
+
justifyContent: string;
|
4622
4632
|
};
|
4623
4633
|
button: {
|
4624
4634
|
_disabled: {
|
@@ -4657,15 +4667,18 @@ declare const theme: {
|
|
4657
4667
|
outlineColor: string;
|
4658
4668
|
outlineStyle: string;
|
4659
4669
|
outlineOffset: string;
|
4670
|
+
display: string;
|
4660
4671
|
appearance: string;
|
4672
|
+
width: string;
|
4673
|
+
height: string;
|
4661
4674
|
borderTopRadius: string;
|
4662
4675
|
borderBottomRadius: string | number;
|
4663
4676
|
paddingY: number;
|
4664
4677
|
paddingX: number;
|
4665
|
-
display: string;
|
4666
4678
|
justifyContent: string;
|
4667
4679
|
alignItems: string;
|
4668
4680
|
fontSize: string;
|
4681
|
+
h: number;
|
4669
4682
|
} | {
|
4670
4683
|
_disabled: {
|
4671
4684
|
backgroundColor: string;
|
@@ -4701,16 +4714,20 @@ declare const theme: {
|
|
4701
4714
|
};
|
4702
4715
|
outline: string;
|
4703
4716
|
outlineColor: string;
|
4717
|
+
display: string;
|
4704
4718
|
appearance: string;
|
4719
|
+
width: string;
|
4720
|
+
height: string;
|
4705
4721
|
borderTopRadius: string;
|
4706
4722
|
borderBottomRadius: string | number;
|
4707
4723
|
paddingY: number;
|
4708
4724
|
paddingX: number;
|
4709
|
-
display: string;
|
4710
4725
|
justifyContent: string;
|
4711
4726
|
alignItems: string;
|
4712
4727
|
fontSize: string;
|
4728
|
+
h: number;
|
4713
4729
|
};
|
4730
|
+
placeholder: {};
|
4714
4731
|
arrowIcon: {};
|
4715
4732
|
}) | undefined;
|
4716
4733
|
sizes?: {
|
@@ -5369,12 +5386,6 @@ declare const theme: {
|
|
5369
5386
|
backgroundColor: string;
|
5370
5387
|
};
|
5371
5388
|
item: {
|
5372
|
-
paddingX: number;
|
5373
|
-
paddingY: number;
|
5374
|
-
marginY: number;
|
5375
|
-
marginX: number;
|
5376
|
-
borderRadius: string;
|
5377
|
-
color: string;
|
5378
5389
|
cursor: string;
|
5379
5390
|
outline: string;
|
5380
5391
|
_active: {
|
@@ -5389,14 +5400,20 @@ declare const theme: {
|
|
5389
5400
|
_selected: {
|
5390
5401
|
backgroundColor: string;
|
5391
5402
|
};
|
5403
|
+
color: string;
|
5404
|
+
paddingX: number;
|
5405
|
+
paddingY: number;
|
5406
|
+
marginY: number;
|
5407
|
+
marginX: number;
|
5408
|
+
borderRadius: string;
|
5392
5409
|
};
|
5393
5410
|
label: {};
|
5394
5411
|
description: {
|
5395
|
-
fontSize: ("mobile.xs" | "desktop.xs")[];
|
5396
|
-
color: string;
|
5397
5412
|
"[aria-selected='true'] &": {
|
5398
5413
|
color: string;
|
5399
5414
|
};
|
5415
|
+
color: string;
|
5416
|
+
fontSize: ("mobile.xs" | "desktop.xs")[];
|
5400
5417
|
};
|
5401
5418
|
}) | undefined;
|
5402
5419
|
sizes?: {
|
@@ -7224,25 +7241,39 @@ declare const theme: {
|
|
7224
7241
|
};
|
7225
7242
|
PressableCard: {
|
7226
7243
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
7244
|
+
appearance: string;
|
7245
|
+
border: string;
|
7246
|
+
overflow: string;
|
7247
|
+
fontSize: string;
|
7248
|
+
display: string;
|
7249
|
+
borderRadius: string;
|
7250
|
+
cursor: string;
|
7251
|
+
transitionProperty: string;
|
7252
|
+
transitionDuration: string;
|
7253
|
+
"button&, a&, label&, &.is-clickable": {
|
7254
|
+
_focusVisible: {
|
7255
|
+
outlineWidth: string;
|
7256
|
+
outlineColor: string;
|
7257
|
+
outlineStyle: string;
|
7258
|
+
outlineOffset: string;
|
7259
|
+
};
|
7260
|
+
};
|
7227
7261
|
_disabled: {
|
7228
7262
|
outline: string;
|
7229
7263
|
pointerEvents: string;
|
7230
7264
|
color: string;
|
7231
|
-
backgroundColor: string;
|
7232
|
-
};
|
7233
|
-
_focusVisible: {
|
7234
7265
|
outlineWidth: string;
|
7235
7266
|
outlineColor: string;
|
7236
7267
|
outlineStyle: string;
|
7237
7268
|
outlineOffset: string;
|
7269
|
+
backgroundColor: string;
|
7270
|
+
} | {
|
7271
|
+
outline: string;
|
7272
|
+
pointerEvents: string;
|
7273
|
+
color: string;
|
7274
|
+
outlineColor: string;
|
7275
|
+
backgroundColor: string;
|
7238
7276
|
};
|
7239
|
-
appearance: string;
|
7240
|
-
border: string;
|
7241
|
-
overflow: string;
|
7242
|
-
fontSize: string;
|
7243
|
-
display: string;
|
7244
|
-
borderRadius: string;
|
7245
|
-
cursor: string;
|
7246
7277
|
}) | undefined;
|
7247
7278
|
sizes?: {
|
7248
7279
|
[key: string]: _chakra_ui_styled_system.SystemStyleInterpolation;
|