react-better-html 1.1.209 → 1.1.211

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.mts CHANGED
@@ -389,7 +389,7 @@ type ChipProps<Value = unknown> = {
389
389
  } & Pick<DivProps, "border" | "borderColor" | "borderWidth" | "borderStyle"> & Pick<TextProps, "fontFamily" | "fontSize" | "fontWeight" | "fontStyle">;
390
390
  type ChipComponentType = {
391
391
  <Value>(props: ComponentPropWithRef<HTMLDivElement, ChipProps<Value>>): React.ReactElement;
392
- colored: (props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps, "color" | "backgroundColor"> & {
392
+ colored: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps<Value>, "color" | "backgroundColor"> & {
393
393
  color?: string;
394
394
  }>) => React.ReactElement;
395
395
  };
package/dist/index.d.ts CHANGED
@@ -389,7 +389,7 @@ type ChipProps<Value = unknown> = {
389
389
  } & Pick<DivProps, "border" | "borderColor" | "borderWidth" | "borderStyle"> & Pick<TextProps, "fontFamily" | "fontSize" | "fontWeight" | "fontStyle">;
390
390
  type ChipComponentType = {
391
391
  <Value>(props: ComponentPropWithRef<HTMLDivElement, ChipProps<Value>>): React.ReactElement;
392
- colored: (props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps, "color" | "backgroundColor"> & {
392
+ colored: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps<Value>, "color" | "backgroundColor"> & {
393
393
  color?: string;
394
394
  }>) => React.ReactElement;
395
395
  };
package/dist/index.js CHANGED
@@ -4075,6 +4075,7 @@ var ChipComponent = (0, import_react16.forwardRef)(function Chip({
4075
4075
  paddingBlock: theme2.styles.gap / 2,
4076
4076
  paddingInline: theme2.styles.space / 1.5,
4077
4077
  onClick: onClickElement,
4078
+ cursor: onClick || onClickWithValue ? "pointer" : void 0,
4078
4079
  ...props,
4079
4080
  ref,
4080
4081
  children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text_default, { color: color ?? theme2.colors.textPrimary, children: text })