@keenmate/pure-admin-core 2.4.0 → 2.5.0

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 (44) hide show
  1. package/README.md +11 -6
  2. package/dist/css/main.css +47 -130
  3. package/package.json +1 -1
  4. package/snippets/AUDIT.md +94 -0
  5. package/snippets/alerts.html +264 -89
  6. package/snippets/badges.html +193 -61
  7. package/snippets/buttons.html +178 -0
  8. package/snippets/callouts.html +210 -129
  9. package/snippets/cards.html +383 -200
  10. package/snippets/checkbox-lists.html +199 -65
  11. package/snippets/code.html +55 -11
  12. package/snippets/command-palette.html +401 -111
  13. package/snippets/comparison.html +144 -93
  14. package/snippets/customization.html +311 -104
  15. package/snippets/data-display.html +584 -0
  16. package/snippets/detail-panel.html +470 -138
  17. package/snippets/filter-card.html +246 -0
  18. package/snippets/forms.html +408 -308
  19. package/snippets/grid.html +253 -141
  20. package/snippets/layout.html +379 -480
  21. package/snippets/lists.html +144 -47
  22. package/snippets/loaders.html +64 -39
  23. package/snippets/manifest.json +330 -280
  24. package/snippets/modal-dialogs.html +137 -64
  25. package/snippets/modals.html +221 -151
  26. package/snippets/notifications.html +285 -0
  27. package/snippets/popconfirm.html +213 -19
  28. package/snippets/profile.html +290 -330
  29. package/snippets/statistics.html +247 -0
  30. package/snippets/tables.html +359 -150
  31. package/snippets/tabs.html +129 -45
  32. package/snippets/timeline.html +123 -56
  33. package/snippets/toasts.html +179 -31
  34. package/snippets/tooltips.html +199 -81
  35. package/snippets/typography.html +183 -58
  36. package/snippets/utilities.html +511 -415
  37. package/snippets/virtual-scroll.html +201 -75
  38. package/snippets/web-daterangepicker.html +369 -189
  39. package/snippets/web-multiselect.html +360 -124
  40. package/src/scss/core-components/_alerts.scss +51 -12
  41. package/src/scss/core-components/_pagers.scss +1 -1
  42. package/src/scss/core-components/_popconfirm.scss +35 -13
  43. package/src/scss/core-components/_tables.scss +2 -134
  44. package/src/scss/variables/_components.scss +17 -2
