@keenmate/pure-admin-core 2.3.0 → 2.3.1

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,19 @@
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.1
6
+
7
+ - **Split button fixes** — RTL layout, missing toggle border, menu closing on outside click, and flex menu layout with gap for items with inline action buttons
8
+ - **Split button dropdown icons** — New `pa-btn-split__item-icon` element for icons in menu items
9
+ - **Button label element** — New `pa-btn__label` for proper horizontal centering of icon+text in `pa-btn--align-center` buttons
10
+ - **Select descender fix** — Added `line-height: normal` to `.pa-select` to prevent clipping on native selects
11
+
5
12
  ## What's New in 2.3.0
6
13
 
7
14
  - **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
15
  - **Toast service improvements** — `filled`, `progressColor`, and `maxWidth` options. Container width ratchets up to the widest toast shown, preventing layout jitter when toasts dismiss
9
16
  - **Toast progress bar** — More visible: 5px height, 0.6 opacity (was 3px / 0.3)
10
17
 
11
- ## What's New in 2.2.0
12
-
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
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
15
-
16
18
  ## Installation
17
19
 
18
20
  ```bash
package/dist/css/main.css CHANGED
@@ -7641,6 +7641,9 @@ a.pa-card p {
7641
7641
  margin-inline-end: 0;
7642
7642
  margin-inline-start: 0.8rem;
7643
7643
  }
7644
+ .pa-btn__label {
7645
+ flex: 0 1 auto;
7646
+ }
7644
7647
  .pa-btn:has(.pa-btn__icon) {
7645
7648
  text-align: start;
7646
7649
  display: inline-flex;
@@ -7674,6 +7677,10 @@ a.pa-card p {
7674
7677
  .pa-btn--align-center {
7675
7678
  justify-content: center;
7676
7679
  }
7680
+ .pa-btn--align-center .pa-btn__label {
7681
+ flex: 1;
7682
+ text-align: center;
7683
+ }
7677
7684
  .pa-btn--align-justify {
7678
7685
  justify-content: space-between;
7679
7686
  }
@@ -7766,9 +7773,6 @@ a.pa-card p {
7766
7773
  position: relative;
7767
7774
  display: inline-flex;
7768
7775
  }
7769
- [dir=rtl] .pa-btn-split {
7770
- flex-direction: row-reverse;
7771
- }
7772
7776
  .pa-btn-split .pa-btn {
7773
7777
  border-radius: 0;
7774
7778
  }
@@ -7781,7 +7785,6 @@ a.pa-card p {
7781
7785
  border-start-end-radius: 4px;
7782
7786
  border-end-end-radius: 4px;
7783
7787
  border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
7784
- border-inline-end: none;
7785
7788
  padding-inline: 0;
7786
7789
  display: inline-flex;
7787
7790
  align-items: center;
@@ -7813,6 +7816,8 @@ a.pa-card p {
7813
7816
  }
7814
7817
  .pa-btn-split__menu {
7815
7818
  display: none;
7819
+ flex-direction: column;
7820
+ gap: 0.4rem;
7816
7821
  position: fixed;
7817
7822
  top: 0;
7818
7823
  left: 0;
@@ -7825,10 +7830,12 @@ a.pa-card p {
7825
7830
  padding: 0.4rem 0;
7826
7831
  }
7827
7832
  .pa-btn-split__menu--open {
7828
- display: block;
7833
+ display: flex;
7829
7834
  }
7830
7835
  .pa-btn-split__item {
7831
- display: block;
7836
+ display: flex;
7837
+ align-items: center;
7838
+ gap: 0.8rem;
7832
7839
  width: 100%;
7833
7840
  padding: 0.8rem 1.6rem;
7834
7841
  border: none;
@@ -7849,6 +7856,15 @@ a.pa-card p {
7849
7856
  background-color: var(--pa-btn-danger-bg);
7850
7857
  color: var(--pa-btn-danger-text);
7851
7858
  }
7859
+ .pa-btn-split__item-icon {
7860
+ width: 2.4rem;
7861
+ min-width: 2.4rem;
7862
+ display: flex;
7863
+ align-items: center;
7864
+ justify-content: center;
7865
+ flex-shrink: 0;
7866
+ opacity: 0.7;
7867
+ }
7852
7868
 
7853
7869
  /* ========================================
7854
7870
  Loader Components
@@ -9220,6 +9236,7 @@ a.pa-card p {
9220
9236
  border: 1px solid var(--pa-border-color);
9221
9237
  border-radius: 4px;
9222
9238
  font-size: 1.4rem;
9239
+ line-height: normal;
9223
9240
  background-color: var(--pa-input-bg);
9224
9241
  color: var(--pa-text-color-1);
9225
9242
  transition: border-color 0.1s ease-out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keenmate/pure-admin-core",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
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": {