@pepperui/css 2.0.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.
Files changed (64) hide show
  1. package/README.md +123 -0
  2. package/dist/pepper-ui.css +5024 -0
  3. package/package.json +38 -0
  4. package/src/base.css +96 -0
  5. package/src/components/alert-dialog.css +50 -0
  6. package/src/components/alert.css +75 -0
  7. package/src/components/avatar.css +47 -0
  8. package/src/components/badge.css +61 -0
  9. package/src/components/breadcrumb.css +40 -0
  10. package/src/components/bullet-list.css +58 -0
  11. package/src/components/button-group.css +51 -0
  12. package/src/components/button.css +165 -0
  13. package/src/components/calendar.css +118 -0
  14. package/src/components/card.css +114 -0
  15. package/src/components/chat.css +473 -0
  16. package/src/components/checkbox.css +105 -0
  17. package/src/components/collapsible.css +121 -0
  18. package/src/components/combobox.css +71 -0
  19. package/src/components/command.css +62 -0
  20. package/src/components/date-picker.css +45 -0
  21. package/src/components/dialog.css +105 -0
  22. package/src/components/dropdown-menu.css +93 -0
  23. package/src/components/empty.css +67 -0
  24. package/src/components/field.css +68 -0
  25. package/src/components/footer.css +122 -0
  26. package/src/components/heading-pair.css +57 -0
  27. package/src/components/icon-button.css +29 -0
  28. package/src/components/icon-list.css +65 -0
  29. package/src/components/input-group.css +92 -0
  30. package/src/components/input.css +84 -0
  31. package/src/components/insight-block.css +63 -0
  32. package/src/components/item.css +67 -0
  33. package/src/components/kbd.css +36 -0
  34. package/src/components/kpi-tile.css +104 -0
  35. package/src/components/label.css +22 -0
  36. package/src/components/layout-utilities.css +115 -0
  37. package/src/components/logo-grid.css +125 -0
  38. package/src/components/native-select.css +78 -0
  39. package/src/components/navigation-menu.css +123 -0
  40. package/src/components/pagination.css +35 -0
  41. package/src/components/popover.css +48 -0
  42. package/src/components/progress.css +42 -0
  43. package/src/components/questionnaire.css +51 -0
  44. package/src/components/radio.css +41 -0
  45. package/src/components/select.css +179 -0
  46. package/src/components/sheet.css +67 -0
  47. package/src/components/sidebar.css +108 -0
  48. package/src/components/skeleton.css +38 -0
  49. package/src/components/slider.css +117 -0
  50. package/src/components/spinner.css +32 -0
  51. package/src/components/states.css +54 -0
  52. package/src/components/stepper.css +76 -0
  53. package/src/components/switch.css +98 -0
  54. package/src/components/table.css +139 -0
  55. package/src/components/tabs.css +104 -0
  56. package/src/components/textarea.css +16 -0
  57. package/src/components/toast.css +78 -0
  58. package/src/components/toggle-group.css +22 -0
  59. package/src/components/toggle.css +86 -0
  60. package/src/components/tooltip.css +54 -0
  61. package/src/components/topbar.css +36 -0
  62. package/src/components/typography.css +83 -0
  63. package/src/ground.css +78 -0
  64. package/src/index.css +77 -0
