@keenmate/pure-admin-core 2.2.0 → 2.3.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 CHANGED
@@ -2,17 +2,16 @@
2
2
 
3
3
  Lightweight, data-focused CSS/SCSS admin framework with Corporate theme as default.
4
4
 
5
+ ## What's New in 2.3.0
6
+
7
+ - **Toast action buttons** — New `pa-toast__actions` element for action buttons inside toasts, separated by a border-top. Toast service supports `actions: [{ label, variant, onClick }]` with auto-dismiss on click
8
+ - **Toast service improvements** — `filled`, `progressColor`, and `maxWidth` options. Container width ratchets up to the widest toast shown, preventing layout jitter when toasts dismiss
9
+ - **Toast progress bar** — More visible: 5px height, 0.6 opacity (was 3px / 0.3)
10
+
5
11
  ## What's New in 2.2.0
6
12
 
7
13
  - **Theme color slots (1-9) across components** — Alerts, callouts, toasts, and buttons now support `--color-{1-9}` and `--outline-color-{1-9}` variants using the 9 custom theme color slots. Themes that define `$color-1` through `$color-9` get matching component styles automatically
8
14
  - **Filled toast variants** — New `pa-toast--filled-*` variants with full-color backgrounds, contrast text, and semi-transparent progress bars. Available for all standard colors and theme color slots
9
- - **Unified card actions naming** — `pa-card__tools` replaced with `pa-card__actions` across both `pa-card` and `pa-table-card`
10
- - **Font Tuning Tool** (`/font-test`) — Developer utility for finding the right `@font-face` descriptor values when using custom fonts
11
-
12
- ## What's New in 2.1.0
13
-
14
- - **Unified card actions naming** — `pa-card__tools` replaced with `pa-card__actions` across both `pa-card` and `pa-table-card`. Header and footer now use the same element name, disambiguated by context
15
- - **Font Tuning Tool** (`/font-test`) — Developer utility for finding the right `@font-face` descriptor values (`ascent-override`, `descent-override`, `size-adjust`) when using custom fonts. Loads any Google Font, generates variants for visual comparison, and outputs a copyable CSS snippet
16
15
 
17
16
  ## Installation
18
17
 
@@ -340,6 +339,10 @@ Works with both `pa-table` and `web-grid` component. First/last columns automati
340
339
  ### Toasts
341
340
  - `.pa-toast` - Base toast
342
341
  - `.pa-toast--primary/success/danger/warning/info` - Variants
342
+ - `.pa-toast--filled-primary/success/danger/warning/info` - Filled variants (full-color background)
343
+ - `.pa-toast--color-{1-9}` / `.pa-toast--filled-color-{1-9}` - Theme color slot variants
344
+ - `.pa-toast__actions` - Action button row with border-top separator
345
+ - `.pa-toast__progress` - Auto-dismiss progress bar (5px, 0.6 opacity)
343
346
  - Positions (RTL-aware): `top-end`, `top-center`, `top-start`, `bottom-end`, `bottom-center`, `bottom-start`
344
347
 
345
348
  ### Tooltips & Popovers
package/dist/css/main.css CHANGED
@@ -12798,6 +12798,15 @@ code {
12798
12798
  line-height: 1.5;
12799
12799
  }
12800
12800
 
12801
+ .pa-toast__actions {
12802
+ margin-top: 1.6rem;
12803
+ padding-top: 1.6rem;
12804
+ border-top: 1px solid var(--pa-border-color);
12805
+ display: flex;
12806
+ gap: 0.8rem;
12807
+ flex-wrap: wrap;
12808
+ }
12809
+
12801
12810
  .pa-toast__close {
12802
12811
  flex-shrink: 0;
12803
12812
  background: none;
@@ -12828,9 +12837,9 @@ code {
12828
12837
  position: absolute;
12829
12838
  bottom: 0;
12830
12839
  inset-inline-start: 0;
12831
- height: 3px;
12840
+ height: 5px;
12832
12841
  background-color: currentColor;
12833
- opacity: 0.3;
12842
+ opacity: 0.6;
12834
12843
  transition: width linear;
12835
12844
  }
12836
12845
 
@@ -12988,6 +12997,10 @@ code {
12988
12997
  color: var(--pa-color-9);
12989
12998
  }
12990
12999
 
13000
+ [class*=pa-toast--filled] .pa-toast__actions {
13001
+ border-top-color: rgba(255, 255, 255, 0.25);
13002
+ }
13003
+
12991
13004
  .pa-toast--filled-primary {
12992
13005
  background-color: var(--pa-btn-primary-bg);
12993
13006
  border-color: var(--pa-btn-primary-bg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keenmate/pure-admin-core",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Lightweight, data-focused HTML/CSS admin framework built with PureCSS foundation and comprehensive component system",
5
5
  "style": "dist/css/main.css",
6
6
  "exports": {
@@ -179,6 +179,16 @@
179
179
  line-height: $line-height-base;
180
180
  }
181
181
 
182
+ // Toast actions (buttons under a separator)
183
+ .pa-toast__actions {
184
+ margin-top: $spacing-base;
185
+ padding-top: $spacing-base;
186
+ border-top: $border-width-base solid var(--pa-border-color);
187
+ display: flex;
188
+ gap: $spacing-sm;
189
+ flex-wrap: wrap;
190
+ }
191
+
182
192
  // Toast close button
183
193
  .pa-toast__close {
184
194
  flex-shrink: 0;
@@ -215,7 +225,7 @@
215
225
  inset-inline-start: 0; // RTL: flips to right
216
226
  height: $toast-progress-height;
217
227
  background-color: currentColor;
218
- opacity: 0.3;
228
+ opacity: 0.6;
219
229
  transition: width linear;
220
230
  }
221
231
 
@@ -309,6 +319,11 @@
309
319
 
310
320
  // ===== FILLED TOAST VARIANTS =====
311
321
 
322
+ // Filled toast actions: separator color + reset button colors from toast inheritance
323
+ [class*="pa-toast--filled"] .pa-toast__actions {
324
+ border-top-color: rgba(255, 255, 255, 0.25);
325
+ }
326
+
312
327
  .pa-toast--filled-primary {
313
328
  background-color: var(--pa-btn-primary-bg);
314
329
  border-color: var(--pa-btn-primary-bg);
@@ -397,7 +397,7 @@ $toast-padding-v: $spacing-md !default;
397
397
  $toast-padding-h: $spacing-md !default;
398
398
  $toast-icon-size: 3.2rem !default; // 32px (was 2rem)
399
399
  $toast-close-size: 2.4rem !default; // 24px (was 1.5rem)
400
- $toast-progress-height: 3px !default;
400
+ $toast-progress-height: 5px !default;
401
401
 
402
402
  // ============================================================================
403
403
  // TOOLTIP SYSTEM