react-better-html 1.1.88 → 1.1.89
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 +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -333,8 +333,6 @@ type ChipProps = {
|
|
|
333
333
|
/** @default theme.styles.borderRadius / 1.3 */
|
|
334
334
|
borderRadius?: number;
|
|
335
335
|
/** @default false */
|
|
336
|
-
isSmall?: boolean;
|
|
337
|
-
/** @default false */
|
|
338
336
|
isCircle?: boolean;
|
|
339
337
|
} & Pick<DivProps<unknown>, "border" | "borderColor" | "borderWidth" | "borderStyle"> & Pick<TextProps, "fontFamily" | "fontSize" | "fontWeight" | "fontStyle">;
|
|
340
338
|
type ChipComponentType = {
|
package/dist/index.d.ts
CHANGED
|
@@ -333,8 +333,6 @@ type ChipProps = {
|
|
|
333
333
|
/** @default theme.styles.borderRadius / 1.3 */
|
|
334
334
|
borderRadius?: number;
|
|
335
335
|
/** @default false */
|
|
336
|
-
isSmall?: boolean;
|
|
337
|
-
/** @default false */
|
|
338
336
|
isCircle?: boolean;
|
|
339
337
|
} & Pick<DivProps<unknown>, "border" | "borderColor" | "borderWidth" | "borderStyle"> & Pick<TextProps, "fontFamily" | "fontSize" | "fontWeight" | "fontStyle">;
|
|
340
338
|
type ChipComponentType = {
|
package/dist/index.js
CHANGED
|
@@ -3294,7 +3294,7 @@ var desaturateColor = (hexColor, amount) => {
|
|
|
3294
3294
|
|
|
3295
3295
|
// src/components/Chip.tsx
|
|
3296
3296
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3297
|
-
var ChipComponent = (0, import_react14.forwardRef)(function Chip({ text, color, backgroundColor, borderRadius,
|
|
3297
|
+
var ChipComponent = (0, import_react14.forwardRef)(function Chip({ text, color, backgroundColor, borderRadius, isCircle, ...props }, ref) {
|
|
3298
3298
|
const theme2 = useTheme();
|
|
3299
3299
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3300
3300
|
Div_default,
|
|
@@ -3302,8 +3302,8 @@ var ChipComponent = (0, import_react14.forwardRef)(function Chip({ text, color,
|
|
|
3302
3302
|
width: "fit-content",
|
|
3303
3303
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
3304
3304
|
borderRadius: isCircle ? 999 : borderRadius ?? theme2.styles.borderRadius / 1.3,
|
|
3305
|
-
paddingBlock: theme2.styles.gap /
|
|
3306
|
-
paddingInline: theme2.styles.space /
|
|
3305
|
+
paddingBlock: theme2.styles.gap / 2,
|
|
3306
|
+
paddingInline: theme2.styles.space / 1.5,
|
|
3307
3307
|
...props,
|
|
3308
3308
|
ref,
|
|
3309
3309
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { color: color ?? theme2.colors.textPrimary, children: text })
|