@keenmate/pure-admin-core 2.3.6 → 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 +23 -29
- package/dist/css/main.css +68 -148
- package/package.json +1 -5
- 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/_profile.scss +18 -8
- package/src/scss/core-components/_statistics.scss +12 -12
- package/src/scss/core-components/_tables.scss +2 -134
- package/src/scss/variables/_components.scss +17 -2
- package/scripts/download-themes.js +0 -351
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
<!-- ================================
|
|
2
|
+
STATISTICS
|
|
3
|
+
Stat displays — three flavours, one BEM block:
|
|
4
|
+
|
|
5
|
+
1. Default icon + content (number + label)
|
|
6
|
+
2. --hero centred, oversized value, +/- change indicator
|
|
7
|
+
3. --square coloured tile with big number, decorative
|
|
8
|
+
symbol, and bottom label
|
|
9
|
+
|
|
10
|
+
Source: core-components/_statistics.scss
|
|
11
|
+
|
|
12
|
+
Slight gotcha:
|
|
13
|
+
Default + square use `__number`. Hero uses `__value`. Same
|
|
14
|
+
semantic role, different element name — don't mix them up.
|
|
15
|
+
================================ -->
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<!-- ================================
|
|
19
|
+
DEFAULT (icon + content)
|
|
20
|
+
Horizontal layout: a coloured icon tile next to a number and a
|
|
21
|
+
muted label. Drop inside any container; pa-card + pa-card--stat
|
|
22
|
+
is the canonical home (see cards.html for the wrapper).
|
|
23
|
+
================================ -->
|
|
24
|
+
|
|
25
|
+
<div class="pa-stat">
|
|
26
|
+
<div class="pa-stat__icon pa-stat__icon--primary">👥</div>
|
|
27
|
+
<div class="pa-stat__content">
|
|
28
|
+
<div class="pa-stat__number">1,234</div>
|
|
29
|
+
<div class="pa-stat__label">Total users</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<!-- Inside a card (the dashboard pattern) -->
|
|
34
|
+
<div class="pa-card pa-card--stat">
|
|
35
|
+
<div class="pa-card__body">
|
|
36
|
+
<div class="pa-stat">
|
|
37
|
+
<div class="pa-stat__icon pa-stat__icon--success">📊</div>
|
|
38
|
+
<div class="pa-stat__content">
|
|
39
|
+
<div class="pa-stat__number">$45,678</div>
|
|
40
|
+
<div class="pa-stat__label">Revenue</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- Icon colour variants:
|
|
47
|
+
The default icon supports four semantic colours.
|
|
48
|
+
There is NO --danger variant on .pa-stat__icon (only on the
|
|
49
|
+
square variant below). For an alert-style stat, use the icon
|
|
50
|
+
family from alerts.html or wrap the icon in a pa-badge. -->
|
|
51
|
+
<div class="pa-stat"><div class="pa-stat__icon pa-stat__icon--primary">👥</div><div class="pa-stat__content">…</div></div>
|
|
52
|
+
<div class="pa-stat"><div class="pa-stat__icon pa-stat__icon--success">📊</div><div class="pa-stat__content">…</div></div>
|
|
53
|
+
<div class="pa-stat"><div class="pa-stat__icon pa-stat__icon--warning">📦</div><div class="pa-stat__content">…</div></div>
|
|
54
|
+
<div class="pa-stat"><div class="pa-stat__icon pa-stat__icon--info">📈</div><div class="pa-stat__content">…</div></div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<!-- ================================
|
|
58
|
+
HERO VARIANT (centred, big value, change indicator)
|
|
59
|
+
The dashboard "metric tile" look. Centred text, oversized value,
|
|
60
|
+
uppercase label, optional positive/negative change line.
|
|
61
|
+
|
|
62
|
+
ELEMENT NAMES IN HERO ARE DIFFERENT:
|
|
63
|
+
__value (NOT __number)
|
|
64
|
+
__change with --positive / --negative / --neutral
|
|
65
|
+
================================ -->
|
|
66
|
+
|
|
67
|
+
<div class="pa-card">
|
|
68
|
+
<div class="pa-card__body">
|
|
69
|
+
<div class="pa-stat pa-stat--hero">
|
|
70
|
+
<div class="pa-stat__label">Total Revenue</div>
|
|
71
|
+
<div class="pa-stat__value">$847,392</div>
|
|
72
|
+
<div class="pa-stat__change pa-stat__change--positive">
|
|
73
|
+
▲ 12.5% vs last month
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<!-- Negative trend -->
|
|
80
|
+
<div class="pa-stat pa-stat--hero">
|
|
81
|
+
<div class="pa-stat__label">Conversion Rate</div>
|
|
82
|
+
<div class="pa-stat__value">3.47%</div>
|
|
83
|
+
<div class="pa-stat__change pa-stat__change--negative">▼ 2.1% vs last month</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<!-- Neutral / no change -->
|
|
87
|
+
<div class="pa-stat pa-stat--hero">
|
|
88
|
+
<div class="pa-stat__label">Active Sessions</div>
|
|
89
|
+
<div class="pa-stat__value">1,024</div>
|
|
90
|
+
<div class="pa-stat__change pa-stat__change--neutral">— flat vs last week</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<!-- --hero-compact uses the same styles with no functional difference
|
|
94
|
+
today — kept as a separate modifier so future tightening only
|
|
95
|
+
applies to one variant. Use it interchangeably with --hero. -->
|
|
96
|
+
<div class="pa-stat pa-stat--hero-compact">
|
|
97
|
+
<div class="pa-stat__label">Avg Order Value</div>
|
|
98
|
+
<div class="pa-stat__value">$134.52</div>
|
|
99
|
+
<div class="pa-stat__change pa-stat__change--positive">▲ 5.7%</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<!-- ================================
|
|
104
|
+
SQUARE VARIANT (coloured tile with shadow)
|
|
105
|
+
A compact, brand-coloured square tile. Big number on the left,
|
|
106
|
+
a translucent decorative symbol on the right (looks shadowed /
|
|
107
|
+
watermark-style), and a small label pinned to the bottom-left.
|
|
108
|
+
|
|
109
|
+
The whole tile is the colour — not just the icon. Pick from six
|
|
110
|
+
semantic colours; they read from --pa-* runtime tokens, so theme
|
|
111
|
+
swaps re-tint them automatically.
|
|
112
|
+
|
|
113
|
+
Use inside .pa-kpi-grid to negate the per-tile margin and lay
|
|
114
|
+
them out flush in a grid.
|
|
115
|
+
================================ -->
|
|
116
|
+
|
|
117
|
+
<div class="pa-kpi-grid">
|
|
118
|
+
<div class="pa-row">
|
|
119
|
+
<div class="pa-col-100 pa-col-md-1-3">
|
|
120
|
+
<div class="pa-stat pa-stat--square pa-stat--primary">
|
|
121
|
+
<div class="pa-stat__number">87</div>
|
|
122
|
+
<div class="pa-stat__symbol">%</div>
|
|
123
|
+
<div class="pa-stat__label">Completion Rate</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="pa-col-100 pa-col-md-1-3">
|
|
127
|
+
<div class="pa-stat pa-stat--square pa-stat--success">
|
|
128
|
+
<div class="pa-stat__number">94</div>
|
|
129
|
+
<div class="pa-stat__symbol">%</div>
|
|
130
|
+
<div class="pa-stat__label">Customer Satisfaction</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="pa-col-100 pa-col-md-1-3">
|
|
134
|
+
<div class="pa-stat pa-stat--square pa-stat--info">
|
|
135
|
+
<div class="pa-stat__number">2.3</div>
|
|
136
|
+
<div class="pa-stat__symbol">k</div>
|
|
137
|
+
<div class="pa-stat__label">Active Tickets</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<!-- All six square colour variants -->
|
|
144
|
+
<div class="pa-stat pa-stat--square pa-stat--primary"> <div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Primary</div> </div>
|
|
145
|
+
<div class="pa-stat pa-stat--square pa-stat--success"> <div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Success</div> </div>
|
|
146
|
+
<div class="pa-stat pa-stat--square pa-stat--info"> <div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Info</div> </div>
|
|
147
|
+
<div class="pa-stat pa-stat--square pa-stat--warning"> <div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Warning</div> </div>
|
|
148
|
+
<div class="pa-stat pa-stat--square pa-stat--danger"> <div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Danger</div> </div>
|
|
149
|
+
<div class="pa-stat pa-stat--square pa-stat--secondary"><div class="pa-stat__number">…</div><div class="pa-stat__symbol">…</div><div class="pa-stat__label">Secondary</div></div>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<!-- ================================
|
|
153
|
+
COMPONENT REFERENCE
|
|
154
|
+
================================ -->
|
|
155
|
+
|
|
156
|
+
<!--
|
|
157
|
+
SUB-ELEMENTS:
|
|
158
|
+
.pa-stat Block. By default a horizontal flex row.
|
|
159
|
+
.pa-stat__icon Square icon tile. Default variant only.
|
|
160
|
+
Modifiers: --primary, --success,
|
|
161
|
+
--warning, --info (no --danger).
|
|
162
|
+
.pa-stat__content Wrapper for __number + __label in default.
|
|
163
|
+
.pa-stat__number Big bold number. Used by default + square.
|
|
164
|
+
.pa-stat__label Muted caption.
|
|
165
|
+
.pa-stat__value Hero variant only — same role as __number
|
|
166
|
+
but at a much larger scale.
|
|
167
|
+
.pa-stat__change Hero variant only — change-vs-period line.
|
|
168
|
+
Modifiers: --positive (green), --negative
|
|
169
|
+
(red), --neutral (muted).
|
|
170
|
+
.pa-stat__symbol Square variant only — the decorative
|
|
171
|
+
watermark symbol on the inline-end side.
|
|
172
|
+
|
|
173
|
+
VARIANTS (mutually exclusive):
|
|
174
|
+
(default) Icon + content row. Pair with
|
|
175
|
+
.pa-card pa-card--stat for the wrapper.
|
|
176
|
+
--hero Centred, oversized __value, optional
|
|
177
|
+
__change line. Use inside a .pa-card.
|
|
178
|
+
--hero-compact Identical visuals to --hero today;
|
|
179
|
+
reserved for future tightening.
|
|
180
|
+
--square Coloured tile, big __number, decorative
|
|
181
|
+
__symbol, bottom-pinned __label. Apply
|
|
182
|
+
a colour modifier on the same element.
|
|
183
|
+
|
|
184
|
+
SQUARE COLOUR MODIFIERS (apply with --square):
|
|
185
|
+
--primary, --success, --info, --warning, --danger, --secondary
|
|
186
|
+
All read from --pa-{accent,success,info,warning,danger,text-color-2}
|
|
187
|
+
+ --pa-btn-{primary,success,info,warning,danger}-text — so theme
|
|
188
|
+
swaps re-tint automatically.
|
|
189
|
+
|
|
190
|
+
KPI GRID:
|
|
191
|
+
.pa-kpi-grid wrapper applies a negative -$spacing-sm margin to
|
|
192
|
+
cancel the per-tile margin on .pa-stat--square, so a row of
|
|
193
|
+
squares sits flush with the surrounding column gutters.
|
|
194
|
+
Use it as the immediate parent of the .pa-row that holds the
|
|
195
|
+
square stats.
|
|
196
|
+
|
|
197
|
+
WHEN TO USE WHAT:
|
|
198
|
+
Default Side-by-side stat strips (e.g. four cards across
|
|
199
|
+
a settings page header).
|
|
200
|
+
--hero Dashboard top-row metrics where the number itself
|
|
201
|
+
is the headline; pair with a .pa-card for chrome.
|
|
202
|
+
--square Coloured KPI tiles when you want the numbers to
|
|
203
|
+
also signal status (red = bad, green = good).
|
|
204
|
+
Higher visual weight than --hero.
|
|
205
|
+
|
|
206
|
+
STRUCTURE PATTERNS:
|
|
207
|
+
|
|
208
|
+
Default (inside a stat card):
|
|
209
|
+
<div class="pa-card pa-card--stat">
|
|
210
|
+
<div class="pa-card__body">
|
|
211
|
+
<div class="pa-stat">
|
|
212
|
+
<div class="pa-stat__icon pa-stat__icon--primary">👥</div>
|
|
213
|
+
<div class="pa-stat__content">
|
|
214
|
+
<div class="pa-stat__number">1,234</div>
|
|
215
|
+
<div class="pa-stat__label">Users</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
Hero (top-row dashboard metric):
|
|
222
|
+
<div class="pa-card">
|
|
223
|
+
<div class="pa-card__body">
|
|
224
|
+
<div class="pa-stat pa-stat--hero">
|
|
225
|
+
<div class="pa-stat__label">Total Revenue</div>
|
|
226
|
+
<div class="pa-stat__value">$847,392</div>
|
|
227
|
+
<div class="pa-stat__change pa-stat__change--positive">
|
|
228
|
+
▲ 12.5% vs last month
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
Square (KPI grid):
|
|
235
|
+
<div class="pa-kpi-grid">
|
|
236
|
+
<div class="pa-row">
|
|
237
|
+
<div class="pa-col-100 pa-col-md-1-3">
|
|
238
|
+
<div class="pa-stat pa-stat--square pa-stat--primary">
|
|
239
|
+
<div class="pa-stat__number">87</div>
|
|
240
|
+
<div class="pa-stat__symbol">%</div>
|
|
241
|
+
<div class="pa-stat__label">Completion</div>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
…
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
-->
|