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.
Files changed (90) hide show
  1. package/css/dga-ui.css +16 -2
  2. package/css/dga-ui.css.map +1 -1
  3. package/package.json +20 -4
  4. package/theme/customizations/_links.scss +22 -21
  5. package/.editorconfig +0 -23
  6. package/.github/workflows/deploy.yml +0 -71
  7. package/.github/workflows/publish.yml +0 -36
  8. package/.prettierignore +0 -73
  9. package/.prettierrc +0 -17
  10. package/demo-angular/.editorconfig +0 -17
  11. package/demo-angular/.vscode/extensions.json +0 -4
  12. package/demo-angular/.vscode/launch.json +0 -20
  13. package/demo-angular/.vscode/tasks.json +0 -42
  14. package/demo-angular/README.md +0 -91
  15. package/demo-angular/angular.json +0 -96
  16. package/demo-angular/package-lock.json +0 -10600
  17. package/demo-angular/package.json +0 -53
  18. package/demo-angular/public/404.html +0 -35
  19. package/demo-angular/public/favicon.ico +0 -0
  20. package/demo-angular/public/i18n/ar.json +0 -289
  21. package/demo-angular/public/i18n/en.json +0 -289
  22. package/demo-angular/src/app/app.config.ts +0 -20
  23. package/demo-angular/src/app/app.html +0 -52
  24. package/demo-angular/src/app/app.routes.ts +0 -49
  25. package/demo-angular/src/app/app.scss +0 -430
  26. package/demo-angular/src/app/app.spec.ts +0 -23
  27. package/demo-angular/src/app/app.ts +0 -97
  28. package/demo-angular/src/app/shared/code-example/code-example.component.html +0 -30
  29. package/demo-angular/src/app/shared/code-example/code-example.component.scss +0 -183
  30. package/demo-angular/src/app/shared/code-example/code-example.component.ts +0 -89
  31. package/demo-angular/src/app/views/alerts/alerts.component.html +0 -155
  32. package/demo-angular/src/app/views/alerts/alerts.component.scss +0 -3
  33. package/demo-angular/src/app/views/alerts/alerts.component.ts +0 -134
  34. package/demo-angular/src/app/views/buttons/buttons.component.html +0 -360
  35. package/demo-angular/src/app/views/buttons/buttons.component.scss +0 -11
  36. package/demo-angular/src/app/views/buttons/buttons.component.ts +0 -225
  37. package/demo-angular/src/app/views/cards/cards.component.html +0 -156
  38. package/demo-angular/src/app/views/cards/cards.component.html.backup +0 -156
  39. package/demo-angular/src/app/views/cards/cards.component.scss +0 -11
  40. package/demo-angular/src/app/views/cards/cards.component.ts +0 -194
  41. package/demo-angular/src/app/views/footer/footer.html +0 -270
  42. package/demo-angular/src/app/views/footer/footer.ts +0 -276
  43. package/demo-angular/src/app/views/forms/forms.component.html +0 -347
  44. package/demo-angular/src/app/views/forms/forms.component.scss +0 -3
  45. package/demo-angular/src/app/views/forms/forms.component.ts +0 -222
  46. package/demo-angular/src/app/views/header/header.html +0 -1
  47. package/demo-angular/src/app/views/header/header.scss +0 -0
  48. package/demo-angular/src/app/views/header/header.spec.ts +0 -23
  49. package/demo-angular/src/app/views/header/header.ts +0 -11
  50. package/demo-angular/src/app/views/home/home.component.html +0 -33
  51. package/demo-angular/src/app/views/home/home.component.scss +0 -35
  52. package/demo-angular/src/app/views/home/home.component.ts +0 -12
  53. package/demo-angular/src/app/views/links/links.component.html +0 -21
  54. package/demo-angular/src/app/views/links/links.component.scss +0 -11
  55. package/demo-angular/src/app/views/links/links.component.ts +0 -19
  56. package/demo-angular/src/app/views/tables/tables.component.html +0 -289
  57. package/demo-angular/src/app/views/tables/tables.component.scss +0 -3
  58. package/demo-angular/src/app/views/tables/tables.component.ts +0 -278
  59. package/demo-angular/src/app/views/toasts/toasts.component.html +0 -201
  60. package/demo-angular/src/app/views/toasts/toasts.component.scss +0 -0
  61. package/demo-angular/src/app/views/toasts/toasts.component.ts +0 -182
  62. package/demo-angular/src/index.html +0 -28
  63. package/demo-angular/src/main.ts +0 -6
  64. package/demo-angular/src/styles.scss +0 -4
  65. package/demo-angular/tsconfig.app.json +0 -16
  66. package/demo-angular/tsconfig.json +0 -33
  67. package/demo-angular/tsconfig.spec.json +0 -15
  68. package/sdga-ui/README.md +0 -45
  69. package/sdga-ui/content/docs/components/alerts.mdx +0 -475
  70. package/sdga-ui/content/docs/index.mdx +0 -239
  71. package/sdga-ui/next.config.mjs +0 -10
  72. package/sdga-ui/package-lock.json +0 -5851
  73. package/sdga-ui/package.json +0 -32
  74. package/sdga-ui/postcss.config.mjs +0 -5
  75. package/sdga-ui/source.config.ts +0 -27
  76. package/sdga-ui/src/app/(home)/layout.tsx +0 -6
  77. package/sdga-ui/src/app/(home)/page.tsx +0 -202
  78. package/sdga-ui/src/app/api/search/route.ts +0 -7
  79. package/sdga-ui/src/app/docs/[[...slug]]/page.tsx +0 -54
  80. package/sdga-ui/src/app/docs/layout.tsx +0 -11
  81. package/sdga-ui/src/app/global.css +0 -3
  82. package/sdga-ui/src/app/layout.tsx +0 -25
  83. package/sdga-ui/src/app/llms-full.txt/route.ts +0 -10
  84. package/sdga-ui/src/app/og/docs/[...slug]/route.tsx +0 -34
  85. package/sdga-ui/src/app/sdga-scoped.css +0 -7
  86. package/sdga-ui/src/components/sdga-preview.tsx +0 -105
  87. package/sdga-ui/src/lib/layout.shared.tsx +0 -9
  88. package/sdga-ui/src/lib/source.ts +0 -27
  89. package/sdga-ui/src/mdx-components.tsx +0 -9
  90. package/sdga-ui/tsconfig.json +0 -46
