@jamsrui/button 0.0.14 → 0.0.16

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
@@ -1,18 +1,24 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import { B as ButtonRoot } from './button-BmD5-D8o.mjs';
3
2
  import { ButtonConfig } from './button-config.mjs';
4
3
  export { useButtonConfig } from './button-config.mjs';
4
+ export { ButtonContext } from './button-context.mjs';
5
5
  import { ButtonLoading } from './button-loading.mjs';
6
+ export { ButtonVariantProps, buttonVariant } from './styles.mjs';
7
+ import 'react/jsx-runtime';
6
8
  import '@jamsrui/utils';
7
- import './styles.mjs';
8
9
  import '@jamsrui/core';
10
+ import 'react';
9
11
 
10
- declare const Button: ((props: ButtonRoot.Props) => react_jsx_runtime.JSX.Element) & {
11
- Config: (props: Omit<Partial<ButtonConfig.Props>, "children"> & {
12
- merge?: boolean;
13
- children: React.ReactNode;
14
- }) => react_jsx_runtime.JSX.Element;
15
- Loading: (props: ButtonLoading.Props) => react_jsx_runtime.JSX.Element;
16
- };
12
+ interface ButtonComponent {
13
+ (props: ButtonRoot.Props): React.ReactNode;
14
+ Loading: typeof ButtonLoading;
15
+ }
16
+ declare const Button: ButtonComponent;
17
+ declare namespace Button {
18
+ interface Props extends ButtonRoot.Props {
19
+ }
20
+ interface Config extends ButtonConfig.Props {
21
+ }
22
+ }
17
23
 
18
- export { Button, ButtonConfig };
24
+ export { Button, type ButtonComponent, ButtonConfig, ButtonLoading };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{ButtonRoot as o}from"./button.mjs";import{ButtonConfig as t}from"./button-config.mjs";import{ButtonLoading as n}from"./button-loading.mjs";import{ButtonConfig as B,useButtonConfig as p}from"./button-config.mjs";const g=Object.assign(o,{Config:t,Loading:n});export{g as Button,B as ButtonConfig,p as useButtonConfig};
1
+ import{ButtonRoot as o}from"./button.mjs";import{ButtonConfig as n,useButtonConfig as r}from"./button-config.mjs";import{ButtonContext as e}from"./button-context.mjs";import{ButtonLoading as t}from"./button-loading.mjs";import{buttonVariant as p}from"./styles.mjs";const m=Object.assign(o,{Loading:t});export{m as Button,n as ButtonConfig,e as ButtonContext,t as ButtonLoading,p as buttonVariant,r as useButtonConfig};
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/button",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "peerDependencies": {
5
5
  "react": ">=19",
6
6
  "react-dom": ">=19"
7
7
  },
8
8
  "dependencies": {
9
- "@jamsrui/hooks": "^0.0.14",
10
- "@jamsrui/core": "^0.0.12",
11
- "@jamsrui/utils": "^0.0.14"
9
+ "@jamsrui/hooks": "^0.0.15",
10
+ "@jamsrui/utils": "^0.0.15",
11
+ "@jamsrui/core": "^0.0.13"
12
12
  },
13
13
  "exports": {
14
14
  ".": {