@vygruppen/spor-react 13.4.4 → 13.4.6

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": "13.4.4",
4
+ "version": "13.4.6",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  "react-stately": "^3.31.1",
47
47
  "react-swipeable": "^7.0.1",
48
48
  "usehooks-ts": "^3.1.0",
49
- "@vygruppen/spor-design-tokens": "5.0.5",
50
- "@vygruppen/spor-icon-react": "5.0.1",
49
+ "@vygruppen/spor-design-tokens": "5.0.6",
50
+ "@vygruppen/spor-icon-react": "5.0.2",
51
51
  "@vygruppen/spor-loader": "0.7.0"
52
52
  },
53
53
  "devDependencies": {
@@ -62,7 +62,12 @@ export const DateField = ({
62
62
  <Box minWidth="6rem" width="100%">
63
63
  {props.label && (
64
64
  <Box css={styles.inputLabel} position="absolute" paddingTop="2px">
65
- <Label padding="0" {...props.labelProps}>
65
+ <Label
66
+ padding="0"
67
+ fontSize={["mobile.2xs", "desktop.2xs"]}
68
+ color="text.subtle"
69
+ {...props.labelProps}
70
+ >
66
71
  {props.label} <Field.RequiredIndicator />
67
72
  </Label>
68
73
  </Box>
@@ -32,7 +32,8 @@ export const TimeField = ({ state, ...props }: TimeFieldProps) => {
32
32
  {...labelProps}
33
33
  htmlFor={fieldProps.id}
34
34
  marginBottom={0}
35
- fontSize={["mobile.xs", "desktop.xs"]}
35
+ fontSize={["mobile.2xs", "desktop.2xs"]}
36
+ color="text.subtle"
36
37
  top={0}
37
38
  cursor="text"
38
39
  left="50%"
@@ -82,6 +82,13 @@ export const selectSlotRecipe = defineSlotRecipe({
82
82
  borderBottomRadius: "sm",
83
83
  marginTop: -1,
84
84
 
85
+ "&[data-placement^='top']": {
86
+ borderTopRadius: "sm",
87
+ borderBottomRadius: 0,
88
+ marginTop: 0,
89
+ marginBottom: -1,
90
+ },
91
+
85
92
  _open: {
86
93
  animationStyle: "slide-fade-in",
87
94
  animationDuration: "fast",
@@ -150,6 +157,10 @@ export const selectSlotRecipe = defineSlotRecipe({
150
157
  _open: {
151
158
  borderBottomRadius: 0,
152
159
  },
160
+ "&:has([data-placement^='top'][data-state='open'])": {
161
+ borderTopRadius: 0,
162
+ borderBottomRadius: "sm",
163
+ },
153
164
  _invalid: {
154
165
  outline: "2px solid",
155
166
  outlineColor: "outline.error",