@vygruppen/spor-react 11.3.0 → 11.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "11.3.0",
3
+ "version": "11.3.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -11,23 +11,25 @@ const config = helpers.defineMultiStyleConfig({
11
11
  baseStyle: (props) => ({
12
12
  container: {
13
13
  _hover: {
14
- "input:enabled:not([aria-invalid]) + .chakra-checkbox__control": {
15
- ...baseBackground("hover", props),
16
- borderColor: brandBackground("hover", props).backgroundColor,
17
- },
18
- "input:enabled[aria-invalid] + .chakra-checkbox__control": {
14
+ "input:enabled:not([aria-invalid='true']) + .chakra-checkbox__control":
15
+ {
16
+ ...baseBackground("hover", props),
17
+ borderColor: brandBackground("hover", props).backgroundColor,
18
+ },
19
+ "input:enabled[aria-invalid='true'] + .chakra-checkbox__control": {
19
20
  backgroundColor: mode("white", "inherit")(props),
20
21
  borderColor: mode("outline.error.light", "outline.error.dark"),
21
22
  },
22
- "input:enabled:checked:not([aria-invalid]) + .chakra-checkbox__control":
23
+ "input:enabled:checked:not([aria-invalid='true']) + .chakra-checkbox__control":
23
24
  {
24
25
  ...brandBackground("hover", props),
25
26
  borderColor: brandBackground("hover", props).backgroundColor,
26
27
  },
27
- "input:enabled:checked[aria-invalid] + .chakra-checkbox__control": {
28
- borderColor: mode("outline.error.light", "outline.error.dark"),
29
- backgroundColor: mode("outline.error.light", "outline.error.dark"),
30
- },
28
+ "input:enabled:checked[aria-invalid='true'] + .chakra-checkbox__control":
29
+ {
30
+ borderColor: mode("outline.error.light", "outline.error.dark"),
31
+ backgroundColor: mode("outline.error.light", "outline.error.dark"),
32
+ },
31
33
  },
32
34
  },
33
35
  icon: {
@@ -46,9 +46,10 @@ export const Heading = ({
46
46
  ...props
47
47
  }: HeadingProps) => {
48
48
  const id =
49
- (externalId ?? (autoId && typeof props.children === "string"))
50
- ? slugify(props.children as string)
51
- : undefined;
49
+ externalId ??
50
+ (autoId && typeof props.children === "string"
51
+ ? slugify(props.children)
52
+ : undefined);
52
53
  const color = useColorModeValue("text.primary.light", "text.primary.dark");
53
54
  return <Text as={as} textStyle={variant} id={id} color={color} {...props} />;
54
55
  };