@vygruppen/spor-react 6.2.3 → 7.0.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 +10 -10
- package/CHANGELOG.md +14 -0
- package/dist/{CountryCodeSelect-QZYP3GSD.mjs → CountryCodeSelect-OK6RZ6AY.mjs} +1 -1
- package/dist/{chunk-YFZOYRGT.mjs → chunk-CYU6YFQK.mjs} +166 -641
- package/dist/index.d.mts +483 -497
- package/dist/index.d.ts +483 -497
- package/dist/index.js +195 -672
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +4 -4
- package/src/input/NumericStepper.tsx +0 -4
- package/src/theme/components/accordion.ts +4 -15
- package/src/theme/components/breadcrumb.ts +2 -14
- package/src/theme/components/button.ts +5 -55
- package/src/theme/components/card-select.ts +11 -26
- package/src/theme/components/card.ts +2 -18
- package/src/theme/components/checkbox.ts +4 -12
- package/src/theme/components/choice-chip.ts +2 -11
- package/src/theme/components/close-button.ts +2 -14
- package/src/theme/components/code.ts +1 -1
- package/src/theme/components/datepicker.ts +14 -65
- package/src/theme/components/drawer.ts +7 -7
- package/src/theme/components/fab.ts +6 -63
- package/src/theme/components/form-label.ts +1 -1
- package/src/theme/components/form.ts +1 -1
- package/src/theme/components/info-select.ts +5 -35
- package/src/theme/components/info-tag.ts +1 -1
- package/src/theme/components/input.ts +9 -31
- package/src/theme/components/link.ts +5 -29
- package/src/theme/components/listbox.ts +3 -5
- package/src/theme/components/media-controller-button.ts +5 -46
- package/src/theme/components/modal.ts +7 -7
- package/src/theme/components/popover.ts +7 -15
- package/src/theme/components/progress-indicator.ts +1 -5
- package/src/theme/components/radio.ts +5 -11
- package/src/theme/components/select.ts +2 -2
- package/src/theme/components/stepper.ts +6 -6
- package/src/theme/components/switch.ts +5 -73
- package/src/theme/components/table.ts +18 -18
- package/src/theme/components/tabs.ts +11 -14
- package/src/theme/components/travel-tag.ts +2 -15
- package/src/theme/utils/focus-util.ts +10 -0
- package/tsconfig.json +2 -2
- package/src/theme/utils/focus-utils.ts +0 -16
@@ -27,9 +27,9 @@ const config = helpers.defineMultiStyleConfig({
|
|
27
27
|
boxShadow: "md",
|
28
28
|
},
|
29
29
|
header: {
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
paddingX: 3,
|
31
|
+
paddingTop: 6,
|
32
|
+
paddingBottom: 2,
|
33
33
|
fontWeight: "bold",
|
34
34
|
fontFamily: "body",
|
35
35
|
},
|
@@ -40,14 +40,14 @@ const config = helpers.defineMultiStyleConfig({
|
|
40
40
|
zIndex: "modal",
|
41
41
|
},
|
42
42
|
body: {
|
43
|
-
|
44
|
-
|
43
|
+
paddingX: 3,
|
44
|
+
paddingBottom: 6,
|
45
45
|
flex: 1,
|
46
46
|
overflow: props.scrollBehavior === "inside" ? "auto" : undefined,
|
47
47
|
},
|
48
48
|
footer: {
|
49
|
-
|
50
|
-
|
49
|
+
paddingX: 3,
|
50
|
+
paddingBottom: 3,
|
51
51
|
},
|
52
52
|
}),
|
53
53
|
sizes: {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
2
2
|
import { anatomy, mode, StyleFunctionProps } from "@chakra-ui/theme-tools";
|
3
|
-
import {
|
4
|
-
import { focusVisible } from "../utils/focus-utils";
|
3
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
5
4
|
|
6
5
|
const parts = anatomy("fab").parts("container", "icon", "text");
|
7
6
|
|
@@ -11,9 +10,9 @@ const config = helpers.defineMultiStyleConfig({
|
|
11
10
|
container: {
|
12
11
|
display: "flex",
|
13
12
|
alignItems: "center",
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
paddingY: 2,
|
14
|
+
paddingLeft: 2,
|
15
|
+
paddingRight: props.isTextVisible ? 3 : 2,
|
17
16
|
cursor: "pointer",
|
18
17
|
overflowX: "hidden",
|
19
18
|
whiteSpace: "nowrap",
|
@@ -27,25 +26,14 @@ const config = helpers.defineMultiStyleConfig({
|
|
27
26
|
backgroundColor: "whiteAlpha.400",
|
28
27
|
color: "white",
|
29
28
|
},
|
30
|
-
...
|
31
|
-
focus: {
|
32
|
-
boxShadow: getBoxShadowString({
|
33
|
-
borderColor: "greenHaze",
|
34
|
-
borderWidth: 2,
|
35
|
-
baseShadow: "md",
|
36
|
-
}),
|
37
|
-
},
|
38
|
-
notFocus: {
|
39
|
-
boxShadow: "md",
|
40
|
-
},
|
41
|
-
}),
|
29
|
+
...focusVisibleStyles(props),
|
42
30
|
_hover: {
|
43
31
|
backgroundColor: "seaMist",
|
44
32
|
},
|
45
33
|
zIndex: "sticky",
|
46
34
|
},
|
47
35
|
icon: {
|
48
|
-
|
36
|
+
marginRight: props.isTextVisible ? 1 : 0,
|
49
37
|
},
|
50
38
|
text: {
|
51
39
|
display: "flex",
|
@@ -64,15 +52,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
64
52
|
_hover: {
|
65
53
|
backgroundColor: "night",
|
66
54
|
},
|
67
|
-
...focusVisible({
|
68
|
-
focus: {
|
69
|
-
boxShadow: `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.darkTeal}, inset 0 0 0 6px ${props.theme.colors.white}`,
|
70
|
-
outline: "none",
|
71
|
-
},
|
72
|
-
notFocus: {
|
73
|
-
boxShadow: "md",
|
74
|
-
},
|
75
|
-
}),
|
76
55
|
},
|
77
56
|
}),
|
78
57
|
light: {
|
@@ -97,18 +76,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
97
76
|
_hover: {
|
98
77
|
backgroundColor: mode("night", "seaMist")(props),
|
99
78
|
},
|
100
|
-
...focusVisible({
|
101
|
-
focus: {
|
102
|
-
boxShadow: mode(
|
103
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.darkTeal}, inset 0 0 0 6px ${props.theme.colors.white}`,
|
104
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.darkTeal}`,
|
105
|
-
)(props),
|
106
|
-
outline: "none",
|
107
|
-
},
|
108
|
-
notFocus: {
|
109
|
-
boxShadow: "md",
|
110
|
-
},
|
111
|
-
}),
|
112
79
|
},
|
113
80
|
}),
|
114
81
|
base: (props) => ({
|
@@ -127,18 +94,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
127
94
|
)(props),
|
128
95
|
color: mode("darkGrey", "white")(props),
|
129
96
|
},
|
130
|
-
...focusVisible({
|
131
|
-
focus: {
|
132
|
-
boxShadow: mode(
|
133
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.white}, inset 0 0 0 6px ${props.theme.colors.darkGrey}`,
|
134
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.brightRed}, inset 0 0 0 6px ${props.theme.colors.white}`,
|
135
|
-
)(props),
|
136
|
-
outline: "none",
|
137
|
-
},
|
138
|
-
notFocus: {
|
139
|
-
boxShadow: "md",
|
140
|
-
},
|
141
|
-
}),
|
142
97
|
},
|
143
98
|
}),
|
144
99
|
accent: (props) => ({
|
@@ -153,18 +108,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
153
108
|
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props),
|
154
109
|
color: mode("darkTeal", "white")(props),
|
155
110
|
},
|
156
|
-
...focusVisible({
|
157
|
-
focus: {
|
158
|
-
boxShadow: mode(
|
159
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.azure}`,
|
160
|
-
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.pine}, inset 0 0 0 6px ${props.theme.colors.azure}`,
|
161
|
-
)(props),
|
162
|
-
outline: "none",
|
163
|
-
},
|
164
|
-
notFocus: {
|
165
|
-
boxShadow: "md",
|
166
|
-
},
|
167
|
-
}),
|
168
111
|
},
|
169
112
|
}),
|
170
113
|
},
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { anatomy } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
|
-
import { focusVisible } from "../utils/focus-utils";
|
4
|
-
import { srOnly } from "../utils/sr-utils";
|
5
|
-
import { baseBorder, floatingBorder } from "../utils/border-utils";
|
6
3
|
import { baseBackground, floatingBackground } from "../utils/background-utils";
|
7
|
-
import {
|
4
|
+
import { baseBorder, floatingBorder } from "../utils/border-utils";
|
5
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
6
|
+
import { srOnly } from "../utils/sr-utils";
|
8
7
|
|
9
8
|
const parts = anatomy("InfoSelect").parts(
|
10
9
|
"container",
|
@@ -36,15 +35,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
36
35
|
_hover: {
|
37
36
|
...baseBorder("hover", props),
|
38
37
|
},
|
39
|
-
...
|
40
|
-
focus: {
|
41
|
-
...baseBorder("focus", props),
|
42
|
-
outline: "none",
|
43
|
-
},
|
44
|
-
notFocus: {
|
45
|
-
...baseBorder("default", props),
|
46
|
-
},
|
47
|
-
}),
|
38
|
+
...focusVisibleStyles(props),
|
48
39
|
_disabled: {
|
49
40
|
color: "whiteAlpha.400",
|
50
41
|
...baseBackground("disabled", props),
|
@@ -53,30 +44,18 @@ const config = helpers.defineMultiStyleConfig({
|
|
53
44
|
},
|
54
45
|
_active: {
|
55
46
|
...baseBackground("active", props),
|
56
|
-
...baseBorder("focus", props),
|
57
|
-
},
|
58
|
-
_expanded: {
|
59
|
-
...baseBorder("focus", props),
|
60
47
|
},
|
61
48
|
_invalid: {
|
62
49
|
...baseBorder("invalid", props),
|
63
50
|
_hover: {
|
64
51
|
...baseBorder("hover", props),
|
65
52
|
},
|
66
|
-
...focusVisible({
|
67
|
-
focus: {
|
68
|
-
...baseBorder("focus", props),
|
69
|
-
},
|
70
|
-
notFocus: {
|
71
|
-
...baseBorder("invalid", props),
|
72
|
-
},
|
73
|
-
}),
|
74
53
|
},
|
75
54
|
},
|
76
55
|
arrowIcon: {},
|
77
56
|
}),
|
78
57
|
variants: {
|
79
|
-
base: (
|
58
|
+
base: () => ({}),
|
80
59
|
floating: (props) => ({
|
81
60
|
button: {
|
82
61
|
...floatingBackground("default", props),
|
@@ -85,15 +64,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
85
64
|
...floatingBorder("hover", props),
|
86
65
|
...floatingBackground("hover", props),
|
87
66
|
},
|
88
|
-
...focusVisible({
|
89
|
-
focus: {
|
90
|
-
...floatingBorder("focus", props),
|
91
|
-
outline: "none",
|
92
|
-
},
|
93
|
-
notFocus: {
|
94
|
-
...floatingBorder("default", props),
|
95
|
-
},
|
96
|
-
}),
|
97
67
|
_active: {
|
98
68
|
...floatingBorder("active", props),
|
99
69
|
...floatingBackground("active", props),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
2
|
-
import {
|
2
|
+
import { anatomy, mode } from "@chakra-ui/theme-tools";
|
3
3
|
import travelTagStyles from "./travel-tag";
|
4
4
|
|
5
5
|
const parts = anatomy("info-tag").parts(
|
@@ -2,7 +2,7 @@ import { inputAnatomy as parts } from "@chakra-ui/anatomy";
|
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
3
|
import { mode } from "@chakra-ui/theme-tools";
|
4
4
|
import { getBoxShadowString } from "../utils/box-shadow-utils";
|
5
|
-
import {
|
5
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
6
6
|
|
7
7
|
const helpers = createMultiStyleConfigHelpers(parts.keys);
|
8
8
|
|
@@ -18,7 +18,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
18
18
|
transitionProperty: "common",
|
19
19
|
transitionDuration: "fast",
|
20
20
|
position: "relative",
|
21
|
-
|
21
|
+
paddingX: 3,
|
22
22
|
height: "54px",
|
23
23
|
fontSize: "mobile.md",
|
24
24
|
|
@@ -37,19 +37,11 @@ const config = helpers.defineMultiStyleConfig({
|
|
37
37
|
borderWidth: 2,
|
38
38
|
}),
|
39
39
|
},
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}),
|
46
|
-
},
|
47
|
-
notFocus: {
|
48
|
-
boxShadow: getBoxShadowString({
|
49
|
-
borderColor: mode("darkGrey", "white")(props),
|
50
|
-
}),
|
51
|
-
},
|
52
|
-
}),
|
40
|
+
_focusVisible: {
|
41
|
+
...focusVisibleStyles(props)._focusVisible,
|
42
|
+
outlineOffset: -2,
|
43
|
+
},
|
44
|
+
|
53
45
|
_disabled: {
|
54
46
|
backgroundColor: mode("blackAlpha.100", "whiteAlpha.100")(props),
|
55
47
|
boxShadow: getBoxShadowString({
|
@@ -68,20 +60,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
68
60
|
borderWidth: 2,
|
69
61
|
}),
|
70
62
|
},
|
71
|
-
...focusVisible({
|
72
|
-
focus: {
|
73
|
-
boxShadow: getBoxShadowString({
|
74
|
-
borderColor: mode("greenHaze", "azure")(props),
|
75
|
-
borderWidth: 2,
|
76
|
-
}),
|
77
|
-
},
|
78
|
-
notFocus: {
|
79
|
-
boxShadow: getBoxShadowString({
|
80
|
-
borderColor: "brightRed",
|
81
|
-
borderWidth: 2,
|
82
|
-
}),
|
83
|
-
},
|
84
|
-
}),
|
85
63
|
},
|
86
64
|
" + label": {
|
87
65
|
fontSize: ["mobile.sm", "desktop.sm"],
|
@@ -89,13 +67,13 @@ const config = helpers.defineMultiStyleConfig({
|
|
89
67
|
left: props.paddingLeft || props.pl || 3,
|
90
68
|
zIndex: 2,
|
91
69
|
position: "absolute",
|
92
|
-
|
70
|
+
marginY: 2,
|
93
71
|
transition: ".1s ease-out",
|
94
72
|
transformOrigin: "top left",
|
95
73
|
cursor: "text",
|
96
74
|
},
|
97
75
|
"&:not(:placeholder-shown)": {
|
98
|
-
|
76
|
+
paddingTop: "16px",
|
99
77
|
"& + label": {
|
100
78
|
transform: "scale(0.825) translateY(-10px)",
|
101
79
|
},
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { defineStyleConfig } from "@chakra-ui/react";
|
2
2
|
import { mode } from "@chakra-ui/theme-tools";
|
3
|
-
import {
|
4
|
-
import { focusVisible } from "../utils/focus-utils";
|
3
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
5
4
|
|
6
5
|
const config = defineStyleConfig({
|
7
|
-
baseStyle: {
|
6
|
+
baseStyle: (props) => ({
|
8
7
|
transitionProperty: "common",
|
9
8
|
transitionDuration: "fast",
|
10
9
|
transitionTimingFunction: "ease-out",
|
@@ -27,6 +26,8 @@ const config = defineStyleConfig({
|
|
27
26
|
borderRadius: "xs",
|
28
27
|
},
|
29
28
|
|
29
|
+
...focusVisibleStyles(props),
|
30
|
+
|
30
31
|
svg: {
|
31
32
|
display: "inline-block",
|
32
33
|
width: "1.125em",
|
@@ -34,25 +35,10 @@ const config = defineStyleConfig({
|
|
34
35
|
position: "relative",
|
35
36
|
bottom: "-0.2em",
|
36
37
|
},
|
37
|
-
},
|
38
|
+
}),
|
38
39
|
variants: {
|
39
40
|
primary: (props) => ({
|
40
41
|
color: mode("pine", "coralGreen")(props),
|
41
|
-
...focusVisible({
|
42
|
-
focus: {
|
43
|
-
backgroundColor: mode("pine", "white")(props),
|
44
|
-
color: mode("white", "pine")(props),
|
45
|
-
boxShadow: getBoxShadowString({
|
46
|
-
borderWidth: 2,
|
47
|
-
isInset: false,
|
48
|
-
}),
|
49
|
-
},
|
50
|
-
notFocus: {
|
51
|
-
color: "pine",
|
52
|
-
backgroundColor: "transparent",
|
53
|
-
boxShadow: "none",
|
54
|
-
},
|
55
|
-
}),
|
56
42
|
_hover: {
|
57
43
|
color: mode("darkTeal", "white")(props),
|
58
44
|
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props),
|
@@ -64,16 +50,6 @@ const config = defineStyleConfig({
|
|
64
50
|
}),
|
65
51
|
secondary: (props) => ({
|
66
52
|
color: mode("darkGrey", "white")(props),
|
67
|
-
...focusVisible({
|
68
|
-
focus: {
|
69
|
-
backgroundColor: mode("darkGrey", "white")(props),
|
70
|
-
color: mode("white", "darkTeal")(props),
|
71
|
-
},
|
72
|
-
notFocus: {
|
73
|
-
boxShadow: "none",
|
74
|
-
backgroundColor: "transparent",
|
75
|
-
},
|
76
|
-
}),
|
77
53
|
_hover: {
|
78
54
|
backgroundColor: mode("blackAlpha.100", "whiteAlpha.200")(props),
|
79
55
|
color: mode("darkGrey", "white")(props),
|
@@ -2,8 +2,8 @@ import { anatomy } from "@chakra-ui/anatomy";
|
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
3
|
import { mode } from "@chakra-ui/theme-tools";
|
4
4
|
import { colors } from "../foundations";
|
5
|
-
import {
|
6
|
-
import {
|
5
|
+
import { ghostBackground } from "../utils/background-utils";
|
6
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
7
7
|
|
8
8
|
const parts = anatomy("ListBox").parts(
|
9
9
|
"container",
|
@@ -41,12 +41,10 @@ const config = helpers.defineMultiStyleConfig({
|
|
41
41
|
_active: {
|
42
42
|
...ghostBackground("active", props),
|
43
43
|
},
|
44
|
-
_focus: {
|
45
|
-
...ghostBackground("focus", props),
|
46
|
-
},
|
47
44
|
_hover: {
|
48
45
|
...ghostBackground("hover", props),
|
49
46
|
},
|
47
|
+
...focusVisibleStyles(props),
|
50
48
|
_selected: {
|
51
49
|
...ghostBackground("selected", props),
|
52
50
|
},
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
2
2
|
import { anatomy } from "@chakra-ui/theme-tools";
|
3
|
-
import {
|
4
|
-
import { focusVisible } from "../utils/focus-utils";
|
3
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
5
4
|
|
6
5
|
const parts = anatomy("media-controller-button").parts("container", "icon");
|
7
6
|
const helpers = createMultiStyleConfigHelpers(parts.keys);
|
8
7
|
|
9
8
|
const config = helpers.defineMultiStyleConfig({
|
10
|
-
baseStyle: {
|
9
|
+
baseStyle: (props) => ({
|
11
10
|
container: {
|
12
11
|
fontSize: 30,
|
13
12
|
transitionProperty: "common",
|
@@ -21,6 +20,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
21
20
|
padding: 1,
|
22
21
|
alignSelf: "center",
|
23
22
|
color: "primaryGreen",
|
23
|
+
...focusVisibleStyles(props),
|
24
24
|
},
|
25
25
|
icon: {
|
26
26
|
flex: "0 0 auto",
|
@@ -28,7 +28,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
28
28
|
width: "1em",
|
29
29
|
height: "1em",
|
30
30
|
},
|
31
|
-
},
|
31
|
+
}),
|
32
32
|
variants: {
|
33
33
|
play: {
|
34
34
|
container: {
|
@@ -39,34 +39,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
39
39
|
_active: {
|
40
40
|
color: "greenHaze",
|
41
41
|
},
|
42
|
-
|
43
|
-
focus: {
|
44
|
-
position: "relative",
|
45
|
-
outline: "none",
|
46
|
-
_after: {
|
47
|
-
content: '""',
|
48
|
-
display: "block",
|
49
|
-
zIndex: 2,
|
50
|
-
margin: 0.5,
|
51
|
-
borderRadius: "round",
|
52
|
-
borderWidth: 2,
|
53
|
-
borderColor: "white",
|
54
|
-
borderStyle: "solid",
|
55
|
-
pointerEvents: "none",
|
56
|
-
position: "absolute",
|
57
|
-
top: 0,
|
58
|
-
right: 0,
|
59
|
-
bottom: 0,
|
60
|
-
left: 0,
|
61
|
-
outline: "none",
|
62
|
-
},
|
63
|
-
},
|
64
|
-
notFocus: {
|
65
|
-
_after: {
|
66
|
-
display: "none",
|
67
|
-
},
|
68
|
-
},
|
69
|
-
}),
|
42
|
+
|
70
43
|
_disabled: {
|
71
44
|
color: "silver",
|
72
45
|
_hover: {
|
@@ -80,18 +53,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
80
53
|
},
|
81
54
|
jumpSkip: {
|
82
55
|
container: {
|
83
|
-
...focusVisible({
|
84
|
-
focus: {
|
85
|
-
boxShadow: getBoxShadowString({
|
86
|
-
borderColor: "greenHaze",
|
87
|
-
borderWidth: 2,
|
88
|
-
}),
|
89
|
-
outline: "none",
|
90
|
-
},
|
91
|
-
notFocus: {
|
92
|
-
boxShadow: "none",
|
93
|
-
},
|
94
|
-
}),
|
95
56
|
_hover: {
|
96
57
|
backgroundColor: "seaMist",
|
97
58
|
},
|
@@ -130,5 +91,3 @@ const config = helpers.defineMultiStyleConfig({
|
|
130
91
|
});
|
131
92
|
|
132
93
|
export default config;
|
133
|
-
|
134
|
-
// 3341 minus hund
|
@@ -28,9 +28,9 @@ const config = helpers.defineMultiStyleConfig({
|
|
28
28
|
boxShadow: "md",
|
29
29
|
},
|
30
30
|
header: {
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
paddingX: 5,
|
32
|
+
paddingTop: 6,
|
33
|
+
paddingBottom: 2,
|
34
34
|
fontWeight: "bold",
|
35
35
|
fontFamily: "body",
|
36
36
|
},
|
@@ -41,14 +41,14 @@ const config = helpers.defineMultiStyleConfig({
|
|
41
41
|
insetEnd: 3,
|
42
42
|
},
|
43
43
|
body: {
|
44
|
-
|
45
|
-
|
44
|
+
paddingX: 5,
|
45
|
+
paddingBottom: 6,
|
46
46
|
flex: 1,
|
47
47
|
overflow: props.scrollBehavior === "inside" ? "auto" : undefined,
|
48
48
|
},
|
49
49
|
footer: {
|
50
|
-
|
51
|
-
|
50
|
+
paddingX: 3,
|
51
|
+
paddingBottom: 3,
|
52
52
|
},
|
53
53
|
}),
|
54
54
|
sizes: {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { popoverAnatomy as parts } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
3
|
import { cssVar, mode } from "@chakra-ui/theme-tools";
|
4
|
-
import {
|
5
|
-
import { focusVisible } from "../utils/focus-utils";
|
4
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
6
5
|
|
7
6
|
const $popperBg = cssVar("popper-bg");
|
8
7
|
const $arrowBg = cssVar("popper-arrow-bg");
|
@@ -22,7 +21,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
22
21
|
[$arrowShadowColor.variable]: `colors.blackAlpha.300`,
|
23
22
|
color: "white",
|
24
23
|
borderRadius: "sm",
|
25
|
-
|
24
|
+
padding: 1.5,
|
26
25
|
zIndex: "inherit",
|
27
26
|
maxWidth: "20em",
|
28
27
|
_focus: {
|
@@ -40,14 +39,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
40
39
|
position: "absolute",
|
41
40
|
color: "white",
|
42
41
|
hover: "whiteAlpha.100",
|
43
|
-
...
|
44
|
-
focus: {
|
45
|
-
boxShadow: getBoxShadowString({ borderColor: "azure" }),
|
46
|
-
},
|
47
|
-
notFocus: {
|
48
|
-
boxShadow: "none",
|
49
|
-
},
|
50
|
-
}),
|
42
|
+
...focusVisibleStyles(props),
|
51
43
|
_active: {
|
52
44
|
backgroundColor: "whiteAlpha.200",
|
53
45
|
},
|
@@ -62,14 +54,14 @@ const config = helpers.defineMultiStyleConfig({
|
|
62
54
|
sizes: {
|
63
55
|
sm: {
|
64
56
|
content: {
|
65
|
-
|
66
|
-
|
57
|
+
paddingX: 1.5,
|
58
|
+
paddingY: 1,
|
67
59
|
},
|
68
60
|
},
|
69
61
|
lg: {
|
70
62
|
content: {
|
71
|
-
|
72
|
-
|
63
|
+
paddingX: 3,
|
64
|
+
paddingY: 2,
|
73
65
|
},
|
74
66
|
},
|
75
67
|
},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
2
|
-
import { anatomy, mode
|
2
|
+
import { anatomy, mode } from "@chakra-ui/theme-tools";
|
3
3
|
|
4
4
|
const parts = anatomy("progress-indicator").parts(
|
5
5
|
"root",
|
@@ -33,10 +33,6 @@ const config = helpers.defineMultiStyleConfig({
|
|
33
33
|
},
|
34
34
|
},
|
35
35
|
}),
|
36
|
-
|
37
|
-
variants: {
|
38
|
-
base: (props) => ({}),
|
39
|
-
},
|
40
36
|
defaultProps: {
|
41
37
|
variant: "base",
|
42
38
|
},
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { radioAnatomy as parts } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
|
+
import { focusVisibleStyles } from "../utils/focus-util";
|
3
4
|
|
4
5
|
const helpers = createMultiStyleConfigHelpers(parts.keys);
|
5
6
|
|
6
7
|
const config = helpers.defineMultiStyleConfig({
|
7
|
-
baseStyle: {
|
8
|
+
baseStyle: (props) => ({
|
8
9
|
container: {
|
9
10
|
_hover: {
|
10
11
|
"input:enabled + .chakra-radio__control": {
|
@@ -28,10 +29,8 @@ const config = helpers.defineMultiStyleConfig({
|
|
28
29
|
borderColor: "primaryGreen",
|
29
30
|
borderRadius: "50%",
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
borderColor: "azure",
|
34
|
-
},
|
32
|
+
...focusVisibleStyles(props),
|
33
|
+
|
35
34
|
_disabled: {
|
36
35
|
backgroundColor: "lightGrey",
|
37
36
|
borderColor: "steel",
|
@@ -48,17 +47,12 @@ const config = helpers.defineMultiStyleConfig({
|
|
48
47
|
borderRadius: "50%",
|
49
48
|
background: "currentColor",
|
50
49
|
},
|
51
|
-
|
52
|
-
_focus: {
|
53
|
-
backgroundColor: "white",
|
54
|
-
color: "azure",
|
55
|
-
},
|
56
50
|
_disabled: {
|
57
51
|
backgroundColor: "lightGrey",
|
58
52
|
borderColor: "steel",
|
59
53
|
},
|
60
54
|
},
|
61
55
|
},
|
62
|
-
},
|
56
|
+
}),
|
63
57
|
});
|
64
58
|
export default config;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { selectAnatomy } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
|
-
import { default as Input } from "./input";
|
4
3
|
import { mode } from "@chakra-ui/theme-tools";
|
4
|
+
import { default as Input } from "./input";
|
5
5
|
|
6
6
|
const parts = selectAnatomy.extend("root");
|
7
7
|
|
@@ -19,7 +19,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
19
19
|
left: 3,
|
20
20
|
zIndex: 2,
|
21
21
|
position: "absolute",
|
22
|
-
|
22
|
+
marginY: 2,
|
23
23
|
transformOrigin: "top left",
|
24
24
|
transform: [
|
25
25
|
"scale(0.825) translateY(-12px)",
|