@helpdice/ui 1.4.9 → 1.5.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.
@@ -11,5 +11,5 @@ type CompactButtonProps = {
11
11
  target?: string;
12
12
  onClick?: () => void;
13
13
  };
14
- export default function CompactButton({ to, children, iconRight, icon, scale, type, style, a, target, onClick }: CompactButtonProps): import("react").JSX.Element;
15
- export {};
14
+ declare const _default: import("react").NamedExoticComponent<CompactButtonProps>;
15
+ export default _default;
@@ -1691,7 +1691,7 @@ var ButtonComponent = /*#__PURE__*/React$1.forwardRef(function (btnProps, ref) {
1691
1691
  ButtonComponent.displayName = 'Button';
1692
1692
  var Button = withScale(ButtonComponent);
1693
1693
 
1694
- function CompactButton(_ref) {
1694
+ var CompactButton = function CompactButton(_ref) {
1695
1695
  var _ref$to = _ref.to,
1696
1696
  to = _ref$to === undefined ? '/' : _ref$to,
1697
1697
  children = _ref.children,
@@ -1766,9 +1766,10 @@ function CompactButton(_ref) {
1766
1766
  px: 0.6,
1767
1767
  iconRight: iconRight
1768
1768
  }, children);
1769
- }
1769
+ };
1770
+ var button_compact = /*#__PURE__*/React$1.memo(CompactButton);
1770
1771
 
1771
1772
  /* "use client" */
1772
1773
 
1773
- exports.LinkButton = CompactButton;
1774
+ exports.LinkButton = button_compact;
1774
1775
  exports.default = Button;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type RendererProps = {
3
+ htmlString: string;
4
+ };
5
+ declare const HtmlRenderer: React.FC<RendererProps>;
6
+ export default HtmlRenderer;
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ export type { UiProviderProps } from './ui-provider';
41
41
  export { default as Grid } from './grid';
42
42
  export { default as Container } from './grid/grid-container';
43
43
  export type { GridProps, GridContainerProps } from './grid';
44
+ export { default as HtmlRenderer } from './html-renderer';
44
45
  export { default as Image } from './image';
45
46
  export type { ImageProps, ImageBrowserProps } from './image';
46
47
  export { default as Input } from './input';