@jamsrui/icon-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.
|
@@ -4,15 +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
|
-
declare const useIconButtonConfig: () =>
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
declare const IconButtonConfig: (props: {
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
} & {
|
|
8
|
+
declare const useIconButtonConfig: () => Record<string, any>;
|
|
9
|
+
declare const IconButtonConfig: (props: Omit<Partial<Record<string, any>>, "children"> & {
|
|
15
10
|
merge?: boolean;
|
|
11
|
+
children: React.ReactNode;
|
|
16
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
17
13
|
declare namespace IconButtonConfig {
|
|
18
14
|
interface Props extends IconButton.Props, GlobalConfigProps<IconButton.Props> {
|
package/dist/icon-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 iconButtonVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const iconButtonVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
color: {
|
|
7
6
|
default: string;
|
|
8
7
|
primary: string;
|
|
@@ -74,7 +73,7 @@ declare const iconButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
74
73
|
readonly full: "rounded-full";
|
|
75
74
|
readonly none: "rounded-none";
|
|
76
75
|
};
|
|
77
|
-
}, undefined,
|
|
76
|
+
}, undefined, _jamsrui_utils.TVReturnType<{
|
|
78
77
|
color: {
|
|
79
78
|
default: string;
|
|
80
79
|
primary: string;
|
|
@@ -113,4 +112,4 @@ declare const iconButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
113
112
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
114
113
|
type IconButtonVariantProps = VariantProps<typeof iconButtonVariants>;
|
|
115
114
|
|
|
116
|
-
export { type IconButtonVariantProps, iconButtonVariants
|
|
115
|
+
export { type IconButtonVariantProps, iconButtonVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{allColors as i,allVariants as
|
|
1
|
+
import{allColors as i,allVariants as e,colorVariants as n,radiusBaseVariant as t,tv as s}from"@jamsrui/utils";const l=s({base:["z-0","cursor-pointer","shrink-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-medium","tap-highlight-transparent","transition-transform","focus-visible:ring-2 focus-visible:ring-primary","ui-disabled:cursor-not-allowed ui-disabled:opacity-60","text-transform-inherit"],variants:{color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},variant:{solid:"",bordered:"border-2 bg-transparent",light:"",text:"",flat:""},size:{xs:"size-6 rounded",sm:"size-8 min-w-8 rounded-lg",md:"size-10 min-w-10 rounded-xl",lg:"size-12 min-w-12 rounded-2xl"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97]"},radius:t},compoundVariants:[...e.flatMap(a=>i.map(r=>({variant:a,color:r,className:n[a][r]})))],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md",disableAnimation:!1}});export{l as iconButtonVariants};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/icon-button",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
9
|
+
"@jamsrui/core": "^0.0.8",
|
|
10
|
+
"@jamsrui/utils": "^0.0.9"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|