@jamsrui/icon-button 0.0.4 → 0.0.6

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.
@@ -1,6 +1,7 @@
1
1
  import { I as IconButton } from './icon-button-TZJ8FKLc.mjs';
2
- import * as react from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { GlobalConfigProps } from '@jamsrui/core';
4
+ import 'react';
4
5
  import '@jamsrui/utils';
5
6
  import './styles.mjs';
6
7
  import 'tailwind-variants';
@@ -12,7 +13,7 @@ declare const IconButtonConfig: (props: {
12
13
  children?: React.ReactNode;
13
14
  } & {
14
15
  merge?: boolean;
15
- }) => react.JSX.Element;
16
+ }) => react_jsx_runtime.JSX.Element;
16
17
  declare namespace IconButtonConfig {
17
18
  interface Props extends IconButton.Props, GlobalConfigProps<IconButton.Props> {
18
19
  }
@@ -1 +1 @@
1
- import{useRenderElement as c}from"@jamsrui/hooks";import{useIconButton as p}from"./use-icon-button";const l=t=>{const{children:e}=t,n=p(t),{getButtonProps:o,getLabelProps:r}=n,s=React.createElement(React.Fragment,null,React.createElement("span",{...r({})}),e);return c("button",{props:[o(),{children:s}]})};export{l as IconButton};
1
+ import{Fragment as d,jsx as u,jsxs as m}from"react/jsx-runtime";import{useRenderElement as c}from"@jamsrui/hooks";import{useIconButton as p}from"./use-icon-button";const I=o=>{const{children:t}=o,n=p(o),{getButtonProps:e,getLabelProps:r}=n,s=m(d,{children:[u("span",{...r({})}),t]});return c("button",{props:[e(),{children:s}]})};export{I as IconButton};
package/dist/index.d.mts CHANGED
@@ -4,4 +4,5 @@ import 'react';
4
4
  import '@jamsrui/utils';
5
5
  import './styles.mjs';
6
6
  import 'tailwind-variants';
7
+ import 'react/jsx-runtime';
7
8
  import '@jamsrui/core';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jamsrui/icon-button",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.4",
9
- "@jamsrui/utils": "^0.0.4",
10
- "@jamsrui/core": "^0.0.4"
8
+ "@jamsrui/hooks": "^0.0.6",
9
+ "@jamsrui/core": "^0.0.6",
10
+ "@jamsrui/utils": "^0.0.6"
11
11
  },
12
12
  "exports": {
13
13
  ".": {