@marianmeres/stuic 3.82.0 → 3.83.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.
@@ -97,6 +97,7 @@ Only one item can be open at a time:
97
97
  | --------------------------------------- | ---------------------- | ----------------------------- |
98
98
  | `--stuic-accordion-border-color` | `--stuic-color-border` | Item separator color |
99
99
  | `--stuic-accordion-border-width` | `1px` | Separator width |
100
+ | `--stuic-accordion-divider-inset` | `0` | Inset of divider from L/R edges (e.g. `16px`) |
100
101
  | `--stuic-accordion-radius` | `--radius-md` | Corner rounding |
101
102
  | `--stuic-accordion-transition` | `200ms` | Open/close animation duration |
102
103
  | `--stuic-accordion-trigger-padding-x` | `1rem` | Trigger horizontal padding |
@@ -7,6 +7,7 @@
7
7
  :root {
8
8
  /* Border & shape */
9
9
  --stuic-accordion-border-color: var(--stuic-color-border);
10
+ --stuic-accordion-divider-inset: 0;
10
11
 
11
12
  /* Animation */
12
13
 
@@ -49,9 +50,12 @@
49
50
  ITEM
50
51
  ============================================================================ */
51
52
 
52
- .stuic-accordion-item + .stuic-accordion-item {
53
- border-top: var(--stuic-accordion-border-width, var(--stuic-border-width)) solid
54
- var(--stuic-accordion-border-color);
53
+ .stuic-accordion-item + .stuic-accordion-item::before {
54
+ content: "";
55
+ display: block;
56
+ height: var(--stuic-accordion-border-width, var(--stuic-border-width));
57
+ background: var(--stuic-accordion-border-color);
58
+ margin-inline: var(--stuic-accordion-divider-inset);
55
59
  }
56
60
 
57
61
  /* ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.82.0",
3
+ "version": "3.83.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run prepack",