@cloudoperators/juno-messages-provider 0.1.19 → 0.2.1

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.
@@ -0,0 +1,18 @@
1
+ declare module "@cloudoperators/juno-ui-components" {
2
+ // @cloudoperators/juno-ui-components#Message component
3
+ // is not typescripted yet, so we need to define it here
4
+ interface MessageProps {
5
+ role?: string
6
+ text?: string
7
+ variant: "error" | "info" | "danger" | "success" | "warning"
8
+ title?: string
9
+ dismissible?: boolean
10
+ autoDismiss?: boolean
11
+ autoDismissTimeout?: number
12
+ onDismiss?: () => void
13
+ className?: string
14
+ children?: React.ReactNode
15
+ }
16
+
17
+ export const Message: React.FC<MessageProps>
18
+ }
@@ -0,0 +1,4 @@
1
+ import { MessagesProvider, useActions, useMessages } from './useMessageStore';
2
+ import { default as Messages } from './Messages';
3
+ export { MessagesProvider, Messages, useActions, useMessages };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC7E,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA"}