@@ -0,0 +1,104 @@
1
+ /* kpi-tile.css — KPI tile (10_COMPONENTS.md § Content blocks).
2
+ *
3
+ * One number that matters, its label, and how it moved — Paggy's .kpi-tile (Card/Metric/color_card), the concepts'
4
+ * Card/Metric/color_status_input that opens every MAFO dashboard, the site's stat cards. The tint is a colour team,
5
+ * not a status (kpi/tone/{tone}/bg — a variant axis, not the Accent mode, because one row shows every team); the delta pill
6
+ * is the only thing that says good or bad. Padding space/20, radius/16; Value title/large (36, 600) — on a slide Paggy's KPI value is 64 / 600, display/small, and the tile's slide size is
7
+ * an open decision (D84 e) — Label body/small (16 / 14), a white detail slot at radius/8 with a 24 icon and a body/medium line. TWO BLOCKS, pushed apart (D59,
8
+ * Fedor 2026-09-09; the site file's Card/Metric/color_card 2092:2979 and color_status_input 3928:8574 — a vertical
9
+ * auto-layout, SPACE_BETWEEN, itemSpacing 20): the value with its delta at the TOP, the label with its detail at the
10
+ * BOTTOM (a 4 gap between those two), and whatever height the row gives the tile opens between them — never a stack
11
+ * that runs top-down and leaves the bottom empty. In the detail slot the 24 glyph sits on the text block's TOP line
12
+ * (the Icon list construction; the library's KPI tile 141:56 as Fedor fixed it 2026-09-09) — not centred on a wrapped line. FILL it in the row; three across in a narrow column, never four.
13
+ * Figma 140:55. Contract: registry/kpi-tile/registry.json.
14
+ *
15
+ * <div class="pui-kpi-tile pui-kpi-tile--blue">
16
+ * <div class="pui-kpi-tile__top"><span class="pui-kpi-tile__value">$150K+</span><span class="pui-badge pui-badge--green pui-badge--small">+12 %</span></div>
17
+ * <div class="pui-kpi-tile__bottom"><span class="pui-kpi-tile__label">Monthly revenue growth</span>
18
+ * <div class="pui-kpi-tile__detail"><span class="pui-icon pui-icon--24">…</span>$ 8 969 916</div></div></div>
19
+ *
20
+ * a category instead of a delta — the same corner, no ring:
21
+ * <span class="pui-badge pui-badge--blue pui-badge--small pui-kpi-tile__tag"><span class="pui-icon pui-badge__icon">…</span>Fintech</span>
22
+ *
23
+ * Tone (none) neutral · --blue · --red · --yellow. The neutral tone FOLLOWS THE GROUND (ground.css, D107): it is
24
+ * surface/sunken — neutral/100 on a white page, neutral/200 on the product ground; the three tints do not move
25
+ * Parts __tag — a category in the top corner instead of a delta; never rung, whatever its tone (D92)
26
+ * Rule only a STATUS delta is rung — --green up, --red down. A badge wearing the card's own tint
27
+ * (grey on grey, blue on blue) is a label, not a status, and stays flush (D92, Fedor 2026-09-16)
28
+ */
29
+
30
+ .pui-kpi-tile {
31
+ display: flex;
32
+ flex-direction: column;
33
+ justify-content: space-between; /* D59: the top block and the bottom block, the room between them */
34
+ gap: var(--pui-space-20);
35
+ box-sizing: border-box;
36
+ min-width: 0;
37
+ padding: var(--pui-space-20);
38
+ border-radius: var(--pui-radius-16);
39
+ background: var(--pui-kpi-tone-neutral-bg);
40
+ color: var(--pui-text-default);
41
+ font-family: var(--pui-font-family);
42
+ }
43
+ .pui-kpi-tile--blue { background: var(--pui-kpi-tone-blue-bg); }
44
+ .pui-kpi-tile--red { background: var(--pui-kpi-tone-red-bg); }
45
+ .pui-kpi-tile--yellow { background: var(--pui-kpi-tone-yellow-bg); }
46
+ .pui-kpi-tile__top {
47
+ display: flex;
48
+ align-items: flex-start;
49
+ justify-content: space-between;
50
+ gap: var(--pui-space-12);
51
+ }
52
+ /* THE DELTA'S RING (D92, Fedor 2026-09-16, corrected by him the same day). ONLY A STATUS DELTA WEARS IT —
53
+ green because the number went up, red because it went down. That is the whole rule, and the tone is how
54
+ it is read: a badge in this corner that carries the CARD'S OWN TINT (grey on the grey tile, blue on the
55
+ blue one) is a LABEL wearing the tile's colour, not a status, and it stays flush. Fedor, on the first
56
+ build, which rang the neutral 'flat' badge too: "we are working only with green positive and red negative
57
+ status badges — this is a different thing from coloured badges for cards, blue tints for blue cards,
58
+ yellow for yellow, grey for grey. This is a big difference."
59
+ Why a status delta needs it and a label does not: the delta is the one thing on the tile that says good or
60
+ bad, and it says it in a tint-pair sitting on another tint, where the two edges run together; the ring in
61
+ the slot white cuts it out, the same device the white detail slot uses lower down (the inversion rule).
62
+ It is the TILE's ring, never the Badge's — a badge anywhere else in the library is flush, and
63
+ css_rules_test.py holds both halves. A category tag says so with __tag and is excluded whatever its tone,
64
+ because a red tag on a red tile is a team, not a fall. box-shadow, not border: the ring is outside the box
65
+ (Figma strokeAlign OUTSIDE), so the badge's own 2/4 padding is untouched. */
66
+ .pui-kpi-tile__top > .pui-badge--green,
67
+ .pui-kpi-tile__top > .pui-badge--red {
68
+ box-shadow: 0 0 0 2px var(--pui-kpi-delta-ring);
69
+ }
70
+ .pui-kpi-tile__top > .pui-badge.pui-kpi-tile__tag {
71
+ box-shadow: none;
72
+ }
73
+ .pui-kpi-tile__bottom {
74
+ display: flex;
75
+ flex-direction: column;
76
+ gap: var(--pui-space-4);
77
+ min-width: 0;
78
+ }
79
+ .pui-kpi-tile__value {
80
+ font-size: var(--pui-type-title-large-font-size);
81
+ font-weight: var(--pui-type-title-large-font-weight);
82
+ line-height: var(--pui-type-title-large-line-height);
83
+ letter-spacing: var(--pui-type-title-large-letter-spacing);
84
+ }
85
+ .pui-kpi-tile__label {
86
+ font-size: var(--pui-type-body-small-font-size);
87
+ font-weight: var(--pui-font-weight-400);
88
+ line-height: var(--pui-font-line-height-normal);
89
+ }
90
+ .pui-kpi-tile__detail {
91
+ display: flex;
92
+ align-items: flex-start; /* the glyph on the text block's top line, as in Icon list — Fedor's fix in the library (141:56), 2026-09-09 */
93
+ gap: var(--pui-space-12);
94
+ padding: var(--pui-space-12);
95
+ border-radius: var(--pui-radius-8);
96
+ background: var(--pui-surface-slot);
97
+ font-size: var(--pui-type-body-medium-font-size);
98
+ line-height: var(--pui-font-line-height-normal);
99
+ }
100
+ .pui-kpi-row {
101
+ display: grid;
102
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
103
+ gap: var(--pui-layout-section-gap);
104
+ }
@@ -0,0 +1,22 @@
1
+ /* label.css — Label (10_COMPONENTS.md § Forms).
2
+ *
3
+ * The name of a control on its own — beside a checkbox or a switch, in a toolbar, in a dialog — the same text Field
4
+ * draws as its first child: the site's `.field__label` (styles.css:620 — 14 Medium 500, line-height 20, #0a0a0a →
5
+ * text/default by D4); shadcn label.tsx second (D17). Hint is '(optional)' in text/muted — the site's word; no
6
+ * required mark exists. Figma 212:15: State default / disabled. Contract: registry/label/registry.json.
7
+ *
8
+ * <label class="pui-label" for="name">Name <span class="pui-label__hint">(optional)</span></label>
9
+ */
10
+
11
+ .pui-label {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ gap: var(--pui-space-4);
15
+ color: var(--pui-text-default);
16
+ font-family: var(--pui-font-family);
17
+ font-size: var(--pui-font-size-14);
18
+ font-weight: var(--pui-font-weight-500);
19
+ line-height: var(--pui-font-line-height-normal);
20
+ }
21
+ .pui-label__hint { color: var(--pui-text-muted); font-weight: var(--pui-font-weight-400); }
22
+ .pui-label--disabled { opacity: 0.5; }
@@ -0,0 +1,115 @@
1
+ /* layout-utilities.css — Separator · Scroll area · Resizable handle · Aspect ratio (10_COMPONENTS.md § Navigation
2
+ * and overlay, page `Layout utilities`).
3
+ *
4
+ * Separator: a line only where a line has to be — no decorative separators (DESIGN.md §Do's); Weight default is
5
+ * border/default (an edge between two regions), strong is border/strong ('dividers that have to be seen'); 1 px.
6
+ * Scroll area: shadcn's scroll-area.tsx — the viewport clips, a 10 px track at the edge holds a 6 px thumb in
7
+ * border/default at radius full, border/strong on hover (the browser's own bar, styled — Paggy keeps the gutter).
8
+ * Resizable handle: a 1 px border/default line in a 16 px hit area, an optional 16 × 24 grip box at radius/4 with
9
+ * grip-vertical in text/muted; border/strong while dragged. Aspect ratio: a box that keeps its proportion —
10
+ * surface/sunken at radius/8 with the image glyph in text/subtle, at 16:9, 4:3, 1:1. Figma: 255:2169 · 255:2183 ·
11
+ * 255:2213 · 255:2235. Contracts: registry/separator, scroll-area, resizable, aspect-ratio.
12
+ *
13
+ * <hr class="pui-separator"> <div class="pui-separator pui-separator--vertical pui-separator--strong" role="separator"></div>
14
+ * <div class="pui-scroll-area" tabindex="0" role="region" aria-label="…" style="height: 240px"> …content… </div> (a scrollable region is keyboard-reachable)
15
+ * <div class="pui-resizable-handle pui-resizable-handle--grip" role="separator" aria-orientation="vertical"><span class="pui-resizable-handle__grip"><span class="pui-icon">…</span></span></div>
16
+ * <div class="pui-aspect-ratio pui-aspect-ratio--4-3"><img src="…" alt=""></div>
17
+ */
18
+
19
+ .pui-separator {
20
+ flex: none;
21
+ width: 100%;
22
+ height: 1px;
23
+ margin: 0;
24
+ border: 0;
25
+ background: var(--pui-border-default);
26
+ }
27
+ .pui-separator--vertical { width: 1px; height: auto; align-self: stretch; min-height: 1em; }
28
+ .pui-separator--strong { background: var(--pui-border-strong); }
29
+
30
+ .pui-scroll-area {
31
+ overflow: auto;
32
+ scrollbar-width: thin;
33
+ scrollbar-color: var(--pui-border-default) transparent;
34
+ scrollbar-gutter: stable;
35
+ }
36
+ /* 3.5.2 — a scroll area is a focusable region (2.3.5 made it one so a keyboard can scroll it) and
37
+ had no indicator. An inset shadow is painted in the PADDING box, and `scrollbar-gutter: stable`
38
+ put the right edge of the ring behind the scrollbar — 1498 px of the 1768 WCAG 2.4.13 asks for.
39
+ An outline is painted on the border box and is never clipped, so this one control uses one. */
40
+ .pui-scroll-area:focus-visible { outline: 2px solid var(--pui-border-focus); outline-offset: -2px; }
41
+ .pui-scroll-area::-webkit-scrollbar { width: 10px; height: 10px; }
42
+ .pui-scroll-area::-webkit-scrollbar-track { background: transparent; }
43
+ .pui-scroll-area::-webkit-scrollbar-thumb {
44
+ border: 2px solid transparent;
45
+ border-radius: var(--pui-radius-full);
46
+ background: var(--pui-border-default);
47
+ background-clip: padding-box;
48
+ }
49
+ .pui-scroll-area::-webkit-scrollbar-thumb:hover { background-color: var(--pui-border-strong); }
50
+ .pui-scroll-area:hover { scrollbar-color: var(--pui-border-strong) transparent; }
51
+
52
+ .pui-resizable-handle {
53
+ position: relative;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ flex: none;
58
+ width: var(--pui-space-16);
59
+ align-self: stretch;
60
+ cursor: col-resize;
61
+ touch-action: none;
62
+ user-select: none;
63
+ outline: none;
64
+ }
65
+ .pui-resizable-handle::before {
66
+ content: "";
67
+ position: absolute;
68
+ inset: 0 auto 0 50%;
69
+ width: 1px;
70
+ background: var(--pui-border-default);
71
+ transform: translateX(-50%);
72
+ transition: background-color var(--pui-motion-state) var(--pui-motion-easing);
73
+ }
74
+ .pui-resizable-handle:hover::before,
75
+ .pui-resizable-handle[data-state="dragging"]::before { background: var(--pui-border-strong); }
76
+ /* 3.5.2 — border/strong is 2.76 against the handle's own rest colour, so the keyboard look was
77
+ below the 3.0 floor and identical to hover. Focus paints the seam in border/focus and widens it. */
78
+ .pui-resizable-handle:focus-visible::before { background: var(--pui-border-focus); width: var(--pui-space-4); }
79
+ .pui-resizable-handle--horizontal {
80
+ width: auto;
81
+ height: var(--pui-space-16);
82
+ align-self: auto;
83
+ cursor: row-resize;
84
+ }
85
+ .pui-resizable-handle--horizontal::before { inset: 50% 0 auto 0; width: auto; height: 1px; transform: translateY(-50%); }
86
+ .pui-resizable-handle__grip {
87
+ position: relative;
88
+ display: inline-flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ width: var(--pui-space-16);
92
+ height: var(--pui-space-24);
93
+ border-radius: var(--pui-radius-4);
94
+ background: var(--pui-border-default);
95
+ color: var(--pui-text-muted);
96
+ }
97
+ .pui-resizable-handle--horizontal .pui-resizable-handle__grip { width: var(--pui-space-24); height: var(--pui-space-16); }
98
+ .pui-resizable-handle__grip > .pui-icon { width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); }
99
+
100
+ .pui-aspect-ratio {
101
+ position: relative;
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+ overflow: hidden;
106
+ aspect-ratio: 16 / 9;
107
+ border-radius: var(--pui-radius-8);
108
+ background: var(--pui-surface-sunken);
109
+ color: var(--pui-text-subtle);
110
+ }
111
+ .pui-aspect-ratio--4-3 { aspect-ratio: 4 / 3; }
112
+ .pui-aspect-ratio--1-1 { aspect-ratio: 1 / 1; }
113
+ .pui-aspect-ratio > img,
114
+ .pui-aspect-ratio > video,
115
+ .pui-aspect-ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@@ -0,0 +1,125 @@
1
+ /* logo-grid.css — Logo chip · Logo grid · Carousel · Carousel arrow · Review card (10_COMPONENTS.md § Content blocks,
2
+ * page `Logo grid & Carousel`).
3
+ *
4
+ * Logo chip: Paggy's Logo grid chip (slide.css:393 .comp-logogrid__chip, Fedor 2026-07-17) — 182 × 73 on
5
+ * surface/card at radius/8, padding 20, the mark contain-scaled into the 142 × 33 box inside. Logo grid: Style chips
6
+ * (slide.css:387 — chips wrapping at space/16) · strip (the production site's partners strip, home-2026.css:233 — bare marks 33
7
+ * tall spaced across the content width; the prototypes' hero sets twelve marks at natural size in two rows). Carousel: the site's reviews slider (home-2026.css:370–440) — cards on a
8
+ * track at space/24, the arrows under at space/12, the track clipped at 1320; the arrow (home-2026.css:65 .arrow-btn)
9
+ * is 40 round, a 2 px action/primary/bg border, filled on hover, .5 disabled — the site's own shape, not Icon button.
10
+ * Review card (home-2026.css:383): 416, surface/card, radius/16, padding space/20, gap space/12; the quote in a white
11
+ * box at radius/8, padding space/12, 16 Regular; 'Read more' 14 Medium text/subtle underlined; the mark 33 tall.
12
+ * Figma: 262:10 · 262:203 · 262:250 · 262:230 · 262:238. Contracts: registry/logo-grid, registry/carousel.
13
+ *
14
+ * <div class="pui-logo-grid"><span class="pui-logo-chip"><img src="…" alt="MAFO"></span> …</div>
15
+ * <div class="pui-logo-grid pui-logo-grid--strip"><img src="…" alt="…"> …</div>
16
+ * <section class="pui-carousel"><div class="pui-carousel__track"><div class="pui-review-card"> …__quote, __more, __logo… </div> …</div>
17
+ * <div class="pui-carousel__nav"><button class="pui-carousel-arrow" aria-label="Previous" disabled>…</button><button class="pui-carousel-arrow" aria-label="Next">…</button></div></section>
18
+ */
19
+
20
+ .pui-logo-chip {
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ box-sizing: border-box;
25
+ width: 182px;
26
+ height: 73px;
27
+ padding: var(--pui-space-20);
28
+ border-radius: var(--pui-radius-8);
29
+ background: var(--pui-surface-card);
30
+ color: var(--pui-text-muted);
31
+ font-family: var(--pui-font-family);
32
+ font-size: var(--pui-font-size-20);
33
+ font-weight: var(--pui-font-weight-500);
34
+ }
35
+ .pui-logo-chip > img,
36
+ .pui-logo-chip > svg { display: block; max-width: 142px; max-height: 33px; width: auto; height: auto; object-fit: contain; }
37
+
38
+ .pui-logo-grid { display: flex; flex-wrap: wrap; gap: var(--pui-space-16); }
39
+ .pui-logo-grid--strip {
40
+ flex-wrap: nowrap;
41
+ align-items: center;
42
+ justify-content: space-between;
43
+ gap: var(--pui-space-24);
44
+ height: 33px;
45
+ }
46
+ .pui-logo-grid--strip > img,
47
+ .pui-logo-grid--strip > svg { display: block; height: 33px; width: auto; }
48
+
49
+ .pui-carousel { display: flex; flex-direction: column; gap: var(--pui-space-24); max-width: var(--pui-layout-content-width); overflow: hidden; }
50
+ .pui-carousel__track {
51
+ display: flex;
52
+ gap: var(--pui-space-24);
53
+ scroll-snap-type: x mandatory;
54
+ overflow-x: auto;
55
+ scrollbar-width: none;
56
+ }
57
+ .pui-carousel__track::-webkit-scrollbar { display: none; }
58
+ .pui-carousel__track > * { flex: none; scroll-snap-align: start; }
59
+ .pui-carousel__nav { display: flex; gap: var(--pui-space-12); }
60
+
61
+ .pui-carousel-arrow {
62
+ display: inline-flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ box-sizing: border-box;
66
+ width: var(--pui-space-40);
67
+ height: var(--pui-space-40);
68
+ margin: 0;
69
+ padding: 0;
70
+ border: 2px solid var(--pui-action-primary-bg);
71
+ border-radius: var(--pui-radius-full);
72
+ background: transparent;
73
+ color: var(--pui-text-default);
74
+ cursor: pointer;
75
+ outline: none;
76
+ transition: background-color var(--pui-motion-state) var(--pui-motion-easing), color var(--pui-motion-state) var(--pui-motion-easing);
77
+ }
78
+ .pui-carousel-arrow > .pui-icon { width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); }
79
+ .pui-carousel-arrow:hover { background: var(--pui-action-primary-bg); color: var(--pui-action-primary-fg); }
80
+ .pui-carousel-arrow:focus-visible { box-shadow: var(--pui-ring); }
81
+ .pui-carousel-arrow:disabled { opacity: 0.5; cursor: not-allowed; background: transparent; color: var(--pui-text-default); }
82
+
83
+ .pui-review-card {
84
+ display: flex;
85
+ flex-direction: column;
86
+ gap: var(--pui-space-12);
87
+ box-sizing: border-box;
88
+ width: 416px;
89
+ max-width: 100%;
90
+ padding: var(--pui-space-20);
91
+ border-radius: var(--pui-radius-16);
92
+ background: var(--pui-surface-card);
93
+ color: var(--pui-text-default);
94
+ font-family: var(--pui-font-family);
95
+ }
96
+ .pui-review-card__quote {
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: var(--pui-space-12);
100
+ margin: 0;
101
+ padding: var(--pui-space-12);
102
+ border-radius: var(--pui-radius-8);
103
+ background: var(--pui-surface-page);
104
+ font-size: var(--pui-font-size-16);
105
+ font-weight: var(--pui-font-weight-400);
106
+ line-height: var(--pui-font-line-height-normal);
107
+ }
108
+ .pui-review-card__quote > p { margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
109
+ .pui-review-card__more {
110
+ align-self: flex-start;
111
+ margin: 0;
112
+ padding: 0;
113
+ border: 0;
114
+ background: none;
115
+ color: var(--pui-text-caption);
116
+ font: inherit;
117
+ font-size: var(--pui-font-size-14);
118
+ font-weight: var(--pui-font-weight-500);
119
+ text-decoration: underline;
120
+ cursor: pointer;
121
+ }
122
+ .pui-review-card__more:focus-visible { outline: none; border-radius: var(--pui-radius-4); box-shadow: var(--pui-ring); } /* 3.5.2 */
123
+ .pui-review-card__logo { display: flex; align-items: center; height: 33px; }
124
+ .pui-review-card__logo > img,
125
+ .pui-review-card__logo > svg { display: block; height: 100%; width: auto; }
@@ -0,0 +1,78 @@
1
+ /* native-select.css — Native select (10_COMPONENTS.md § Forms).
2
+ *
3
+ * The browser's <select>, styled as far as CSS reaches: the box is Select's trigger; the list that opens is the
4
+ * browser's. The site's admin lab writes `<select class="form-control">` (adminlab create.blade.php:52) and its careers
5
+ * form fixes the native arrow by hand (careers create.blade.php:34–48: appearance none, padding-right 2rem, a chevron
6
+ * inset 12 px to match the 12 px text padding) — that fix, drawn once. shadcn native-select.tsx second (D17). Never
7
+ * on a Paggy or MAFO screen (Paggy DESIGN_SYSTEM.md:369). Figma 218:46. Contract: registry/native-select/registry.json.
8
+ *
9
+ * <span class="pui-native-select"><select aria-label="Category"><option value="" disabled selected>Choose…</option>…</select></span>
10
+ *
11
+ * Size --small · (none) medium · --large — on the wrapper, mirroring Select
12
+ * State the select's own: :hover · :focus · [aria-invalid="true"] (+ the error ring when focused, 3.5.2) · :disabled
13
+ * The chevron is a mask on the wrapper's ::after (Lucide chevron-down) painted in text/muted — a select cannot hold
14
+ * a child, and an SVG in a background-image cannot take a token colour; a mask can.
15
+ */
16
+
17
+ .pui-native-select {
18
+ position: relative;
19
+ display: block;
20
+ width: 100%;
21
+ font-family: var(--pui-font-family);
22
+ }
23
+ .pui-native-select > select {
24
+ display: block;
25
+ box-sizing: border-box;
26
+ width: 100%;
27
+ min-height: var(--pui-size-control-medium);
28
+ margin: 0;
29
+ padding: calc(var(--pui-space-8) - 1px) var(--pui-space-40) calc(var(--pui-space-8) - 1px) calc(var(--pui-space-12) - 1px);
30
+ border: 1px solid var(--pui-border-default);
31
+ border-radius: var(--pui-radius-8);
32
+ background: var(--pui-surface-page);
33
+ box-shadow: var(--pui-elevation-flat);
34
+ color: var(--pui-text-default);
35
+ font: inherit;
36
+ font-size: var(--pui-font-size-14);
37
+ font-weight: var(--pui-font-weight-400);
38
+ line-height: var(--pui-font-line-height-normal);
39
+ cursor: pointer;
40
+ outline: none;
41
+ -webkit-appearance: none;
42
+ appearance: none;
43
+ transition:
44
+ border-color var(--pui-motion-state) var(--pui-motion-easing),
45
+ box-shadow var(--pui-motion-state) var(--pui-motion-easing);
46
+ }
47
+ .pui-native-select > select:hover { border-color: var(--pui-border-strong); }
48
+ .pui-native-select > select:focus { border-color: var(--pui-border-focus); box-shadow: var(--pui-ring); }
49
+ .pui-native-select > select[aria-invalid="true"],
50
+ .pui-native-select--error > select { border-color: var(--pui-border-error); box-shadow: var(--pui-ring-error); }
51
+ .pui-native-select > select[aria-invalid="true"]:focus,
52
+ .pui-native-select--error > select:focus { box-shadow: var(--pui-ring-error-focus); } /* 3.5.2 */
53
+ .pui-native-select > select:disabled { opacity: 0.5; cursor: not-allowed; }
54
+ .pui-native-select > select:has(option[value=""]:checked) { color: var(--pui-text-caption); }
55
+ .pui-native-select::after {
56
+ content: "";
57
+ position: absolute;
58
+ top: 50%;
59
+ right: var(--pui-space-12);
60
+ width: var(--pui-size-icon-16);
61
+ height: var(--pui-size-icon-16);
62
+ transform: translateY(-50%);
63
+ background: var(--pui-text-muted);
64
+ -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
65
+ mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
66
+ pointer-events: none;
67
+ }
68
+ .pui-native-select--small > select {
69
+ min-height: var(--pui-size-control-small);
70
+ padding-top: calc(var(--pui-space-4) - 1px);
71
+ padding-bottom: calc(var(--pui-space-4) - 1px);
72
+ font-size: var(--pui-font-size-12);
73
+ }
74
+ .pui-native-select--large > select {
75
+ min-height: var(--pui-size-control-large);
76
+ padding: calc(var(--pui-space-8) - 1px) var(--pui-space-40) calc(var(--pui-space-8) - 1px) calc(var(--pui-space-16) - 1px);
77
+ font-size: var(--pui-font-size-16);
78
+ }
@@ -0,0 +1,123 @@
1
+ /* navigation-menu.css — Navigation menu · Nav link · Navigation panel (10_COMPONENTS.md § Navigation and overlay).
2
+ *
3
+ * The site's top bar, from its production CSS (global-2026.css:149–262): 856 wide, fixed 30 down and centred, padding
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
+ * 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
7
+ * 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
+ * (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
+ * (Finding 47, 2026-09-09); the panel's links dim to
10
+ * text/disabled on hover (styles.css:324 .nav-dropdown a:hover), and the bar's links carry the same — stated. The products panel (:208 .nav-dropdown) is surface/glass-strong over blur/panel, radius/8,
11
+ * elevation/floating, padding space/20, a column of 16 Regular links at a 4 gap, padding 4, radius/4; it rises 4 px
12
+ * and scales from .97 over motion/menu. Web only. Figma: 247:46 · 247:27 · 247:35.
13
+ * Contract: registry/navigation-menu/registry.json.
14
+ *
15
+ * <nav class="pui-navigation-menu"><a class="pui-navigation-menu__logo" href="/">…svg…</a>
16
+ * <div class="pui-navigation-menu__links">
17
+ * <button class="pui-nav-link pui-nav-link--products" aria-expanded="false">Products<span class="pui-icon pui-nav-link__caret">…</span></button>
18
+ * <a class="pui-nav-link" href="…">Case studies</a> …</div>
19
+ * <a class="pui-nav-link pui-nav-link--cta" href="…">Contact us</a></nav>
20
+ * <div class="pui-navigation-panel"><a class="pui-navigation-panel__link" href="…">MAFO</a> …</div>
21
+ */
22
+
23
+ .pui-navigation-menu {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ gap: var(--pui-space-16);
28
+ box-sizing: border-box;
29
+ width: 856px;
30
+ max-width: calc(100vw - var(--pui-space-32));
31
+ padding: var(--pui-space-8);
32
+ border-radius: var(--pui-radius-8);
33
+ background: var(--pui-surface-glass);
34
+ -webkit-backdrop-filter: blur(var(--pui-blur-nav));
35
+ backdrop-filter: blur(var(--pui-blur-nav));
36
+ box-shadow: var(--pui-elevation-card);
37
+ font-family: var(--pui-font-family);
38
+ }
39
+ .pui-navigation-menu--fixed {
40
+ position: fixed;
41
+ top: 30px; /* global-2026.css:149 .nav-bar-wrap */
42
+ left: 50%;
43
+ z-index: 40;
44
+ transform: translateX(-50%);
45
+ }
46
+ .pui-navigation-menu__logo { display: inline-flex; flex: none; height: 31px; color: var(--pui-text-default); }
47
+ .pui-navigation-menu__logo > svg { height: 100%; width: auto; }
48
+ .pui-navigation-menu__logo:focus-visible { outline: none; border-radius: var(--pui-radius-4); box-shadow: var(--pui-ring); } /* 3.5.2 */
49
+ .pui-navigation-menu__links { display: flex; align-items: center; gap: var(--pui-space-8); }
50
+
51
+ .pui-nav-link {
52
+ display: inline-flex;
53
+ align-items: center;
54
+ gap: var(--pui-space-2);
55
+ margin: 0;
56
+ padding: var(--pui-space-4) var(--pui-space-8);
57
+ border: 0;
58
+ border-radius: var(--pui-radius-4);
59
+ background: transparent;
60
+ color: var(--pui-text-default);
61
+ font-family: inherit;
62
+ font-size: var(--pui-font-size-14);
63
+ font-weight: var(--pui-font-weight-400);
64
+ line-height: var(--pui-font-line-height-normal);
65
+ text-decoration: none;
66
+ white-space: nowrap;
67
+ cursor: pointer;
68
+ outline: none;
69
+ transition: color var(--pui-motion-state) var(--pui-motion-easing), background-color var(--pui-motion-state) var(--pui-motion-easing);
70
+ }
71
+ .pui-nav-link:hover { color: var(--pui-text-disabled); }
72
+ .pui-nav-link:focus-visible { box-shadow: var(--pui-ring); }
73
+ .pui-nav-link--products { padding-inline-end: 0; } /* the site's li.has-caret: 8 left, 0 right (global-2026.css:189) — was 2, Finding 47 */
74
+ .pui-nav-link__caret {
75
+ width: var(--pui-size-icon-16);
76
+ height: var(--pui-size-icon-16);
77
+ transition: transform var(--pui-motion-menu) var(--pui-motion-easing);
78
+ }
79
+ .pui-nav-link[aria-expanded="true"] .pui-nav-link__caret { transform: rotate(180deg); }
80
+ .pui-nav-link--cta {
81
+ margin: var(--pui-space-4) var(--pui-space-8); /* the site's CTA sits inside a list item padded 4 / 8 (global-2026.css:179) and keeps its own 4 / 8 —
82
+ the link's padding is the label's, this margin is the item's; without it the bar was 10 px shorter and the
83
+ row slid 16 px right (2.4.2, Finding 47 — Fedor caught it on the pilot) */
84
+ background: var(--pui-action-primary-bg);
85
+ color: var(--pui-action-primary-fg);
86
+ }
87
+ .pui-nav-link--cta:hover { background: var(--pui-action-primary-bg-hover); color: var(--pui-action-primary-fg); }
88
+
89
+ .pui-navigation-panel {
90
+ display: flex;
91
+ flex-direction: column;
92
+ gap: var(--pui-space-4);
93
+ box-sizing: border-box;
94
+ min-width: 200px;
95
+ padding: var(--pui-space-20);
96
+ border-radius: var(--pui-radius-8);
97
+ background: var(--pui-surface-glass-strong);
98
+ -webkit-backdrop-filter: blur(var(--pui-blur-panel));
99
+ backdrop-filter: blur(var(--pui-blur-panel));
100
+ box-shadow: var(--pui-elevation-floating);
101
+ font-family: var(--pui-font-family);
102
+ animation: pui-panel-in var(--pui-motion-menu) var(--pui-motion-easing-enter);
103
+ }
104
+ .pui-navigation-panel__link {
105
+ padding: var(--pui-space-4);
106
+ border-radius: var(--pui-radius-4);
107
+ color: var(--pui-text-default);
108
+ font-size: var(--pui-font-size-16);
109
+ font-weight: var(--pui-font-weight-400);
110
+ line-height: var(--pui-font-line-height-normal);
111
+ text-decoration: none;
112
+ transition: color var(--pui-motion-state) var(--pui-motion-easing);
113
+ }
114
+ .pui-navigation-panel__link:hover { color: var(--pui-text-disabled); }
115
+ .pui-navigation-panel__link:focus-visible { outline: none; box-shadow: var(--pui-ring); }
116
+
117
+ @keyframes pui-panel-in {
118
+ from { opacity: 0; transform: translateY(var(--pui-space-4)) scale(0.97); }
119
+ to { opacity: 1; transform: none; }
120
+ }
121
+ @media (prefers-reduced-motion: reduce) {
122
+ .pui-navigation-panel { animation: none; }
123
+ }
@@ -0,0 +1,35 @@
1
+ /* pagination.css — Pagination (10_COMPONENTS.md § Navigation and overlay).
2
+ *
3
+ * Previous, the pages, Next — the library's own buttons in a row space/4 apart: ghost for every page, secondary
4
+ * (outlined) for the current one, an ellipsis before the last page. What react-paginate draws on MAFO's
5
+ * search and report screens (AdvertiserSearch.js:566, AffiliateSearch.js, ReportTable.js) and what shadcn's Pagination composes from its Button. No tokens of
6
+ * its own — its states are Button's. Figma 168:138: Size medium / small. Contract: registry/pagination/registry.json.
7
+ *
8
+ * <nav class="pui-pagination" aria-label="Pages">
9
+ * <a class="pui-button pui-button--ghost" href="…"><span class="pui-icon pui-button__icon">…chevron-left…</span>Previous</a>
10
+ * <a class="pui-button pui-button--ghost" href="…">1</a>
11
+ * <a class="pui-button pui-button--secondary" aria-current="page" href="…">2</a> …
12
+ * <span class="pui-pagination__ellipsis" aria-hidden="true">…</span>
13
+ * <a class="pui-button pui-button--ghost" href="…">Next<span class="pui-icon pui-button__icon">…chevron-right…</span></a></nav>
14
+ *
15
+ * Size on the buttons (pui-button--small for the small pager)
16
+ * Rule one outlined page, never two; a disabled Previous stays visible.
17
+ */
18
+
19
+ .pui-pagination {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ gap: var(--pui-space-4);
23
+ font-family: var(--pui-font-family);
24
+ }
25
+ .pui-pagination > .pui-button { min-width: var(--pui-size-control-medium); }
26
+ .pui-pagination > .pui-button--small { min-width: var(--pui-size-control-small); }
27
+ .pui-pagination__ellipsis {
28
+ display: inline-flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: var(--pui-size-control-medium);
32
+ height: var(--pui-size-control-medium);
33
+ color: var(--pui-text-muted);
34
+ font-size: var(--pui-font-size-14);
35
+ }
@@ -0,0 +1,48 @@
1
+ /* popover.css — Popover · Hover card (10_COMPONENTS.md § Feedback and status).
2
+ *
3
+ * Popover is Paggy's background panel (app.css:1194 .bg-pop): 300 wide, surface/page, border/default, radius/16,
4
+ * padding 16 (Paggy's 14 / 16 — stated), a title in Medium 14 over a hint in 12 text/subtle, the controls, an actions
5
+ * row aligned right; elevation/floating. shadcn's popover.tsx on Base UI is the same surface at 288 (D17). No arrow —
6
+ * Tooltip is the only pointed surface. Hover card is the same surface at 256 (shadcn hover-card.tsx, w-64): an
7
+ * Avatar, a name in Medium 14, a subtitle in 12 text/subtle, a Badge, a line or two in 12 text/muted. Figma:
8
+ * Popover 237:14 · Hover card 237:45. Contracts: registry/popover/registry.json, registry/hover-card/registry.json.
9
+ *
10
+ * <div class="pui-popover" role="dialog" aria-labelledby="t">
11
+ * <div class="pui-popover__head"><p class="pui-popover__title">Filters</p><p class="pui-popover__hint">Applied on Apply.</p></div>
12
+ * <div class="pui-popover__content"> …fields… </div>
13
+ * <div class="pui-button-group pui-popover__footer"> …Reset · Apply (small)… </div></div>
14
+ * <div class="pui-hover-card"><div class="pui-hover-card__who"> …avatar, name, subtitle, badge… </div>
15
+ * <p class="pui-hover-card__description">14 active offers, 92 % fill rate</p></div>
16
+ * Keyboard the trigger holds the tab stop; focus moves in on open, Escape closes and returns it (3.5.3).
17
+ */
18
+
19
+ .pui-popover,
20
+ .pui-hover-card {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: var(--pui-space-12);
24
+ box-sizing: border-box;
25
+ width: 300px;
26
+ max-width: calc(100vw - var(--pui-space-32));
27
+ padding: var(--pui-space-16);
28
+ border: 1px solid var(--pui-border-default);
29
+ border-radius: var(--pui-radius-16);
30
+ background: var(--pui-surface-page);
31
+ box-shadow: var(--pui-elevation-floating);
32
+ color: var(--pui-text-default);
33
+ font-family: var(--pui-font-family);
34
+ font-size: var(--pui-font-size-14);
35
+ line-height: var(--pui-font-line-height-normal);
36
+ }
37
+ .pui-popover__head { display: flex; flex-direction: column; gap: var(--pui-space-4); }
38
+ .pui-popover__title { margin: 0; font-weight: var(--pui-font-weight-500); }
39
+ .pui-popover__hint { margin: 0; color: var(--pui-text-caption); font-size: var(--pui-font-size-12); }
40
+ .pui-popover__content { display: flex; flex-direction: column; gap: var(--pui-space-12); }
41
+ .pui-popover__footer { align-self: flex-end; }
42
+
43
+ .pui-hover-card { width: 256px; }
44
+ .pui-hover-card__who { display: flex; align-items: center; gap: var(--pui-space-12); }
45
+ .pui-hover-card__texts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--pui-space-2); }
46
+ .pui-hover-card__name { margin: 0; font-weight: var(--pui-font-weight-500); }
47
+ .pui-hover-card__subtitle { margin: 0; color: var(--pui-text-caption); font-size: var(--pui-font-size-12); }
48
+ .pui-hover-card__description { margin: 0; color: var(--pui-text-muted); font-size: var(--pui-font-size-12); }