@@ -1,239 +0,0 @@
1
- ---
2
- title: Getting Started
3
- description: Get started with SDGA UI - A modern, government-inspired UI component library
4
- ---
5
-
6
- import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
7
- import { Callout } from 'fumadocs-ui/components/callout';
8
- import { Step, Steps } from 'fumadocs-ui/components/steps';
9
-
10
- # Getting Started with SDGA UI
11
-
12
- **SDGA UI** (Saudi Digital Government Authority UI) is a customizable UI theme inspired by modern government and authority design systems. Built on top of **Bootstrap**, it provides consistent colors, typography, spacing, and reusable UI patterns suitable for official portals, administrative dashboards, and public-sector applications.
13
-
14
- <Callout title="Live Demo" type="info">
15
- Check out the live demo: [https://mahmoudadel1996.github.io/dga-ui/](https://mahmoudadel1996.github.io/dga-ui/)
16
- </Callout>
17
-
18
- ## ✨ Features
19
-
20
- - 🏛️ Government-inspired design system
21
- - 🔄 Full compatibility with Bootstrap
22
- - 🌍 **Built-in RTL support** (no need to import Bootstrap RTL separately)
23
- - 🎨 Custom color palette and typography
24
- - 📏 Standardized spacing & component overrides
25
- - 🛠️ Utility classes for layout and theming
26
- - 🌓 Light / dark mode friendly
27
- - 🔤 IBM Plex Sans Arabic font included
28
- - ⚡ Easy to integrate into any frontend project
29
-
30
- ---
31
-
32
- ## 📦 Installation
33
-
34
- <Steps>
35
-
36
- ### Install the Package
37
-
38
- Install SDGA UI via npm or yarn:
39
-
40
- <Tabs items={['npm', 'yarn', 'pnpm']}>
41
- <Tab value="npm">
42
- ```bash
43
- npm install sdga-ui
44
- ```
45
- </Tab>
46
- <Tab value="yarn">
47
- ```bash
48
- yarn add sdga-ui
49
- ```
50
- </Tab>
51
- <Tab value="pnpm">
52
- ```bash
53
- pnpm add sdga-ui
54
- ```
55
- </Tab>
56
- </Tabs>
57
-
58
- ### Choose Your Integration Method
59
-
60
- You can use SDGA UI in two ways:
61
-
62
- #### Using the Compiled CSS
63
-
64
- Include the compiled CSS file in your HTML:
65
-
66
- ```html
67
- <link rel="stylesheet" href="node_modules/sdga-ui/css/dga-ui.css">
68
- ```
69
-
70
- Or import it in your JavaScript/CSS:
71
-
72
- ```css
73
- @import "sdga-ui/css/dga-ui.css";
74
- ```
75
-
76
- #### Using SCSS Source Files
77
-
78
- Import the theme in your SCSS file for full customization:
79
-
80
- ```scss
81
- @import "sdga-ui/theme/dga-ui";
82
- ```
83
-
84
- All Bootstrap components automatically adopt the SDGA UI theme.
85
-
86
- ### Add RTL Support (Optional)
87
-
88
- SDGA UI has built-in RTL (Right-to-Left) support for Arabic and other RTL languages. Simply add the `dir="rtl"` attribute to your HTML tag:
89
-
90
- ```html
91
- <html dir="rtl" lang="ar">
92
- <head>
93
- <meta charset="UTF-8">
94
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
95
- <link rel="stylesheet" href="path/to/sdga-ui.css">
96
- </head>
97
- <body>
98
- <!-- Your content here -->
99
- </body>
100
- </html>
101
- ```
102
-
103
- <Callout title="No Separate RTL File Needed" type="success">
104
- Unlike Bootstrap, you don't need to import a separate RTL CSS file – it's already integrated!
105
- </Callout>
106
-
107
- </Steps>
108
-
109
- ---
110
-
111
- ## 🚀 Quick Start Example
112
-
113
- Here's a simple example to get you started:
114
-
115
- ```html
116
- <!DOCTYPE html>
117
- <html lang="en">
118
- <head>
119
- <meta charset="UTF-8">
120
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
121
- <title>SDGA UI Example</title>
122
- <link rel="stylesheet" href="node_modules/sdga-ui/css/dga-ui.css">
123
- </head>
124
- <body>
125
- <div class="container mt-5">
126
- <h1>Welcome to SDGA UI</h1>
127
-
128
- <!-- Button Examples -->
129
- <button class="btn btn-primary">Primary Button</button>
130
- <button class="btn btn-secondary">Secondary Button</button>
131
-
132
- <!-- Alert Example -->
133
- <div class="alert alert-success mt-3" role="alert">
134
- Success! Your changes have been saved.
135
- </div>
136
-
137
- <!-- Card Example -->
138
- <div class="card mt-3">
139
- <div class="card-body">
140
- <h5 class="card-title">Card Title</h5>
141
- <p class="card-text">This is a sample card using SDGA UI styling.</p>
142
- <a href="#" class="btn btn-primary">Learn More</a>
143
- </div>
144
- </div>
145
- </div>
146
- </body>
147
- </html>
148
- ```
149
-
150
- ---
151
-
152
- ## 🎨 Customization
153
-
154
- You can override SCSS variables before importing the theme:
155
-
156
- ```scss
157
- // Your custom variables
158
- $primary: #0d47a1;
159
- $secondary: #ffc107;
160
- $font-family-base: 'Your Custom Font', sans-serif;
161
-
162
- // Import the SDGA UI theme
163
- @import "sdga-ui/theme/dga-ui";
164
- ```
165
-
166
- ---
167
-
168
- ## 📁 File Structure
169
-
170
- ```
171
- sdga-ui/
172
-
173
- ├─ css/ # Compiled CSS output
174
- │ └─ dga-ui.css
175
- ├─ fonts/ # Font files (IBM Plex Sans Arabic)
176
- ├─ theme/ # Source SCSS theme files
177
- │ ├─ dga-ui.scss # Main theme entry point
178
- │ ├─ _fonts.scss
179
- │ ├─ _functions.scss
180
- │ ├─ _variables.scss
181
- │ ├─ config/ # Base configuration
182
- │ ├─ components/ # Component styles
183
- │ └─ customizations/ # Theme customizations
184
- ├─ package.json
185
- ├─ LICENSE
186
- └─ README.md
187
- ```
188
-
189
- ---
190
-
191
- ## 🛠 Development
192
-
193
- ### Building the CSS
194
-
195
- Compile the SCSS to CSS:
196
-
197
- ```bash
198
- npm run build-css
199
- ```
200
-
201
- ### Watch Mode
202
-
203
- Watch for changes and auto-compile:
204
-
205
- ```bash
206
- npm run watch-css
207
- ```
208
-
209
- ---
210
-
211
- ## 📚 Next Steps
212
-
213
- <Cards>
214
- <Card
215
- title="Components"
216
- href="/docs/components"
217
- description="Explore all available components"
218
- />
219
- <Card
220
- title="Customization"
221
- href="/docs/customization"
222
- description="Learn how to customize the theme"
223
- />
224
- <Card
225
- title="Examples"
226
- href="https://mahmoudadel1996.github.io/dga-ui/"
227
- description="View live examples and demos"
228
- />
229
- </Cards>
230
-
231
- ---
232
-
233
- ## 🤝 Contributing
234
-
235
- Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements on [GitHub](https://github.com/MahmoudAdel1996/dga-ui).
236
-
237
- ## 📄 License
238
-
239
- MIT License — free for personal and commercial use.
@@ -1,10 +0,0 @@
1
- import { createMDX } from 'fumadocs-mdx/next';
2
-
3
- const withMDX = createMDX();
4
-
5
- /** @type {import('next').NextConfig} */
6
- const config = {
7
- reactStrictMode: true,
8
- };
9
-
10
- export default withMDX(config);