@@ -1,129 +1,210 @@
1
- <!-- ========================================
2
- Callout Components
3
- Documentation-style callouts with left border accent
4
- ======================================== -->
5
-
6
- <!-- BASIC CALLOUTS -->
7
-
8
- <!-- Info Callout -->
9
- <div class="pa-callout pa-callout--info">
10
- <strong>Note:</strong> This is an informational callout for documentation tips and notes.
11
- </div>
12
-
13
- <!-- Success Callout -->
14
- <div class="pa-callout pa-callout--success">
15
- <strong>Success:</strong> Operation completed successfully. Your changes have been saved.
16
- </div>
17
-
18
- <!-- Warning Callout -->
19
- <div class="pa-callout pa-callout--warning">
20
- <strong>Warning:</strong> This action cannot be undone. Please proceed with caution.
21
- </div>
22
-
23
- <!-- Danger Callout -->
24
- <div class="pa-callout pa-callout--danger">
25
- <strong>Important:</strong> This feature is deprecated and will be removed in the next version.
26
- </div>
27
-
28
- <!-- Primary Callout -->
29
- <div class="pa-callout pa-callout--primary">
30
- <strong>Pro Tip:</strong> You can use keyboard shortcuts to speed up your workflow.
31
- </div>
32
-
33
- <!-- Secondary Callout -->
34
- <div class="pa-callout pa-callout--secondary">
35
- <strong>Note:</strong> This is a secondary callout with neutral styling.
36
- </div>
37
-
38
- <!-- ========================================
39
- CALLOUTS WITH ICONS
40
- ======================================== -->
41
-
42
- <!-- Info with Icon -->
43
- <div class="pa-callout pa-callout--info">
44
- <span class="pa-callout__icon">💡</span>
45
- <div class="pa-callout__content">
46
- <div class="pa-callout__heading">Did you know?</div>
47
- <p>You can hover over any element to see its tooltip. Tooltips provide additional context without cluttering the interface.</p>
48
- </div>
49
- </div>
50
-
51
- <!-- Warning with Icon -->
52
- <div class="pa-callout pa-callout--warning">
53
- <span class="pa-callout__icon">⚠️</span>
54
- <div class="pa-callout__content">
55
- <div class="pa-callout__heading">Breaking Change</div>
56
- <p>The <code>getData()</code> method now returns a Promise. Update your code to use <code>await</code> or <code>.then()</code>.</p>
57
- </div>
58
- </div>
59
-
60
- <!-- Danger with Icon -->
61
- <div class="pa-callout pa-callout--danger">
62
- <span class="pa-callout__icon">🚨</span>
63
- <div class="pa-callout__content">
64
- <div class="pa-callout__heading">Security Notice</div>
65
- <p>Never commit API keys or secrets to version control. Use environment variables instead.</p>
66
- </div>
67
- </div>
68
-
69
- <!-- Success with Icon -->
70
- <div class="pa-callout pa-callout--success">
71
- <span class="pa-callout__icon">✅</span>
72
- <div class="pa-callout__content">
73
- <div class="pa-callout__heading">Best Practice</div>
74
- <p>Always validate user input on both client and server side for maximum security.</p>
75
- </div>
76
- </div>
77
-
78
- <!-- ========================================
79
- CALLOUT SIZES
80
- ======================================== -->
81
-
82
- <!-- Small Callout -->
83
- <div class="pa-callout pa-callout--info pa-callout--sm">
84
- <strong>Note:</strong> This is a small callout for compact spaces.
85
- </div>
86
-
87
- <!-- Default Callout -->
88
- <div class="pa-callout pa-callout--info">
89
- <strong>Note:</strong> This is a default-sized callout.
90
- </div>
91
-
92
- <!-- Large Callout -->
93
- <div class="pa-callout pa-callout--info pa-callout--lg">
94
- <strong>Note:</strong> This is a large callout for prominent notices.
95
- </div>
96
-
97
- <!-- ========================================
98
- CALLOUTS WITH LISTS
99
- ======================================== -->
100
-
101
- <!-- Callout with Unordered List -->
102
- <div class="pa-callout pa-callout--info">
103
- <div class="pa-callout__heading">Requirements</div>
104
- <ul>
105
- <li>Node.js version 16 or higher</li>
106
- <li>npm version 8 or higher</li>
107
- <li>A modern web browser</li>
108
- </ul>
109
- </div>
110
-
111
- <!-- Callout with Ordered List -->
112
- <div class="pa-callout pa-callout--warning">
113
- <div class="pa-callout__heading">Migration Steps</div>
114
- <ol>
115
- <li>Backup your database</li>
116
- <li>Update dependencies with <code>npm update</code></li>
117
- <li>Run migrations with <code>npm run migrate</code></li>
118
- <li>Verify the application starts correctly</li>
119
- </ol>
120
- </div>
121
-
122
- <!-- ========================================
123
- CALLOUTS WITH CODE
124
- ======================================== -->
125
-
126
- <!-- Callout with Inline Code -->
127
- <div class="pa-callout pa-callout--primary">
128
- <strong>Tip:</strong> Use <code>console.table()</code> instead of <code>console.log()</code> for arrays and objects to get a nicely formatted table output.
129
- </div>
1
+ <!-- ========================================
2
+ Callout Components
3
+ Documentation-style callouts with left border accent
4
+ For tips, notes, warnings in content areas
5
+ ======================================== -->
6
+
7
+ <!-- BASIC CALLOUTS -->
8
+
9
+ <!-- Info Callout -->
10
+ <div class="pa-callout pa-callout--info">
11
+ <strong>Note:</strong> This is an informational callout for documentation tips and notes.
12
+ </div>
13
+
14
+ <!-- Success Callout -->
15
+ <div class="pa-callout pa-callout--success">
16
+ <strong>Success:</strong> Operation completed successfully. Your changes have been saved.
17
+ </div>
18
+
19
+ <!-- Warning Callout -->
20
+ <div class="pa-callout pa-callout--warning">
21
+ <strong>Warning:</strong> This action cannot be undone. Please proceed with caution.
22
+ </div>
23
+
24
+ <!-- Danger Callout -->
25
+ <div class="pa-callout pa-callout--danger">
26
+ <strong>Important:</strong> This feature is deprecated and will be removed in the next version.
27
+ </div>
28
+
29
+ <!-- Primary Callout -->
30
+ <div class="pa-callout pa-callout--primary">
31
+ <strong>Pro Tip:</strong> You can use keyboard shortcuts to speed up your workflow.
32
+ </div>
33
+
34
+ <!-- Secondary Callout -->
35
+ <div class="pa-callout pa-callout--secondary">
36
+ <strong>Note:</strong> This is a secondary callout with neutral styling.
37
+ </div>
38
+
39
+ <!-- ========================================
40
+ CALLOUTS WITH ICONS
41
+ Icon floats to the start; wrap the rest in __content for the clearfix.
42
+ ======================================== -->
43
+
44
+ <!-- Info with Icon -->
45
+ <div class="pa-callout pa-callout--info">
46
+ <span class="pa-callout__icon">💡</span>
47
+ <div class="pa-callout__content">
48
+ <h4 class="pa-callout__heading">Did you know?</h4>
49
+ <p>You can hover over any element to see its tooltip. Tooltips provide additional context without cluttering the interface.</p>
50
+ </div>
51
+ </div>
52
+
53
+ <!-- Warning with Icon -->
54
+ <div class="pa-callout pa-callout--warning">
55
+ <span class="pa-callout__icon">⚠️</span>
56
+ <div class="pa-callout__content">
57
+ <h4 class="pa-callout__heading">Breaking Change</h4>
58
+ <p>The <code>getData()</code> method now returns a Promise. Update your code to use <code>await</code> or <code>.then()</code>.</p>
59
+ </div>
60
+ </div>
61
+
62
+ <!-- Danger with Icon -->
63
+ <div class="pa-callout pa-callout--danger">
64
+ <span class="pa-callout__icon">🚨</span>
65
+ <div class="pa-callout__content">
66
+ <h4 class="pa-callout__heading">Security Notice</h4>
67
+ <p>Never commit API keys or secrets to version control. Use environment variables instead.</p>
68
+ </div>
69
+ </div>
70
+
71
+ <!-- Success with Icon -->
72
+ <div class="pa-callout pa-callout--success">
73
+ <span class="pa-callout__icon">✅</span>
74
+ <div class="pa-callout__content">
75
+ <h4 class="pa-callout__heading">Best Practice</h4>
76
+ <p>Always validate user input on both client and server side for maximum security.</p>
77
+ </div>
78
+ </div>
79
+
80
+ <!-- ========================================
81
+ CALLOUT SIZES
82
+ ======================================== -->
83
+
84
+ <!-- Small Callout -->
85
+ <div class="pa-callout pa-callout--info pa-callout--sm">
86
+ <strong>Note:</strong> This is a small callout for compact spaces.
87
+ </div>
88
+
89
+ <!-- Default Callout -->
90
+ <div class="pa-callout pa-callout--info">
91
+ <strong>Note:</strong> This is a default-sized callout.
92
+ </div>
93
+
94
+ <!-- Large Callout -->
95
+ <div class="pa-callout pa-callout--info pa-callout--lg">
96
+ <strong>Note:</strong> This is a large callout for prominent notices.
97
+ </div>
98
+
99
+ <!-- ========================================
100
+ CALLOUTS WITH LISTS
101
+ ======================================== -->
102
+
103
+ <!-- Callout with Unordered List -->
104
+ <div class="pa-callout pa-callout--info">
105
+ <h4 class="pa-callout__heading">Requirements</h4>
106
+ <ul>
107
+ <li>Node.js version 16 or higher</li>
108
+ <li>npm version 8 or higher</li>
109
+ <li>A modern web browser</li>
110
+ </ul>
111
+ </div>
112
+
113
+ <!-- Callout with Ordered List -->
114
+ <div class="pa-callout pa-callout--warning">
115
+ <h4 class="pa-callout__heading">Migration Steps</h4>
116
+ <ol>
117
+ <li>Backup your database</li>
118
+ <li>Update dependencies with <code>npm update</code></li>
119
+ <li>Run migrations with <code>npm run migrate</code></li>
120
+ <li>Verify the application starts correctly</li>
121
+ </ol>
122
+ </div>
123
+
124
+ <!-- ========================================
125
+ CALLOUTS WITH CODE
126
+ ======================================== -->
127
+
128
+ <!-- Callout with Inline Code -->
129
+ <div class="pa-callout pa-callout--primary">
130
+ <strong>Tip:</strong> Use <code>console.table()</code> instead of <code>console.log()</code> for arrays and objects to get a nicely formatted table output.
131
+ </div>
132
+
133
+
134
+ <!-- ========================================
135
+ THEME COLOR CALLOUTS (color-1 through color-9)
136
+ ======================================== -->
137
+
138
+ <!-- Theme Color 1 Callout -->
139
+ <div class="pa-callout pa-callout--color-1">
140
+ <strong>Color 1:</strong> Theme color slot 1 callout — border and background tint pulled from <code>--pa-color-1</code>.
141
+ </div>
142
+
143
+ <!-- Pattern: pa-callout--color-{1..9} — border tracks the slot, background is a 10% tint. -->
144
+
145
+
146
+ <!-- ================================
147
+ COMPONENT REFERENCE
148
+ ================================ -->
149
+
150
+ <!--
151
+ CALLOUT CLASSES:
152
+ - .pa-callout: Base callout with a left (inline-start) border accent
153
+
154
+ VARIANTS:
155
+ - .pa-callout--primary: Accent border + subtle accent tint
156
+ - .pa-callout--secondary: Muted border + 5% text-color-2 tint
157
+ - .pa-callout--success: Green border + success tint
158
+ - .pa-callout--danger: Red border + danger tint
159
+ - .pa-callout--warning: Yellow/orange border + warning tint
160
+ - .pa-callout--info: Cyan/blue border + info tint
161
+
162
+ THEME COLOR VARIANTS (1-9):
163
+ - .pa-callout--color-{1-9}: Theme color slot border + 10% tint background
164
+
165
+ SIZES:
166
+ - .pa-callout--sm: Small (spacing-sm/md padding, font-size-xs)
167
+ - (default): Standard (card-footer padding, font-size-sm)
168
+ - .pa-callout--lg: Large (spacing-lg/xl padding, font-size-base)
169
+
170
+ ELEMENTS:
171
+ - .pa-callout__icon: Floated icon (inline-start, uses CSS float; RTL flips automatically)
172
+ - .pa-callout__heading: Title element — use <h4> (or any h*) so semantic margin reset applies
173
+ - .pa-callout__content: Content wrapper with clearfix after the floated icon
174
+
175
+ STYLED CHILDREN (automatic, no extra classes needed):
176
+ - <p>, <ul>, <ol>: margin rules that collapse the last-child bottom margin
177
+ - <code>: subtle dark tint, slightly smaller font
178
+ - <a>: inherits color, underlined, removes underline on hover
179
+ - <h1>–<h6>: color: inherit, margin-top: 0
180
+
181
+ BEHAVIOR IN CARDS:
182
+ - When used as the first or last child of .pa-card__body, the top/bottom margin
183
+ is automatically removed — no need for .m-0 or similar overrides.
184
+
185
+ STRUCTURE PATTERNS:
186
+
187
+ Simple callout:
188
+ <div class="pa-callout pa-callout--info">
189
+ <strong>Note:</strong> Message here.
190
+ </div>
191
+
192
+ Callout with heading and paragraphs:
193
+ <div class="pa-callout pa-callout--warning">
194
+ <h4 class="pa-callout__heading">Title</h4>
195
+ <p>Body paragraph.</p>
196
+ </div>
197
+
198
+ Callout with floated icon (wrap the rest in __content for the clearfix):
199
+ <div class="pa-callout pa-callout--success">
200
+ <span class="pa-callout__icon">✅</span>
201
+ <div class="pa-callout__content">
202
+ <h4 class="pa-callout__heading">Title</h4>
203
+ <p>Body text that wraps around the icon.</p>
204
+ </div>
205
+ </div>
206
+
207
+ CALLOUT vs ALERT:
208
+ - Callout: documentation-style, left border only, static content, not dismissible
209
+ - Alert: full background, filled variants, supports --dismissible close button
210
+ -->