@pepperui/css 2.0.0 → 2.1.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * pepper-ui.css — @pepperui/css 2.0.0, the Mobupps design system's components as plain CSS.
2
+ * pepper-ui.css — @pepperui/css 2.1.0, the Mobupps design system's components as plain CSS.
3
3
  * GENERATED by `npm run build` from packages/css/src — do not edit by hand; edit the source file named
4
- * in each section's header. Requires @pepperui/tokens 1.2.0 (tokens.css) loaded before it.
4
+ * in each section's header. Requires @pepperui/tokens 1.3.0 (tokens.css) loaded before it.
5
5
  * Source of truth: bitbucket.org/rashidmobupps/pepper-ui — 60 parts.
6
6
  */
7
7
  /* @pepperui/css — the source, in load order. build/css.js inlines these @imports into dist/pepper-ui.css.
@@ -2541,7 +2541,8 @@ button.pui-switch__track:disabled { opacity: 0.5; cursor: not-allowed; }
2541
2541
  * The site's top bar, from its production CSS (global-2026.css:149–262): 856 wide, fixed 30 down and centred, padding
2542
2542
  * space/8 (the site pads 10 — global-2026.css:165 and styles.css:236 — a value off the spacing scale, rounded to its nearest step;
2543
2543
  * stated 2026-09-09, Finding 40 of the site pilot — decided by Fedor the same day on the Blade pilot: the scale, no consumer exception), a frosted ground — surface/glass over blur/nav (the site's rgba(232,232,232,.49) over 7.3 px, now tokens
2544
- * D42) — radius/8, elevation/card; the Mobupps mark at 122 × 31, links at an 8 gap, the black CTA at the right. A link
2544
+ * D42) — radius/8, elevation/bar — the broad low-contrast level, not elevation/card, which banked too hard under a bar that is
2545
+ * always on screen (D149, 2026-09-22, from Fedor's own `Mani_nav_old` 733:1426); the Mobupps mark at 122 × 31, links at an 8 gap, the black CTA at the right. A link
2545
2546
  * is 14 Regular text/default, padding 4 / 8; Type products adds the 16 px caret (padding 8 left, 0 right — the site's list item); Type cta is the black mini button
2546
2547
  * (action/primary/bg, padding 4 / 8, radius/4 — the site's own shape, not Button small) inside the item's 4 / 8, carried as its margin
2547
2548
  * (Finding 47, 2026-09-09); the panel's links dim to
@@ -2565,16 +2566,24 @@ button.pui-switch__track:disabled { opacity: 0.5; cursor: not-allowed; }
2565
2566
  gap: var(--pui-space-16);
2566
2567
  box-sizing: border-box;
2567
2568
  width: 856px;
2568
- max-width: calc(100vw - var(--pui-space-32));
2569
+ /* 100 % of what CONTAINS it, not of the viewport. The bar was capped at `calc(100vw - space/32)`,
2570
+ which is only true for the --fixed placement below, where the bar IS a child of the viewport. In
2571
+ any padded container — a documentation frame, a section, a card — it then computed a width wider
2572
+ than the room it had and overflowed by exactly that padding, raising a second scrollbar inside the
2573
+ frame's own (Fedor, 2026-09-22, looking at /components/navigation-menu/). The viewport cap belongs
2574
+ on the placement that is fixed to the viewport. */
2575
+ max-width: 100%;
2569
2576
  padding: var(--pui-space-8);
2570
2577
  border-radius: var(--pui-radius-8);
2571
2578
  background: var(--pui-surface-glass);
2572
2579
  -webkit-backdrop-filter: blur(var(--pui-blur-nav));
2573
2580
  backdrop-filter: blur(var(--pui-blur-nav));
2574
- box-shadow: var(--pui-elevation-card);
2581
+ box-shadow: var(--pui-elevation-bar);
2575
2582
  font-family: var(--pui-font-family);
2576
2583
  }
2577
2584
  .pui-navigation-menu--fixed {
2585
+ /* Fixed to the viewport, so here the viewport IS the container and the cap is the site's own. */
2586
+ max-width: calc(100vw - var(--pui-space-32));
2578
2587
  position: fixed;
2579
2588
  top: 30px; /* global-2026.css:149 .nav-bar-wrap */
2580
2589
  left: 50%;
@@ -2624,11 +2633,53 @@ button.pui-switch__track:disabled { opacity: 0.5; cursor: not-allowed; }
2624
2633
  }
2625
2634
  .pui-nav-link--cta:hover { background: var(--pui-action-primary-bg-hover); color: var(--pui-action-primary-fg); }
2626
2635
 
