@vygruppen/spor-react 12.8.6 → 12.8.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
3
  "type": "module",
4
- "version": "12.8.6",
4
+ "version": "12.8.7",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -67,8 +67,8 @@
67
67
  "vitest": "^0.26.3",
68
68
  "vitest-axe": "^0.1.0",
69
69
  "vitest-canvas-mock": "^0.2.2",
70
- "@vygruppen/eslint-config": "1.1.1",
71
- "@vygruppen/tsconfig": "0.1.1"
70
+ "@vygruppen/tsconfig": "0.1.1",
71
+ "@vygruppen/eslint-config": "1.1.1"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "react": ">=18.0.0 <19.0.0",
@@ -37,9 +37,9 @@ const ExternalIcon = ({
37
37
  }) => (
38
38
  <>
39
39
  {size === "lg" || size === "md" ? (
40
- <LinkOutOutline24Icon aria-hidden />
40
+ <LinkOutOutline24Icon aria-hidden display="inline" />
41
41
  ) : (
42
- <LinkOutOutline18Icon aria-hidden />
42
+ <LinkOutOutline18Icon aria-hidden display="inline" />
43
43
  )}
44
44
  {/* Visually hidden text for screen readers */}
45
45
  <VisuallyHidden>{label}</VisuallyHidden>
@@ -2,34 +2,25 @@ import { defineRecipe } from "@chakra-ui/react";
2
2
 
3
3
  export const linkRecipe = defineRecipe({
4
4
  base: {
5
- transitionProperty: "common",
6
- transitionDuration: "fast",
7
- transitionTimingFunction: "ease-out",
8
- cursor: "pointer",
9
- backgroundImage: "linear-gradient(currentColor, currentColor)",
10
- backgroundSize: "100% 1px",
11
- backgroundPosition: "0 100%",
12
- backgroundRepeat: "no-repeat",
13
- borderRadius: "none",
14
- paddingX: "2px",
15
- paddingY: "0",
5
+ display: "inline",
16
6
  color: "inherit",
17
- display: "inline-flex",
18
- alignItems: "center",
19
- gap: "0",
20
- position: "relative",
21
- boxDecorationBreak: "clone",
22
- textUnderlineOffset: "0",
7
+ cursor: "pointer",
8
+ textDecorationLine: "underline",
9
+ textDecorationSkipInk: "none",
10
+ textUnderlineOffset: "auto",
11
+ textUnderlinePosition: "from-font",
12
+
13
+ gap: "0.5",
14
+ borderRadius: "xs",
15
+ paddingX: "0.5",
16
+ whiteSpace: "normal",
17
+ wordBreak: "break-word",
23
18
 
24
- "&:focus, &:focus-visible, &:active, &:hover": {
25
- backgroundImage: "none",
26
- backgroundSize: "100%",
27
- outline: "none",
28
- borderRadius: "xs",
19
+ _hover: {
20
+ textDecoration: "none",
29
21
  },
30
22
 
31
23
  "& svg": {
32
- display: "inline-block",
33
24
  width: "1.125em",
34
25
  height: "1.125em",
35
26
  position: "relative",
@@ -8,6 +8,8 @@ export const checkboxSlotRecipe = defineSlotRecipe({
8
8
  slots: checkboxAnatomy.keys(),
9
9
  base: {
10
10
  root: {
11
+ whiteSpace: "normal",
12
+ wordBreak: "break-word",
11
13
  display: "flex",
12
14
  gap: 1.5,
13
15
  _hover: {
@@ -35,6 +37,7 @@ export const checkboxSlotRecipe = defineSlotRecipe({
35
37
  control: {
36
38
  width: 4,
37
39
  height: 4,
40
+ flexShrink: 0,
38
41
  transitionProperty: "background, border-color",
39
42
  transitionDuration: "moderate",
40
43
  border: "2px solid",
@@ -77,7 +80,6 @@ export const checkboxSlotRecipe = defineSlotRecipe({
77
80
  },
78
81
  },
79
82
  label: {
80
- userSelect: "none",
81
83
  _disabled: { opacity: 0.4 },
82
84
  },
83
85
  },