sdga-ui 1.0.3 → 1.0.5

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.
Files changed (76) hide show
  1. package/.github/workflows/deploy.yml +57 -0
  2. package/.github/workflows/publish.yml +2 -4
  3. package/README.md +8 -0
  4. package/css/dga-ui.css +60 -30
  5. package/css/dga-ui.css.map +1 -1
  6. package/demo-angular/.editorconfig +17 -0
  7. package/demo-angular/.vscode/extensions.json +4 -0
  8. package/demo-angular/.vscode/launch.json +20 -0
  9. package/demo-angular/.vscode/tasks.json +42 -0
  10. package/demo-angular/README.md +59 -0
  11. package/demo-angular/angular.json +88 -0
  12. package/demo-angular/package-lock.json +10459 -0
  13. package/demo-angular/package.json +50 -0
  14. package/demo-angular/public/.nojekyll +0 -0
  15. package/demo-angular/public/favicon.ico +0 -0
  16. package/demo-angular/public/i18n/ar.json +239 -0
  17. package/demo-angular/public/i18n/en.json +239 -0
  18. package/demo-angular/src/app/app.config.ts +20 -0
  19. package/demo-angular/src/app/app.html +52 -0
  20. package/demo-angular/src/app/app.routes.ts +45 -0
  21. package/demo-angular/src/app/app.scss +430 -0
  22. package/demo-angular/src/app/app.spec.ts +23 -0
  23. package/demo-angular/src/app/app.ts +88 -0
  24. package/demo-angular/src/app/shared/code-example/code-example.component.html +30 -0
  25. package/demo-angular/src/app/shared/code-example/code-example.component.scss +183 -0
  26. package/demo-angular/src/app/shared/code-example/code-example.component.ts +78 -0
  27. package/demo-angular/src/app/views/alerts/alerts.component.html +155 -0
  28. package/demo-angular/src/app/views/alerts/alerts.component.scss +3 -0
  29. package/demo-angular/src/app/views/alerts/alerts.component.ts +134 -0
  30. package/demo-angular/src/app/views/bootstrap/bootstrap.component.html +14 -0
  31. package/demo-angular/src/app/views/bootstrap/bootstrap.component.scss +91 -0
  32. package/demo-angular/src/app/views/bootstrap/bootstrap.component.ts +23 -0
  33. package/demo-angular/src/app/views/buttons/buttons.component.html +289 -0
  34. package/demo-angular/src/app/views/buttons/buttons.component.scss +14 -0
  35. package/demo-angular/src/app/views/buttons/buttons.component.ts +155 -0
  36. package/demo-angular/src/app/views/cards/cards.component.html +156 -0
  37. package/demo-angular/src/app/views/cards/cards.component.html.backup +156 -0
  38. package/demo-angular/src/app/views/cards/cards.component.scss +11 -0
  39. package/demo-angular/src/app/views/cards/cards.component.ts +194 -0
  40. package/demo-angular/src/app/views/forms/forms.component.html +347 -0
  41. package/demo-angular/src/app/views/forms/forms.component.scss +3 -0
  42. package/demo-angular/src/app/views/forms/forms.component.ts +222 -0
  43. package/demo-angular/src/app/views/home/home.component.html +38 -0
  44. package/demo-angular/src/app/views/home/home.component.scss +35 -0
  45. package/demo-angular/src/app/views/home/home.component.ts +12 -0
  46. package/demo-angular/src/app/views/links/links.component.html +140 -0
  47. package/demo-angular/src/app/views/links/links.component.scss +60 -0
  48. package/demo-angular/src/app/views/links/links.component.ts +123 -0
  49. package/demo-angular/src/app/views/tables/tables.component.html +289 -0
  50. package/demo-angular/src/app/views/tables/tables.component.scss +3 -0
  51. package/demo-angular/src/app/views/tables/tables.component.ts +278 -0
  52. package/demo-angular/src/app/views/toasts/toasts.component.html +201 -0
  53. package/demo-angular/src/app/views/toasts/toasts.component.scss +0 -0
  54. package/demo-angular/src/app/views/toasts/toasts.component.ts +182 -0
  55. package/demo-angular/src/index.html +14 -0
  56. package/demo-angular/src/main.ts +6 -0
  57. package/demo-angular/src/styles.scss +4 -0
  58. package/demo-angular/tsconfig.app.json +15 -0
  59. package/demo-angular/tsconfig.json +33 -0
  60. package/demo-angular/tsconfig.spec.json +15 -0
  61. package/package.json +5 -6
  62. package/theme/components/_accordion.scss +1 -1
  63. package/theme/components/_buttons.scss +6 -6
  64. package/theme/components/_content.scss +3 -3
  65. package/theme/components/_dropdowns.scss +1 -1
  66. package/theme/components/_forms-check.scss +1 -1
  67. package/theme/components/_forms-inputs.scss +1 -1
  68. package/theme/components/_list-group.scss +1 -1
  69. package/theme/components/_modals.scss +1 -1
  70. package/theme/components/_navigation.scss +2 -2
  71. package/theme/components/_overlays.scss +2 -2
  72. package/theme/components/_pagination.scss +1 -1
  73. package/theme/components/_popovers.scss +1 -1
  74. package/theme/components/_toasts.scss +1 -1
  75. package/theme/customizations/_cards.scss +3 -3
  76. package/theme/customizations/_links.scss +72 -24