2636
+ /* Navigation menu - mobile — the bar below the tablet breakpoint, where the links collapse to a burger.
2637
+ * Figma: 744:135, rebuilt from the file's own Mani_nav_mob_old 733:1901 (D151). Everything the wide bar
2638
+ * declares is inherited — the frosted ground, radius/8, elevation/bar, padding space/8 — and only the
2639
+ * width and the burger are its own. The master draws the CLOSED bar only, so the opened form is the
2640
+ * Navigation panel the library already ships (D142).
2641
+ *
2642
+ * <nav class="pui-navigation-menu pui-navigation-menu--mobile">
2643
+ * <a class="pui-navigation-menu__logo" href="/">…mark…</a>
2644
+ * <button class="pui-navigation-menu__burger" aria-label="Menu" aria-expanded="false">
2645
+ * <span></span><span></span><span></span></button></nav>
2646
+ */
2647
+ .pui-navigation-menu--mobile { width: 370px; }
2648
+ .pui-navigation-menu__burger {
2649
+ display: flex;
2650
+ flex: none;
2651
+ flex-direction: column;
2652
+ gap: var(--pui-space-4);
2653
+ box-sizing: content-box;
2654
+ width: 32px;
2655
+ margin: 0;
2656
+ padding: 0;
2657
+ border: 0;
2658
+ background: transparent;
2659
+ color: var(--pui-text-default);
2660
+ cursor: pointer;
2661
+ }
2662
+ /* Three bars, 4 tall, the master's #171717 — which D4 absorbs into neutral/900, so this is the same ink
2663
+ the nav links take, through currentColor rather than a second declaration of it. */
2664
+ .pui-navigation-menu__burger > span {
2665
+ display: block;
2666
+ height: 4px;
2667
+ border-radius: var(--pui-radius-full);
2668
+ background: currentColor;
2669
+ }
2670
+ .pui-navigation-menu__burger:focus-visible { outline: none; border-radius: var(--pui-radius-4); box-shadow: var(--pui-ring); }
2671
+
2627
2672
  .pui-navigation-panel {
2628
2673
  display: flex;
2629
2674
  flex-direction: column;
2630
2675
  gap: var(--pui-space-4);
2631
2676
  box-sizing: border-box;
2677
+ /* A dropdown HUGS its content. `min-width` alone left the panel a block-level flex box, so anywhere it
2678
+ is not absolutely positioned — a documentation frame, a section, any ordinary container — it grew to
2679
+ the full width of whatever held it: 507 px against the component's own 200 (Fedor, 2026-09-22,
2680
+ against his live site and the Figma component, both of which hug). The site's own panel hugs because
2681
+ it is positioned; the component must hug on its own. */
2682
+ width: fit-content;
2632
2683
  min-width: 200px;
2633
2684
  padding: var(--pui-space-20);
2634
2685
  border-radius: var(--pui-radius-8);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperui/css",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Pepper UI components as framework-free CSS \u2014 the Mobupps design system for Paggy, the site's Blade and prototype pages and the quarter builder (DL-7). Every class is built on @pepperui/tokens; no literal colour anywhere (item 2.2.4, stylelint).",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -15,10 +15,11 @@
15
15
  "exports": {
16
16
  ".": "./dist/pepper-ui.css",
17
17
  "./src": "./src/index.css",
18
- "./src/*": "./src/*"
18
+ "./src/*": "./src/*",
19
+ "./package.json": "./package.json"
19
20
  },
20
21
  "peerDependencies": {
21
- "@pepperui/tokens": "^1.2.0"
22
+ "@pepperui/tokens": "^1.3.0"
22
23
  },
23
24
  "publishConfig": {
24
25
  "access": "public"
@@ -3,7 +3,8 @@
3
3
  * The site's top bar, from its production CSS (global-2026.css:149–262): 856 wide, fixed 30 down and centred, padding
4
4
  * space/8 (the site pads 10 — global-2026.css:165 and styles.css:236 — a value off the spacing scale, rounded to its nearest step;
5
5
  * stated 2026-09-09, Finding 40 of the site pilot — decided by Fedor the same day on the Blade pilot: the scale, no consumer exception), a frosted ground — surface/glass over blur/nav (the site's rgba(232,232,232,.49) over 7.3 px, now tokens
6
- * D42) — radius/8, elevation/card; the Mobupps mark at 122 × 31, links at an 8 gap, the black CTA at the right. A link
6
+ * D42) — radius/8, elevation/bar — the broad low-contrast level, not elevation/card, which banked too hard under a bar that is
7
+ * always on screen (D149, 2026-09-22, from Fedor's own `Mani_nav_old` 733:1426); the Mobupps mark at 122 × 31, links at an 8 gap, the black CTA at the right. A link
7
8
  * is 14 Regular text/default, padding 4 / 8; Type products adds the 16 px caret (padding 8 left, 0 right — the site's list item); Type cta is the black mini button
8
9
  * (action/primary/bg, padding 4 / 8, radius/4 — the site's own shape, not Button small) inside the item's 4 / 8, carried as its margin
9
10
  * (Finding 47, 2026-09-09); the panel's links dim to
@@ -27,16 +28,24 @@
27
28
  gap: var(--pui-space-16);
28
29
  box-sizing: border-box;
29
30
  width: 856px;
30
- max-width: calc(100vw - var(--pui-space-32));
31
+ /* 100 % of what CONTAINS it, not of the viewport. The bar was capped at `calc(100vw - space/32)`,
32
+ which is only true for the --fixed placement below, where the bar IS a child of the viewport. In
33
+ any padded container — a documentation frame, a section, a card — it then computed a width wider
34
+ than the room it had and overflowed by exactly that padding, raising a second scrollbar inside the
35
+ frame's own (Fedor, 2026-09-22, looking at /components/navigation-menu/). The viewport cap belongs
36
+ on the placement that is fixed to the viewport. */
37
+ max-width: 100%;
31
38
  padding: var(--pui-space-8);
32
39
  border-radius: var(--pui-radius-8);
33
40
  background: var(--pui-surface-glass);
34
41
  -webkit-backdrop-filter: blur(var(--pui-blur-nav));
35
42
  backdrop-filter: blur(var(--pui-blur-nav));
36
- box-shadow: var(--pui-elevation-card);
43
+ box-shadow: var(--pui-elevation-bar);
37
44
  font-family: var(--pui-font-family);
38
45
  }
39
46
  .pui-navigation-menu--fixed {
47
+ /* Fixed to the viewport, so here the viewport IS the container and the cap is the site's own. */
48
+ max-width: calc(100vw - var(--pui-space-32));
40
49
  position: fixed;
41
50
  top: 30px; /* global-2026.css:149 .nav-bar-wrap */
42
51
  left: 50%;
@@ -86,11 +95,53 @@
86
95
  }
87
96
  .pui-nav-link--cta:hover { background: var(--pui-action-primary-bg-hover); color: var(--pui-action-primary-fg); }
88
97
 
98
+ /* Navigation menu - mobile — the bar below the tablet breakpoint, where the links collapse to a burger.
99
+ * Figma: 744:135, rebuilt from the file's own Mani_nav_mob_old 733:1901 (D151). Everything the wide bar
100
+ * declares is inherited — the frosted ground, radius/8, elevation/bar, padding space/8 — and only the
101
+ * width and the burger are its own. The master draws the CLOSED bar only, so the opened form is the
102
+ * Navigation panel the library already ships (D142).
103
+ *
104
+ * <nav class="pui-navigation-menu pui-navigation-menu--mobile">
105
+ * <a class="pui-navigation-menu__logo" href="/">…mark…</a>
106
+ * <button class="pui-navigation-menu__burger" aria-label="Menu" aria-expanded="false">
107
+ * <span></span><span></span><span></span></button></nav>
108
+ */
109
+ .pui-navigation-menu--mobile { width: 370px; }
110
+ .pui-navigation-menu__burger {
111
+ display: flex;
112
+ flex: none;
113
+ flex-direction: column;
114
+ gap: var(--pui-space-4);
115
+ box-sizing: content-box;
116
+ width: 32px;
117
+ margin: 0;
118
+ padding: 0;
119
+ border: 0;
120
+ background: transparent;
121
+ color: var(--pui-text-default);
122
+ cursor: pointer;
123
+ }
124
+ /* Three bars, 4 tall, the master's #171717 — which D4 absorbs into neutral/900, so this is the same ink
125
+ the nav links take, through currentColor rather than a second declaration of it. */
126
+ .pui-navigation-menu__burger > span {
127
+ display: block;
128
+ height: 4px;
129
+ border-radius: var(--pui-radius-full);
130
+ background: currentColor;
131
+ }
132
+ .pui-navigation-menu__burger:focus-visible { outline: none; border-radius: var(--pui-radius-4); box-shadow: var(--pui-ring); }
133
+
89
134
  .pui-navigation-panel {
90
135
  display: flex;
91
136
  flex-direction: column;
92
137
  gap: var(--pui-space-4);
93
138
  box-sizing: border-box;
139
+ /* A dropdown HUGS its content. `min-width` alone left the panel a block-level flex box, so anywhere it
140
+ is not absolutely positioned — a documentation frame, a section, any ordinary container — it grew to
141
+ the full width of whatever held it: 507 px against the component's own 200 (Fedor, 2026-09-22,
142
+ against his live site and the Figma component, both of which hug). The site's own panel hugs because
143
+ it is positioned; the component must hug on its own. */
144
+ width: fit-content;
94
145
  min-width: 200px;
95
146
  padding: var(--pui-space-20);
96
147
  border-radius: var(--pui-radius-8);