sdga-ui 1.0.8 → 1.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/css/dga-ui.css +16 -2
- package/css/dga-ui.css.map +1 -1
- package/package.json +20 -4
- package/theme/customizations/_links.scss +22 -21
- package/.editorconfig +0 -23
- package/.github/workflows/deploy.yml +0 -71
- package/.github/workflows/publish.yml +0 -36
- package/.prettierignore +0 -73
- package/.prettierrc +0 -17
- package/demo-angular/.editorconfig +0 -17
- package/demo-angular/.vscode/extensions.json +0 -4
- package/demo-angular/.vscode/launch.json +0 -20
- package/demo-angular/.vscode/tasks.json +0 -42
- package/demo-angular/README.md +0 -91
- package/demo-angular/angular.json +0 -96
- package/demo-angular/package-lock.json +0 -10600
- package/demo-angular/package.json +0 -53
- package/demo-angular/public/404.html +0 -35
- package/demo-angular/public/favicon.ico +0 -0
- package/demo-angular/public/i18n/ar.json +0 -289
- package/demo-angular/public/i18n/en.json +0 -289
- package/demo-angular/src/app/app.config.ts +0 -20
- package/demo-angular/src/app/app.html +0 -52
- package/demo-angular/src/app/app.routes.ts +0 -49
- package/demo-angular/src/app/app.scss +0 -430
- package/demo-angular/src/app/app.spec.ts +0 -23
- package/demo-angular/src/app/app.ts +0 -97
- package/demo-angular/src/app/shared/code-example/code-example.component.html +0 -30
- package/demo-angular/src/app/shared/code-example/code-example.component.scss +0 -183
- package/demo-angular/src/app/shared/code-example/code-example.component.ts +0 -89
- package/demo-angular/src/app/views/alerts/alerts.component.html +0 -155
- package/demo-angular/src/app/views/alerts/alerts.component.scss +0 -3
- package/demo-angular/src/app/views/alerts/alerts.component.ts +0 -134
- package/demo-angular/src/app/views/buttons/buttons.component.html +0 -360
- package/demo-angular/src/app/views/buttons/buttons.component.scss +0 -11
- package/demo-angular/src/app/views/buttons/buttons.component.ts +0 -225
- package/demo-angular/src/app/views/cards/cards.component.html +0 -156
- package/demo-angular/src/app/views/cards/cards.component.html.backup +0 -156
- package/demo-angular/src/app/views/cards/cards.component.scss +0 -11
- package/demo-angular/src/app/views/cards/cards.component.ts +0 -194
- package/demo-angular/src/app/views/footer/footer.html +0 -270
- package/demo-angular/src/app/views/footer/footer.ts +0 -276
- package/demo-angular/src/app/views/forms/forms.component.html +0 -347
- package/demo-angular/src/app/views/forms/forms.component.scss +0 -3
- package/demo-angular/src/app/views/forms/forms.component.ts +0 -222
- package/demo-angular/src/app/views/header/header.html +0 -1
- package/demo-angular/src/app/views/header/header.scss +0 -0
- package/demo-angular/src/app/views/header/header.spec.ts +0 -23
- package/demo-angular/src/app/views/header/header.ts +0 -11
- package/demo-angular/src/app/views/home/home.component.html +0 -33
- package/demo-angular/src/app/views/home/home.component.scss +0 -35
- package/demo-angular/src/app/views/home/home.component.ts +0 -12
- package/demo-angular/src/app/views/links/links.component.html +0 -21
- package/demo-angular/src/app/views/links/links.component.scss +0 -11
- package/demo-angular/src/app/views/links/links.component.ts +0 -19
- package/demo-angular/src/app/views/tables/tables.component.html +0 -289
- package/demo-angular/src/app/views/tables/tables.component.scss +0 -3
- package/demo-angular/src/app/views/tables/tables.component.ts +0 -278
- package/demo-angular/src/app/views/toasts/toasts.component.html +0 -201
- package/demo-angular/src/app/views/toasts/toasts.component.scss +0 -0
- package/demo-angular/src/app/views/toasts/toasts.component.ts +0 -182
- package/demo-angular/src/index.html +0 -28
- package/demo-angular/src/main.ts +0 -6
- package/demo-angular/src/styles.scss +0 -4
- package/demo-angular/tsconfig.app.json +0 -16
- package/demo-angular/tsconfig.json +0 -33
- package/demo-angular/tsconfig.spec.json +0 -15
- package/sdga-ui/README.md +0 -45
- package/sdga-ui/content/docs/components/alerts.mdx +0 -475
- package/sdga-ui/content/docs/index.mdx +0 -239
- package/sdga-ui/next.config.mjs +0 -10
- package/sdga-ui/package-lock.json +0 -5851
- package/sdga-ui/package.json +0 -32
- package/sdga-ui/postcss.config.mjs +0 -5
- package/sdga-ui/source.config.ts +0 -27
- package/sdga-ui/src/app/(home)/layout.tsx +0 -6
- package/sdga-ui/src/app/(home)/page.tsx +0 -202
- package/sdga-ui/src/app/api/search/route.ts +0 -7
- package/sdga-ui/src/app/docs/[[...slug]]/page.tsx +0 -54
- package/sdga-ui/src/app/docs/layout.tsx +0 -11
- package/sdga-ui/src/app/global.css +0 -3
- package/sdga-ui/src/app/layout.tsx +0 -25
- package/sdga-ui/src/app/llms-full.txt/route.ts +0 -10
- package/sdga-ui/src/app/og/docs/[...slug]/route.tsx +0 -34
- package/sdga-ui/src/app/sdga-scoped.css +0 -7
- package/sdga-ui/src/components/sdga-preview.tsx +0 -105
- package/sdga-ui/src/lib/layout.shared.tsx +0 -9
- package/sdga-ui/src/lib/source.ts +0 -27
- package/sdga-ui/src/mdx-components.tsx +0 -9
- package/sdga-ui/tsconfig.json +0 -46
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
<div class="container py-5">
|
|
2
|
-
<h1 class="display-4 mb-4">{{ 'buttons.title' | translate }}</h1>
|
|
3
|
-
<p class="lead mb-5">{{ 'buttons.subtitle' | translate }}</p>
|
|
4
|
-
|
|
5
|
-
<section class="demo-section">
|
|
6
|
-
<h2>{{ 'buttons.section_solid' | translate }}</h2>
|
|
7
|
-
<div class="component-showcase">
|
|
8
|
-
<button type="button" class="btn btn-primary">Primary</button>
|
|
9
|
-
<button type="button" class="btn btn-neutral">Neutral</button>
|
|
10
|
-
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
11
|
-
<button type="button" class="btn btn-subtle">Subtle</button>
|
|
12
|
-
<button type="button" class="btn btn-transparent">Transparent</button>
|
|
13
|
-
</div>
|
|
14
|
-
<app-code-example [htmlCode]="solidButtonsCode"></app-code-example>
|
|
15
|
-
|
|
16
|
-
<h3 class="mt-5">Destructive Variants</h3>
|
|
17
|
-
<div class="component-showcase">
|
|
18
|
-
<button type="button" class="btn btn-destructive-primary">Destructive Primary</button>
|
|
19
|
-
<button type="button" class="btn btn-destructive-secondary">Destructive Secondary</button>
|
|
20
|
-
<button type="button" class="btn btn-destructive-subtle">Destructive Subtle</button>
|
|
21
|
-
<button type="button" class="btn btn-destructive-transparent">Destructive Transparent</button>
|
|
22
|
-
</div>
|
|
23
|
-
<app-code-example [htmlCode]="destructiveButtonsCode"></app-code-example>
|
|
24
|
-
|
|
25
|
-
<h3 class="mt-5">On Primary Context</h3>
|
|
26
|
-
<div class="on-primary p-4 rounded-2">
|
|
27
|
-
<div class="component-showcase mb-3">
|
|
28
|
-
<button type="button" class="btn btn-primary">Primary</button>
|
|
29
|
-
<button type="button" class="btn btn-neutral">Neutral</button>
|
|
30
|
-
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
31
|
-
<button type="button" class="btn btn-outline-secondary">Outline Secondary</button>
|
|
32
|
-
<button type="button" class="btn btn-subtle">Subtle</button>
|
|
33
|
-
<button type="button" class="btn btn-transparent">Transparent</button>
|
|
34
|
-
<button type="button" class="btn btn-destructive-primary">Destructive Primary</button>
|
|
35
|
-
<button type="button" class="btn btn-destructive-secondary">Destructive Secondary</button>
|
|
36
|
-
<button type="button" class="btn btn-destructive-outline-secondary">Destructive Outline</button>
|
|
37
|
-
<button type="button" class="btn btn-destructive-subtle">Destructive Subtle</button>
|
|
38
|
-
<button type="button" class="btn btn-destructive-transparent">Destructive Transparent</button>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<app-code-example [htmlCode]="onPrimaryButtonsCode" [onColor]="'primary'"></app-code-example>
|
|
42
|
-
|
|
43
|
-
<h3 class="mt-5">{{ 'buttons.section_outline' | translate }}</h3>
|
|
44
|
-
<div class="component-showcase">
|
|
45
|
-
<button type="button" class="btn btn-outline-secondary">{{ 'buttons.secondary' | translate }}</button>
|
|
46
|
-
<button type="button" class="btn btn-destructive-outline-secondary">{{ 'buttons.danger' | translate }}</button>
|
|
47
|
-
</div>
|
|
48
|
-
<app-code-example [htmlCode]="outlineButtonsCode"></app-code-example>
|
|
49
|
-
|
|
50
|
-
<h3 class="mt-5">{{ 'buttons.section_sizes' | translate }}</h3>
|
|
51
|
-
<div class="component-showcase">
|
|
52
|
-
<button type="button" class="btn btn-primary btn-lg">{{ 'buttons.large' | translate }}</button>
|
|
53
|
-
<button type="button" class="btn btn-primary">{{ 'buttons.default' | translate }}</button>
|
|
54
|
-
<button type="button" class="btn btn-primary btn-sm">{{ 'buttons.small' | translate }}</button>
|
|
55
|
-
<button type="button" class="btn btn-primary btn-xs">{{ 'buttons.extra_small' | translate }}</button>
|
|
56
|
-
</div>
|
|
57
|
-
<app-code-example [htmlCode]="buttonSizesCode"></app-code-example>
|
|
58
|
-
|
|
59
|
-
<h3 class="mt-5">{{ 'buttons.section_states' | translate }}</h3>
|
|
60
|
-
<div class="component-showcase mb-3">
|
|
61
|
-
<button type="button" class="btn btn-primary">{{ 'buttons.normal' | translate }}</button>
|
|
62
|
-
<button type="button" class="btn btn-primary active">{{ 'buttons.active' | translate }}</button>
|
|
63
|
-
<button type="button" class="btn btn-primary" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="component-showcase mb-3">
|
|
66
|
-
<button type="button" class="btn btn-neutral">{{ 'buttons.normal' | translate }}</button>
|
|
67
|
-
<button type="button" class="btn btn-neutral active">{{ 'buttons.active' | translate }}</button>
|
|
68
|
-
<button type="button" class="btn btn-neutral" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="component-showcase mb-3">
|
|
71
|
-
<button type="button" class="btn btn-secondary">{{ 'buttons.normal' | translate }}</button>
|
|
72
|
-
<button type="button" class="btn btn-secondary active">{{ 'buttons.active' | translate }}</button>
|
|
73
|
-
<button type="button" class="btn btn-secondary" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="component-showcase mb-3">
|
|
76
|
-
<button type="button" class="btn btn-subtle">{{ 'buttons.normal' | translate }}</button>
|
|
77
|
-
<button type="button" class="btn btn-subtle active">{{ 'buttons.active' | translate }}</button>
|
|
78
|
-
<button type="button" class="btn btn-subtle" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="component-showcase mb-3">
|
|
81
|
-
<button type="button" class="btn btn-transparent">{{ 'buttons.normal' | translate }}</button>
|
|
82
|
-
<button type="button" class="btn btn-transparent active">{{ 'buttons.active' | translate }}</button>
|
|
83
|
-
<button type="button" class="btn btn-transparent" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
84
|
-
</div>
|
|
85
|
-
<div class="component-showcase mb-3">
|
|
86
|
-
<button type="button" class="btn btn-destructive-primary">{{ 'buttons.normal' | translate }}</button>
|
|
87
|
-
<button type="button" class="btn btn-destructive-primary active">{{ 'buttons.active' | translate }}</button>
|
|
88
|
-
<button type="button" class="btn btn-destructive-primary" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="component-showcase mb-3">
|
|
91
|
-
<button type="button" class="btn btn-destructive-secondary">{{ 'buttons.normal' | translate }}</button>
|
|
92
|
-
<button type="button" class="btn btn-destructive-secondary active">{{ 'buttons.active' | translate }}</button>
|
|
93
|
-
<button type="button" class="btn btn-destructive-secondary" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="component-showcase mb-3">
|
|
96
|
-
<button type="button" class="btn btn-destructive-subtle">{{ 'buttons.normal' | translate }}</button>
|
|
97
|
-
<button type="button" class="btn btn-destructive-subtle active">{{ 'buttons.active' | translate }}</button>
|
|
98
|
-
<button type="button" class="btn btn-destructive-subtle" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="component-showcase">
|
|
101
|
-
<button type="button" class="btn btn-destructive-transparent">{{ 'buttons.normal' | translate }}</button>
|
|
102
|
-
<button type="button" class="btn btn-destructive-transparent active">{{ 'buttons.active' | translate }}</button>
|
|
103
|
-
<button type="button" class="btn btn-destructive-transparent" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
104
|
-
</div>
|
|
105
|
-
<app-code-example [htmlCode]="buttonStatesCode"></app-code-example>
|
|
106
|
-
|
|
107
|
-
<h3 class="mt-5">{{ 'buttons.section_icons' | translate }}</h3>
|
|
108
|
-
<div class="component-showcase mb-3">
|
|
109
|
-
<button type="button" class="btn btn-primary btn-icon">
|
|
110
|
-
<i class="bi bi-download"></i>{{ 'buttons.download' | translate }}
|
|
111
|
-
</button>
|
|
112
|
-
<button type="button" class="btn btn-neutral btn-icon">
|
|
113
|
-
<i class="bi bi-upload"></i>{{ 'buttons.upload' | translate }}
|
|
114
|
-
</button>
|
|
115
|
-
<button type="button" class="btn btn-secondary btn-icon">
|
|
116
|
-
<i class="bi bi-pencil"></i>{{ 'buttons.edit' | translate }}
|
|
117
|
-
</button>
|
|
118
|
-
<button type="button" class="btn btn-subtle btn-icon">
|
|
119
|
-
<i class="bi bi-eye"></i>View
|
|
120
|
-
</button>
|
|
121
|
-
<button type="button" class="btn btn-transparent btn-icon">
|
|
122
|
-
<i class="bi bi-link"></i>Link
|
|
123
|
-
</button>
|
|
124
|
-
<button type="button" class="btn btn-destructive-primary btn-icon">
|
|
125
|
-
<i class="bi bi-trash"></i>{{ 'buttons.delete' | translate }}
|
|
126
|
-
</button>
|
|
127
|
-
<button type="button" class="btn btn-destructive-secondary btn-icon">
|
|
128
|
-
<i class="bi bi-x-circle"></i>Cancel
|
|
129
|
-
</button>
|
|
130
|
-
</div>
|
|
131
|
-
<app-code-example [htmlCode]="buttonIconLeftCode"></app-code-example>
|
|
132
|
-
<div class="component-showcase mb-3">
|
|
133
|
-
<button type="button" class="btn btn-primary btn-icon">
|
|
134
|
-
{{ 'buttons.save' | translate }}<i class="bi bi-check"></i>
|
|
135
|
-
</button>
|
|
136
|
-
<button type="button" class="btn btn-neutral btn-icon">
|
|
137
|
-
{{ 'buttons.search' | translate }}<i class="bi bi-search"></i>
|
|
138
|
-
</button>
|
|
139
|
-
<button type="button" class="btn btn-secondary btn-icon">
|
|
140
|
-
{{ 'buttons.settings' | translate }}<i class="bi bi-gear"></i>
|
|
141
|
-
</button>
|
|
142
|
-
</div>
|
|
143
|
-
<app-code-example [htmlCode]="buttonIconRightCode"></app-code-example>
|
|
144
|
-
<div class="component-showcase mb-3">
|
|
145
|
-
<button type="button" class="btn btn-primary btn-icon btn-sm">
|
|
146
|
-
<i class="bi bi-plus-circle"></i>{{ 'buttons.add' | translate }}
|
|
147
|
-
</button>
|
|
148
|
-
<button type="button" class="btn btn-outline-secondary btn-icon">
|
|
149
|
-
<i class="bi bi-arrow-right"></i>{{ 'buttons.next' | translate }}
|
|
150
|
-
</button>
|
|
151
|
-
<button type="button" class="btn btn-outline-secondary btn-icon">
|
|
152
|
-
<i class="bi bi-arrow-left"></i>{{ 'buttons.previous' | translate }}
|
|
153
|
-
</button>
|
|
154
|
-
</div>
|
|
155
|
-
|
|
156
|
-
<h3 class="mt-5">{{ 'buttons.section_icon_only' | translate }}</h3>
|
|
157
|
-
<div class="component-showcase mb-3">
|
|
158
|
-
<button type="button" class="btn btn-primary btn-icon" aria-label="{{ 'buttons.download' | translate }}">
|
|
159
|
-
<i class="bi bi-download"></i>
|
|
160
|
-
</button>
|
|
161
|
-
<button type="button" class="btn btn-neutral btn-icon" aria-label="{{ 'buttons.upload' | translate }}">
|
|
162
|
-
<i class="bi bi-upload"></i>
|
|
163
|
-
</button>
|
|
164
|
-
<button type="button" class="btn btn-secondary btn-icon" aria-label="{{ 'buttons.edit' | translate }}">
|
|
165
|
-
<i class="bi bi-pencil"></i>
|
|
166
|
-
</button>
|
|
167
|
-
<button type="button" class="btn btn-destructive-primary btn-icon" aria-label="{{ 'buttons.delete' | translate }}">
|
|
168
|
-
<i class="bi bi-trash"></i>
|
|
169
|
-
</button>
|
|
170
|
-
</div>
|
|
171
|
-
<div class="component-showcase mb-3">
|
|
172
|
-
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.search' | translate }}">
|
|
173
|
-
<i class="bi bi-search"></i>
|
|
174
|
-
</button>
|
|
175
|
-
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.settings' | translate }}">
|
|
176
|
-
<i class="bi bi-gear"></i>
|
|
177
|
-
</button>
|
|
178
|
-
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.add' | translate }}">
|
|
179
|
-
<i class="bi bi-plus-circle"></i>
|
|
180
|
-
</button>
|
|
181
|
-
</div>
|
|
182
|
-
<div class="component-showcase">
|
|
183
|
-
<button type="button" class="btn btn-primary btn-icon" aria-label="{{ 'buttons.search' | translate }}">
|
|
184
|
-
<i class="bi bi-search"></i>
|
|
185
|
-
</button>
|
|
186
|
-
<button type="button" class="btn btn-neutral btn-icon btn-sm" aria-label="{{ 'buttons.settings' | translate }}">
|
|
187
|
-
<i class="bi bi-gear"></i>
|
|
188
|
-
</button>
|
|
189
|
-
<button type="button" class="btn btn-secondary btn-icon btn-xs" aria-label="{{ 'buttons.add' | translate }}">
|
|
190
|
-
<i class="bi bi-plus-circle"></i>
|
|
191
|
-
</button>
|
|
192
|
-
</div>
|
|
193
|
-
<app-code-example [htmlCode]="buttonIconOnlyCode"></app-code-example>
|
|
194
|
-
|
|
195
|
-
<h3 class="mt-5">{{ 'buttons.section_dropdown' | translate }}</h3>
|
|
196
|
-
<div class="component-showcase mb-3">
|
|
197
|
-
<div class="dropdown">
|
|
198
|
-
<button class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
199
|
-
{{ 'buttons.dropdown_primary' | translate }}
|
|
200
|
-
</button>
|
|
201
|
-
<ul class="dropdown-menu">
|
|
202
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
203
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
204
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
205
|
-
</ul>
|
|
206
|
-
</div>
|
|
207
|
-
|
|
208
|
-
<div class="dropdown">
|
|
209
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
210
|
-
{{ 'buttons.dropdown_neutral' | translate }}
|
|
211
|
-
</button>
|
|
212
|
-
<ul class="dropdown-menu">
|
|
213
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
214
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
215
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
216
|
-
</ul>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<div class="dropdown">
|
|
220
|
-
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
221
|
-
{{ 'buttons.dropdown_secondary' | translate }}
|
|
222
|
-
</button>
|
|
223
|
-
<ul class="dropdown-menu">
|
|
224
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
225
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
226
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
227
|
-
</ul>
|
|
228
|
-
</div>
|
|
229
|
-
|
|
230
|
-
<div class="dropdown">
|
|
231
|
-
<button class="btn btn-subtle dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
232
|
-
Subtle
|
|
233
|
-
</button>
|
|
234
|
-
<ul class="dropdown-menu">
|
|
235
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
236
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
237
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
238
|
-
</ul>
|
|
239
|
-
</div>
|
|
240
|
-
|
|
241
|
-
<div class="dropdown">
|
|
242
|
-
<button class="btn btn-transparent dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
243
|
-
Transparent
|
|
244
|
-
</button>
|
|
245
|
-
<ul class="dropdown-menu">
|
|
246
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
247
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
248
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
249
|
-
</ul>
|
|
250
|
-
</div>
|
|
251
|
-
|
|
252
|
-
<div class="dropdown">
|
|
253
|
-
<button class="btn btn-destructive-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
254
|
-
{{ 'buttons.dropdown_danger' | translate }}
|
|
255
|
-
</button>
|
|
256
|
-
<ul class="dropdown-menu">
|
|
257
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
258
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
259
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
260
|
-
</ul>
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
<app-code-example [htmlCode]="dropdownButtonCode"></app-code-example>
|
|
264
|
-
|
|
265
|
-
<div class="component-showcase mb-3">
|
|
266
|
-
<div class="dropdown">
|
|
267
|
-
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
268
|
-
{{ 'buttons.dropdown_outline' | translate }}
|
|
269
|
-
</button>
|
|
270
|
-
<ul class="dropdown-menu">
|
|
271
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
272
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
273
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
274
|
-
</ul>
|
|
275
|
-
</div>
|
|
276
|
-
|
|
277
|
-
<div class="dropdown">
|
|
278
|
-
<button class="btn btn-destructive-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
279
|
-
{{ 'buttons.dropdown_outline' | translate }}
|
|
280
|
-
</button>
|
|
281
|
-
<ul class="dropdown-menu">
|
|
282
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
283
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
284
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
285
|
-
</ul>
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
<div class="component-showcase">
|
|
290
|
-
<div class="dropdown">
|
|
291
|
-
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
292
|
-
{{ 'buttons.large' | translate }}
|
|
293
|
-
</button>
|
|
294
|
-
<ul class="dropdown-menu">
|
|
295
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
296
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
297
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
298
|
-
</ul>
|
|
299
|
-
</div>
|
|
300
|
-
|
|
301
|
-
<div class="dropdown">
|
|
302
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
303
|
-
{{ 'buttons.default' | translate }}
|
|
304
|
-
</button>
|
|
305
|
-
<ul class="dropdown-menu">
|
|
306
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
307
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
308
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
309
|
-
</ul>
|
|
310
|
-
</div>
|
|
311
|
-
|
|
312
|
-
<div class="dropdown">
|
|
313
|
-
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
314
|
-
{{ 'buttons.small' | translate }}
|
|
315
|
-
</button>
|
|
316
|
-
<ul class="dropdown-menu">
|
|
317
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
318
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
319
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
320
|
-
</ul>
|
|
321
|
-
</div>
|
|
322
|
-
</div>
|
|
323
|
-
<app-code-example [htmlCode]="dropdownSizesCode"></app-code-example>
|
|
324
|
-
<div class="component-showcase">
|
|
325
|
-
<div class="dropdown">
|
|
326
|
-
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
327
|
-
<i class="bi bi-gear"></i>
|
|
328
|
-
</button>
|
|
329
|
-
<ul class="dropdown-menu">
|
|
330
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
331
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
332
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
333
|
-
</ul>
|
|
334
|
-
</div>
|
|
335
|
-
|
|
336
|
-
<div class="dropdown">
|
|
337
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
338
|
-
<i class="bi bi-gear"></i>
|
|
339
|
-
</button>
|
|
340
|
-
<ul class="dropdown-menu">
|
|
341
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
342
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
343
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
344
|
-
</ul>
|
|
345
|
-
</div>
|
|
346
|
-
|
|
347
|
-
<div class="dropdown">
|
|
348
|
-
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
349
|
-
<i class="bi bi-gear"></i>
|
|
350
|
-
</button>
|
|
351
|
-
<ul class="dropdown-menu">
|
|
352
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
353
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_another' | translate }}</button></li>
|
|
354
|
-
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
355
|
-
</ul>
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
<app-code-example [htmlCode]="iconDropdownCode"></app-code-example>
|
|
359
|
-
</section>
|
|
360
|
-
</div>
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
-
import { CodeExampleComponent } from '../../shared/code-example/code-example.component';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'app-buttons',
|
|
7
|
-
imports: [TranslateModule, CodeExampleComponent],
|
|
8
|
-
templateUrl: './buttons.component.html',
|
|
9
|
-
styleUrl: './buttons.component.scss',
|
|
10
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
11
|
-
})
|
|
12
|
-
export class ButtonsComponent {
|
|
13
|
-
solidButtonsCode = `<button type="button" class="btn btn-primary">Primary</button>
|
|
14
|
-
<button type="button" class="btn btn-neutral">Neutral</button>
|
|
15
|
-
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
16
|
-
<button type="button" class="btn btn-subtle">Subtle</button>
|
|
17
|
-
<button type="button" class="btn btn-transparent">Transparent</button>`;
|
|
18
|
-
|
|
19
|
-
destructiveButtonsCode = `<button type="button" class="btn btn-destructive-primary">Destructive Primary</button>
|
|
20
|
-
<button type="button" class="btn btn-destructive-secondary">Destructive Secondary</button>
|
|
21
|
-
<button type="button" class="btn btn-destructive-subtle">Destructive Subtle</button>
|
|
22
|
-
<button type="button" class="btn btn-destructive-transparent">Destructive Transparent</button>`;
|
|
23
|
-
|
|
24
|
-
onPrimaryButtonsCode = `<button type="button" class="btn btn-primary">Primary</button>
|
|
25
|
-
<button type="button" class="btn btn-neutral">Neutral</button>
|
|
26
|
-
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
27
|
-
<button type="button" class="btn btn-outline-secondary">Outline Secondary</button>
|
|
28
|
-
<button type="button" class="btn btn-subtle">Subtle</button>
|
|
29
|
-
<button type="button" class="btn btn-transparent">Transparent</button>
|
|
30
|
-
|
|
31
|
-
<button type="button" class="btn btn-destructive-primary">Destructive Primary</button>
|
|
32
|
-
<button type="button" class="btn btn-destructive-secondary">Destructive Secondary</button>
|
|
33
|
-
<button type="button" class="btn btn-destructive-outline-secondary">Destructive Outline</button>
|
|
34
|
-
<button type="button" class="btn btn-destructive-subtle">Destructive Subtle</button>
|
|
35
|
-
<button type="button" class="btn btn-destructive-transparent">Destructive Transparent</button>`;
|
|
36
|
-
|
|
37
|
-
outlineButtonsCode = `<button type="button" class="btn btn-outline-secondary">Secondary</button>
|
|
38
|
-
<button type="button" class="btn btn-destructive-outline-secondary">Destructive</button>`;
|
|
39
|
-
|
|
40
|
-
buttonSizesCode = `<button type="button" class="btn btn-primary btn-lg">Large</button>
|
|
41
|
-
<button type="button" class="btn btn-primary">Default</button>
|
|
42
|
-
<button type="button" class="btn btn-primary btn-sm">Small</button>
|
|
43
|
-
<button type="button" class="btn btn-primary btn-xs">Extra Small</button>`;
|
|
44
|
-
|
|
45
|
-
buttonStatesCode = `<button type="button" class="btn btn-primary">Normal</button>
|
|
46
|
-
<button type="button" class="btn btn-primary active">Active</button>
|
|
47
|
-
<button type="button" class="btn btn-primary" disabled>Disabled</button>`;
|
|
48
|
-
|
|
49
|
-
buttonIconLeftCode = `<button type="button" class="btn btn-primary btn-icon">
|
|
50
|
-
<i class="bi bi-download"></i>Download
|
|
51
|
-
</button>
|
|
52
|
-
<button type="button" class="btn btn-neutral btn-icon">
|
|
53
|
-
<i class="bi bi-upload"></i>Upload
|
|
54
|
-
</button>
|
|
55
|
-
<button type="button" class="btn btn-secondary btn-icon">
|
|
56
|
-
<i class="bi bi-pencil"></i>Edit
|
|
57
|
-
</button>
|
|
58
|
-
<button type="button" class="btn btn-subtle btn-icon">
|
|
59
|
-
<i class="bi bi-eye"></i>View
|
|
60
|
-
</button>
|
|
61
|
-
<button type="button" class="btn btn-transparent btn-icon">
|
|
62
|
-
<i class="bi bi-link"></i>Link
|
|
63
|
-
</button>
|
|
64
|
-
<button type="button" class="btn btn-destructive-primary btn-icon">
|
|
65
|
-
<i class="bi bi-trash"></i>Delete
|
|
66
|
-
</button>
|
|
67
|
-
<button type="button" class="btn btn-destructive-secondary btn-icon">
|
|
68
|
-
<i class="bi bi-x-circle"></i>Cancel
|
|
69
|
-
</button>`;
|
|
70
|
-
|
|
71
|
-
buttonIconRightCode = `<button type="button" class="btn btn-primary btn-icon">
|
|
72
|
-
Save<i class="bi bi-check"></i>
|
|
73
|
-
</button>
|
|
74
|
-
<button type="button" class="btn btn-neutral btn-icon">
|
|
75
|
-
Search<i class="bi bi-search"></i>
|
|
76
|
-
</button>
|
|
77
|
-
<button type="button" class="btn btn-secondary btn-icon">
|
|
78
|
-
Settings<i class="bi bi-gear"></i>
|
|
79
|
-
</button>`;
|
|
80
|
-
|
|
81
|
-
buttonIconOnlyCode = `<button type="button" class="btn btn-primary btn-icon" aria-label="Download">
|
|
82
|
-
<i class="bi bi-download"></i>
|
|
83
|
-
</button>
|
|
84
|
-
<button type="button" class="btn btn-neutral btn-icon" aria-label="Upload">
|
|
85
|
-
<i class="bi bi-upload"></i>
|
|
86
|
-
</button>
|
|
87
|
-
<button type="button" class="btn btn-secondary btn-icon" aria-label="Edit">
|
|
88
|
-
<i class="bi bi-pencil"></i>
|
|
89
|
-
</button>
|
|
90
|
-
<button type="button" class="btn btn-destructive-primary btn-icon" aria-label="Delete">
|
|
91
|
-
<i class="bi bi-trash"></i>
|
|
92
|
-
</button>`;
|
|
93
|
-
|
|
94
|
-
dropdownButtonCode = `<div class="dropdown">
|
|
95
|
-
<button class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
96
|
-
Dropdown Primary
|
|
97
|
-
</button>
|
|
98
|
-
<ul class="dropdown-menu">
|
|
99
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
100
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
101
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
102
|
-
</ul>
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<div class="dropdown">
|
|
106
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
107
|
-
Dropdown Neutral
|
|
108
|
-
</button>
|
|
109
|
-
<ul class="dropdown-menu">
|
|
110
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
111
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
112
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
113
|
-
</ul>
|
|
114
|
-
</div>
|
|
115
|
-
|
|
116
|
-
<div class="dropdown">
|
|
117
|
-
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
118
|
-
Dropdown Secondary
|
|
119
|
-
</button>
|
|
120
|
-
<ul class="dropdown-menu">
|
|
121
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
122
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
123
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
124
|
-
</ul>
|
|
125
|
-
</div>
|
|
126
|
-
|
|
127
|
-
<div class="dropdown">
|
|
128
|
-
<button class="btn btn-subtle dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
129
|
-
Subtle
|
|
130
|
-
</button>
|
|
131
|
-
<ul class="dropdown-menu">
|
|
132
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
133
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
134
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
135
|
-
</ul>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
<div class="dropdown">
|
|
139
|
-
<button class="btn btn-transparent dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
140
|
-
Transparent
|
|
141
|
-
</button>
|
|
142
|
-
<ul class="dropdown-menu">
|
|
143
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
144
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
145
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
146
|
-
</ul>
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
<div class="dropdown">
|
|
150
|
-
<button class="btn btn-destructive-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
151
|
-
Destructive Primary
|
|
152
|
-
</button>
|
|
153
|
-
<ul class="dropdown-menu">
|
|
154
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
155
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
156
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
157
|
-
</ul>
|
|
158
|
-
</div>`;
|
|
159
|
-
|
|
160
|
-
dropdownSizesCode = `<div class="dropdown">
|
|
161
|
-
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
162
|
-
Large
|
|
163
|
-
</button>
|
|
164
|
-
<ul class="dropdown-menu">
|
|
165
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
166
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
167
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
168
|
-
</ul>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<div class="dropdown">
|
|
172
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
173
|
-
Default
|
|
174
|
-
</button>
|
|
175
|
-
<ul class="dropdown-menu">
|
|
176
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
177
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
178
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
179
|
-
</ul>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<div class="dropdown">
|
|
183
|
-
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
184
|
-
Small
|
|
185
|
-
</button>
|
|
186
|
-
<ul class="dropdown-menu">
|
|
187
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
188
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
189
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
190
|
-
</ul>
|
|
191
|
-
</div>`;
|
|
192
|
-
|
|
193
|
-
iconDropdownCode = `<div class="dropdown">
|
|
194
|
-
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
195
|
-
<i class="bi bi-gear"></i>
|
|
196
|
-
</button>
|
|
197
|
-
<ul class="dropdown-menu">
|
|
198
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
199
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
200
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
201
|
-
</ul>
|
|
202
|
-
</div>
|
|
203
|
-
|
|
204
|
-
<div class="dropdown">
|
|
205
|
-
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
206
|
-
<i class="bi bi-gear"></i>
|
|
207
|
-
</button>
|
|
208
|
-
<ul class="dropdown-menu">
|
|
209
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
210
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
211
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
212
|
-
</ul>
|
|
213
|
-
</div>
|
|
214
|
-
|
|
215
|
-
<div class="dropdown">
|
|
216
|
-
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
217
|
-
<i class="bi bi-gear"></i>
|
|
218
|
-
</button>
|
|
219
|
-
<ul class="dropdown-menu">
|
|
220
|
-
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
221
|
-
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
222
|
-
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
223
|
-
</ul>
|
|
224
|
-
</div>`;
|
|
225
|
-
}
|