@vygruppen/spor-react 12.24.12 → 12.24.14

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.14 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
- ESM dist/icons/index.mjs 110.00 B
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
14
+ CJS dist/index.cjs 358.95 KB
20
15
  CJS dist/icons/index.cjs 381.00 B
21
- CJS dist/index.cjs.map 706.20 KB
22
16
  CJS dist/icons/index.cjs.map 157.00 B
23
- CJS ⚡️ Build success in 2771ms
24
- DTS ⚡️ Build success in 20882ms
17
+ CJS dist/index.cjs.map 706.17 KB
18
+ CJS ⚡️ Build success in 2590ms
19
+ ESM dist/index.mjs 334.78 KB
20
+ ESM dist/icons/index.mjs 110.00 B
21
+ ESM dist/index.mjs.map 706.17 KB
22
+ ESM dist/icons/index.mjs.map 157.00 B
23
+ ESM ⚡️ Build success in 2590ms
24
+ DTS ⚡️ Build success in 20304ms
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,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.12 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.24.14 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: 🔐 prevent committing .env to code: https://dotenvx.com/precommit
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.24.14
4
+
5
+ ### Patch Changes
6
+
7
+ - a79c7e3: Fix contrast on stepper in darkmode
8
+
9
+ ## 12.24.13
10
+
11
+ ### Patch Changes
12
+
13
+ - 36f8706: Avoid passing defaultOpen to controlled Nudge popovers
14
+ - fd6a463: Fix bg color for floating datepicker
15
+
3
16
  ## 12.24.12
4
17
 
5
18
  ### 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 });
@@ -6356,11 +6365,8 @@ var StepperStep = ({
6356
6365
  const state = getState(stepNumber, activeStep);
6357
6366
  const recipe = react.useSlotRecipe({ key: "stepper" });
6358
6367
  const style = recipe({ variant });
6359
- const disabledTextColor = "text.disabled";
6360
- const iconColor = {
6361
- _light: "blackAlpha.200",
6362
- _dark: "whiteAlpha.200"
6363
- };
6368
+ const disabledTextColor = "text.tertiary";
6369
+ const iconColor = "text.tertiary";
6364
6370
  const disabled = state !== "active" && disabledOverride || state === "disabled";
6365
6371
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { css: style.stepContainer, "data-part": "step-container", children: [
6366
6372
  stepNumber > 1 && /* @__PURE__ */ jsxRuntime.jsx(
@@ -8585,10 +8591,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8585
8591
  },
8586
8592
  floating: {
8587
8593
  wrapper: {
8588
- backgroundColor: {
8589
- _light: "bg",
8590
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
8591
- },
8594
+ bg: "floating.surface",
8592
8595
  outline: "1px solid",
8593
8596
  outlineColor: "floating.outline",
8594
8597
  boxShadow: "sm",