@jamsrui/alert 0.0.11 → 0.0.12
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/alert.mjs +1 -1
- package/dist/{chunk-4CNE6I6K.mjs → chunk-GDEGKV23.mjs} +1 -1
- package/dist/chunk-U2HPND5Q.mjs +1 -0
- package/dist/{chunk-RWRAILTR.mjs → chunk-UHA5ASFH.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/styles.d.mts +54 -18
- package/dist/styles.mjs +1 -1
- package/dist/use-alert.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-AOR3W7XJ.mjs +0 -1
package/dist/alert.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-UHA5ASFH.mjs";import"./chunk-GDEGKV23.mjs";import"./chunk-U2HPND5Q.mjs";import"./chunk-SO2IDXD2.mjs";import"./chunk-SFDA3VBM.mjs";import"./chunk-6GTLJVPA.mjs";import"./chunk-EWVQT27P.mjs";import"./chunk-JNWZOJMD.mjs";export{a as Alert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-U2HPND5Q.mjs";import{a as I}from"./chunk-JNWZOJMD.mjs";import{useCallback as r,useMemo as M}from"react";import{cn as n,dataAttrDev as a,mapPropsVariants as S,mergeProps as l}from"@jamsrui/utils";var h=C=>{let[T,i]=S(C,c.variantKeys),{classNames:o,slotProps:t,tv:v=c,endContent:p,icon:D,iconMapping:G,hideIcon:m,...P}=T,s=v(i),{status:N="default"}=i,d=D??G?.[N]??I[N],A=r(e=>({"data-slot":a("root"),role:"alert",...P,...e,className:s.root({className:n(o?.root,e.className)})}),[o?.root,P,s]),f=r(e=>({...l(t?.title,e),"data-slot":a("title"),className:s.title({className:n(t?.title?.className,o?.title,e.className)}),variant:"h6"}),[o?.title,t?.title,s]),y=r(e=>({...l(t?.description,e),"data-slot":a("description"),className:s.description({className:n(t?.description?.className,o?.description,e.className)})}),[o?.description,t?.description,s]),g=r(e=>({...l(t?.content,e),"data-slot":a("content"),className:s.content({className:n(t?.content?.className,o?.content,e.className)})}),[o?.content,t?.content,s]),u=r(e=>({...l(t?.icon,e),"data-slot":a("icon"),className:s.icon({className:n(t?.icon?.className,o?.icon,e.className)})}),[o?.icon,t?.icon,s]);return M(()=>({hideIcon:m,icon:d,endContent:p,slotProps:t,getRootProps:A,getTitleProps:f,getDescriptionProps:y,getContentProps:g,getIconProps:u}),[p,g,y,A,f,m,d,t,u])};export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{radiusVariant as t,tv as r}from"@jamsrui/utils";var e=r({slots:{root:"alert__root relative flex gap-2 px-4 py-1.5 text-sm ring-1 ring-inset",icon:"alert__icon shrink-0 py-2",title:"alert__title",description:"alert__description",content:"alert__content flex flex-col grow py-2 gap-1"},variants:{variant:{bordered:{root:"alert--bordered border"},solid:{root:"alert--solid font-medium"},flat:{root:"alert--flat"}},status:{success:{root:"alert--success ring-success-border"},warning:{root:"alert--warning ring-warning-border"},danger:{root:"alert--danger ring-danger-border"},info:{root:"alert--info ring-primary-border"},default:{root:"alert--default ring-default-border"}},radius:t("root")},compoundVariants:[{status:"danger",variant:"solid",className:{root:"bg-danger text-danger-foreground"}},{status:"success",variant:"solid",className:{root:"bg-success text-success-foreground"}},{status:"info",variant:"solid",className:{root:"bg-primary text-primary-foreground"}},{status:"warning",variant:"solid",className:{root:"bg-warning text-warning-foreground"}},{status:"default",variant:"solid",className:{root:"bg-default text-default-foreground"}},{status:"success",variant:"flat",className:{root:"bg-success-flat text-success"}},{status:"info",variant:"flat",className:{root:"bg-primary-flat text-primary"}},{status:"warning",variant:"flat",className:{root:"bg-warning-flat text-warning"}},{status:"danger",variant:"flat",className:{root:"bg-danger-flat text-danger"}},{status:"default",variant:"flat",className:{root:"bg-default-flat text-foreground"}},{status:"danger",variant:"bordered",className:{root:"border-danger-stroke text-danger"}},{status:"success",variant:"bordered",className:{root:"border-success-stroke text-success"}},{status:"info",variant:"bordered",className:{root:"border-primary-stroke text-primary"}},{status:"warning",variant:"bordered",className:{root:"border-warning-stroke text-warning"}},{status:"default",variant:"bordered",className:{root:"border-default-stroke text-foreground"}}],defaultVariants:{status:"success",variant:"flat",radius:"md"}});export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-GDEGKV23.mjs";import{b as n}from"./chunk-SO2IDXD2.mjs";import{a as m}from"./chunk-SFDA3VBM.mjs";import{a as p}from"./chunk-6GTLJVPA.mjs";import{a as s}from"./chunk-EWVQT27P.mjs";import{useRenderElement as C}from"@jamsrui/hooks";import{mergeConfigProps as x}from"@jamsrui/utils";import{Fragment as g,jsx as r,jsxs as u}from"react/jsx-runtime";var y=o=>{let{children:l}=o,e=n(),c=x(e,e,o),t=i(c),{endContent:d,getRootProps:f}=t,A=u(g,{children:[r(p,{}),r(m,{children:l}),d]}),P=C("div",{props:[f({}),{children:A}]});return r(s,{ctx:t,children:P})};export{y as a};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as t}from"./chunk-UVM6MA45.mjs";import{a as o}from"./chunk-T373AY6M.mjs";import{a as p}from"./chunk-
|
|
1
|
+
"use client";import{a as t}from"./chunk-UVM6MA45.mjs";import{a as o}from"./chunk-T373AY6M.mjs";import{a as p}from"./chunk-UHA5ASFH.mjs";import{a as f}from"./chunk-GDEGKV23.mjs";import{a as l}from"./chunk-U2HPND5Q.mjs";import{a as e,b as r}from"./chunk-SO2IDXD2.mjs";import"./chunk-SFDA3VBM.mjs";import"./chunk-6GTLJVPA.mjs";import"./chunk-EWVQT27P.mjs";import"./chunk-JNWZOJMD.mjs";export{p as Alert,e as AlertConfig,t as AlertDescription,o as AlertTitle,l as alertStyles,f as useAlert,r as useAlertConfig};
|
package/dist/styles.d.mts
CHANGED
|
@@ -9,14 +9,26 @@ declare const alertStyles: _jamsrui_utils.TVReturnType<{
|
|
|
9
9
|
solid: {
|
|
10
10
|
root: string;
|
|
11
11
|
};
|
|
12
|
-
flat: {
|
|
12
|
+
flat: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
13
15
|
};
|
|
14
16
|
status: {
|
|
15
|
-
success: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
success: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
warning: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
danger: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
info: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
default: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
20
32
|
};
|
|
21
33
|
radius: {
|
|
22
34
|
sm: {};
|
|
@@ -42,14 +54,26 @@ declare const alertStyles: _jamsrui_utils.TVReturnType<{
|
|
|
42
54
|
solid: {
|
|
43
55
|
root: string;
|
|
44
56
|
};
|
|
45
|
-
flat: {
|
|
57
|
+
flat: {
|
|
58
|
+
root: string;
|
|
59
|
+
};
|
|
46
60
|
};
|
|
47
61
|
status: {
|
|
48
|
-
success: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
success: {
|
|
63
|
+
root: string;
|
|
64
|
+
};
|
|
65
|
+
warning: {
|
|
66
|
+
root: string;
|
|
67
|
+
};
|
|
68
|
+
danger: {
|
|
69
|
+
root: string;
|
|
70
|
+
};
|
|
71
|
+
info: {
|
|
72
|
+
root: string;
|
|
73
|
+
};
|
|
74
|
+
default: {
|
|
75
|
+
root: string;
|
|
76
|
+
};
|
|
53
77
|
};
|
|
54
78
|
radius: {
|
|
55
79
|
sm: {};
|
|
@@ -75,14 +99,26 @@ declare const alertStyles: _jamsrui_utils.TVReturnType<{
|
|
|
75
99
|
solid: {
|
|
76
100
|
root: string;
|
|
77
101
|
};
|
|
78
|
-
flat: {
|
|
102
|
+
flat: {
|
|
103
|
+
root: string;
|
|
104
|
+
};
|
|
79
105
|
};
|
|
80
106
|
status: {
|
|
81
|
-
success: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
107
|
+
success: {
|
|
108
|
+
root: string;
|
|
109
|
+
};
|
|
110
|
+
warning: {
|
|
111
|
+
root: string;
|
|
112
|
+
};
|
|
113
|
+
danger: {
|
|
114
|
+
root: string;
|
|
115
|
+
};
|
|
116
|
+
info: {
|
|
117
|
+
root: string;
|
|
118
|
+
};
|
|
119
|
+
default: {
|
|
120
|
+
root: string;
|
|
121
|
+
};
|
|
86
122
|
};
|
|
87
123
|
radius: {
|
|
88
124
|
sm: {};
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-U2HPND5Q.mjs";export{a as alertStyles};
|
package/dist/use-alert.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-GDEGKV23.mjs";import"./chunk-U2HPND5Q.mjs";import"./chunk-JNWZOJMD.mjs";export{a as useAlert};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/alert",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/hooks": "^0.0.11",
|
|
9
|
-
"@jamsrui/icons": "^0.0.10",
|
|
10
8
|
"@jamsrui/core": "^0.0.10",
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/hooks": "^0.0.12",
|
|
10
|
+
"@jamsrui/text": "^0.0.12",
|
|
11
|
+
"@jamsrui/utils": "^0.0.12",
|
|
12
|
+
"@jamsrui/icons": "^0.0.10"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
package/dist/chunk-AOR3W7XJ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{radiusVariant as t,tv as a}from"@jamsrui/utils";var s=a({slots:{root:"relative flex gap-2 px-4 py-1.5 text-sm",icon:"shrink-0 py-2",title:"",description:"",content:"flex flex-col grow py-2 gap-1"},variants:{variant:{bordered:{root:"border"},solid:{root:"font-medium"},flat:{}},status:{success:{},warning:{},danger:{},info:{},default:{}},radius:t("root")},compoundVariants:[{status:"danger",variant:"solid",className:{root:"bg-danger text-danger-foreground"}},{status:"success",variant:"solid",className:{root:"bg-success text-success-foreground"}},{status:"info",variant:"solid",className:{root:"bg-primary text-primary-foreground"}},{status:"warning",variant:"solid",className:{root:"bg-warning text-warning-foreground"}},{status:"default",variant:"solid",className:{root:"bg-default text-default-foreground"}},{status:"success",variant:"flat",className:{root:"bg-success-flat text-success"}},{status:"info",variant:"flat",className:{root:"bg-primary-flat text-primary"}},{status:"warning",variant:"flat",className:{root:"bg-warning-flat text-warning"}},{status:"danger",variant:"flat",className:{root:"bg-danger-flat text-danger"}},{status:"default",variant:"flat",className:{root:"bg-default-flat text-foreground"}},{status:"danger",variant:"bordered",className:{root:"border-danger-stroke text-danger"}},{status:"success",variant:"bordered",className:{root:"border-success-stroke text-success"}},{status:"info",variant:"bordered",className:{root:"border-primary-stroke text-primary"}},{status:"warning",variant:"bordered",className:{root:"border-warning-stroke text-warning"}},{status:"default",variant:"bordered",className:{root:"border-default-stroke text-foreground"}}],defaultVariants:{status:"success",variant:"flat",radius:"md"}});export{s as a};
|