@atelic-action/ui 7.1.0 → 8.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.
- package/README.md +313 -127
- package/package.json +14 -10
- package/src/app/ErrorFallback.tsx +6 -2
- package/src/app/context/AppContext.tsx +10 -1
- package/src/app/index.ts +0 -1
- package/src/app/layout/AppPage.tsx +36 -7
- package/src/app/layout/DesktopRail.tsx +9 -2
- package/src/app/layout/MobileMenu.tsx +5 -1
- package/src/app/layout/PageError.tsx +6 -3
- package/src/app/layout/PageSkeleton.tsx +33 -26
- package/src/app/layout/UserMenu.tsx +12 -6
- package/src/app/ui/alert.tsx +41 -11
- package/src/app/ui/badge.tsx +1 -1
- package/src/app/ui/button.tsx +2 -1
- package/src/app/ui/command.tsx +86 -21
- package/src/app/ui/country-dropdown.tsx +26 -47
- package/src/app/ui/form.tsx +46 -7
- package/src/app/ui/pagination.tsx +1 -1
- package/src/app/ui/progress.tsx +26 -12
- package/src/app/ui/search-input.tsx +16 -3
- package/src/app/ui/select.tsx +8 -3
- package/src/app/ui/slider.tsx +62 -15
- package/src/artifact/ArtifactShell.tsx +8 -3
- package/src/artifact/ErrorFallback.tsx +8 -1
- package/src/artifact/artifactConfig.ts +1 -1
- package/src/chrome/BrandLockup.tsx +71 -16
- package/src/chrome/ClosingBar.tsx +8 -5
- package/src/chrome/ContactDock.tsx +329 -0
- package/src/chrome/Footer.tsx +32 -9
- package/src/chrome/NavBadge.tsx +8 -0
- package/src/chrome/NavMegaPanel.tsx +388 -0
- package/src/chrome/SiteHeader.tsx +235 -18
- package/src/chrome/SiteMenu.tsx +197 -19
- package/src/chrome/SiteShell.tsx +130 -13
- package/src/chrome/StickyCTABar.tsx +56 -2
- package/src/chrome/brandMark.ts +56 -0
- package/src/chrome/icons.ts +58 -0
- package/src/chrome/index.ts +16 -0
- package/src/chrome/navSections.ts +55 -0
- package/src/components/ColumnChart.tsx +27 -2
- package/src/components/DataTable.tsx +104 -85
- package/src/components/Disclosure.tsx +3 -1
- package/src/components/Hint.tsx +3 -24
- package/src/components/NotFound.tsx +4 -1
- package/src/components/StarRating.tsx +45 -19
- package/src/components/ThresholdScale.tsx +36 -26
- package/src/email/atoms.tsx +13 -57
- package/src/email/frame.tsx +4 -6
- package/src/email/index.ts +4 -10
- package/src/email/scoreboard.tsx +107 -186
- package/src/email/text.ts +30 -0
- package/src/email/theme.tsx +76 -9
- package/src/hooks/useDismiss.ts +39 -0
- package/src/lib/useScrollsSideways.ts +26 -0
- package/src/primitives/Button.tsx +2 -0
- package/src/primitives/ProseBlocks.tsx +6 -1
- package/src/primitives/SectionHeading.tsx +3 -1
- package/src/primitives/StarRow.tsx +23 -8
- package/src/sections/BlogIndex.tsx +17 -3
- package/src/sections/BlogPost.tsx +10 -1
- package/src/sections/CTASection.tsx +2 -2
- package/src/sections/CalloutPanel.tsx +34 -0
- package/src/sections/ComparisonTable.tsx +23 -2
- package/src/sections/ContactForm.tsx +61 -17
- package/src/sections/FAQBrowser.tsx +11 -2
- package/src/sections/FeatureGrid.tsx +6 -2
- package/src/sections/FullBleedVideo.tsx +158 -0
- package/src/sections/Gallery.tsx +6 -4
- package/src/sections/Hero.tsx +63 -39
- package/src/sections/JumpRail.tsx +7 -0
- package/src/sections/LegalPage.tsx +10 -2
- package/src/sections/LinkColumns.tsx +64 -0
- package/src/sections/LocationSection.tsx +28 -5
- package/src/sections/Locations.tsx +17 -4
- package/src/sections/LogoMarquee.tsx +43 -11
- package/src/sections/MapEmbed.tsx +13 -9
- package/src/sections/PageHero.tsx +16 -2
- package/src/sections/ProcessSteps.tsx +27 -4
- package/src/sections/ProfileCards.tsx +12 -2
- package/src/sections/ProofStrip.tsx +44 -0
- package/src/sections/RevealSlider.tsx +28 -7
- package/src/sections/ReviewCarousel.tsx +17 -4
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/SplitSection.tsx +2 -1
- package/src/sections/index.ts +15 -6
- package/src/sections/siteConfig.ts +66 -3
- package/src/styles/app.css +24 -2
- package/src/styles/artifact.css +20 -8
- package/src/styles/base.css +42 -13
- package/src/styles/chrome.css +938 -48
- package/src/styles/components.css +104 -65
- package/src/styles/defaults.css +137 -0
- package/src/styles/gate.css +21 -10
- package/src/styles/primitives.css +97 -35
- package/src/styles/sections.css +477 -437
- package/src/styles/star-rating.css +1 -4
- package/src/tokens/palettes.ts +24 -4
- package/src/types.ts +212 -2
- package/src/app/CardErrorBoundary.tsx +0 -39
- package/src/sections/CTABanner.tsx +0 -93
- package/src/sections/DeviceShowcase.tsx +0 -39
- package/src/sections/MediaBand.tsx +0 -20
- package/src/sections/MenuList.tsx +0 -44
- package/src/sections/PressQuotes.tsx +0 -51
- package/src/sections/SocialStrip.tsx +0 -83
package/src/styles/base.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "./defaults.css";
|
|
1
2
|
/* =================================================================
|
|
2
3
|
@atelic-action/ui BASE: the few unscoped resets, then the canvas,
|
|
3
4
|
typography, and layout helpers, scoped to .atelic-ui. The class is the
|
|
@@ -36,6 +37,30 @@
|
|
|
36
37
|
body:has(.atelic-ui) {
|
|
37
38
|
overflow-x: hidden;
|
|
38
39
|
}
|
|
40
|
+
/* ---- Density ----
|
|
41
|
+
How much room a section leaves above and below itself, one setting for
|
|
42
|
+
the whole page on the root's data-density (SiteShell's density, from
|
|
43
|
+
the site config). --section-space pads every section band, and the
|
|
44
|
+
in between steps are multiples of it; --block-gap is the space between
|
|
45
|
+
a section's heading and the grid under it; --card-min is the least a
|
|
46
|
+
feature card stands. The default is the trades site rhythm; comfortable
|
|
47
|
+
is the roomier spacing every site had before 8.0.0. A site that wants
|
|
48
|
+
its own value sets the property on .atelic-ui, outside the layer. */
|
|
49
|
+
.atelic-ui {
|
|
50
|
+
--section-space: clamp(36px, 4.6vw, 64px);
|
|
51
|
+
--block-gap: 28px;
|
|
52
|
+
--card-min: 0px;
|
|
53
|
+
}
|
|
54
|
+
.atelic-ui[data-density="comfortable"] {
|
|
55
|
+
--section-space: clamp(56px, 9vw, 120px);
|
|
56
|
+
--block-gap: 44px;
|
|
57
|
+
--card-min: 240px;
|
|
58
|
+
}
|
|
59
|
+
.atelic-ui[data-density="compact"] {
|
|
60
|
+
--section-space: clamp(24px, 3.2vw, 44px);
|
|
61
|
+
--block-gap: 20px;
|
|
62
|
+
--card-min: 0px;
|
|
63
|
+
}
|
|
39
64
|
.atelic-ui {
|
|
40
65
|
font-family: var(--font-sans);
|
|
41
66
|
background: var(--surface);
|
|
@@ -45,6 +70,8 @@
|
|
|
45
70
|
-webkit-font-smoothing: antialiased;
|
|
46
71
|
text-rendering: optimizeLegibility;
|
|
47
72
|
}
|
|
73
|
+
/* Long words break on the root by defaults.css (Long words), which every
|
|
74
|
+
layered sheet imports first. */
|
|
48
75
|
.atelic-ui a {
|
|
49
76
|
color: inherit;
|
|
50
77
|
text-decoration: none;
|
|
@@ -78,7 +105,7 @@
|
|
|
78
105
|
their theme; without it, headings share the body family. */
|
|
79
106
|
font-family: var(--font-heading, var(--font-sans));
|
|
80
107
|
line-height: 1.04;
|
|
81
|
-
font-weight:
|
|
108
|
+
font-weight: var(--weight-heavy);
|
|
82
109
|
letter-spacing: -0.02em;
|
|
83
110
|
text-wrap: balance;
|
|
84
111
|
margin: 0;
|
|
@@ -95,7 +122,7 @@
|
|
|
95
122
|
}
|
|
96
123
|
.atelic-ui h4 {
|
|
97
124
|
font-size: 1.15rem;
|
|
98
|
-
font-weight:
|
|
125
|
+
font-weight: var(--weight-bold);
|
|
99
126
|
letter-spacing: -0.01em;
|
|
100
127
|
}
|
|
101
128
|
.atelic-ui p {
|
|
@@ -106,16 +133,17 @@
|
|
|
106
133
|
.atelic-ui .serif-em {
|
|
107
134
|
font-family: var(--font-serif);
|
|
108
135
|
font-style: italic;
|
|
109
|
-
font-weight:
|
|
136
|
+
font-weight: var(--weight-regular);
|
|
110
137
|
letter-spacing: -0.01em;
|
|
111
|
-
color: var(--primary);
|
|
138
|
+
color: var(--primary-ink, var(--primary));
|
|
112
139
|
}
|
|
113
140
|
/* Serif accent words in headings carry the brand accent color (the
|
|
114
141
|
wordmark's signature), so the italic word reads as the highlight it is.
|
|
115
|
-
|
|
142
|
+
They are words on the page surface, so they read --primary-ink. A page
|
|
143
|
+
on a dark surface lifts its own to the bright primary. */
|
|
116
144
|
.atelic-ui h1 .serif,
|
|
117
145
|
.atelic-ui h2 .serif {
|
|
118
|
-
color: var(--primary);
|
|
146
|
+
color: var(--primary-ink, var(--primary));
|
|
119
147
|
}
|
|
120
148
|
|
|
121
149
|
/* ---- Layout helpers ---- */
|
|
@@ -126,25 +154,26 @@
|
|
|
126
154
|
padding-inline: var(--gutter);
|
|
127
155
|
}
|
|
128
156
|
.atelic-ui .section {
|
|
129
|
-
padding-block:
|
|
157
|
+
padding-block: var(--section-space);
|
|
130
158
|
}
|
|
131
159
|
/* A middle step, for a page whose alternating bands do the separating and
|
|
132
|
-
whose default rhythm reads too airy as a result.
|
|
160
|
+
whose default rhythm reads too airy as a result. The two steps keep
|
|
161
|
+
their old proportion to the section (84 and 72 of 120). */
|
|
133
162
|
.atelic-ui .section-md {
|
|
134
|
-
padding-block:
|
|
163
|
+
padding-block: calc(var(--section-space) * 0.7);
|
|
135
164
|
}
|
|
136
165
|
.atelic-ui .section-sm {
|
|
137
|
-
padding-block:
|
|
166
|
+
padding-block: calc(var(--section-space) * 0.6);
|
|
138
167
|
}
|
|
139
168
|
/* Section band modifiers, global because routes across chunks use them. */
|
|
140
169
|
.atelic-ui .section.surface-alt {
|
|
141
170
|
background: var(--surface-alt);
|
|
142
171
|
}
|
|
143
172
|
.atelic-ui .section.tight-top {
|
|
144
|
-
padding-top:
|
|
173
|
+
padding-top: calc(var(--section-space) / 3);
|
|
145
174
|
}
|
|
146
175
|
.atelic-ui .section.tight-bottom {
|
|
147
|
-
padding-bottom:
|
|
176
|
+
padding-bottom: calc(var(--section-space) / 3);
|
|
148
177
|
}
|
|
149
178
|
.atelic-ui .stack-sm > * + * {
|
|
150
179
|
margin-top: 0.75rem;
|
|
@@ -217,7 +246,7 @@
|
|
|
217
246
|
padding-bottom: 1px;
|
|
218
247
|
}
|
|
219
248
|
.atelic-ui .prose p a:not(.btn):hover {
|
|
220
|
-
color: var(--primary);
|
|
249
|
+
color: var(--primary-ink, var(--primary));
|
|
221
250
|
border-color: var(--primary);
|
|
222
251
|
}
|
|
223
252
|
}
|