@vygruppen/spor-react 9.11.3 → 9.12.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 +12 -0
- package/dist/{CountryCodeSelect-KU4HQMG3.mjs → CountryCodeSelect-Q33DXFQF.mjs} +1 -1
- package/dist/{chunk-PA6EOPOZ.mjs → chunk-D4Z4Q4GJ.mjs} +497 -493
- package/dist/index.d.mts +124 -144
- package/dist/index.d.ts +124 -144
- package/dist/index.js +971 -967
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/datepicker/CalendarCell.tsx +1 -21
- package/src/datepicker/CalendarHeader.tsx +4 -6
- package/src/datepicker/CalendarTriggerButton.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +0 -4
- package/src/input/Radio.tsx +0 -1
- package/src/layout/RadioCard.tsx +64 -60
- package/src/layout/RadioCardGroup.tsx +59 -103
- package/src/theme/components/breadcrumb.ts +4 -42
- package/src/theme/components/button.ts +4 -4
- package/src/theme/components/choice-chip.ts +11 -14
- package/src/theme/components/close-button.ts +6 -5
- package/src/theme/components/datepicker.ts +21 -0
- package/src/theme/components/info-select.ts +1 -1
- package/src/theme/components/input.ts +2 -2
- package/src/theme/components/pressable-card.ts +2 -1
- package/src/theme/components/progress-bar.ts +4 -1
- package/src/theme/components/radio-card.ts +21 -10
- package/src/theme/components/radio.ts +5 -2
- package/src/theme/components/select.ts +4 -4
- package/src/theme/components/static-card.ts +0 -1
- package/src/theme/components/tabs.ts +5 -31
@@ -20,6 +20,7 @@ const parts = anatomy("datepicker").parts(
|
|
20
20
|
"dateCell",
|
21
21
|
"inputLabel",
|
22
22
|
"dateTimeSegment",
|
23
|
+
"cell",
|
23
24
|
);
|
24
25
|
|
25
26
|
const $arrowBackground = cssVar("popper-arrow-bg");
|
@@ -57,6 +58,10 @@ const config = helpers.defineMultiStyleConfig({
|
|
57
58
|
"darkGrey",
|
58
59
|
props.isPlaceholder ? "whiteAlpha.400" : "white",
|
59
60
|
)(props),
|
61
|
+
_focus: {
|
62
|
+
...brandBackground("hover", props),
|
63
|
+
color: "white",
|
64
|
+
},
|
60
65
|
},
|
61
66
|
calendarTriggerButton: {
|
62
67
|
width: 8,
|
@@ -98,6 +103,22 @@ const config = helpers.defineMultiStyleConfig({
|
|
98
103
|
weekend: {
|
99
104
|
...accentText("default", props),
|
100
105
|
},
|
106
|
+
cell: {
|
107
|
+
'&[aria-selected="true"] + [aria-selected="true"] > button': {
|
108
|
+
"&::before": {
|
109
|
+
content: '""',
|
110
|
+
display: "block",
|
111
|
+
width: "100%",
|
112
|
+
height: "100%",
|
113
|
+
position: "absolute",
|
114
|
+
left: "-50%",
|
115
|
+
top: 0,
|
116
|
+
bottom: 0,
|
117
|
+
zIndex: -1,
|
118
|
+
...brandBackground("default", props),
|
119
|
+
},
|
120
|
+
},
|
121
|
+
},
|
101
122
|
dateCell: {
|
102
123
|
...ghostBackground("default", props),
|
103
124
|
...baseText("default", props),
|
@@ -18,7 +18,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
18
18
|
transitionDuration: "fast",
|
19
19
|
position: "relative",
|
20
20
|
paddingX: 3,
|
21
|
-
height:
|
21
|
+
height: 8,
|
22
22
|
fontSize: "mobile.md",
|
23
23
|
...baseBackground("default", props),
|
24
24
|
|
@@ -58,7 +58,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
58
58
|
cursor: "text",
|
59
59
|
},
|
60
60
|
"&:not(:placeholder-shown)": {
|
61
|
-
paddingTop: "
|
61
|
+
paddingTop: "1rem",
|
62
62
|
"& + label": {
|
63
63
|
transform: "scale(0.825) translateY(-10px)",
|
64
64
|
},
|
@@ -2,7 +2,7 @@ import { defineStyleConfig } from "@chakra-ui/react";
|
|
2
2
|
import { baseBackground, baseBorder, baseText } from "../utils/base-utils";
|
3
3
|
import { floatingBackground, floatingBorder } from "../utils/floating-utils";
|
4
4
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
5
|
-
import { accentBackground } from "../utils/accent-utils";
|
5
|
+
import { accentBackground, accentText } from "../utils/accent-utils";
|
6
6
|
|
7
7
|
const config = defineStyleConfig({
|
8
8
|
baseStyle: (props) => ({
|
@@ -39,6 +39,7 @@ const config = defineStyleConfig({
|
|
39
39
|
},
|
40
40
|
}),
|
41
41
|
accent: (props) => ({
|
42
|
+
...accentText("default", props),
|
42
43
|
...accentBackground("default", props),
|
43
44
|
boxShadow: "sm",
|
44
45
|
_hover: {
|
@@ -17,7 +17,10 @@ const config = helpers.defineMultiStyleConfig({
|
|
17
17
|
},
|
18
18
|
background: {
|
19
19
|
display: "flex",
|
20
|
-
backgroundColor: mode(
|
20
|
+
backgroundColor: mode(
|
21
|
+
"brand.surface.default.dark",
|
22
|
+
"brand.surface.default.light",
|
23
|
+
)(props),
|
21
24
|
borderRadius: "sm",
|
22
25
|
justifyContent: "flex-start",
|
23
26
|
marginX: "auto",
|
@@ -1,11 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
createMultiStyleConfigHelpers,
|
3
|
-
defineStyleConfig,
|
4
|
-
} from "@chakra-ui/react";
|
1
|
+
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
5
2
|
import { baseBackground, baseBorder, baseText } from "../utils/base-utils";
|
6
3
|
import { floatingBackground, floatingBorder } from "../utils/floating-utils";
|
7
4
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
8
|
-
import { anatomy } from "@chakra-ui/theme-tools";
|
5
|
+
import { anatomy, mode } from "@chakra-ui/theme-tools";
|
9
6
|
import { outlineBorder } from "../utils/outline-utils";
|
10
7
|
|
11
8
|
const parts = anatomy("radio-card").parts("container", "checked", "radioInput");
|
@@ -14,7 +11,6 @@ const helpers = createMultiStyleConfigHelpers(parts.keys);
|
|
14
11
|
const config = helpers.defineMultiStyleConfig({
|
15
12
|
baseStyle: (props: any) => ({
|
16
13
|
container: {
|
17
|
-
appearance: "none",
|
18
14
|
border: "none",
|
19
15
|
overflow: "hidden",
|
20
16
|
fontSize: "inherit",
|
@@ -57,6 +53,9 @@ const config = helpers.defineMultiStyleConfig({
|
|
57
53
|
...baseBackground("active", props),
|
58
54
|
...baseBorder("active", props),
|
59
55
|
},
|
56
|
+
_focus: {
|
57
|
+
...outlineBorder("focus", props),
|
58
|
+
},
|
60
59
|
},
|
61
60
|
checked: {
|
62
61
|
_hover: {
|
@@ -66,12 +65,16 @@ const config = helpers.defineMultiStyleConfig({
|
|
66
65
|
...baseBackground("active", props),
|
67
66
|
...baseBorder("active", props),
|
68
67
|
},
|
68
|
+
_focus: {
|
69
|
+
outline: "4px solid",
|
70
|
+
outlineStyle: "double",
|
71
|
+
...outlineBorder("focus", props),
|
72
|
+
outlineOffset: "-1px",
|
73
|
+
},
|
69
74
|
},
|
70
75
|
}),
|
71
76
|
floating: (props) => ({
|
72
77
|
container: {
|
73
|
-
...baseText("default", props),
|
74
|
-
...baseBackground("default", props),
|
75
78
|
...floatingBackground("default", props),
|
76
79
|
...floatingBorder("default", props),
|
77
80
|
boxShadow: "sm",
|
@@ -84,17 +87,25 @@ const config = helpers.defineMultiStyleConfig({
|
|
84
87
|
...floatingBackground("active", props),
|
85
88
|
...floatingBorder("active", props),
|
86
89
|
},
|
90
|
+
_focus: {
|
91
|
+
...outlineBorder("focus", props),
|
92
|
+
},
|
87
93
|
},
|
88
94
|
checked: {
|
89
|
-
cursor: "normal",
|
90
|
-
|
91
95
|
_hover: {
|
92
96
|
...floatingBorder("hover", props),
|
97
|
+
boxShadow: "md",
|
93
98
|
},
|
94
99
|
_active: {
|
95
100
|
...floatingBackground("active", props),
|
96
101
|
...floatingBorder("active", props),
|
97
102
|
},
|
103
|
+
_focus: {
|
104
|
+
outline: "4px solid",
|
105
|
+
outlineStyle: "double",
|
106
|
+
...outlineBorder("focus", props),
|
107
|
+
outlineOffset: "-1px",
|
108
|
+
},
|
98
109
|
},
|
99
110
|
}),
|
100
111
|
},
|
@@ -2,7 +2,7 @@ import { radioAnatomy 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 { baseBackground, baseBorder, baseText } from "../utils/base-utils";
|
5
|
-
import { brandBackground } from "../utils/brand-utils";
|
5
|
+
import { brandBackground, brandText } from "../utils/brand-utils";
|
6
6
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
7
7
|
|
8
8
|
const helpers = createMultiStyleConfigHelpers(parts.keys);
|
@@ -41,7 +41,10 @@ const config = helpers.defineMultiStyleConfig({
|
|
41
41
|
...baseText("disabled", props),
|
42
42
|
},
|
43
43
|
_checked: {
|
44
|
-
color: mode(
|
44
|
+
color: mode(
|
45
|
+
"brand.surface.default.light",
|
46
|
+
"brand.surface.default.dark",
|
47
|
+
)(props),
|
45
48
|
borderColor: "currentColor",
|
46
49
|
_before: {
|
47
50
|
content: `""`,
|
@@ -30,17 +30,17 @@ const config = helpers.defineMultiStyleConfig({
|
|
30
30
|
field: {
|
31
31
|
...Input.baseStyle!(props).field,
|
32
32
|
appearance: "none",
|
33
|
-
paddingTop: "
|
33
|
+
paddingTop: "1rem",
|
34
34
|
"option, optgroup": {},
|
35
35
|
},
|
36
36
|
icon: {
|
37
|
-
width:
|
38
|
-
height:
|
37
|
+
width: 5,
|
38
|
+
height: 5,
|
39
39
|
insetEnd: "0.5rem",
|
40
40
|
position: "relative",
|
41
41
|
color: "currentColor",
|
42
42
|
strokeLinecap: "round",
|
43
|
-
fontSize: "
|
43
|
+
fontSize: "sm",
|
44
44
|
_disabled: {
|
45
45
|
...baseText("disabled", props),
|
46
46
|
},
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Theme, defineStyleConfig } from "@chakra-ui/react";
|
2
2
|
import { colors } from "../foundations";
|
3
3
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
4
|
-
import { bg } from "../utils/bg-utils";
|
5
4
|
import { floatingBackground } from "../utils/floating-utils";
|
6
5
|
import { mode } from "@chakra-ui/theme-tools";
|
7
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { tabsAnatomy as parts } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
|
-
import { mode
|
3
|
+
import { mode } from "@chakra-ui/theme-tools";
|
4
4
|
import { accentBackground, accentText } from "../utils/accent-utils";
|
5
5
|
import { baseBackground, baseBorder, baseText } from "../utils/base-utils";
|
6
6
|
import { brandBackground, brandText } from "../utils/brand-utils";
|
@@ -88,7 +88,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
88
88
|
sizes: {
|
89
89
|
xs: {
|
90
90
|
tablist: {
|
91
|
-
height:
|
91
|
+
height: 5,
|
92
92
|
padding: "2px",
|
93
93
|
},
|
94
94
|
tab: {
|
@@ -98,7 +98,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
98
98
|
},
|
99
99
|
sm: {
|
100
100
|
tablist: {
|
101
|
-
height:
|
101
|
+
height: 6,
|
102
102
|
padding: 0.5,
|
103
103
|
},
|
104
104
|
tab: {
|
@@ -107,7 +107,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
107
107
|
},
|
108
108
|
md: {
|
109
109
|
tablist: {
|
110
|
-
height:
|
110
|
+
height: 7,
|
111
111
|
padding: 0.5,
|
112
112
|
},
|
113
113
|
tab: {
|
@@ -117,7 +117,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
117
117
|
},
|
118
118
|
lg: {
|
119
119
|
tablist: {
|
120
|
-
height:
|
120
|
+
height: 8,
|
121
121
|
padding: "4px",
|
122
122
|
},
|
123
123
|
tab: {
|
@@ -133,29 +133,3 @@ const config = helpers.defineMultiStyleConfig({
|
|
133
133
|
});
|
134
134
|
|
135
135
|
export default config;
|
136
|
-
|
137
|
-
const getTabColorSchemeHoverProps = (props: StyleFunctionProps) => {
|
138
|
-
switch (props.colorScheme) {
|
139
|
-
case "base":
|
140
|
-
return {
|
141
|
-
...baseBorder("hover", props),
|
142
|
-
};
|
143
|
-
case "accent":
|
144
|
-
return {
|
145
|
-
...accentBackground("hover", props),
|
146
|
-
};
|
147
|
-
}
|
148
|
-
};
|
149
|
-
|
150
|
-
const getTabColorSchemeActiveProps = (props: StyleFunctionProps) => {
|
151
|
-
switch (props.colorScheme) {
|
152
|
-
case "base":
|
153
|
-
return {
|
154
|
-
...baseBackground("active", props),
|
155
|
-
};
|
156
|
-
case "accent":
|
157
|
-
return {
|
158
|
-
...accentBackground("active", props),
|
159
|
-
};
|
160
|
-
}
|
161
|
-
};
|