@northlight/ui 2.35.0 → 2.35.2

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.
@@ -2108,6 +2108,24 @@
2108
2108
  }
2109
2109
  }
2110
2110
  }),
2111
+ light: ({ theme: { colors: color }, sx }) => ({
2112
+ container: ramda.merge({
2113
+ bgColor: color["base-alt"]
2114
+ }, sx),
2115
+ button: {
2116
+ bgColor: "mono.transparent",
2117
+ _hover: {
2118
+ bgColor: color.background.button["ghost-hover"]
2119
+ },
2120
+ _checked: {
2121
+ color: color.text["flip-button"].default,
2122
+ bgColor: "bg.base",
2123
+ _hover: {
2124
+ bgColor: "bg.base"
2125
+ }
2126
+ }
2127
+ }
2128
+ }),
2111
2129
  ai: ({ theme: { colors: color }, sx }) => ({
2112
2130
  container: ramda.merge({
2113
2131
  bgColor: color.background["flip-button"]["default-deselected-brand"]
@@ -14479,7 +14497,7 @@
14479
14497
  "max",
14480
14498
  "min"
14481
14499
  ]);
14482
- var _a2;
14500
+ var _a2, _b2, _c;
14483
14501
  const { isOpen, onToggle, onClose } = react.useDisclosure();
14484
14502
  const [inputValueState, setInputValueState] = React.useState(valueProp == null ? void 0 : valueProp.input);
14485
14503
  const [selectOptionState, setselectOptionState] = React.useState(valueProp == null ? void 0 : valueProp.option);
@@ -14541,9 +14559,10 @@
14541
14559
  onChange == null ? void 0 : onChange(getNewValue(option, input));
14542
14560
  }
14543
14561
  }, [inputValue, defaultToZeroIfEmpty]);
14562
+ const buttonWidth = (_b2 = (_a2 = buttonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0;
14544
14563
  return /* @__PURE__ */ React.createElement(react.InputGroup, null, /* @__PURE__ */ React.createElement(
14545
14564
  FormattedNumberInput,
14546
- __spreadValues$1({
14565
+ __spreadProps(__spreadValues$1({
14547
14566
  width: "100%",
14548
14567
  onChange: (values) => handleInputChange(values.floatValue),
14549
14568
  value: inputValue,
@@ -14555,7 +14574,9 @@
14555
14574
  readOnly: isReadOnly,
14556
14575
  min,
14557
14576
  max
14558
- }, rest)
14577
+ }, rest), {
14578
+ pr: `${buttonWidth >= 0 ? buttonWidth + 10 : 0}px`
14579
+ })
14559
14580
  ), /* @__PURE__ */ React.createElement(
14560
14581
  react.InputRightElement,
14561
14582
  {
@@ -14573,7 +14594,7 @@
14573
14594
  flexShrink: "0",
14574
14595
  height: "100%"
14575
14596
  },
14576
- (_a2 = selectOption == null ? void 0 : selectOption.label) != null ? _a2 : ""
14597
+ (_c = selectOption == null ? void 0 : selectOption.label) != null ? _c : ""
14577
14598
  )
14578
14599
  ), /* @__PURE__ */ React.createElement(react.Box, { position: "absolute", width: "100%" }, /* @__PURE__ */ React.createElement(
14579
14600
  Select,