11import React from 'react' ;
22import { Alert } from '../' ;
3- import { DocsTile , DocsText , Separator , Header , Description , Import , Properties } from '../' ;
4- import { Playground } from '../documentation/Playground/Playground' ;
3+ import { DocsTile , DocsText , Separator , Header , Description , Import , Properties , Playground } from '../' ;
4+
55
66export const AlertComponent = ( ) => {
7- const defaultAlertCode = `<Alert dismissable link="#" linkText="link">Default alert with a </Alert>
8-
9- <Alert dismissable linkText="link" rtl>تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه </Alert>` ;
7+ const defaultAlertCode = `<Alert dismissable link="#" linkText="link">Default alert with a </Alert>` ;
108
119 const warningAlertCode = `<Alert type="warning" dismissable>
1210 <h3>A dismissible error type alert with template.</h3>
1311 <p>More information...</p>
14- </Alert>
15-
16- <Alert type="warning" dismissable rtl>
17- تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه
1812</Alert>` ;
1913
2014 const errorAlertCode = `<Alert type="error" dismissable link="#" linkText="link">
2115 Error message with a
22- </Alert>
23-
24- <Alert type="error" dismissable rtl>
25- تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه
2616</Alert>` ;
2717
2818 return (
@@ -46,10 +36,6 @@ export const AlertComponent = () => {
4636 {
4737 name : 'dismissible' ,
4838 description : 'bool - Shows a dismissible button if set to true. Default is false.'
49- } ,
50- {
51- name : 'rtl' ,
52- description : 'bool - Set to true to enable Right-to-Left support. Default is false.'
5339 }
5440 ] }
5541 />
@@ -69,10 +55,6 @@ export const AlertComponent = () => {
6955 < Alert dismissable link = "#" linkText = " link" >
7056 Default alert with a { ' ' }
7157 </ Alert >
72- < br />
73- < Alert dismissable linkText = "link" rtl >
74- تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه
75- </ Alert >
7658 </ DocsTile >
7759 < DocsText > { defaultAlertCode } </ DocsText >
7860
@@ -88,12 +70,6 @@ export const AlertComponent = () => {
8870 < h3 > A dismissible error type alert with template.</ h3 >
8971 < p > More information...</ p >
9072 </ Alert >
91-
92- < br />
93-
94- < Alert type = "warning" dismissable rtl >
95- تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه
96- </ Alert >
9773 </ DocsTile >
9874 < DocsText > { warningAlertCode } </ DocsText >
9975
@@ -109,12 +85,6 @@ export const AlertComponent = () => {
10985 < Alert type = "error" dismissable link = "#" linkText = " link" >
11086 Error message with a { ' ' }
11187 </ Alert >
112-
113- < br />
114-
115- < Alert type = "error" dismissable rtl >
116- تم. بسبب أمام وشعار ولم بـ. أحكم والكساد ما فقد. كل وعُرفت الإنزال مدن. انه
117- </ Alert >
11888 </ DocsTile >
11989 < DocsText > { errorAlertCode } </ DocsText >
12090
@@ -129,15 +99,15 @@ export const AlertComponent = () => {
12999 {
130100 attribute : 'type' ,
131101 typeOfAttribute : 'string' ,
132- enum : [ 'default ' , 'warning' , 'error' ]
102+ enum : [ '' , 'warning' , 'error' ]
133103 } ,
134104 {
135105 attribute : 'dismissable' ,
136106 typeOfAttribute : 'boolean'
137107 }
138108 ] }
139109 >
140- < Alert type = "default " dismissable = { false } link = "#" linkText = "link" >
110+ < Alert type = "" dismissable = { false } link = "#" linkText = "link" >
141111 Default alert with a{ ' ' }
142112 </ Alert >
143113 </ Playground >
0 commit comments