@flux-ui/application 3.1.6 → 3.1.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@flux-ui/application",
3
3
  "description": "Contains components to create applications with Flux UI.",
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -51,9 +51,9 @@
51
51
  "typings": "./dist/index.d.ts",
52
52
  "sideEffects": false,
53
53
  "dependencies": {
54
- "@flux-ui/components": "3.1.6",
55
- "@flux-ui/internals": "3.1.6",
56
- "@flux-ui/types": "3.1.6",
54
+ "@flux-ui/components": "3.1.7",
55
+ "@flux-ui/internals": "3.1.7",
56
+ "@flux-ui/types": "3.1.7",
57
57
  "clsx": "^2.1.1"
58
58
  },
59
59
  "peerDependencies": {
@@ -58,6 +58,7 @@
58
58
  }
59
59
 
60
60
  > :local(.calendar) {
61
+ border-top: 0;
61
62
  border-left: 0;
62
63
  border-right: 0;
63
64
  border-radius: 0;
@@ -113,6 +113,24 @@
113
113
 
114
114
  .applicationMenu :local(.menuSubHeader) {
115
115
  --surface: var(--application-menu-surface);
116
+ height: auto;
117
+ overflow: hidden;
118
+ interpolate-size: allow-keywords;
119
+ transition: var(--application-duration) var(--swift-out);
120
+ transition-property: height, margin, opacity, padding, display;
121
+ transition-behavior: allow-discrete;
122
+
123
+ @starting-style {
124
+ height: 0;
125
+ /* Match the collapsed state's negative margins (sum -12px = one panel gap)
126
+ so the expand-in animation starts exactly where the collapsed sub-header
127
+ sat — no jump at the start of the expand. */
128
+ margin-top: -9px;
129
+ margin-bottom: -3px;
130
+ padding-top: 0;
131
+ padding-bottom: 0;
132
+ opacity: 0;
133
+ }
116
134
  }
117
135
 
118
136
  .applicationMenu :local(.menuItem) {
@@ -242,6 +260,7 @@
242
260
  background: var(--gray-25);
243
261
  border: 1px solid var(--application-menu-surface-stroke);
244
262
  border-radius: var(--radius);
263
+ transition: opacity var(--application-duration) var(--swift-out);
245
264
  }
246
265
 
247
266
  .applicationMenuPromo > :local(.icon) {
@@ -257,7 +276,7 @@
257
276
  font-size: 14px;
258
277
  }
259
278
 
260
- .applicationMenuPromoContent :global(a) {
279
+ .applicationMenuPromoContent :global(a:not([class])) {
261
280
  color: var(--gray-700);
262
281
  }
263
282
 
@@ -283,6 +302,10 @@
283
302
  }
284
303
 
285
304
  @include mixin.breakpoint-up(lg) {
305
+ .applicationMenuPromo {
306
+ width: calc(var(--application-menu-width) - 25px);
307
+ }
308
+
286
309
  .applicationMenu[data-collapsed][data-collapsible] {
287
310
  width: var(--application-menu-width-collapsed);
288
311
 
@@ -292,6 +315,20 @@
292
315
  translate: -12px 0;
293
316
  }
294
317
 
318
+ :local(.menuSubHeader) {
319
+ display: none;
320
+ height: 0;
321
+ /* Keep the sub-header's negative margins (sum -12px = one panel gap) while
322
+ it is a zero-height flex item, so the space it leaves equals the single
323
+ gap that remains after `display: none` removes it — avoiding a jump of
324
+ the group below at the end of the collapse. */
325
+ margin-top: -9px;
326
+ margin-bottom: -3px;
327
+ padding-top: 0;
328
+ padding-bottom: 0;
329
+ opacity: 0;
330
+ }
331
+
295
332
  .applicationMenuPromo,
296
333
  .applicationMenuContext {
297
334
  opacity: 0;
@@ -324,6 +361,8 @@ html[data-application-resizing] {
324
361
  .applicationMenuFooter::before,
325
362
  .applicationMenuHeader,
326
363
  .applicationMenuTrack,
364
+ .applicationMenuPromo,
365
+ .applicationMenu :local(.menuSubHeader),
327
366
  .applicationMenu :local(.menuItemLabel),
328
367
  .applicationMenuContextPillContent :global(strong),
329
368
  .applicationMenuContextPillContent :global(span) {
@@ -105,6 +105,6 @@
105
105
  }
106
106
  }
107
107
 
108
- .applicationTop:has(+ .applicationContentFull > :local(.table)) {
108
+ .applicationTop:has(+ .applicationContentFull > :is(:local(.calendar), :local(.table))) {
109
109
  border-bottom-color: var(--surface-stroke-out);
110
110
  }