@jamsrui/alert 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/alert-config.d.mts +2 -2
- package/dist/alert-context.d.mts +0 -1
- package/dist/alert.d.mts +0 -1
- package/dist/icons.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-alert.d.mts +0 -1
- package/package.json +6 -6
package/dist/alert-config.d.mts
CHANGED
|
@@ -8,12 +8,12 @@ import '@jamsrui/utils';
|
|
|
8
8
|
import './alert-content.mjs';
|
|
9
9
|
import './alert-icon.mjs';
|
|
10
10
|
import './icons.mjs';
|
|
11
|
-
import 'tailwind-variants';
|
|
12
11
|
import '@jamsrui/text';
|
|
13
12
|
|
|
14
13
|
declare const useAlertConfig: () => AlertConfig.Props;
|
|
15
|
-
declare const AlertConfig: (props: AlertConfig.Props & {
|
|
14
|
+
declare const AlertConfig: (props: Omit<Partial<AlertConfig.Props>, "children"> & {
|
|
16
15
|
merge?: boolean;
|
|
16
|
+
children: React.ReactNode;
|
|
17
17
|
}) => react_jsx_runtime.JSX.Element;
|
|
18
18
|
declare namespace AlertConfig {
|
|
19
19
|
interface Props extends Alert.Props {
|
package/dist/alert-context.d.mts
CHANGED
|
@@ -9,7 +9,6 @@ import './alert-icon.mjs';
|
|
|
9
9
|
import './alert-title.mjs';
|
|
10
10
|
import './icons.mjs';
|
|
11
11
|
import './styles.mjs';
|
|
12
|
-
import 'tailwind-variants';
|
|
13
12
|
|
|
14
13
|
declare const useAlertContext: () => AlertContextProvider.Type;
|
|
15
14
|
declare const AlertContextProvider: (props: AlertContextProvider.Props) => react_jsx_runtime.JSX.Element;
|
package/dist/alert.d.mts
CHANGED
package/dist/icons.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 alertStyles: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const alertStyles: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
variant: {
|
|
7
6
|
bordered: {
|
|
8
7
|
root: string;
|
|
@@ -68,7 +67,7 @@ declare const alertStyles: tailwind_variants.TVReturnType<{
|
|
|
68
67
|
title: string;
|
|
69
68
|
description: string;
|
|
70
69
|
content: string;
|
|
71
|
-
},
|
|
70
|
+
}, _jamsrui_utils.TVReturnType<{
|
|
72
71
|
variant: {
|
|
73
72
|
bordered: {
|
|
74
73
|
root: string;
|
|
@@ -105,4 +104,4 @@ declare const alertStyles: tailwind_variants.TVReturnType<{
|
|
|
105
104
|
type AlertVariants = VariantProps<typeof alertStyles>;
|
|
106
105
|
type AlertSlots = keyof ReturnType<typeof alertStyles>;
|
|
107
106
|
|
|
108
|
-
export { type AlertSlots, type AlertVariants, alertStyles
|
|
107
|
+
export { type AlertSlots, type AlertVariants, alertStyles };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{radiusVariant as t,tv as a}from"@jamsrui/utils";const s=
|
|
1
|
+
import{radiusVariant as t,tv as a}from"@jamsrui/utils";const 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-subtle text-success"}},{status:"info",variant:"flat",className:{root:"bg-primary-subtle text-primary"}},{status:"warning",variant:"flat",className:{root:"bg-warning-subtle text-warning"}},{status:"danger",variant:"flat",className:{root:"bg-danger-subtle text-danger"}},{status:"default",variant:"flat",className:{root:"bg-default-subtle 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 alertStyles};
|
package/dist/use-alert.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/alert",
|
|
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/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/core": "^0.0.8",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
10
|
+
"@jamsrui/icons": "^0.0.8",
|
|
11
|
+
"@jamsrui/text": "^0.0.9",
|
|
12
|
+
"@jamsrui/utils": "^0.0.9"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|