@vygruppen/spor-react 12.24.12 → 12.24.13

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,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.12 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.24.13 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -11,18 +11,18 @@
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- ESM dist/index.mjs 334.82 KB
15
14
  ESM dist/icons/index.mjs 110.00 B
15
+ ESM dist/index.mjs 334.83 KB
16
16
  ESM dist/icons/index.mjs.map 157.00 B
17
- ESM dist/index.mjs.map 706.20 KB
18
- ESM ⚡️ Build success in 2770ms
19
- CJS dist/index.cjs 358.99 KB
17
+ ESM dist/index.mjs.map 706.26 KB
18
+ ESM ⚡️ Build success in 2652ms
19
+ CJS dist/index.cjs 359.00 KB
20
20
  CJS dist/icons/index.cjs 381.00 B
21
- CJS dist/index.cjs.map 706.20 KB
21
+ CJS dist/index.cjs.map 706.26 KB
22
22
  CJS dist/icons/index.cjs.map 157.00 B
23
- CJS ⚡️ Build success in 2771ms
24
- DTS ⚡️ Build success in 20882ms
23
+ CJS ⚡️ Build success in 2651ms
24
+ DTS ⚡️ Build success in 20242ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 147.77 KB
26
+ DTS dist/index.d.ts 147.64 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 147.77 KB
28
+ DTS dist/index.d.cts 147.64 KB
@@ -1,12 +1,11 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.12 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.24.13 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
- [dotenv@17.3.1] injecting env (0) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' }
5
+ [dotenv@17.3.1] injecting env (0) from .env -- tip: ⚡️ secrets for agents: https://dotenvx.com/as2
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
- ◒ Generating conditions types...
9
- ◇ ✅ Generated conditions typings
8
+ ◇ Generated conditions typings
10
9
  [?25h[?25l│
11
10
  ◒ Generating recipe types...
12
11
  ◇ ✅ Generated recipe typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.24.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 36f8706: Avoid passing defaultOpen to controlled Nudge popovers
8
+ - fd6a463: Fix bg color for floating datepicker
9
+
3
10
  ## 12.24.12
4
11
 
5
12
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -5737,12 +5737,21 @@ var logExpirationWarning = () => {
5737
5737
  }
5738
5738
  };
5739
5739
  var Nudge = (props) => {
5740
- const { introducedDate, size = "md", ...rest } = props;
5740
+ const { introducedDate, size = "md", open, ...rest } = props;
5741
5741
  if (isNudgeExpired(introducedDate)) {
5742
5742
  logExpirationWarning();
5743
5743
  return null;
5744
5744
  }
5745
- return /* @__PURE__ */ jsxRuntime.jsx(Popover2, { defaultOpen: true, size, ...rest });
5745
+ const isControlled = open !== void 0;
5746
+ return /* @__PURE__ */ jsxRuntime.jsx(
5747
+ Popover2,
5748
+ {
5749
+ defaultOpen: isControlled ? void 0 : true,
5750
+ open,
5751
+ size,
5752
+ ...rest
5753
+ }
5754
+ );
5746
5755
  };
5747
5756
  var NudgeTrigger = React20.forwardRef(({ ...props }, ref) => {
5748
5757
  return /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { ...props, ref });
@@ -8585,10 +8594,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8585
8594
  },
8586
8595
  floating: {
8587
8596
  wrapper: {
8588
- backgroundColor: {
8589
- _light: "bg",
8590
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
8591
- },
8597
+ bg: "floating.surface",
8592
8598
  outline: "1px solid",
8593
8599
  outlineColor: "floating.outline",
8594
8600
  boxShadow: "sm",