@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.
package/dist/index.d.cts CHANGED
@@ -787,10 +787,7 @@ declare const datePickerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell"
787
787
  };
788
788
  floating: {
789
789
  wrapper: {
790
- backgroundColor: {
791
- _light: "bg";
792
- _dark: "color-mix(in srgb, white 10%, var(--spor-colors-bg))";
793
- };
790
+ bg: "floating.surface";
794
791
  outline: "1px solid";
795
792
  outlineColor: "floating.outline";
796
793
  boxShadow: "sm";
package/dist/index.d.ts CHANGED
@@ -787,10 +787,7 @@ declare const datePickerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell"
787
787
  };
788
788
  floating: {
789
789
  wrapper: {
790
- backgroundColor: {
791
- _light: "bg";
792
- _dark: "color-mix(in srgb, white 10%, var(--spor-colors-bg))";
793
- };
790
+ bg: "floating.surface";
794
791
  outline: "1px solid";
795
792
  outlineColor: "floating.outline";
796
793
  boxShadow: "sm";
package/dist/index.mjs CHANGED
@@ -5717,12 +5717,21 @@ var logExpirationWarning = () => {
5717
5717
  }
5718
5718
  };
5719
5719
  var Nudge = (props) => {
5720
- const { introducedDate, size = "md", ...rest } = props;
5720
+ const { introducedDate, size = "md", open, ...rest } = props;
5721
5721
  if (isNudgeExpired(introducedDate)) {
5722
5722
  logExpirationWarning();
5723
5723
  return null;
5724
5724
  }
5725
- return /* @__PURE__ */ jsx(Popover2, { defaultOpen: true, size, ...rest });
5725
+ const isControlled = open !== void 0;
5726
+ return /* @__PURE__ */ jsx(
5727
+ Popover2,
5728
+ {
5729
+ defaultOpen: isControlled ? void 0 : true,
5730
+ open,
5731
+ size,
5732
+ ...rest
5733
+ }
5734
+ );
5726
5735
  };
5727
5736
  var NudgeTrigger = forwardRef(({ ...props }, ref) => {
5728
5737
  return /* @__PURE__ */ jsx(PopoverTrigger, { ...props, ref });
@@ -6336,11 +6345,8 @@ var StepperStep = ({
6336
6345
  const state = getState(stepNumber, activeStep);
6337
6346
  const recipe = useSlotRecipe({ key: "stepper" });
6338
6347
  const style = recipe({ variant });
6339
- const disabledTextColor = "text.disabled";
6340
- const iconColor = {
6341
- _light: "blackAlpha.200",
6342
- _dark: "whiteAlpha.200"
6343
- };
6348
+ const disabledTextColor = "text.tertiary";
6349
+ const iconColor = "text.tertiary";
6344
6350
  const disabled = state !== "active" && disabledOverride || state === "disabled";
6345
6351
  return /* @__PURE__ */ jsxs(Box, { css: style.stepContainer, "data-part": "step-container", children: [
6346
6352
  stepNumber > 1 && /* @__PURE__ */ jsx(
@@ -8565,10 +8571,7 @@ var datePickerSlotRecipe = defineSlotRecipe({
8565
8571
  },
8566
8572
  floating: {
8567
8573
  wrapper: {
8568
- backgroundColor: {
8569
- _light: "bg",
8570
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
8571
- },
8574
+ bg: "floating.surface",
8572
8575
  outline: "1px solid",
8573
8576
  outlineColor: "floating.outline",
8574
8577
  boxShadow: "sm",