@paul-portfolio/react 0.4.2 → 0.4.3

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/Badge.d.ts CHANGED
@@ -2,7 +2,9 @@ import type { ReactNode } from 'react';
2
2
  type BadgeProps = {
3
3
  variant?: 'success' | 'warning' | 'error' | 'info';
4
4
  dot?: boolean;
5
+ /** Renders the badge as a spiky starburst seal (for "new"/"beta" flags). */
6
+ starburst?: boolean;
5
7
  children?: ReactNode;
6
8
  };
7
- export declare function Badge({ variant, dot, children }: BadgeProps): import("react").JSX.Element;
9
+ export declare function Badge({ variant, dot, starburst, children }: BadgeProps): import("react").JSX.Element;
8
10
  export {};
package/dist/Badge.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cx } from './cx';
3
- export function Badge({ variant, dot, children }) {
4
- return (_jsx("span", { className: cx('badge', variant && `badge--${variant}`, dot && 'badge--dot'), children: children }));
3
+ export function Badge({ variant, dot, starburst, children }) {
4
+ return (_jsx("span", { className: cx('badge', variant && `badge--${variant}`, dot && 'badge--dot', starburst && 'badge--starburst'), children: children }));
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paul-portfolio/react",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "React components for the Paul Design System",
5
5
  "license": "MIT",
6
6
  "repository": {