@@ -0,0 +1,57 @@
1
+ name: Deploy to GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ concurrency:
15
+ group: "pages"
16
+ cancel-in-progress: false
17
+
18
+ jobs:
19
+ build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v4
25
+
26
+ - name: Setup Node.js
27
+ uses: actions/setup-node@v4
28
+ with:
29
+ node-version: '20'
30
+
31
+ - name: Install dependencies
32
+ working-directory: ./demo-angular
33
+ run: npm install
34
+
35
+ - name: Build Angular app
36
+ working-directory: ./demo-angular
37
+ run: npm run build:prod
38
+
39
+ - name: Setup Pages
40
+ uses: actions/configure-pages@v4
41
+
42
+ - name: Upload artifact
43
+ uses: actions/upload-pages-artifact@v3
44
+ with:
45
+ path: './demo-angular/dist/demo-angular/browser'
46
+
47
+ deploy:
48
+ environment:
49
+ name: github-pages
50
+ url: ${{ steps.deployment.outputs.page_url }}
51
+ runs-on: ubuntu-latest
52
+ needs: build
53
+
54
+ steps:
55
+ - name: Deploy to GitHub Pages
56
+ id: deployment
57
+ uses: actions/deploy-pages@v4
@@ -2,10 +2,8 @@ name: Publish to npm
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - 'master'
7
- # tags:
8
- # - 'v*'
5
+ tags:
6
+ - 'v*'
9
7
 
10
8
  jobs:
11
9
  build-and-publish:
package/README.md CHANGED
@@ -7,6 +7,14 @@ This package helps you apply a clean, structured, and authoritative look across
7
7
 
8
8
  ---
9
9
 
