@vygruppen/spor-react 12.4.0 → 12.4.1
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 +17 -11
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/icons/index.d.mts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +14 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/index.mjs +3 -0
- package/dist/icons/index.mjs.map +1 -0
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -6
- package/src/icons/index.tsx +1 -0
- package/src/input/CountryCodeSelect.tsx +1 -1
- package/src/input/PhoneNumberInput.tsx +1 -1
- package/src/theme/slot-recipes/select.ts +12 -1
- package/tsup.config.ts +1 -1
package/package.json
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "12.4.
|
4
|
-
"
|
5
|
-
|
6
|
-
|
3
|
+
"version": "12.4.1",
|
4
|
+
"exports": {
|
5
|
+
".": {
|
6
|
+
"types": "./dist/index.d.ts",
|
7
|
+
"import": "./dist/index.mjs",
|
8
|
+
"require": "./dist/index.js"
|
9
|
+
},
|
10
|
+
"./icons": {
|
11
|
+
"types": "./dist/icons/index.d.ts",
|
12
|
+
"import": "./dist/icons/index.mjs",
|
13
|
+
"require": "./dist/icons/index.js"
|
14
|
+
}
|
15
|
+
},
|
7
16
|
"license": "MIT",
|
8
17
|
"sideEffects": false,
|
9
18
|
"homepage": "https://github.com/nsbno/spor/tree/main/packages/spor-react",
|
@@ -37,8 +46,8 @@
|
|
37
46
|
"react-swipeable": "^7.0.1",
|
38
47
|
"usehooks-ts": "^3.1.0",
|
39
48
|
"@vygruppen/spor-design-tokens": "4.0.6",
|
40
|
-
"@vygruppen/spor-
|
41
|
-
"@vygruppen/spor-
|
49
|
+
"@vygruppen/spor-loader": "0.6.0",
|
50
|
+
"@vygruppen/spor-icon-react": "4.1.0"
|
42
51
|
},
|
43
52
|
"devDependencies": {
|
44
53
|
"@react-types/datepicker": "^3.10.0",
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "@vygruppen/spor-icon-react";
|
@@ -58,7 +58,7 @@ export const CountryCodeSelect = forwardRef<
|
|
58
58
|
variant={"rightSideSquare"}
|
59
59
|
>
|
60
60
|
{callingCodes.items.map((code) => (
|
61
|
-
<SelectItem key={code.label} item={code}>
|
61
|
+
<SelectItem as={"option"} key={code.label} item={code}>
|
62
62
|
{code.label}
|
63
63
|
</SelectItem>
|
64
64
|
))}
|
@@ -102,6 +102,7 @@ export const PhoneNumberInput = forwardRef<
|
|
102
102
|
<Input
|
103
103
|
ref={ref}
|
104
104
|
type="tel"
|
105
|
+
{...props}
|
105
106
|
value={value.nationalNumber}
|
106
107
|
invalid={invalid}
|
107
108
|
errorText={errorText}
|
@@ -116,7 +117,6 @@ export const PhoneNumberInput = forwardRef<
|
|
116
117
|
}}
|
117
118
|
variant={variant}
|
118
119
|
data-state="on"
|
119
|
-
{...props}
|
120
120
|
label={label}
|
121
121
|
/>
|
122
122
|
</>
|
@@ -93,6 +93,7 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
93
93
|
animationStyle: "slide-fade-in",
|
94
94
|
animationDuration: "fast",
|
95
95
|
zIndex: "popover",
|
96
|
+
outline: "none",
|
96
97
|
},
|
97
98
|
_closed: {
|
98
99
|
animationStyle: "slide-fade-out",
|
@@ -112,7 +113,17 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
112
113
|
color: "ghost.text",
|
113
114
|
cursor: "pointer",
|
114
115
|
outline: "none",
|
115
|
-
|
116
|
+
"&[data-highlighted]:hover": {
|
117
|
+
outlineOffset: "2px",
|
118
|
+
outline: "2px solid",
|
119
|
+
outlineColor: "outline.focus",
|
120
|
+
backgroundColor: "ghost.surface.hover",
|
121
|
+
},
|
122
|
+
"&[data-highlighted]": {
|
123
|
+
outlineOffset: "2px",
|
124
|
+
outline: "2px solid",
|
125
|
+
outlineColor: "outline.focus",
|
126
|
+
},
|
116
127
|
_active: {
|
117
128
|
backgroundColor: "ghost.surface.active",
|
118
129
|
color: "green",
|