@shoplflow/base 0.30.7 → 0.31.0

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.js CHANGED
@@ -2009,6 +2009,7 @@ var StyledDropdownButton = styled6.button`
2009
2009
  background-color: ${colorTokens.neutral0};
2010
2010
  ${({ sizeVar }) => sizeVar && getDropdownStyleBySizeVar(sizeVar)};
2011
2011
  ${({ disabled }) => disabled && css`
2012
+ background-color: ${colorTokens.neutral100};
2012
2013
  cursor: not-allowed;
2013
2014
  `}
2014
2015
  `;
@@ -2140,6 +2141,15 @@ var DropdownButton = forwardRef(
2140
2141
  const handleOnMouseLeave = () => {
2141
2142
  setIsHovered(false);
2142
2143
  };
2144
+ const getTextColor = ({ value: value2, disabled: disabled2 }) => {
2145
+ if (disabled2) {
2146
+ return "neutral350";
2147
+ }
2148
+ if (!value2) {
2149
+ return "neutral400";
2150
+ }
2151
+ return "neutral700";
2152
+ };
2143
2153
  return /* @__PURE__ */ jsx(
2144
2154
  InputWrapper,
2145
2155
  {
@@ -2157,7 +2167,7 @@ var DropdownButton = forwardRef(
2157
2167
  Text_default,
2158
2168
  {
2159
2169
  typography: getDropdownFontSizeBySizeVar(sizeVar),
2160
- color: value ? "neutral700" : "neutral400",
2170
+ color: getTextColor({ value, disabled }),
2161
2171
  textOverflow: "ellipsis",
2162
2172
  lineClamp: 1,
2163
2173
  children: placeholder
@@ -2426,7 +2436,7 @@ var Checkbox = forwardRef(
2426
2436
  StyledCheckbox,
2427
2437
  {
2428
2438
  styleVar,
2429
- htmlFor: "id",
2439
+ htmlFor: id,
2430
2440
  isHovered,
2431
2441
  isSelected: selected,
2432
2442
  disabled,