10
+ ## **🌐 Live Demo**
11
+
12
+ Check out the live demo and explore all components:
13
+
14
+ **[https://mahmoudadel1996.github.io/dga-ui/](https://mahmoudadel1996.github.io/dga-ui/)**
15
+
16
+ ---
17
+
10
18
  ## **✨ Features**
11
19
 
12
20
  * Government-inspired design system
package/css/dga-ui.css CHANGED
@@ -8613,14 +8613,14 @@ textarea.form-control-lg {
8613
8613
  --dga-btn-color: #1B8354;
8614
8614
  --dga-btn-bg: transparent;
8615
8615
  --dga-btn-border-color: transparent;
8616
- --dga-btn-hover-color: rgb(18.36, 89.08, 57.12);
8616
+ --dga-btn-hover-color: #1B8354;
8617
8617
  --dga-btn-hover-border-color: transparent;
8618
- --dga-btn-active-color: rgb(18.36, 89.08, 57.12);
8618
+ --dga-btn-active-color: #1B8354;
8619
8619
  --dga-btn-active-border-color: transparent;
8620
8620
  --dga-btn-disabled-color: #4D5761;
8621
8621
  --dga-btn-disabled-border-color: transparent;
8622
8622
  --dga-btn-box-shadow: 0 0 0 #000;
8623
- --dga-btn-focus-shadow-rgb: rgba(27, 131, 84, 0.5);
8623
+ --dga-btn-focus-shadow-rgb: none;
8624
8624
  text-decoration: none;
8625
8625
  }
8626
8626
  .btn-link:hover, .btn-link:focus-visible {
@@ -26421,9 +26421,9 @@ html {
26421
26421
  }
26422
26422
  .card .card-title-checked {
26423
26423
  margin-inline-start: auto;
26424
- margin-inline-end: 4%;
26425
- margin-top: 4%;
26426
- margin-bottom: 4%;
26424
+ margin-inline-end: 1rem;
26425
+ margin-top: 1rem;
26426
+ margin-bottom: 1rem;
26427
26427
  }
26428
26428
  .card .card-text {
26429
26429
  margin: 0;
@@ -27152,45 +27152,75 @@ html {
27152
27152
  }
27153
27153
 
27154
27154
  .link-primary {
27155
- --dga-link-color: #1B8354;
27156
- --dga-link-color-rgb: 27, 131, 84;
27157
- --dga-link-hover-color: #54C08A;
27158
- --dga-link-hover-color-rgb: 84, 192, 138;
27155
+ color: #1B8354 !important;
27156
+ }
27157
+ .link-primary:hover, .link-primary:focus {
27158
+ color: #54C08A !important;
27159
+ text-decoration-color: #54C08A !important;
27160
+ }
27161
+ .link-primary:active {
27162
+ color: #88D8AD !important;
27163
+ text-decoration-color: #88D8AD !important;
27159
27164
  }
27160
27165
 
27161
27166
  .link-secondary {
27162
- --dga-link-color: #4D5761;
27163
- --dga-link-color-rgb: 77, 87, 97;
27164
- --dga-link-hover-color: #9DA4AE;
27165
- --dga-link-hover-color-rgb: 157, 164, 174;
27167
+ color: #4D5761 !important;
27168
+ }
27169
+ .link-secondary:hover, .link-secondary:focus {
27170
+ color: #9DA4AE !important;
27171
+ text-decoration-color: #9DA4AE !important;
27172
+ }
27173
+ .link-secondary:active {
27174
+ color: #D2D6DB !important;
27175
+ text-decoration-color: #D2D6DB !important;
27166
27176
  }
27167
27177
 
27168
27178
  .link-success {
27169
- --dga-link-color: #079455;
27170
- --dga-link-color-rgb: 7, 148, 85;
27171
- --dga-link-hover-color: #47CD89;
27172
- --dga-link-hover-color-rgb: 71, 205, 137;
27179
+ color: #079455 !important;
27180
+ }
27181
+ .link-success:hover, .link-success:focus {
27182
+ color: #47CD89 !important;
27183
+ text-decoration-color: #47CD89 !important;
27184
+ }
27185
+ .link-success:active {
27186
+ color: #75E0A7 !important;
27187
+ text-decoration-color: #75E0A7 !important;
27173
27188
  }
27174
27189
 
27175
27190
  .link-danger {
27176
- --dga-link-color: #D92D20;
27177
- --dga-link-color-rgb: 217, 45, 32;
27178
- --dga-link-hover-color: #F97066;
27179
- --dga-link-hover-color-rgb: 249, 112, 102;
27191
+ color: #D92D20 !important;
27192
+ }
27193
+ .link-danger:hover, .link-danger:focus {
27194
+ color: #F97066 !important;
27195
+ text-decoration-color: #F97066 !important;
27196
+ }
27197
+ .link-danger:active {
27198
+ color: #FDA29B !important;
27199
+ text-decoration-color: #FDA29B !important;
27180
27200
  }
27181
27201
 
27182
27202
  .link-warning {
27183
- --dga-link-color: #DC6803;
27184
- --dga-link-color-rgb: 220, 104, 3;
27185
- --dga-link-hover-color: #FDB022;
27186
- --dga-link-hover-color-rgb: 253, 176, 34;
27203
+ color: #DC6803 !important;
27204
+ }
27205
+ .link-warning:hover, .link-warning:focus {
27206
+ color: #FDB022 !important;
27207
+ text-decoration-color: #FDB022 !important;
27208
+ }
27209
+ .link-warning:active {
27210
+ color: #FEC84B !important;
27211
+ text-decoration-color: #FEC84B !important;
27187
27212
  }
27188
27213
 
27189
27214
  .link-info {
27190
- --dga-link-color: #1570EF;
27191
- --dga-link-color-rgb: 21, 112, 239;
27192
- --dga-link-hover-color: #53B1FD;
27193
- --dga-link-hover-color-rgb: 83, 177, 253;
27215
+ color: #1570EF !important;
27216
+ }
27217
+ .link-info:hover, .link-info:focus {
27218
+ color: #53B1FD !important;
27219
+ text-decoration-color: #53B1FD !important;
27220
+ }
27221
+ .link-info:active {
27222
+ color: #84CAFF !important;
27223
+ text-decoration-color: #84CAFF !important;
27194
27224
  }
27195
27225
 
27196
27226
  .bg-neutral {