@jamsrui/button 0.0.7 → 0.0.9
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/button-config.d.mts +2 -2
- package/dist/button.d.mts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/styles.d.mts +4 -5
- package/dist/styles.mjs +1 -1
- package/dist/use-button.d.mts +0 -1
- package/package.json +4 -4
package/dist/button-config.d.mts
CHANGED
|
@@ -4,11 +4,11 @@ import { GlobalConfigProps } from '@jamsrui/core';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@jamsrui/utils';
|
|
6
6
|
import './styles.mjs';
|
|
7
|
-
import 'tailwind-variants';
|
|
8
7
|
|
|
9
8
|
declare const useButtonConfig: () => ButtonConfig.Props;
|
|
10
|
-
declare const ButtonConfig: (props: ButtonConfig.Props & {
|
|
9
|
+
declare const ButtonConfig: (props: Omit<Partial<ButtonConfig.Props>, "children"> & {
|
|
11
10
|
merge?: boolean;
|
|
11
|
+
children: React.ReactNode;
|
|
12
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare namespace ButtonConfig {
|
|
14
14
|
interface Props extends Button.Props, GlobalConfigProps<Button.Props> {
|
package/dist/button.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const buttonVariant: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const buttonVariant: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
color: {
|
|
7
6
|
default: string;
|
|
8
7
|
primary: string;
|
|
@@ -80,7 +79,7 @@ declare const buttonVariant: tailwind_variants.TVReturnType<{
|
|
|
80
79
|
true: string;
|
|
81
80
|
false: string;
|
|
82
81
|
};
|
|
83
|
-
}, undefined,
|
|
82
|
+
}, undefined, _jamsrui_utils.TVReturnType<{
|
|
84
83
|
color: {
|
|
85
84
|
default: string;
|
|
86
85
|
primary: string;
|
|
@@ -122,4 +121,4 @@ declare const buttonVariant: tailwind_variants.TVReturnType<{
|
|
|
122
121
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
123
122
|
type ButtonVariantProps = VariantProps<typeof buttonVariant>;
|
|
124
123
|
|
|
125
|
-
export { type ButtonVariantProps, buttonVariant
|
|
124
|
+
export { type ButtonVariantProps, buttonVariant };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{allColors as
|
|
1
|
+
import{allColors as t,allVariants as r,colorVariants as s,radiusBaseVariant as e,tv as o}from"@jamsrui/utils";const n=o({base:["relative inline-flex py-2 px-4 rounded-full justify-center items-center gap-2 shrink-0","data-loading:cursor-progress","disabled:cursor-not-allowed disabled:opacity-70","focus-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-2"],variants:{color:{default:"shadow-default",primary:"shadow-primary",secondary:"shadow-primary",success:"shadow-primary",warning:"shadow-primary",danger:"shadow-primary"},variant:{solid:"",bordered:"border-2",light:"",text:"",flat:""},isFullWidth:{true:"w-full"},size:{xs:"px-2 py-1 text-xs",sm:"min-w-16 gap-1 px-3 py-1.5 text-xs",md:"min-w-20 gap-2 px-4 py-2 text-sm",lg:"min-w-40 gap-2 px-6 py-2.5 text-base font-medium"},radius:e,disableAnimation:{true:"",false:""}},compoundVariants:[...r.flatMap(a=>t.map(i=>({variant:a,color:i,className:s[a][i]})))],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md",disableAnimation:!1,isFullWidth:!1}});export{n as buttonVariant};
|
package/dist/use-button.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/button",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19",
|
|
6
6
|
"react-dom": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/core": "^0.0.
|
|
11
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/utils": "^0.0.9",
|
|
10
|
+
"@jamsrui/core": "^0.0.8",
|
|
11
|
+
"@jamsrui/hooks": "^0.0.9"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|