@posiwise/core-styles 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/core-styles",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -2279,14 +2279,35 @@ body {
2279
2279
  color: $font-color-main;
2280
2280
  padding: 1.171em 1em;
2281
2281
  }
2282
+ /* Collapsed: hide content completely so no space */
2283
+ .p-accordionpanel:not(.p-accordionpanel-active) .p-accordion-content,
2284
+ .p-accordionpanel:not(.p-accordionpanel-active) .p-accordioncontent,
2285
+ .p-accordionpanel:not(.p-accordionpanel-active) p-accordion-content,
2286
+ .p-accordionpanel:not(.p-accordionpanel-active) [data-pc-name='accordioncontent'] {
2287
+ overflow: hidden;
2288
+ height: 0;
2289
+ }
2290
+
2282
2291
  }
2283
2292
 
2284
- /* PrimeNG 19 Accordion - keep header and icon color as tabs_bg (do not change) */
2293
+ /* PrimeNG 19 Accordion - icon then label on the left, rest of space empty (match design) */
2285
2294
  .p-accordionheader {
2286
2295
  color: var(--tabs_bg) !important;
2296
+ gap: 1.125rem;
2297
+ display: flex !important;
2298
+ flex-direction: row-reverse !important;
2299
+ align-items: center !important;
2300
+ justify-content: flex-end !important; /* in row-reverse: pack icon+label to the left */
2301
+
2302
+ /* Label/content: do not grow – stay next to icon so layout is [icon][Apple][empty space] */
2303
+ > *:not(.p-accordionheader-toggle-icon) {
2304
+ flex: 0 1 auto !important;
2305
+ }
2287
2306
 
2288
2307
  .p-accordionheader-toggle-icon {
2289
2308
  color: var(--tabs_bg) !important;
2309
+ margin-left: 0;
2310
+ margin-right: 6px; /* Small distinct gap between icon and label per design */
2290
2311
  }
2291
2312
  }
2292
2313