@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/typography.html
CHANGED
|
@@ -1,9 +1,65 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<!-- ================================
|
|
2
|
+
TYPOGRAPHY
|
|
3
|
+
Pure Admin Visual Framework
|
|
4
|
+
================================ -->
|
|
5
|
+
|
|
6
|
+
<!--
|
|
7
|
+
FOUNDATION — 10px rem base
|
|
8
|
+
The framework sets html { font-size: 10px } so rem maths is trivial:
|
|
9
|
+
1rem = 10px 1.4rem = 14px 1.6rem = 16px 2rem = 20px
|
|
10
|
+
Body text is 1.6rem (16px) by default. Every pa-text size below reads
|
|
11
|
+
off the same `$font-size-*` scale.
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<!-- ================================
|
|
16
|
+
BASE ELEMENTS (no class needed)
|
|
17
|
+
_base.scss applies framework-wide defaults to raw tags so a fresh
|
|
18
|
+
page using pa-admin looks right with zero markup noise.
|
|
19
|
+
================================ -->
|
|
20
|
+
|
|
21
|
+
<!-- Heading margins/padding are set via $heading-margin-top/bottom -->
|
|
22
|
+
<h1>Heading 1</h1>
|
|
23
|
+
<h2>Heading 2</h2>
|
|
24
|
+
<h3>Heading 3</h3>
|
|
25
|
+
<h4>Heading 4</h4>
|
|
26
|
+
|
|
27
|
+
<!-- Paragraph spacing via $paragraph-margin-top/bottom -->
|
|
28
|
+
<p>A paragraph of body text. Default font-family and colour flow from
|
|
29
|
+
the active theme (<code>var(--base-font-family)</code>, <code>var(--pa-text-color-1)</code>).</p>
|
|
30
|
+
|
|
31
|
+
<!-- Lists use padding-inline-start so bullets sit on the correct side in RTL -->
|
|
32
|
+
<ul>
|
|
33
|
+
<li>Ordered and unordered lists get framework margins + a logical
|
|
34
|
+
inline-start padding so they mirror correctly in RTL.</li>
|
|
35
|
+
<li>Add <code>class="unstyled"</code> on <code><ul></code>/<code><ol></code>
|
|
36
|
+
to remove bullets and padding (for nav / button lists).</li>
|
|
37
|
+
</ul>
|
|
38
|
+
|
|
39
|
+
<!-- Definition list -->
|
|
40
|
+
<dl>
|
|
41
|
+
<dt>Term</dt>
|
|
42
|
+
<dd>Description of the term.</dd>
|
|
43
|
+
</dl>
|
|
44
|
+
|
|
45
|
+
<!-- Blockquote uses padding-inline-start too -->
|
|
46
|
+
<blockquote>A blockquote sits indented on the reading-start side.</blockquote>
|
|
47
|
+
|
|
48
|
+
<!-- Horizontal rule gets framework margins -->
|
|
49
|
+
<hr>
|
|
50
|
+
|
|
51
|
+
<!-- pre: overflow-x: auto by default so long lines scroll instead of breaking the page -->
|
|
52
|
+
<pre>Preformatted text block.</pre>
|
|
4
53
|
|
|
5
|
-
|
|
6
|
-
|
|
54
|
+
|
|
55
|
+
<!-- ================================
|
|
56
|
+
.pa-text — paragraph typography component
|
|
57
|
+
The canonical way to apply framework text styles to a block.
|
|
58
|
+
Works on <p>, <span>, <div> — any element.
|
|
59
|
+
================================ -->
|
|
60
|
+
|
|
61
|
+
<!-- Base (default: 14px, primary text colour) -->
|
|
62
|
+
<p class="pa-text">Default paragraph text with 14px font size and primary colour.</p>
|
|
7
63
|
|
|
8
64
|
<!-- Size Modifiers -->
|
|
9
65
|
<p class="pa-text pa-text--xs">Extra small text (10px)</p>
|
|
@@ -12,40 +68,63 @@
|
|
|
12
68
|
<p class="pa-text pa-text--lg">Large text (16px)</p>
|
|
13
69
|
<p class="pa-text pa-text--xl">Extra large text (18px)</p>
|
|
14
70
|
|
|
15
|
-
<!--
|
|
16
|
-
<p class="pa-text pa-text--primary">Primary
|
|
17
|
-
<p class="pa-text pa-text--secondary">Secondary/muted
|
|
71
|
+
<!-- Colour Modifiers -->
|
|
72
|
+
<p class="pa-text pa-text--primary">Primary colour text (= default, maps to --pa-text-color-1)</p>
|
|
73
|
+
<p class="pa-text pa-text--secondary">Secondary/muted colour text (--pa-text-color-2)</p>
|
|
18
74
|
|
|
19
|
-
<!-- Alignment Modifiers -->
|
|
20
|
-
<p class="pa-text pa-text--start">Start
|
|
21
|
-
<p class="pa-text pa-text--center">Center
|
|
22
|
-
<p class="pa-text pa-text--end">End
|
|
75
|
+
<!-- Alignment Modifiers (logical — mirror in RTL) -->
|
|
76
|
+
<p class="pa-text pa-text--start">Start-aligned text (left in LTR, right in RTL)</p>
|
|
77
|
+
<p class="pa-text pa-text--center">Center-aligned text</p>
|
|
78
|
+
<p class="pa-text pa-text--end">End-aligned text (right in LTR, left in RTL)</p>
|
|
23
79
|
|
|
24
|
-
<!-- Semantic Variants -->
|
|
80
|
+
<!-- Semantic Variants (compound styles) -->
|
|
25
81
|
|
|
26
|
-
<!-- Caption:
|
|
27
|
-
<p class="pa-text pa-text--caption">
|
|
82
|
+
<!-- Caption: small + secondary + margin-bottom — ideal above a component as a hint -->
|
|
83
|
+
<p class="pa-text pa-text--caption">29 badges in narrow container</p>
|
|
28
84
|
|
|
29
|
-
<!-- Lead:
|
|
30
|
-
<p class="pa-text pa-text--lead">
|
|
85
|
+
<!-- Lead: larger + relaxed line-height — ideal for intro paragraphs -->
|
|
86
|
+
<p class="pa-text pa-text--lead">Lead text — larger font with relaxed line height for introductory paragraphs.</p>
|
|
31
87
|
|
|
32
88
|
<!-- Combined Modifiers -->
|
|
33
89
|
<p class="pa-text pa-text--sm pa-text--secondary">Small secondary text</p>
|
|
34
|
-
<p class="pa-text pa-text--lg pa-text--center">Large
|
|
90
|
+
<p class="pa-text pa-text--lg pa-text--center">Large centred text</p>
|
|
35
91
|
<p class="pa-text pa-text--xs pa-text--end pa-text--secondary">Extra small, end-aligned, secondary</p>
|
|
36
92
|
|
|
37
|
-
<!-- With Spacing Utilities -->
|
|
38
|
-
<p class="pa-text pa-text--secondary mt-4">Secondary text with top margin</p>
|
|
39
|
-
<p class="pa-text pa-text--caption mb-6">Caption with larger bottom margin</p>
|
|
40
93
|
|
|
41
|
-
<!--
|
|
94
|
+
<!-- ================================
|
|
95
|
+
FONT FAMILY SWITCHERS (_fonts.scss)
|
|
96
|
+
================================ -->
|
|
42
97
|
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
<p class="
|
|
46
|
-
<
|
|
98
|
+
<p class="font-family-system">System font stack (native UI feel)</p>
|
|
99
|
+
<p class="font-family-sans">Sans-serif stack</p>
|
|
100
|
+
<p class="font-family-serif">Serif stack</p>
|
|
101
|
+
<p class="font-family-mono">Monospace stack (same font as <code>)</p>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<!-- ================================
|
|
105
|
+
SEMANTIC TEXT COLOURS (utilities.scss)
|
|
106
|
+
Use these when you want a *colour* without the rest of pa-text's
|
|
107
|
+
baseline sizing. They apply with !important so they win over
|
|
108
|
+
component-scoped colour rules.
|
|
109
|
+
================================ -->
|
|
47
110
|
|
|
48
|
-
|
|
111
|
+
<span class="text-primary">Primary (accent)</span>
|
|
112
|
+
<span class="text-success">Success (green)</span>
|
|
113
|
+
<span class="text-danger">Danger (red)</span>
|
|
114
|
+
<span class="text-warning">Warning (yellow/orange)</span>
|
|
115
|
+
<span class="text-info">Info (cyan/blue)</span>
|
|
116
|
+
|
|
117
|
+
<!-- Theme colour slots 1..9 -->
|
|
118
|
+
<span class="text-color-1">Theme colour 1</span>
|
|
119
|
+
<span class="text-color-2">Theme colour 2</span>
|
|
120
|
+
<!-- Pattern: text-color-{1..9} -->
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<!-- ================================
|
|
124
|
+
PRACTICAL EXAMPLES
|
|
125
|
+
================================ -->
|
|
126
|
+
|
|
127
|
+
<!-- Card header with secondary description -->
|
|
49
128
|
<div class="pa-card__header">
|
|
50
129
|
<h3>Feature Title</h3>
|
|
51
130
|
<p class="pa-text pa-text--secondary">Brief description of this feature or section.</p>
|
|
@@ -58,44 +137,90 @@
|
|
|
58
137
|
</p>
|
|
59
138
|
</div>
|
|
60
139
|
|
|
61
|
-
<!--
|
|
140
|
+
<!-- Centred tab panel copy -->
|
|
62
141
|
<div class="pa-tabs__panel">
|
|
63
142
|
<p class="pa-text pa-text--center">Feature highlights and capabilities.</p>
|
|
64
143
|
</div>
|
|
65
144
|
|
|
66
145
|
<!-- Toast/notification helper -->
|
|
67
146
|
<p class="pa-text pa-text--secondary mt-4">
|
|
68
|
-
Progress bar shows time remaining before auto-dismiss (5 seconds)
|
|
147
|
+
Progress bar shows time remaining before auto-dismiss (5 seconds).
|
|
69
148
|
</p>
|
|
70
149
|
|
|
150
|
+
|
|
151
|
+
<!-- ================================
|
|
152
|
+
COMPONENT REFERENCE
|
|
153
|
+
================================ -->
|
|
154
|
+
|
|
71
155
|
<!--
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.pa-text
|
|
80
|
-
.
|
|
81
|
-
.
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
156
|
+
REM BASE:
|
|
157
|
+
html { font-size: 10px } — every 1rem is 10px, so pixel-to-rem conversions are trivial.
|
|
158
|
+
body default text: 1.6rem = 16px.
|
|
159
|
+
|
|
160
|
+
FONT-SIZE SCALE (SCSS variables, all relative to the 10px rem base):
|
|
161
|
+
$font-size-2xs 1rem 10px
|
|
162
|
+
$font-size-xs 1.2rem 12px
|
|
163
|
+
$font-size-sm 1.4rem 14px ← pa-text default
|
|
164
|
+
$font-size-md 1.5rem 15px
|
|
165
|
+
$font-size-base 1.6rem 16px ← body default
|
|
166
|
+
$font-size-lg 1.8rem 18px
|
|
167
|
+
$font-size-xl 2rem 20px
|
|
168
|
+
$font-size-2xl 2.4rem 24px
|
|
169
|
+
|
|
170
|
+
BASE ELEMENTS (from _base.scss, apply automatically):
|
|
171
|
+
h1..h6 $heading-margin-top / $heading-margin-bottom
|
|
172
|
+
p $paragraph-margin-top / $paragraph-margin-bottom
|
|
173
|
+
ul, ol padding-inline-start: $list-padding-left (RTL-aware)
|
|
174
|
+
ul.unstyled bullets + padding removed (for nav / button lists)
|
|
175
|
+
dl, dd list margins + 0 padding
|
|
176
|
+
blockquote padding-inline-start: $blockquote-padding-left
|
|
177
|
+
hr $hr-margin-top / $hr-margin-bottom
|
|
178
|
+
figure $figure-margin-top / $figure-margin-bottom
|
|
179
|
+
pre overflow-x: auto
|
|
180
|
+
button, input, select, textarea, label
|
|
181
|
+
font-family: inherit; font-size: inherit — so form
|
|
182
|
+
controls track the theme font instead of OS defaults.
|
|
183
|
+
|
|
184
|
+
.pa-text — BEM paragraph component (from _utilities.scss):
|
|
185
|
+
Base .pa-text (14px, --pa-text-color-1)
|
|
186
|
+
|
|
187
|
+
Sizes .pa-text--xs 10px
|
|
188
|
+
.pa-text--sm 12px
|
|
189
|
+
.pa-text--lg 16px
|
|
190
|
+
.pa-text--xl 18px
|
|
191
|
+
|
|
192
|
+
Colours .pa-text--primary --pa-text-color-1 (same as default)
|
|
193
|
+
.pa-text--secondary --pa-text-color-2 (muted)
|
|
194
|
+
|
|
195
|
+
Alignment .pa-text--start text-align: start (RTL-aware)
|
|
196
|
+
.pa-text--center text-align: center
|
|
197
|
+
.pa-text--end text-align: end (RTL-aware)
|
|
198
|
+
|
|
199
|
+
Semantic .pa-text--caption 12px + secondary + margin-bottom: $spacing-sm
|
|
200
|
+
→ small hint/description above a component
|
|
201
|
+
.pa-text--lead 16px + $line-height-relaxed
|
|
202
|
+
→ intro paragraph
|
|
203
|
+
|
|
204
|
+
FONT FAMILY SWITCHERS (_fonts.scss):
|
|
205
|
+
.font-family-system native OS font stack
|
|
206
|
+
.font-family-sans sans-serif stack
|
|
207
|
+
.font-family-serif serif stack
|
|
208
|
+
.font-family-mono monospace stack (same as <code>)
|
|
209
|
+
|
|
210
|
+
SEMANTIC TEXT COLOURS (_utilities.scss — !important, colour-only):
|
|
211
|
+
.text-primary / -success / -danger / -warning / -info
|
|
212
|
+
.text-color-{1..9} theme palette slots
|
|
213
|
+
.text-muted synonym for --pa-text-color-2
|
|
214
|
+
(Use pa-text--primary/--secondary when you want sizing + colour;
|
|
215
|
+
use .text-* when you just want colour.)
|
|
216
|
+
|
|
217
|
+
TEXT UTILITIES (_utilities.scss):
|
|
218
|
+
.text-center synonym for pa-text--center without the rest of pa-text
|
|
219
|
+
.text-nowrap white-space: nowrap
|
|
220
|
+
.text-truncate overflow hidden + ellipsis + nowrap
|
|
221
|
+
|
|
222
|
+
COMBINE WITH SPACING UTILITIES:
|
|
223
|
+
.mt-1 .. .mt-20 margin-top
|
|
224
|
+
.mb-1 .. .mb-20 margin-bottom
|
|
225
|
+
(see utilities.scss for full spacing scale + semantic sizes like mt-md)
|
|
101
226
|
-->
|