@vsn-ux/gaia-styles 0.6.0 → 0.6.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.
- package/dist/docs/Avatar.md +52 -0
- package/dist/docs/Badge.md +60 -0
- package/dist/docs/Button.md +60 -0
- package/dist/docs/Calendar.md +468 -0
- package/dist/docs/Card.md +57 -0
- package/dist/docs/Checkbox.md +112 -0
- package/dist/docs/Container.md +62 -0
- package/dist/docs/Datepicker.md +107 -0
- package/dist/docs/Dropdown.md +152 -0
- package/dist/docs/FormField.md +101 -0
- package/dist/docs/Input.md +84 -0
- package/dist/docs/Link.md +109 -0
- package/dist/docs/Menu.md +316 -0
- package/dist/docs/Modal.md +337 -0
- package/dist/docs/Notification.md +341 -0
- package/dist/docs/ProgressBar.md +87 -0
- package/dist/docs/ProgressIndicator.md +217 -0
- package/dist/docs/QuickFilterButton.md +74 -0
- package/dist/docs/Radio.md +106 -0
- package/dist/docs/SegmentedControl.md +69 -0
- package/dist/docs/Select.md +411 -0
- package/dist/docs/Switch.md +97 -0
- package/dist/docs/Tabs.md +129 -0
- package/dist/docs/Tag.md +154 -0
- package/dist/docs/TextArea.md +51 -0
- package/dist/docs/TextSize.md +63 -0
- package/dist/docs/Tooltip.md +95 -0
- package/package.json +3 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# Modal
|
|
2
|
+
|
|
3
|
+
## Visual Structure
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
ga-modal__backdrop
|
|
7
|
+
ga-modal__container (optional)
|
|
8
|
+
└── ga-modal [--small|--medium|--large] [--danger|--warning|--success|--information]
|
|
9
|
+
├── ga-modal__top-section [--scrollable]
|
|
10
|
+
│ ├── ga-modal__icon (optional)
|
|
11
|
+
│ ├── ga-modal__heading
|
|
12
|
+
│ │ ├── ga-modal__label (optional)
|
|
13
|
+
│ │ ├── ga-modal__title
|
|
14
|
+
│ │ └── ga-modal__description (optional)
|
|
15
|
+
│ └── ga-modal__close-icon (optional)
|
|
16
|
+
├── ga-modal__content (optional)
|
|
17
|
+
└── ga-modal__actions
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Elements Hierarchy
|
|
21
|
+
|
|
22
|
+
### Core Block
|
|
23
|
+
|
|
24
|
+
- `ga-modal` - Main container for the modal component
|
|
25
|
+
|
|
26
|
+
### Mandatory Elements
|
|
27
|
+
|
|
28
|
+
- `ga-modal__backdrop` - Semi-transparent overlay that covers the screen behind the modal
|
|
29
|
+
- `ga-modal__top-section` - Upper section of the modal containing title and close button
|
|
30
|
+
- `ga-modal__heading` - Container for title and optional label text
|
|
31
|
+
- `ga-modal__title` - Main title text of the modal
|
|
32
|
+
- `ga-modal__actions` - Container for action buttons
|
|
33
|
+
|
|
34
|
+
### Optional Elements
|
|
35
|
+
|
|
36
|
+
- `ga-modal__container` - Container used for modal positioning, can be omitted if positioning is handled manually by the framework
|
|
37
|
+
- `ga-modal__icon` - Icon that appears at the top of the modal (for status modals)
|
|
38
|
+
- `ga-modal__label` - Secondary text displayed above the title
|
|
39
|
+
- `ga-modal__close-icon` - Button for closing the modal
|
|
40
|
+
- `ga-modal__description` - Description of the modal
|
|
41
|
+
- `ga-modal__content` - Container for the main content area of the modal
|
|
42
|
+
|
|
43
|
+
### Modifiers
|
|
44
|
+
|
|
45
|
+
- `ga-modal__top-section--scrollable` - Allows the modal's top section to shrink and enables vertical scrolling of description when content overflows. Note: This is necessary due to technical constraints, since the description and main content are rendered in separate containers, explicit scrolling must be enabled to prevent duplicate overflow behavior.
|
|
46
|
+
|
|
47
|
+
#### Size Variants
|
|
48
|
+
|
|
49
|
+
- `ga-modal--small` - Small-sized modal
|
|
50
|
+
- `ga-modal--medium` - Medium-sized modal
|
|
51
|
+
- `ga-modal--large` - Large-sized modal
|
|
52
|
+
|
|
53
|
+
#### Type Variants
|
|
54
|
+
|
|
55
|
+
- `ga-modal--danger` - Modal with danger/error styling
|
|
56
|
+
- `ga-modal--warning` - Modal with warning styling
|
|
57
|
+
- `ga-modal--success` - Modal with success styling
|
|
58
|
+
- `ga-modal--information` - Modal with information styling
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
### Types
|
|
63
|
+
|
|
64
|
+
#### Default
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<div class="ga-modal__backdrop"></div>
|
|
68
|
+
<div class="ga-modal__container">
|
|
69
|
+
<div class="ga-modal ga-modal--small">
|
|
70
|
+
<div class="ga-modal__top-section">
|
|
71
|
+
<div class="ga-modal__heading">
|
|
72
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
73
|
+
<div class="ga-modal__description">Description</div>
|
|
74
|
+
</div>
|
|
75
|
+
<button
|
|
76
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
77
|
+
>
|
|
78
|
+
<!-- icon: x, size=24 -->
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="ga-modal__actions">
|
|
82
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
83
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
#### Danger
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<div class="ga-modal__backdrop"></div>
|
|
93
|
+
<div class="ga-modal__container">
|
|
94
|
+
<div class="ga-modal ga-modal--small ga-modal--danger">
|
|
95
|
+
<div class="ga-modal__top-section">
|
|
96
|
+
<div class="ga-modal__icon"><!-- icon: octagon-alert, size=48 --></div>
|
|
97
|
+
<div class="ga-modal__heading">
|
|
98
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
99
|
+
<div class="ga-modal__description">Description</div>
|
|
100
|
+
</div>
|
|
101
|
+
<button
|
|
102
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
103
|
+
>
|
|
104
|
+
<!-- icon: x, size=24 -->
|
|
105
|
+
</button>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="ga-modal__actions">
|
|
108
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
109
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Warning
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<div class="ga-modal__backdrop"></div>
|
|
119
|
+
<div class="ga-modal__container">
|
|
120
|
+
<div class="ga-modal ga-modal--small ga-modal--warning">
|
|
121
|
+
<div class="ga-modal__top-section">
|
|
122
|
+
<div class="ga-modal__icon"><!-- icon: triangle-alert, size=48 --></div>
|
|
123
|
+
<div class="ga-modal__heading">
|
|
124
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
125
|
+
<div class="ga-modal__description">Description</div>
|
|
126
|
+
</div>
|
|
127
|
+
<button
|
|
128
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
129
|
+
>
|
|
130
|
+
<!-- icon: x, size=24 -->
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="ga-modal__actions">
|
|
134
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
135
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
#### Success
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<div class="ga-modal__backdrop"></div>
|
|
145
|
+
<div class="ga-modal__container">
|
|
146
|
+
<div class="ga-modal ga-modal--small ga-modal--success">
|
|
147
|
+
<div class="ga-modal__top-section">
|
|
148
|
+
<div class="ga-modal__icon"><!-- icon: circle-check, size=48 --></div>
|
|
149
|
+
<div class="ga-modal__heading">
|
|
150
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
151
|
+
<div class="ga-modal__description">Description</div>
|
|
152
|
+
</div>
|
|
153
|
+
<button
|
|
154
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
155
|
+
>
|
|
156
|
+
<!-- icon: x, size=24 -->
|
|
157
|
+
</button>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="ga-modal__actions">
|
|
160
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
161
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
#### Information
|
|
168
|
+
|
|
169
|
+
```html
|
|
170
|
+
<div class="ga-modal__backdrop"></div>
|
|
171
|
+
<div class="ga-modal__container">
|
|
172
|
+
<div class="ga-modal ga-modal--small ga-modal--information">
|
|
173
|
+
<div class="ga-modal__top-section">
|
|
174
|
+
<div class="ga-modal__icon"><!-- icon: info, size=48 --></div>
|
|
175
|
+
<div class="ga-modal__heading">
|
|
176
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
177
|
+
<div class="ga-modal__description">Description</div>
|
|
178
|
+
</div>
|
|
179
|
+
<button
|
|
180
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
181
|
+
>
|
|
182
|
+
<!-- icon: x, size=24 -->
|
|
183
|
+
</button>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="ga-modal__actions">
|
|
186
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
187
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Sizes
|
|
194
|
+
|
|
195
|
+
#### Small
|
|
196
|
+
|
|
197
|
+
```html
|
|
198
|
+
<div class="ga-modal__backdrop"></div>
|
|
199
|
+
<div class="ga-modal__container">
|
|
200
|
+
<div class="ga-modal ga-modal--small">
|
|
201
|
+
<div class="ga-modal__top-section">
|
|
202
|
+
<div class="ga-modal__heading">
|
|
203
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
204
|
+
<div class="ga-modal__description">Description</div>
|
|
205
|
+
</div>
|
|
206
|
+
<button
|
|
207
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
208
|
+
>
|
|
209
|
+
<!-- icon: x, size=24 -->
|
|
210
|
+
</button>
|
|
211
|
+
</div>
|
|
212
|
+
<div class="ga-modal__actions">
|
|
213
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
214
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
#### Medium
|
|
221
|
+
|
|
222
|
+
```html
|
|
223
|
+
<div class="ga-modal__backdrop"></div>
|
|
224
|
+
<div class="ga-modal__container">
|
|
225
|
+
<div class="ga-modal ga-modal--medium">
|
|
226
|
+
<div class="ga-modal__top-section">
|
|
227
|
+
<div class="ga-modal__heading">
|
|
228
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
229
|
+
<div class="ga-modal__description">Description</div>
|
|
230
|
+
</div>
|
|
231
|
+
<button
|
|
232
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
233
|
+
>
|
|
234
|
+
<!-- icon: x, size=24 -->
|
|
235
|
+
</button>
|
|
236
|
+
</div>
|
|
237
|
+
<div class="ga-modal__actions">
|
|
238
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
239
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
#### Large
|
|
246
|
+
|
|
247
|
+
```html
|
|
248
|
+
<div class="ga-modal__backdrop"></div>
|
|
249
|
+
<div class="ga-modal__container">
|
|
250
|
+
<div class="ga-modal ga-modal--large">
|
|
251
|
+
<div class="ga-modal__top-section">
|
|
252
|
+
<div class="ga-modal__heading">
|
|
253
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
254
|
+
<div class="ga-modal__description">Description</div>
|
|
255
|
+
</div>
|
|
256
|
+
<button
|
|
257
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
258
|
+
>
|
|
259
|
+
<!-- icon: x, size=24 -->
|
|
260
|
+
</button>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="ga-modal__actions">
|
|
263
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
264
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### With Label
|
|
271
|
+
|
|
272
|
+
```html
|
|
273
|
+
<div class="ga-modal__backdrop"></div>
|
|
274
|
+
<div class="ga-modal__container">
|
|
275
|
+
<div class="ga-modal ga-modal--small">
|
|
276
|
+
<div class="ga-modal__top-section">
|
|
277
|
+
<div class="ga-modal__heading">
|
|
278
|
+
<div class="ga-modal__label">Label</div>
|
|
279
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
280
|
+
<div class="ga-modal__description">Description</div>
|
|
281
|
+
</div>
|
|
282
|
+
<button
|
|
283
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
284
|
+
>
|
|
285
|
+
<!-- icon: x, size=24 -->
|
|
286
|
+
</button>
|
|
287
|
+
</div>
|
|
288
|
+
<div class="ga-modal__actions">
|
|
289
|
+
<button class="ga-button ga-button--primary">Confirm</button>
|
|
290
|
+
<button class="ga-button ga-button--secondary">Cancel</button>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Full Example
|
|
297
|
+
|
|
298
|
+
```html
|
|
299
|
+
<div class="ga-modal__backdrop"></div>
|
|
300
|
+
<div class="ga-modal__container">
|
|
301
|
+
<div class="ga-modal ga-modal--medium ga-modal--danger">
|
|
302
|
+
<div class="ga-modal__top-section">
|
|
303
|
+
<div class="ga-modal__icon"><!-- icon: octagon-alert, size=48 --></div>
|
|
304
|
+
<div class="ga-modal__heading">
|
|
305
|
+
<div class="ga-modal__label">Label</div>
|
|
306
|
+
<h2 class="ga-modal__title">Title</h2>
|
|
307
|
+
<div class="ga-modal__description">
|
|
308
|
+
The data could not be updated due to a server error. Please check your
|
|
309
|
+
internet connection and try again.
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
<button
|
|
313
|
+
class="ga-button ga-button--icon-only ga-button--ghost ga-modal__close-icon"
|
|
314
|
+
>
|
|
315
|
+
<!-- icon: x, size=24 -->
|
|
316
|
+
</button>
|
|
317
|
+
</div>
|
|
318
|
+
<div class="ga-modal__content">
|
|
319
|
+
<div class="ga-form-field">
|
|
320
|
+
<label class="ga-form-field__label" for="input2">
|
|
321
|
+
<span class="ga-form-field__label-text">Send invitation(s) to:</span>
|
|
322
|
+
</label>
|
|
323
|
+
<div class="ga-input">
|
|
324
|
+
<input id="input2" type="text" placeholder="user@domain.example" />
|
|
325
|
+
</div>
|
|
326
|
+
<div class="ga-form-field__info">
|
|
327
|
+
Please make sure no sensitive data is shared.
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
<div class="ga-modal__actions">
|
|
332
|
+
<button class="ga-button ga-button--primary">Accept</button>
|
|
333
|
+
<button class="ga-button ga-button--secondary">Decline</button>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
```
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# Notification
|
|
2
|
+
|
|
3
|
+
## Visual Structure
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
ga-notification [--information|--success|--error|--warning]
|
|
7
|
+
├── ga-notification__icon (optional)
|
|
8
|
+
├── ga-notification__content
|
|
9
|
+
│ ├── ga-notification__heading (optional)
|
|
10
|
+
│ │ ├── ga-notification__title
|
|
11
|
+
│ │ └── ga-notification__title-actions (optional)
|
|
12
|
+
│ └── ga-notification__description
|
|
13
|
+
└── ga-notification__progress [--indeterminate] (optional)
|
|
14
|
+
└── ga-notification__progress-bar
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Elements Hierarchy
|
|
18
|
+
|
|
19
|
+
### Core Block
|
|
20
|
+
|
|
21
|
+
- `ga-notification` - Main container for the entire notification component
|
|
22
|
+
|
|
23
|
+
### Mandatory Elements
|
|
24
|
+
|
|
25
|
+
- `ga-notification__content` - Container for all text content within the notification
|
|
26
|
+
- `ga-notification__description` - The contents of the notification
|
|
27
|
+
|
|
28
|
+
### Optional Elements
|
|
29
|
+
|
|
30
|
+
- `ga-notification__icon` - Icon displayed to enhance the visual meaning of the notification
|
|
31
|
+
- `ga-notification__heading` - Container that groups the title and action buttons
|
|
32
|
+
- `ga-notification__title` - The heading text of the notification
|
|
33
|
+
- `ga-notification__title-actions` - Container for action buttons displayed in the title area
|
|
34
|
+
- `ga-notification__progress` - Container for the progress bar, indicating the status of the notification
|
|
35
|
+
- `ga-notification__progress-bar` - The actual progress bar element, use css `width` to control the progress percentage value
|
|
36
|
+
- Dismiss button - Button to close/dismiss the notification
|
|
37
|
+
|
|
38
|
+
### Modifiers
|
|
39
|
+
|
|
40
|
+
- `ga-notification--information` - Styles the notification with information colors
|
|
41
|
+
- `ga-notification--success` - Styles the notification with success colors
|
|
42
|
+
- `ga-notification--error` - Styles the notification with error colors
|
|
43
|
+
- `ga-notification--warning` - Styles the notification with warning colors
|
|
44
|
+
- `ga-notification__progress--indeterminate` - Styles the notification with indeterminate progress bar
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
### Default
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<div class="ga-notification">
|
|
52
|
+
<div class="ga-notification__content">
|
|
53
|
+
<p class="ga-notification__description">
|
|
54
|
+
This is an information notification message.
|
|
55
|
+
</p>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### With Title
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<div class="ga-notification">
|
|
64
|
+
<div class="ga-notification__content">
|
|
65
|
+
<div class="ga-notification__heading">
|
|
66
|
+
<div class="ga-notification__title">Information notification</div>
|
|
67
|
+
</div>
|
|
68
|
+
<p class="ga-notification__description">
|
|
69
|
+
Here is some important information for you.
|
|
70
|
+
</p>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### With Icon
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<div class="ga-notification">
|
|
79
|
+
<!-- icon: hand-coins, size=24, class="ga-notification__icon" -->
|
|
80
|
+
<div class="ga-notification__content">
|
|
81
|
+
<p class="ga-notification__description">
|
|
82
|
+
Here is some important information for you.
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### With Icon & Title
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<div class="ga-notification">
|
|
92
|
+
<!-- icon: hand-coins, size=24, class="ga-notification__icon" -->
|
|
93
|
+
<div class="ga-notification__content">
|
|
94
|
+
<div class="ga-notification__heading">
|
|
95
|
+
<div class="ga-notification__title">Information notification</div>
|
|
96
|
+
</div>
|
|
97
|
+
<p class="ga-notification__description">
|
|
98
|
+
Here is some important information for you.
|
|
99
|
+
</p>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Success
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<div class="ga-notification ga-notification--success">
|
|
108
|
+
<!-- icon: circle-check, size=24, class="ga-notification__icon" -->
|
|
109
|
+
<div class="ga-notification__content">
|
|
110
|
+
<div class="ga-notification__heading">
|
|
111
|
+
<div class="ga-notification__title">Success notification</div>
|
|
112
|
+
</div>
|
|
113
|
+
<p class="ga-notification__description">
|
|
114
|
+
The operation was completed successfully.
|
|
115
|
+
</p>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Error
|
|
121
|
+
|
|
122
|
+
```html
|
|
123
|
+
<div class="ga-notification ga-notification--error">
|
|
124
|
+
<!-- icon: octagon-alert, size=24, class="ga-notification__icon" -->
|
|
125
|
+
<div class="ga-notification__content">
|
|
126
|
+
<div class="ga-notification__heading">
|
|
127
|
+
<div class="ga-notification__title">Error notification</div>
|
|
128
|
+
</div>
|
|
129
|
+
<p class="ga-notification__description">
|
|
130
|
+
An error occurred while processing your request.
|
|
131
|
+
</p>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Warning
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<div class="ga-notification ga-notification--warning">
|
|
140
|
+
<!-- icon: triangle-alert, size=24, class="ga-notification__icon" -->
|
|
141
|
+
<div class="ga-notification__content">
|
|
142
|
+
<div class="ga-notification__heading">
|
|
143
|
+
<div class="ga-notification__title">Warning notification</div>
|
|
144
|
+
</div>
|
|
145
|
+
<p class="ga-notification__description">
|
|
146
|
+
Please review the following warning message.
|
|
147
|
+
</p>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Information
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<div class="ga-notification ga-notification--information">
|
|
156
|
+
<!-- icon: info, size=24, class="ga-notification__icon" -->
|
|
157
|
+
<div class="ga-notification__content">
|
|
158
|
+
<div class="ga-notification__heading">
|
|
159
|
+
<div class="ga-notification__title">Information notification</div>
|
|
160
|
+
</div>
|
|
161
|
+
<p class="ga-notification__description">
|
|
162
|
+
Here is some important information for you.
|
|
163
|
+
</p>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### With Icon & Dismiss
|
|
169
|
+
|
|
170
|
+
```html
|
|
171
|
+
<div class="ga-notification">
|
|
172
|
+
<!-- icon: hand-coins, size=24, class="ga-notification__icon" -->
|
|
173
|
+
<div class="ga-notification__content">
|
|
174
|
+
<p class="ga-notification__description">
|
|
175
|
+
This is an information notification message.
|
|
176
|
+
</p>
|
|
177
|
+
</div>
|
|
178
|
+
<button type="button" class="ga-button ga-button--icon-only ga-button--ghost">
|
|
179
|
+
<!-- icon: x, size=24 -->
|
|
180
|
+
</button>
|
|
181
|
+
</div>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### With Content
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<div class="ga-notification">
|
|
188
|
+
<!-- icon: hand-coins, size=24, class="ga-notification__icon" -->
|
|
189
|
+
<div class="ga-notification__content">
|
|
190
|
+
<div class="ga-notification__heading">
|
|
191
|
+
<div class="ga-notification__title">Title of the notification</div>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="ga-notification__description">
|
|
194
|
+
<p>This is an information notification message.</p>
|
|
195
|
+
<div class="mt-4 flex flex-wrap gap-2">
|
|
196
|
+
<button type="button" class="ga-button ga-button--primary">
|
|
197
|
+
<!-- icon: check, size=24 -->
|
|
198
|
+
Approve
|
|
199
|
+
</button>
|
|
200
|
+
<button type="button" class="ga-button ga-button--secondary">
|
|
201
|
+
<!-- icon: octagon-x, size=24 -->
|
|
202
|
+
Reject
|
|
203
|
+
</button>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### With Title Actions
|
|
211
|
+
|
|
212
|
+
```html
|
|
213
|
+
<div class="ga-notification">
|
|
214
|
+
<!-- icon: hand-coins, size=24, class="ga-notification__icon" -->
|
|
215
|
+
<div class="ga-notification__content">
|
|
216
|
+
<div class="ga-notification__heading">
|
|
217
|
+
<div class="ga-notification__title">Title of the notification</div>
|
|
218
|
+
<div class="ga-notification__title-actions">
|
|
219
|
+
<button
|
|
220
|
+
type="button"
|
|
221
|
+
class="ga-button ga-button--icon-only ga-button--ghost"
|
|
222
|
+
>
|
|
223
|
+
<!-- icon: ellipsis, size=24 -->
|
|
224
|
+
</button>
|
|
225
|
+
<button
|
|
226
|
+
type="button"
|
|
227
|
+
class="ga-button ga-button--icon-only ga-button--ghost"
|
|
228
|
+
>
|
|
229
|
+
<!-- icon: bell-off, size=24 -->
|
|
230
|
+
</button>
|
|
231
|
+
<button
|
|
232
|
+
type="button"
|
|
233
|
+
class="ga-button ga-button--icon-only ga-button--ghost"
|
|
234
|
+
>
|
|
235
|
+
<!-- icon: chevrons-left-right-ellipsis, size=24 -->
|
|
236
|
+
</button>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="ga-notification__description">
|
|
240
|
+
<p>This is an information notification message.</p>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### With Progress Bar
|
|
247
|
+
|
|
248
|
+
```html
|
|
249
|
+
<div class="ga-notification">
|
|
250
|
+
<div class="ga-notification__content">
|
|
251
|
+
<p class="ga-notification__description">
|
|
252
|
+
This is an information notification message.
|
|
253
|
+
</p>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="ga-notification__progress">
|
|
256
|
+
<div class="ga-notification__progress-bar" style="width: 35%"></div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
```
|
|
260
|
+
```html
|
|
261
|
+
<div class="ga-notification ga-notification--success">
|
|
262
|
+
<!-- icon: circle-check, size=24, class="ga-notification__icon" -->
|
|
263
|
+
<div class="ga-notification__content">
|
|
264
|
+
<div class="ga-notification__heading">
|
|
265
|
+
<div class="ga-notification__title">Success notification</div>
|
|
266
|
+
</div>
|
|
267
|
+
<p class="ga-notification__description">
|
|
268
|
+
The operation was completed successfully.
|
|
269
|
+
</p>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="ga-notification__progress">
|
|
272
|
+
<div class="ga-notification__progress-bar" style="width: 35%"></div>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
```
|
|
276
|
+
```html
|
|
277
|
+
<div class="ga-notification ga-notification--error">
|
|
278
|
+
<!-- icon: octagon-alert, size=24, class="ga-notification__icon" -->
|
|
279
|
+
<div class="ga-notification__content">
|
|
280
|
+
<div class="ga-notification__heading">
|
|
281
|
+
<div class="ga-notification__title">Error notification</div>
|
|
282
|
+
</div>
|
|
283
|
+
<p class="ga-notification__description">
|
|
284
|
+
An error occurred while processing your request.
|
|
285
|
+
</p>
|
|
286
|
+
</div>
|
|
287
|
+
<div class="ga-notification__progress">
|
|
288
|
+
<div class="ga-notification__progress-bar" style="width: 35%"></div>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
```
|
|
292
|
+
```html
|
|
293
|
+
<div class="ga-notification ga-notification--warning">
|
|
294
|
+
<!-- icon: triangle-alert, size=24, class="ga-notification__icon" -->
|
|
295
|
+
<div class="ga-notification__content">
|
|
296
|
+
<div class="ga-notification__heading">
|
|
297
|
+
<div class="ga-notification__title">Warning notification</div>
|
|
298
|
+
</div>
|
|
299
|
+
<p class="ga-notification__description">
|
|
300
|
+
Please review the following warning message.
|
|
301
|
+
</p>
|
|
302
|
+
</div>
|
|
303
|
+
<div class="ga-notification__progress">
|
|
304
|
+
<div class="ga-notification__progress-bar" style="width: 35%"></div>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
```
|
|
308
|
+
```html
|
|
309
|
+
<div class="ga-notification ga-notification--information">
|
|
310
|
+
<!-- icon: info, size=24, class="ga-notification__icon" -->
|
|
311
|
+
<div class="ga-notification__content">
|
|
312
|
+
<div class="ga-notification__heading">
|
|
313
|
+
<div class="ga-notification__title">Information notification</div>
|
|
314
|
+
</div>
|
|
315
|
+
<p class="ga-notification__description">
|
|
316
|
+
Here is some important information for you.
|
|
317
|
+
</p>
|
|
318
|
+
</div>
|
|
319
|
+
<div class="ga-notification__progress">
|
|
320
|
+
<div class="ga-notification__progress-bar" style="width: 35%"></div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
```
|
|
324
|
+
```html
|
|
325
|
+
<div class="ga-notification ga-notification--information">
|
|
326
|
+
<!-- icon: info, size=24, class="ga-notification__icon" -->
|
|
327
|
+
<div class="ga-notification__content">
|
|
328
|
+
<div class="ga-notification__heading">
|
|
329
|
+
<div class="ga-notification__title">Information notification</div>
|
|
330
|
+
</div>
|
|
331
|
+
<p class="ga-notification__description">
|
|
332
|
+
Here is some important information for you.
|
|
333
|
+
</p>
|
|
334
|
+
</div>
|
|
335
|
+
<div
|
|
336
|
+
class="ga-notification__progress ga-notification__progress--indeterminate"
|
|
337
|
+
>
|
|
338
|
+
<div class="ga-notification__progress-bar"></div>
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
```
|