@jamsrui/chip 0.0.19 → 0.0.21
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/styles.d.mts +3 -3
- package/dist/styles.mjs +1 -1
- package/package.json +5 -5
package/dist/styles.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const chipVariants: _jamsrui_utils.TVReturnType<{
|
|
|
9
9
|
bordered: {
|
|
10
10
|
root: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
soft: {
|
|
13
13
|
root: string;
|
|
14
14
|
};
|
|
15
15
|
dot: {
|
|
@@ -66,7 +66,7 @@ declare const chipVariants: _jamsrui_utils.TVReturnType<{
|
|
|
66
66
|
bordered: {
|
|
67
67
|
root: string;
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
soft: {
|
|
70
70
|
root: string;
|
|
71
71
|
};
|
|
72
72
|
dot: {
|
|
@@ -123,7 +123,7 @@ declare const chipVariants: _jamsrui_utils.TVReturnType<{
|
|
|
123
123
|
bordered: {
|
|
124
124
|
root: string;
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
soft: {
|
|
127
127
|
root: string;
|
|
128
128
|
};
|
|
129
129
|
dot: {
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{allColors as e,colorVariants as t,radiusVariant as a,tv as s}from"@jamsrui/utils";const i=s({slots:{root:"chip chip__root relative box-border inline-flex min-w-min max-w-fit shrink-0 items-center justify-between whitespace-nowrap rounded-full gap-2",dot:"chip__dot size-1.5 rounded-full"},variants:{variant:{solid:{root:"chip--solid"},bordered:{root:"chip--bordered border"},
|
|
1
|
+
import{allColors as e,colorVariants as t,radiusVariant as a,tv as s}from"@jamsrui/utils";const i=s({slots:{root:"chip chip__root relative box-border inline-flex min-w-min max-w-fit shrink-0 items-center justify-between whitespace-nowrap rounded-full gap-2",dot:"chip__dot size-1.5 rounded-full"},variants:{variant:{solid:{root:"chip--solid"},bordered:{root:"chip--bordered border"},soft:{root:"chip--soft"},dot:{dot:"chip--dot outline-2"}},size:{sm:{root:"chip--xs h-5 px-1 text-xs"},md:{root:"chip--sm h-6 px-2 text-xs"},lg:{root:"chip--md h-7 px-3 text-sm"}},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},isSquare:{true:{root:"chip--squared flex aspect-square items-center justify-center"}},isBordered:{true:{root:"chip--bordered border"}},radius:a("root","chip")},compoundVariants:[...["solid","bordered","soft"].flatMap(r=>e.map(o=>({variant:r,color:o,className:{root:t[r][o]}}))),...e.map(r=>({variant:"dot",color:r,className:{dot:t.solid[r]}})),{variant:"dot",color:"primary",className:{dot:"outline-primary-border"}},{variant:"dot",color:"secondary",className:{dot:"outline-secondary-border"}},{variant:"dot",color:"success",className:{dot:"outline-success-border"}},{variant:"dot",color:"warning",className:{dot:"outline-warning-border"}},{variant:"dot",color:"danger",className:{dot:"outline-danger-border"}},{variant:"dot",color:"default",className:{dot:"outline-default-border"}},{isBordered:!0,color:"danger",className:{root:"border-danger"}},{isBordered:!0,color:"primary",className:{root:"border-primary"}},{isBordered:!0,color:"secondary",className:{root:"border-secondary"}},{isBordered:!0,color:"success",className:{root:"border-success"}},{isBordered:!0,color:"warning",className:{root:"border-warning"}},{isBordered:!0,color:"default",className:{root:"border-border"}}],defaultVariants:{color:"default",size:"md",radius:"full",variant:"solid"}});export{i as chipVariants};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/chip",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/hooks": "^0.0.
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/hooks": "^0.0.20",
|
|
9
|
+
"@jamsrui/core": "^0.0.16",
|
|
10
|
+
"@jamsrui/icons": "^0.0.17",
|
|
11
|
+
"@jamsrui/utils": "^0.0.20"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|