@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.
- package/README.md +11 -6
- package/dist/css/main.css +47 -130
- package/package.json +1 -1
- package/snippets/AUDIT.md +94 -0
- package/snippets/alerts.html +264 -89
- package/snippets/badges.html +193 -61
- package/snippets/buttons.html +178 -0
- package/snippets/callouts.html +210 -129
- package/snippets/cards.html +383 -200
- package/snippets/checkbox-lists.html +199 -65
- package/snippets/code.html +55 -11
- package/snippets/command-palette.html +401 -111
- package/snippets/comparison.html +144 -93
- package/snippets/customization.html +311 -104
- package/snippets/data-display.html +584 -0
- package/snippets/detail-panel.html +470 -138
- package/snippets/filter-card.html +246 -0
- package/snippets/forms.html +408 -308
- package/snippets/grid.html +253 -141
- package/snippets/layout.html +379 -480
- package/snippets/lists.html +144 -47
- package/snippets/loaders.html +64 -39
- package/snippets/manifest.json +330 -280
- package/snippets/modal-dialogs.html +137 -64
- package/snippets/modals.html +221 -151
- package/snippets/notifications.html +285 -0
- package/snippets/popconfirm.html +213 -19
- package/snippets/profile.html +290 -330
- package/snippets/statistics.html +247 -0
- package/snippets/tables.html +359 -150
- package/snippets/tabs.html +129 -45
- package/snippets/timeline.html +123 -56
- package/snippets/toasts.html +179 -31
- package/snippets/tooltips.html +199 -81
- package/snippets/typography.html +183 -58
- package/snippets/utilities.html +511 -415
- package/snippets/virtual-scroll.html +201 -75
- package/snippets/web-daterangepicker.html +369 -189
- package/snippets/web-multiselect.html +360 -124
- package/src/scss/core-components/_alerts.scss +51 -12
- package/src/scss/core-components/_pagers.scss +1 -1
- package/src/scss/core-components/_popconfirm.scss +35 -13
- package/src/scss/core-components/_tables.scss +2 -134
- package/src/scss/variables/_components.scss +17 -2
package/snippets/callouts.html
CHANGED
|
@@ -1,129 +1,210 @@
|
|
|
1
|
-
<!-- ========================================
|
|
2
|
-
Callout Components
|
|
3
|
-
Documentation-style callouts with left border accent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<li>
|
|
108
|
-
|
|
109
|
-
</
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<li>
|
|
118
|
-
<li>
|
|
119
|
-
|
|
120
|
-
</
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
+
-->
|