sdga-ui 1.0.6 → 1.0.8
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/README.md +4 -4
- package/css/dga-ui.css +571 -220
- package/css/dga-ui.css.map +1 -1
- package/demo-angular/angular.json +3 -0
- package/demo-angular/package-lock.json +41 -41
- package/demo-angular/package.json +8 -8
- package/demo-angular/public/404.html +35 -0
- package/demo-angular/public/i18n/ar.json +47 -0
- package/demo-angular/public/i18n/en.json +47 -0
- package/demo-angular/src/app/app.html +1 -1
- package/demo-angular/src/app/app.routes.ts +8 -4
- package/demo-angular/src/app/app.ts +11 -2
- package/demo-angular/src/app/shared/code-example/code-example.component.html +1 -1
- package/demo-angular/src/app/shared/code-example/code-example.component.ts +12 -1
- package/demo-angular/src/app/views/alerts/alerts.component.html +10 -10
- package/demo-angular/src/app/views/alerts/alerts.component.ts +10 -10
- package/demo-angular/src/app/views/buttons/buttons.component.html +118 -47
- package/demo-angular/src/app/views/buttons/buttons.component.scss +0 -3
- package/demo-angular/src/app/views/buttons/buttons.component.ts +91 -21
- package/demo-angular/src/app/views/cards/cards.component.html +6 -6
- package/demo-angular/src/app/views/cards/cards.component.ts +10 -10
- package/demo-angular/src/app/views/footer/footer.html +270 -0
- package/demo-angular/src/app/views/footer/footer.ts +276 -0
- package/demo-angular/src/app/views/header/header.html +1 -0
- package/demo-angular/src/app/views/header/header.scss +0 -0
- package/demo-angular/src/app/views/header/header.spec.ts +23 -0
- package/demo-angular/src/app/views/header/header.ts +11 -0
- package/demo-angular/src/app/views/home/home.component.html +0 -5
- package/demo-angular/src/app/views/links/links.component.html +2 -2
- package/demo-angular/src/app/views/links/links.component.ts +1 -1
- package/demo-angular/src/app/views/toasts/toasts.component.html +7 -7
- package/demo-angular/src/app/views/toasts/toasts.component.ts +7 -7
- package/demo-angular/src/index.html +15 -1
- package/demo-angular/tsconfig.app.json +2 -1
- package/package.json +2 -2
- package/sdga-ui/README.md +45 -0
- package/sdga-ui/content/docs/components/alerts.mdx +475 -0
- package/sdga-ui/content/docs/index.mdx +239 -0
- package/sdga-ui/next.config.mjs +10 -0
- package/sdga-ui/package-lock.json +5851 -0
- package/sdga-ui/package.json +32 -0
- package/sdga-ui/postcss.config.mjs +5 -0
- package/sdga-ui/source.config.ts +27 -0
- package/sdga-ui/src/app/(home)/layout.tsx +6 -0
- package/sdga-ui/src/app/(home)/page.tsx +202 -0
- package/sdga-ui/src/app/api/search/route.ts +7 -0
- package/sdga-ui/src/app/docs/[[...slug]]/page.tsx +54 -0
- package/sdga-ui/src/app/docs/layout.tsx +11 -0
- package/sdga-ui/src/app/global.css +3 -0
- package/sdga-ui/src/app/layout.tsx +25 -0
- package/sdga-ui/src/app/llms-full.txt/route.ts +10 -0
- package/sdga-ui/src/app/og/docs/[...slug]/route.tsx +34 -0
- package/sdga-ui/src/app/sdga-scoped.css +7 -0
- package/sdga-ui/src/components/sdga-preview.tsx +105 -0
- package/sdga-ui/src/lib/layout.shared.tsx +9 -0
- package/sdga-ui/src/lib/source.ts +27 -0
- package/sdga-ui/src/mdx-components.tsx +9 -0
- package/sdga-ui/tsconfig.json +46 -0
- package/theme/_variables.scss +6 -5
- package/theme/components/_buttons.scss +1 -197
- package/theme/config/_base.scss +11 -1
- package/theme/customizations/_alerts.scss +115 -126
- package/theme/customizations/_badges.scss +15 -0
- package/theme/customizations/_buttons.scss +349 -146
- package/theme/customizations/_cards.scss +52 -0
- package/theme/customizations/_footer.scss +160 -0
- package/theme/customizations/_global.scss +20 -2
- package/theme/customizations/_links.scss +62 -45
- package/theme/customizations/_toasts.scss +92 -114
- package/theme/dga-ui.scss +2 -1
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.html +0 -14
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.scss +0 -91
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.ts +0 -23
|
@@ -12,7 +12,7 @@ import { CodeExampleComponent } from '../../shared/code-example/code-example.com
|
|
|
12
12
|
export class AlertsComponent {
|
|
13
13
|
// Standard Dismissible Alerts
|
|
14
14
|
successAlertCode = `<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
15
|
-
<i class="
|
|
15
|
+
<i class="bi bi-check alert-icon"></i>
|
|
16
16
|
<div>
|
|
17
17
|
<strong class="alert-title">Success!</strong> Your action completed successfully.
|
|
18
18
|
<div class="alert-footer">
|
|
@@ -24,7 +24,7 @@ export class AlertsComponent {
|
|
|
24
24
|
</div>`;
|
|
25
25
|
|
|
26
26
|
dangerAlertCode = `<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
|
27
|
-
<i class="
|
|
27
|
+
<i class="bi bi-exclamation-circle alert-icon"></i>
|
|
28
28
|
<div>
|
|
29
29
|
<strong class="alert-title">Error!</strong> Something went wrong with your request.
|
|
30
30
|
<div class="alert-footer">
|
|
@@ -36,7 +36,7 @@ export class AlertsComponent {
|
|
|
36
36
|
</div>`;
|
|
37
37
|
|
|
38
38
|
warningAlertCode = `<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
|
39
|
-
<i class="
|
|
39
|
+
<i class="bi bi-exclamation-triangle alert-icon"></i>
|
|
40
40
|
<div>
|
|
41
41
|
<strong class="alert-title">Warning!</strong> Please review before proceeding.
|
|
42
42
|
<div class="alert-footer">
|
|
@@ -48,7 +48,7 @@ export class AlertsComponent {
|
|
|
48
48
|
</div>`;
|
|
49
49
|
|
|
50
50
|
infoAlertCode = `<div class="alert alert-info alert-dismissible fade show" role="alert">
|
|
51
|
-
<i class="
|
|
51
|
+
<i class="bi bi-info-circle alert-icon"></i>
|
|
52
52
|
<div>
|
|
53
53
|
<strong class="alert-title">Info</strong> Here's some helpful information.
|
|
54
54
|
<div class="alert-footer">
|
|
@@ -60,7 +60,7 @@ export class AlertsComponent {
|
|
|
60
60
|
</div>`;
|
|
61
61
|
|
|
62
62
|
neutralAlertCode = `<div class="alert alert-neutral alert-dismissible fade show" role="alert">
|
|
63
|
-
<i class="
|
|
63
|
+
<i class="bi bi-info-circle alert-icon"></i>
|
|
64
64
|
<div>
|
|
65
65
|
<strong class="alert-title">Neutral</strong> Standard notification message.
|
|
66
66
|
<div class="alert-footer">
|
|
@@ -73,7 +73,7 @@ export class AlertsComponent {
|
|
|
73
73
|
|
|
74
74
|
// Side-bordered Alerts
|
|
75
75
|
sideSuccessAlertCode = `<div class="alert alert-side alert-success alert-dismissible fade show" role="alert">
|
|
76
|
-
<i class="
|
|
76
|
+
<i class="bi bi-check alert-icon"></i>
|
|
77
77
|
<div>
|
|
78
78
|
<strong class="alert-title">Success!</strong> Your action completed successfully.
|
|
79
79
|
<div class="alert-footer">
|
|
@@ -85,7 +85,7 @@ export class AlertsComponent {
|
|
|
85
85
|
</div>`;
|
|
86
86
|
|
|
87
87
|
sideDangerAlertCode = `<div class="alert alert-side alert-danger alert-dismissible fade show" role="alert">
|
|
88
|
-
<i class="
|
|
88
|
+
<i class="bi bi-exclamation-circle alert-icon"></i>
|
|
89
89
|
<div>
|
|
90
90
|
<strong class="alert-title">Error!</strong> Something went wrong with your request.
|
|
91
91
|
<div class="alert-footer">
|
|
@@ -97,7 +97,7 @@ export class AlertsComponent {
|
|
|
97
97
|
</div>`;
|
|
98
98
|
|
|
99
99
|
sideWarningAlertCode = `<div class="alert alert-side alert-warning alert-dismissible fade show" role="alert">
|
|
100
|
-
<i class="
|
|
100
|
+
<i class="bi bi-exclamation-triangle alert-icon"></i>
|
|
101
101
|
<div>
|
|
102
102
|
<strong class="alert-title">Warning!</strong> Please review before proceeding.
|
|
103
103
|
<div class="alert-footer">
|
|
@@ -109,7 +109,7 @@ export class AlertsComponent {
|
|
|
109
109
|
</div>`;
|
|
110
110
|
|
|
111
111
|
sideInfoAlertCode = `<div class="alert alert-side alert-info alert-dismissible fade show" role="alert">
|
|
112
|
-
<i class="
|
|
112
|
+
<i class="bi bi-info-circle alert-icon"></i>
|
|
113
113
|
<div>
|
|
114
114
|
<strong class="alert-title">Info</strong> Here's some helpful information.
|
|
115
115
|
<div class="alert-footer">
|
|
@@ -121,7 +121,7 @@ export class AlertsComponent {
|
|
|
121
121
|
</div>`;
|
|
122
122
|
|
|
123
123
|
sideNeutralAlertCode = `<div class="alert alert-side alert-neutral alert-dismissible fade show" role="alert">
|
|
124
|
-
<i class="
|
|
124
|
+
<i class="bi bi-info-circle alert-icon"></i>
|
|
125
125
|
<div>
|
|
126
126
|
<strong class="alert-title">Neutral</strong> Standard notification message.
|
|
127
127
|
<div class="alert-footer">
|
|
@@ -5,19 +5,45 @@
|
|
|
5
5
|
<section class="demo-section">
|
|
6
6
|
<h2>{{ 'buttons.section_solid' | translate }}</h2>
|
|
7
7
|
<div class="component-showcase">
|
|
8
|
-
<button type="button" class="btn btn-primary">
|
|
9
|
-
<button type="button" class="btn btn-neutral">
|
|
10
|
-
<button type="button" class="btn btn-secondary">
|
|
11
|
-
<button type="button" class="btn btn-
|
|
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>
|
|
12
13
|
</div>
|
|
13
14
|
<app-code-example [htmlCode]="solidButtonsCode"></app-code-example>
|
|
14
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
|
+
|
|
15
43
|
<h3 class="mt-5">{{ 'buttons.section_outline' | translate }}</h3>
|
|
16
44
|
<div class="component-showcase">
|
|
17
|
-
<button type="button" class="btn btn-outline-primary">{{ 'buttons.primary' | translate }}</button>
|
|
18
45
|
<button type="button" class="btn btn-outline-secondary">{{ 'buttons.secondary' | translate }}</button>
|
|
19
|
-
<button type="button" class="btn btn-outline-
|
|
20
|
-
<button type="button" class="btn btn-outline-danger">{{ 'buttons.danger' | translate }}</button>
|
|
46
|
+
<button type="button" class="btn btn-destructive-outline-secondary">{{ 'buttons.danger' | translate }}</button>
|
|
21
47
|
</div>
|
|
22
48
|
<app-code-example [htmlCode]="outlineButtonsCode"></app-code-example>
|
|
23
49
|
|
|
@@ -46,88 +72,122 @@
|
|
|
46
72
|
<button type="button" class="btn btn-secondary active">{{ 'buttons.active' | translate }}</button>
|
|
47
73
|
<button type="button" class="btn btn-secondary" disabled>{{ 'buttons.disabled' | translate }}</button>
|
|
48
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>
|
|
49
100
|
<div class="component-showcase">
|
|
50
|
-
<button type="button" class="btn btn-
|
|
51
|
-
<button type="button" class="btn btn-
|
|
52
|
-
<button type="button" class="btn btn-
|
|
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>
|
|
53
104
|
</div>
|
|
54
105
|
<app-code-example [htmlCode]="buttonStatesCode"></app-code-example>
|
|
55
106
|
|
|
56
107
|
<h3 class="mt-5">{{ 'buttons.section_icons' | translate }}</h3>
|
|
57
108
|
<div class="component-showcase mb-3">
|
|
58
109
|
<button type="button" class="btn btn-primary btn-icon">
|
|
59
|
-
<i class="
|
|
110
|
+
<i class="bi bi-download"></i>{{ 'buttons.download' | translate }}
|
|
60
111
|
</button>
|
|
61
112
|
<button type="button" class="btn btn-neutral btn-icon">
|
|
62
|
-
<i class="
|
|
113
|
+
<i class="bi bi-upload"></i>{{ 'buttons.upload' | translate }}
|
|
63
114
|
</button>
|
|
64
115
|
<button type="button" class="btn btn-secondary btn-icon">
|
|
65
|
-
<i class="
|
|
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
|
|
66
123
|
</button>
|
|
67
|
-
<button type="button" class="btn btn-
|
|
68
|
-
<i class="
|
|
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
|
|
69
129
|
</button>
|
|
70
130
|
</div>
|
|
71
131
|
<app-code-example [htmlCode]="buttonIconLeftCode"></app-code-example>
|
|
72
132
|
<div class="component-showcase mb-3">
|
|
73
133
|
<button type="button" class="btn btn-primary btn-icon">
|
|
74
|
-
{{ 'buttons.save' | translate }}<i class="
|
|
134
|
+
{{ 'buttons.save' | translate }}<i class="bi bi-check"></i>
|
|
75
135
|
</button>
|
|
76
136
|
<button type="button" class="btn btn-neutral btn-icon">
|
|
77
|
-
{{ 'buttons.search' | translate }}<i class="
|
|
137
|
+
{{ 'buttons.search' | translate }}<i class="bi bi-search"></i>
|
|
78
138
|
</button>
|
|
79
139
|
<button type="button" class="btn btn-secondary btn-icon">
|
|
80
|
-
{{ 'buttons.settings' | translate }}<i class="
|
|
140
|
+
{{ 'buttons.settings' | translate }}<i class="bi bi-gear"></i>
|
|
81
141
|
</button>
|
|
82
142
|
</div>
|
|
83
143
|
<app-code-example [htmlCode]="buttonIconRightCode"></app-code-example>
|
|
84
144
|
<div class="component-showcase mb-3">
|
|
85
145
|
<button type="button" class="btn btn-primary btn-icon btn-sm">
|
|
86
|
-
<i class="
|
|
146
|
+
<i class="bi bi-plus-circle"></i>{{ 'buttons.add' | translate }}
|
|
87
147
|
</button>
|
|
88
|
-
<button type="button" class="btn btn-outline-
|
|
89
|
-
<i class="
|
|
148
|
+
<button type="button" class="btn btn-outline-secondary btn-icon">
|
|
149
|
+
<i class="bi bi-arrow-right"></i>{{ 'buttons.next' | translate }}
|
|
90
150
|
</button>
|
|
91
151
|
<button type="button" class="btn btn-outline-secondary btn-icon">
|
|
92
|
-
<i class="
|
|
152
|
+
<i class="bi bi-arrow-left"></i>{{ 'buttons.previous' | translate }}
|
|
93
153
|
</button>
|
|
94
154
|
</div>
|
|
95
155
|
|
|
96
156
|
<h3 class="mt-5">{{ 'buttons.section_icon_only' | translate }}</h3>
|
|
97
157
|
<div class="component-showcase mb-3">
|
|
98
158
|
<button type="button" class="btn btn-primary btn-icon" aria-label="{{ 'buttons.download' | translate }}">
|
|
99
|
-
<i class="
|
|
159
|
+
<i class="bi bi-download"></i>
|
|
100
160
|
</button>
|
|
101
161
|
<button type="button" class="btn btn-neutral btn-icon" aria-label="{{ 'buttons.upload' | translate }}">
|
|
102
|
-
<i class="
|
|
162
|
+
<i class="bi bi-upload"></i>
|
|
103
163
|
</button>
|
|
104
164
|
<button type="button" class="btn btn-secondary btn-icon" aria-label="{{ 'buttons.edit' | translate }}">
|
|
105
|
-
<i class="
|
|
165
|
+
<i class="bi bi-pencil"></i>
|
|
106
166
|
</button>
|
|
107
|
-
<button type="button" class="btn btn-
|
|
108
|
-
<i class="
|
|
167
|
+
<button type="button" class="btn btn-destructive-primary btn-icon" aria-label="{{ 'buttons.delete' | translate }}">
|
|
168
|
+
<i class="bi bi-trash"></i>
|
|
109
169
|
</button>
|
|
110
170
|
</div>
|
|
111
171
|
<div class="component-showcase mb-3">
|
|
112
|
-
<button type="button" class="btn btn-outline-
|
|
113
|
-
<i class="
|
|
172
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.search' | translate }}">
|
|
173
|
+
<i class="bi bi-search"></i>
|
|
114
174
|
</button>
|
|
115
175
|
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.settings' | translate }}">
|
|
116
|
-
<i class="
|
|
176
|
+
<i class="bi bi-gear"></i>
|
|
117
177
|
</button>
|
|
118
|
-
<button type="button" class="btn btn-outline-
|
|
119
|
-
<i class="
|
|
178
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="{{ 'buttons.add' | translate }}">
|
|
179
|
+
<i class="bi bi-plus-circle"></i>
|
|
120
180
|
</button>
|
|
121
181
|
</div>
|
|
122
182
|
<div class="component-showcase">
|
|
123
183
|
<button type="button" class="btn btn-primary btn-icon" aria-label="{{ 'buttons.search' | translate }}">
|
|
124
|
-
<i class="
|
|
184
|
+
<i class="bi bi-search"></i>
|
|
125
185
|
</button>
|
|
126
186
|
<button type="button" class="btn btn-neutral btn-icon btn-sm" aria-label="{{ 'buttons.settings' | translate }}">
|
|
127
|
-
<i class="
|
|
187
|
+
<i class="bi bi-gear"></i>
|
|
128
188
|
</button>
|
|
129
189
|
<button type="button" class="btn btn-secondary btn-icon btn-xs" aria-label="{{ 'buttons.add' | translate }}">
|
|
130
|
-
<i class="
|
|
190
|
+
<i class="bi bi-plus-circle"></i>
|
|
131
191
|
</button>
|
|
132
192
|
</div>
|
|
133
193
|
<app-code-example [htmlCode]="buttonIconOnlyCode"></app-code-example>
|
|
@@ -168,8 +228,8 @@
|
|
|
168
228
|
</div>
|
|
169
229
|
|
|
170
230
|
<div class="dropdown">
|
|
171
|
-
<button class="btn btn-
|
|
172
|
-
|
|
231
|
+
<button class="btn btn-subtle dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
232
|
+
Subtle
|
|
173
233
|
</button>
|
|
174
234
|
<ul class="dropdown-menu">
|
|
175
235
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
@@ -177,13 +237,10 @@
|
|
|
177
237
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_something' | translate }}</button></li>
|
|
178
238
|
</ul>
|
|
179
239
|
</div>
|
|
180
|
-
|
|
181
|
-
<app-code-example [htmlCode]="dropdownButtonCode"></app-code-example>
|
|
182
|
-
|
|
183
|
-
<div class="component-showcase mb-3">
|
|
240
|
+
|
|
184
241
|
<div class="dropdown">
|
|
185
|
-
<button class="btn btn-
|
|
186
|
-
|
|
242
|
+
<button class="btn btn-transparent dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
243
|
+
Transparent
|
|
187
244
|
</button>
|
|
188
245
|
<ul class="dropdown-menu">
|
|
189
246
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
@@ -192,6 +249,20 @@
|
|
|
192
249
|
</ul>
|
|
193
250
|
</div>
|
|
194
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">
|
|
195
266
|
<div class="dropdown">
|
|
196
267
|
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
197
268
|
{{ 'buttons.dropdown_outline' | translate }}
|
|
@@ -204,7 +275,7 @@
|
|
|
204
275
|
</div>
|
|
205
276
|
|
|
206
277
|
<div class="dropdown">
|
|
207
|
-
<button class="btn btn-outline-
|
|
278
|
+
<button class="btn btn-destructive-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
208
279
|
{{ 'buttons.dropdown_outline' | translate }}
|
|
209
280
|
</button>
|
|
210
281
|
<ul class="dropdown-menu">
|
|
@@ -253,7 +324,7 @@
|
|
|
253
324
|
<div class="component-showcase">
|
|
254
325
|
<div class="dropdown">
|
|
255
326
|
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
256
|
-
<i class="
|
|
327
|
+
<i class="bi bi-gear"></i>
|
|
257
328
|
</button>
|
|
258
329
|
<ul class="dropdown-menu">
|
|
259
330
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
@@ -264,7 +335,7 @@
|
|
|
264
335
|
|
|
265
336
|
<div class="dropdown">
|
|
266
337
|
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
267
|
-
<i class="
|
|
338
|
+
<i class="bi bi-gear"></i>
|
|
268
339
|
</button>
|
|
269
340
|
<ul class="dropdown-menu">
|
|
270
341
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
@@ -275,7 +346,7 @@
|
|
|
275
346
|
|
|
276
347
|
<div class="dropdown">
|
|
277
348
|
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
278
|
-
<i class="
|
|
349
|
+
<i class="bi bi-gear"></i>
|
|
279
350
|
</button>
|
|
280
351
|
<ul class="dropdown-menu">
|
|
281
352
|
<li><button class="dropdown-item" type="button">{{ 'buttons.dropdown_action' | translate }}</button></li>
|
|
@@ -13,12 +13,29 @@ export class ButtonsComponent {
|
|
|
13
13
|
solidButtonsCode = `<button type="button" class="btn btn-primary">Primary</button>
|
|
14
14
|
<button type="button" class="btn btn-neutral">Neutral</button>
|
|
15
15
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
16
|
-
<button type="button" class="btn btn-
|
|
16
|
+
<button type="button" class="btn btn-subtle">Subtle</button>
|
|
17
|
+
<button type="button" class="btn btn-transparent">Transparent</button>`;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
<button type="button" class="btn btn-
|
|
20
|
-
<button type="button" class="btn btn-
|
|
21
|
-
<button type="button" class="btn btn-
|
|
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>`;
|
|
22
39
|
|
|
23
40
|
buttonSizesCode = `<button type="button" class="btn btn-primary btn-lg">Large</button>
|
|
24
41
|
<button type="button" class="btn btn-primary">Default</button>
|
|
@@ -30,39 +47,48 @@ export class ButtonsComponent {
|
|
|
30
47
|
<button type="button" class="btn btn-primary" disabled>Disabled</button>`;
|
|
31
48
|
|
|
32
49
|
buttonIconLeftCode = `<button type="button" class="btn btn-primary btn-icon">
|
|
33
|
-
<i class="
|
|
50
|
+
<i class="bi bi-download"></i>Download
|
|
34
51
|
</button>
|
|
35
52
|
<button type="button" class="btn btn-neutral btn-icon">
|
|
36
|
-
<i class="
|
|
53
|
+
<i class="bi bi-upload"></i>Upload
|
|
37
54
|
</button>
|
|
38
55
|
<button type="button" class="btn btn-secondary btn-icon">
|
|
39
|
-
<i class="
|
|
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
|
|
40
60
|
</button>
|
|
41
|
-
<button type="button" class="btn btn-
|
|
42
|
-
<i class="
|
|
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
|
|
43
69
|
</button>`;
|
|
44
70
|
|
|
45
71
|
buttonIconRightCode = `<button type="button" class="btn btn-primary btn-icon">
|
|
46
|
-
Save<i class="
|
|
72
|
+
Save<i class="bi bi-check"></i>
|
|
47
73
|
</button>
|
|
48
74
|
<button type="button" class="btn btn-neutral btn-icon">
|
|
49
|
-
Search<i class="
|
|
75
|
+
Search<i class="bi bi-search"></i>
|
|
50
76
|
</button>
|
|
51
77
|
<button type="button" class="btn btn-secondary btn-icon">
|
|
52
|
-
Settings<i class="
|
|
78
|
+
Settings<i class="bi bi-gear"></i>
|
|
53
79
|
</button>`;
|
|
54
80
|
|
|
55
81
|
buttonIconOnlyCode = `<button type="button" class="btn btn-primary btn-icon" aria-label="Download">
|
|
56
|
-
<i class="
|
|
82
|
+
<i class="bi bi-download"></i>
|
|
57
83
|
</button>
|
|
58
84
|
<button type="button" class="btn btn-neutral btn-icon" aria-label="Upload">
|
|
59
|
-
<i class="
|
|
85
|
+
<i class="bi bi-upload"></i>
|
|
60
86
|
</button>
|
|
61
87
|
<button type="button" class="btn btn-secondary btn-icon" aria-label="Edit">
|
|
62
|
-
<i class="
|
|
88
|
+
<i class="bi bi-pencil"></i>
|
|
63
89
|
</button>
|
|
64
|
-
<button type="button" class="btn btn-
|
|
65
|
-
<i class="
|
|
90
|
+
<button type="button" class="btn btn-destructive-primary btn-icon" aria-label="Delete">
|
|
91
|
+
<i class="bi bi-trash"></i>
|
|
66
92
|
</button>`;
|
|
67
93
|
|
|
68
94
|
dropdownButtonCode = `<div class="dropdown">
|
|
@@ -85,6 +111,50 @@ export class ButtonsComponent {
|
|
|
85
111
|
<li><button class="dropdown-item" type="button">Another action</button></li>
|
|
86
112
|
<li><button class="dropdown-item" type="button">Something else here</button></li>
|
|
87
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>
|
|
88
158
|
</div>`;
|
|
89
159
|
|
|
90
160
|
dropdownSizesCode = `<div class="dropdown">
|
|
@@ -122,7 +192,7 @@ export class ButtonsComponent {
|
|
|
122
192
|
|
|
123
193
|
iconDropdownCode = `<div class="dropdown">
|
|
124
194
|
<button class="btn btn-primary dropdown-toggle btn-lg" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
125
|
-
<i class="
|
|
195
|
+
<i class="bi bi-gear"></i>
|
|
126
196
|
</button>
|
|
127
197
|
<ul class="dropdown-menu">
|
|
128
198
|
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
@@ -133,7 +203,7 @@ export class ButtonsComponent {
|
|
|
133
203
|
|
|
134
204
|
<div class="dropdown">
|
|
135
205
|
<button class="btn btn-neutral dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
136
|
-
<i class="
|
|
206
|
+
<i class="bi bi-gear"></i>
|
|
137
207
|
</button>
|
|
138
208
|
<ul class="dropdown-menu">
|
|
139
209
|
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
@@ -144,7 +214,7 @@ export class ButtonsComponent {
|
|
|
144
214
|
|
|
145
215
|
<div class="dropdown">
|
|
146
216
|
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
147
|
-
<i class="
|
|
217
|
+
<i class="bi bi-gear"></i>
|
|
148
218
|
</button>
|
|
149
219
|
<ul class="dropdown-menu">
|
|
150
220
|
<li><button class="dropdown-item" type="button">Action</button></li>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="card" tabindex="0">
|
|
12
12
|
<div class="card-body">
|
|
13
13
|
<h5 class="card-title">
|
|
14
|
-
<i class="
|
|
14
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
15
15
|
</h5>
|
|
16
16
|
<h6 class="card-subtitle mb-2">{{ 'cards.card_title' | translate }}</h6>
|
|
17
17
|
<p class="card-text">{{ 'cards.card_text' | translate }}</p>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="card disabled" tabindex="0">
|
|
50
50
|
<div class="card-body">
|
|
51
51
|
<h5 class="card-title">
|
|
52
|
-
<i class="
|
|
52
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
53
53
|
<input class="card-title-checked form-check-input ripple" disabled type="checkbox" value="" id="check1" aria-label="{{ 'cards.select_card' | translate }}">
|
|
54
54
|
</h5>
|
|
55
55
|
<h6 class="card-subtitle mb-2">{{ 'cards.card_title' | translate }}</h6>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<div class="card" tabindex="0" [class.expanded]="isExpanded(1)">
|
|
89
89
|
<div class="card-body">
|
|
90
90
|
<h5 class="card-title">
|
|
91
|
-
<i class="
|
|
91
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
92
92
|
<input class="card-title-checked form-check-input ripple" type="checkbox" value="" id="check3" aria-label="{{ 'cards.select_card' | translate }}">
|
|
93
93
|
</h5>
|
|
94
94
|
<h6 class="card-subtitle mb-2">{{ 'cards.expandable_title' | translate }}</h6>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
<div class="card-footer">
|
|
109
|
-
<i class="
|
|
109
|
+
<i class="bi card-expanded-icon" [class.bi-chevron-up]="isExpanded(1)" [class.bi-chevron-down]="!isExpanded(1)" (click)="toggleCard(1)"></i>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<div class="card" tabindex="0" [class.expanded]="isExpanded(2)">
|
|
123
123
|
<div class="card-body">
|
|
124
124
|
<h5 class="card-title">
|
|
125
|
-
<i class="
|
|
125
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
126
126
|
</h5>
|
|
127
127
|
<h6 class="card-subtitle mb-2">{{ 'cards.expandable_title' | translate }}</h6>
|
|
128
128
|
<p class="card-text">{{ 'cards.expandable_text' | translate }}</p>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
<div class="card-footer">
|
|
146
|
-
<i class="
|
|
146
|
+
<i class="bi card-expanded-icon" [class.bi-chevron-up]="isExpanded(2)" [class.bi-chevron-down]="!isExpanded(2)" (click)="toggleCard(2)"></i>
|
|
147
147
|
</div>
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|