@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.
@@ -1,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.1 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
- CLI Building entry: src/index.tsx
5
+ CLI Building entry: src/index.tsx, src/icons/index.tsx
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v7.3.0
8
8
  CLI Using tsup config: /home/runner/work/spor/spor/packages/spor-react/tsup.config.ts
@@ -10,12 +10,18 @@ CLI Target: node16
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
- ESM dist/index.mjs 294.87 KB
14
- ESM dist/index.mjs.map 633.26 KB
15
- ESM ⚡️ Build success in 2911ms
16
- CJS dist/index.js 315.49 KB
17
- CJS dist/index.js.map 633.26 KB
18
- CJS ⚡️ Build success in 2912ms
19
- DTS ⚡️ Build success in 25961ms
20
- DTS dist/index.d.ts 126.10 KB
21
- DTS dist/index.d.mts 126.10 KB
13
+ ESM dist/icons/index.mjs 110.00 B
14
+ ESM dist/index.mjs 295.23 KB
15
+ ESM dist/icons/index.mjs.map 157.00 B
16
+ ESM dist/index.mjs.map 633.84 KB
17
+ ESM ⚡️ Build success in 2800ms
18
+ CJS dist/index.js 315.85 KB
19
+ CJS dist/icons/index.js 380.00 B
20
+ CJS dist/index.js.map 633.84 KB
21
+ CJS dist/icons/index.js.map 157.00 B
22
+ CJS ⚡️ Build success in 2801ms
23
+ DTS ⚡️ Build success in 30877ms
24
+ DTS dist/icons/index.d.ts 44.00 B
25
+ DTS dist/index.d.ts 126.10 KB
26
+ DTS dist/icons/index.d.mts 44.00 B
27
+ DTS dist/index.d.mts 126.10 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.0 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.1 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 184803a: Support exporting icons directly from spor, which seems to fix SSR issues for icons.
8
+ - 812afc9: CountryCodeSelect: Fixed onValueChange and UU styling in select.
9
+
3
10
  ## 12.4.0
4
11
 
5
12
  ### Minor Changes
@@ -0,0 +1 @@
1
+ export * from '@vygruppen/spor-icon-react';
@@ -0,0 +1 @@
1
+ export * from '@vygruppen/spor-icon-react';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var sporIconReact = require('@vygruppen/spor-icon-react');
4
+
5
+
6
+
7
+ Object.keys(sporIconReact).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return sporIconReact[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=out.js.map
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/icons/index.tsx"],"names":[],"mappings":";AAAA,cAAc","sourcesContent":["export * from \"@vygruppen/spor-icon-react\";\n"]}
@@ -0,0 +1,3 @@
1
+ export * from '@vygruppen/spor-icon-react';
2
+ //# sourceMappingURL=out.js.map
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/icons/index.tsx"],"names":[],"mappings":";AAAA,cAAc","sourcesContent":["export * from \"@vygruppen/spor-icon-react\";\n"]}
package/dist/index.js CHANGED
@@ -4181,7 +4181,7 @@ var CountryCodeSelect = React28.forwardRef((props, ref) => {
4181
4181
  lazyMount: true,
4182
4182
  "aria-label": t(texts15.countryCode),
4183
4183
  variant: "rightSideSquare",
4184
- children: callingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
4184
+ children: callingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { as: "option", item: code, children: code.label }, code.label))
4185
4185
  }
4186
4186
  );
4187
4187
  });
@@ -4250,6 +4250,7 @@ var PhoneNumberInput = React28.forwardRef((props, ref) => {
4250
4250
  {
4251
4251
  ref,
4252
4252
  type: "tel",
4253
+ ...props,
4253
4254
  value: value.nationalNumber,
4254
4255
  invalid,
4255
4256
  errorText,
@@ -4263,7 +4264,6 @@ var PhoneNumberInput = React28.forwardRef((props, ref) => {
4263
4264
  },
4264
4265
  variant,
4265
4266
  "data-state": "on",
4266
- ...props,
4267
4267
  label
4268
4268
  }
4269
4269
  )
@@ -9308,7 +9308,8 @@ var selectSlotRecipe = react.defineSlotRecipe({
9308
9308
  _open: {
9309
9309
  animationStyle: "slide-fade-in",
9310
9310
  animationDuration: "fast",
9311
- zIndex: "popover"
9311
+ zIndex: "popover",
9312
+ outline: "none"
9312
9313
  },
9313
9314
  _closed: {
9314
9315
  animationStyle: "slide-fade-out",
@@ -9328,6 +9329,17 @@ var selectSlotRecipe = react.defineSlotRecipe({
9328
9329
  color: "ghost.text",
9329
9330
  cursor: "pointer",
9330
9331
  outline: "none",
9332
+ "&[data-highlighted]:hover": {
9333
+ outlineOffset: "2px",
9334
+ outline: "2px solid",
9335
+ outlineColor: "outline.focus",
9336
+ backgroundColor: "ghost.surface.hover"
9337
+ },
9338
+ "&[data-highlighted]": {
9339
+ outlineOffset: "2px",
9340
+ outline: "2px solid",
9341
+ outlineColor: "outline.focus"
9342
+ },
9331
9343
  _active: {
9332
9344
  backgroundColor: "ghost.surface.active",
9333
9345
  color: "green"