@jamsrui/button 0.0.8 → 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.
|
@@ -8,7 +8,7 @@ declare const useButton: (props: useButton.Props) => {
|
|
|
8
8
|
endContent: react.ReactNode;
|
|
9
9
|
isLoading: boolean | undefined;
|
|
10
10
|
spinner: react.ReactNode;
|
|
11
|
-
spinnerPlacement: "
|
|
11
|
+
spinnerPlacement: "start" | "end";
|
|
12
12
|
disableRipple: boolean | undefined;
|
|
13
13
|
};
|
|
14
14
|
declare namespace useButton {
|
package/dist/button-config.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as Button } from './button-
|
|
1
|
+
import { B as Button } from './button-DLMZNlKx.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
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
9
|
declare const ButtonConfig: (props: Omit<Partial<ButtonConfig.Props>, "children"> & {
|
package/dist/button.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { B as Button } from './button-
|
|
1
|
+
export { B as Button } from './button-DLMZNlKx.mjs';
|
|
2
2
|
export { ButtonConfig, useButtonConfig } from './button-config.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './styles.mjs';
|
|
6
|
-
import 'tailwind-variants';
|
|
7
6
|
import 'react/jsx-runtime';
|
|
8
7
|
import '@jamsrui/core';
|
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
|
".": {
|