@tempoxyz/ds 0.3.18 → 0.3.20
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/dist/arsenal/icons/Icon.d.ts +57 -0
- package/dist/arsenal/icons/Icon.d.ts.map +1 -0
- package/dist/arsenal/icons/Icon.js +117 -0
- package/dist/arsenal/icons/Icon.js.map +1 -0
- package/dist/arsenal/icons/glyphs.d.ts +5238 -0
- package/dist/arsenal/icons/glyphs.d.ts.map +1 -0
- package/dist/arsenal/icons/glyphs.js +2888 -0
- package/dist/arsenal/icons/glyphs.js.map +1 -0
- package/dist/arsenal/icons/index.d.ts +4 -0
- package/dist/arsenal/icons/index.d.ts.map +1 -0
- package/dist/arsenal/icons/index.js +4 -0
- package/dist/arsenal/icons/index.js.map +1 -0
- package/dist/docs/AGENTS.md +2 -2
- package/dist/docs/arsenal.md +4555 -0
- package/dist/docs/marketing.md +7082 -480
- package/dist/docs/product/documents.md +17 -1
- package/dist/document/Document.d.ts +1 -1
- package/dist/document/Document.d.ts.map +1 -1
- package/dist/document/Document.js +1 -0
- package/dist/document/Document.js.map +1 -1
- package/dist/document/document.css +12 -1
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/marketing/components/ArticleBody.css +1 -0
- package/dist/marketing/components/ArticleBody.d.ts +1013 -0
- package/dist/marketing/components/ArticleBody.d.ts.map +1 -0
- package/dist/marketing/components/ArticleBody.js +120 -0
- package/dist/marketing/components/ArticleBody.js.map +1 -0
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleHero.css +1 -0
- package/dist/marketing/components/ArticleHero.d.ts +168 -0
- package/dist/marketing/components/ArticleHero.d.ts.map +1 -0
- package/dist/marketing/components/ArticleHero.js +74 -0
- package/dist/marketing/components/ArticleHero.js.map +1 -0
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleIndex.css +1 -0
- package/dist/marketing/components/ArticleIndex.d.ts +164 -0
- package/dist/marketing/components/ArticleIndex.d.ts.map +1 -0
- package/dist/marketing/components/ArticleIndex.js +100 -0
- package/dist/marketing/components/ArticleIndex.js.map +1 -0
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleRail.css +1 -0
- package/dist/marketing/components/ArticleRail.d.ts +105 -0
- package/dist/marketing/components/ArticleRail.d.ts.map +1 -0
- package/dist/marketing/components/ArticleRail.js +96 -0
- package/dist/marketing/components/ArticleRail.js.map +1 -0
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -0
- package/dist/marketing/components/AsideLayout.css +1 -0
- package/dist/marketing/components/AsideLayout.d.ts +39 -0
- package/dist/marketing/components/AsideLayout.d.ts.map +1 -0
- package/dist/marketing/components/AsideLayout.js +24 -0
- package/dist/marketing/components/AsideLayout.js.map +1 -0
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -0
- package/dist/marketing/components/Breadcrumbs.css +1 -0
- package/dist/marketing/components/Breadcrumbs.d.ts +132 -0
- package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js +75 -0
- package/dist/marketing/components/Breadcrumbs.js.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -0
- package/dist/marketing/components/Button.css +1 -0
- package/dist/marketing/components/Button.d.ts +421 -0
- package/dist/marketing/components/Button.d.ts.map +1 -0
- package/dist/marketing/components/Button.js +87 -0
- package/dist/marketing/components/Button.js.map +1 -0
- package/dist/marketing/components/Button.js.zyzz.json +1 -0
- package/dist/marketing/components/Card.css +1 -0
- package/dist/marketing/components/Card.d.ts +563 -0
- package/dist/marketing/components/Card.d.ts.map +1 -0
- package/dist/marketing/components/Card.js +171 -0
- package/dist/marketing/components/Card.js.map +1 -0
- package/dist/marketing/components/Card.js.zyzz.json +1 -0
- package/dist/marketing/components/Contact.css +1 -0
- package/dist/marketing/components/Contact.d.ts +51 -0
- package/dist/marketing/components/Contact.d.ts.map +1 -0
- package/dist/marketing/components/Contact.js +44 -0
- package/dist/marketing/components/Contact.js.map +1 -0
- package/dist/marketing/components/Contact.js.zyzz.json +1 -0
- package/dist/marketing/components/Cta.css +1 -0
- package/dist/marketing/components/Cta.d.ts +138 -0
- package/dist/marketing/components/Cta.d.ts.map +1 -0
- package/dist/marketing/components/Cta.js +71 -0
- package/dist/marketing/components/Cta.js.map +1 -0
- package/dist/marketing/components/Cta.js.zyzz.json +1 -0
- package/dist/marketing/components/CustomerStoryFeature.css +1 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts +48 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js +58 -0
- package/dist/marketing/components/CustomerStoryFeature.js.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -0
- package/dist/marketing/components/Faq.css +1 -0
- package/dist/marketing/components/Faq.d.ts +99 -0
- package/dist/marketing/components/Faq.d.ts.map +1 -0
- package/dist/marketing/components/Faq.js +83 -0
- package/dist/marketing/components/Faq.js.map +1 -0
- package/dist/marketing/components/Faq.js.zyzz.json +1 -0
- package/dist/marketing/components/FeatureAccordion.css +1 -0
- package/dist/marketing/components/FeatureAccordion.d.ts +230 -0
- package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js +117 -0
- package/dist/marketing/components/FeatureAccordion.js.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -0
- package/dist/marketing/components/Footer.css +1 -0
- package/dist/marketing/components/Footer.d.ts +178 -0
- package/dist/marketing/components/Footer.d.ts.map +1 -0
- package/dist/marketing/components/Footer.js +109 -0
- package/dist/marketing/components/Footer.js.map +1 -0
- package/dist/marketing/components/Footer.js.zyzz.json +1 -0
- package/dist/marketing/components/Hero.css +1 -0
- package/dist/marketing/components/Hero.d.ts +200 -0
- package/dist/marketing/components/Hero.d.ts.map +1 -0
- package/dist/marketing/components/Hero.js +67 -0
- package/dist/marketing/components/Hero.js.map +1 -0
- package/dist/marketing/components/Hero.js.zyzz.json +1 -0
- package/dist/marketing/components/LeadCapture.css +1 -0
- package/dist/marketing/components/LeadCapture.d.ts +102 -0
- package/dist/marketing/components/LeadCapture.d.ts.map +1 -0
- package/dist/marketing/components/LeadCapture.js +78 -0
- package/dist/marketing/components/LeadCapture.js.map +1 -0
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -0
- package/dist/marketing/components/Link.css +1 -0
- package/dist/marketing/components/Link.d.ts +342 -0
- package/dist/marketing/components/Link.d.ts.map +1 -0
- package/dist/marketing/components/Link.js +152 -0
- package/dist/marketing/components/Link.js.map +1 -0
- package/dist/marketing/components/Link.js.zyzz.json +1 -0
- package/dist/marketing/components/Logo.css +1 -0
- package/dist/marketing/components/Logo.d.ts +30 -0
- package/dist/marketing/components/Logo.d.ts.map +1 -0
- package/dist/marketing/components/Logo.js +38 -0
- package/dist/marketing/components/Logo.js.map +1 -0
- package/dist/marketing/components/Logo.js.zyzz.json +1 -0
- package/dist/marketing/components/LogoWall.css +1 -0
- package/dist/marketing/components/LogoWall.d.ts +156 -0
- package/dist/marketing/components/LogoWall.d.ts.map +1 -0
- package/dist/marketing/components/LogoWall.js +41 -0
- package/dist/marketing/components/LogoWall.js.map +1 -0
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -0
- package/dist/marketing/components/Mark.css +1 -0
- package/dist/marketing/components/Mark.d.ts +30 -0
- package/dist/marketing/components/Mark.d.ts.map +1 -0
- package/dist/marketing/components/Mark.js +38 -0
- package/dist/marketing/components/Mark.js.map +1 -0
- package/dist/marketing/components/Mark.js.zyzz.json +1 -0
- package/dist/marketing/components/Media.css +1 -0
- package/dist/marketing/components/Media.d.ts +74 -0
- package/dist/marketing/components/Media.d.ts.map +1 -0
- package/dist/marketing/components/Media.js +80 -0
- package/dist/marketing/components/Media.js.map +1 -0
- package/dist/marketing/components/Media.js.zyzz.json +1 -0
- package/dist/marketing/components/Nav.css +1 -0
- package/dist/marketing/components/Nav.d.ts +303 -0
- package/dist/marketing/components/Nav.d.ts.map +1 -0
- package/dist/marketing/components/Nav.js +166 -0
- package/dist/marketing/components/Nav.js.map +1 -0
- package/dist/marketing/components/Nav.js.zyzz.json +1 -0
- package/dist/marketing/components/PartnersIndex.css +1 -0
- package/dist/marketing/components/PartnersIndex.d.ts +267 -0
- package/dist/marketing/components/PartnersIndex.d.ts.map +1 -0
- package/dist/marketing/components/PartnersIndex.js +96 -0
- package/dist/marketing/components/PartnersIndex.js.map +1 -0
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/QuoteBand.css +1 -0
- package/dist/marketing/components/QuoteBand.d.ts +128 -0
- package/dist/marketing/components/QuoteBand.d.ts.map +1 -0
- package/dist/marketing/components/QuoteBand.js +73 -0
- package/dist/marketing/components/QuoteBand.js.map +1 -0
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -0
- package/dist/marketing/components/Section.css +1 -0
- package/dist/marketing/components/Section.d.ts +132 -0
- package/dist/marketing/components/Section.d.ts.map +1 -0
- package/dist/marketing/components/Section.js +33 -0
- package/dist/marketing/components/Section.js.map +1 -0
- package/dist/marketing/components/Section.js.zyzz.json +1 -0
- package/dist/marketing/components/SectionHeading.css +1 -0
- package/dist/marketing/components/SectionHeading.d.ts +215 -0
- package/dist/marketing/components/SectionHeading.d.ts.map +1 -0
- package/dist/marketing/components/SectionHeading.js +48 -0
- package/dist/marketing/components/SectionHeading.js.map +1 -0
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -0
- package/dist/marketing/components/Showcase.css +1 -0
- package/dist/marketing/components/Showcase.d.ts +269 -0
- package/dist/marketing/components/Showcase.d.ts.map +1 -0
- package/dist/marketing/components/Showcase.js +67 -0
- package/dist/marketing/components/Showcase.js.map +1 -0
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -0
- package/dist/marketing/components/Stats.css +1 -0
- package/dist/marketing/components/Stats.d.ts +133 -0
- package/dist/marketing/components/Stats.d.ts.map +1 -0
- package/dist/marketing/components/Stats.js +34 -0
- package/dist/marketing/components/Stats.js.map +1 -0
- package/dist/marketing/components/Stats.js.zyzz.json +1 -0
- package/dist/marketing/components/Steps.css +1 -0
- package/dist/marketing/components/Steps.d.ts +53 -0
- package/dist/marketing/components/Steps.d.ts.map +1 -0
- package/dist/marketing/components/Steps.js +78 -0
- package/dist/marketing/components/Steps.js.map +1 -0
- package/dist/marketing/components/Steps.js.zyzz.json +1 -0
- package/dist/marketing/components/SymbolTile.css +1 -0
- package/dist/marketing/components/SymbolTile.d.ts +85 -0
- package/dist/marketing/components/SymbolTile.d.ts.map +1 -0
- package/dist/marketing/components/SymbolTile.js +35 -0
- package/dist/marketing/components/SymbolTile.js.map +1 -0
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -0
- package/dist/marketing/components/Tab.css +1 -0
- package/dist/marketing/components/Tab.d.ts +280 -0
- package/dist/marketing/components/Tab.d.ts.map +1 -0
- package/dist/marketing/components/Tab.js +43 -0
- package/dist/marketing/components/Tab.js.map +1 -0
- package/dist/marketing/components/Tab.js.zyzz.json +1 -0
- package/dist/marketing/components/Table.css +1 -0
- package/dist/marketing/components/Table.d.ts +157 -0
- package/dist/marketing/components/Table.d.ts.map +1 -0
- package/dist/marketing/components/Table.js +80 -0
- package/dist/marketing/components/Table.js.map +1 -0
- package/dist/marketing/components/Table.js.zyzz.json +1 -0
- package/dist/marketing/components/Tag.css +1 -0
- package/dist/marketing/components/Tag.d.ts +254 -0
- package/dist/marketing/components/Tag.d.ts.map +1 -0
- package/dist/marketing/components/Tag.js +59 -0
- package/dist/marketing/components/Tag.js.map +1 -0
- package/dist/marketing/components/Tag.js.zyzz.json +1 -0
- package/dist/marketing/components/internal/Links.d.ts +9 -0
- package/dist/marketing/components/internal/Links.d.ts.map +1 -0
- package/dist/marketing/components/internal/Links.js +15 -0
- package/dist/marketing/components/internal/Links.js.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts +6 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.js +5 -0
- package/dist/marketing/icons/ArrowUpRight.js.map +1 -0
- package/dist/marketing/icons/Checkmark.d.ts +6 -0
- package/dist/marketing/icons/Checkmark.d.ts.map +1 -0
- package/dist/marketing/icons/Checkmark.js +5 -0
- package/dist/marketing/icons/Checkmark.js.map +1 -0
- package/dist/marketing/icons/ChevronRight.d.ts +6 -0
- package/dist/marketing/icons/ChevronRight.d.ts.map +1 -0
- package/dist/marketing/icons/ChevronRight.js +5 -0
- package/dist/marketing/icons/ChevronRight.js.map +1 -0
- package/dist/marketing/icons/Link.d.ts +6 -0
- package/dist/marketing/icons/Link.d.ts.map +1 -0
- package/dist/marketing/icons/Link.js +5 -0
- package/dist/marketing/icons/Link.js.map +1 -0
- package/dist/marketing/icons/Play.d.ts +6 -0
- package/dist/marketing/icons/Play.d.ts.map +1 -0
- package/dist/marketing/icons/Play.js +5 -0
- package/dist/marketing/icons/Play.js.map +1 -0
- package/dist/marketing/icons/Spinner.d.ts +6 -0
- package/dist/marketing/icons/Spinner.d.ts.map +1 -0
- package/dist/marketing/icons/Spinner.js +5 -0
- package/dist/marketing/icons/Spinner.js.map +1 -0
- package/dist/marketing/icons/Xmark.d.ts +6 -0
- package/dist/marketing/icons/Xmark.d.ts.map +1 -0
- package/dist/marketing/icons/Xmark.js +5 -0
- package/dist/marketing/icons/Xmark.js.map +1 -0
- package/dist/marketing/index.d.ts +34 -1
- package/dist/marketing/index.d.ts.map +1 -1
- package/dist/marketing/index.js +34 -1
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +8 -2
- package/src/arsenal/icons/CATALOGUE.md +471 -0
- package/src/arsenal/icons/CHANGELOG.md +181 -0
- package/src/arsenal/icons/Icon.tsx +187 -0
- package/src/arsenal/icons/README.md +53 -0
- package/src/arsenal/icons/glyphs.ts +2901 -0
- package/src/arsenal/icons/index.ts +12 -0
- package/src/document/Document.ts +1 -0
- package/src/document/document.css +12 -1
- package/src/marketing/README.md +13 -1
- package/src/marketing/components/ArticleBody.tsx +784 -0
- package/src/marketing/components/ArticleHero.tsx +331 -0
- package/src/marketing/components/ArticleIndex.tsx +457 -0
- package/src/marketing/components/ArticleRail.tsx +384 -0
- package/src/marketing/components/AsideLayout.tsx +52 -0
- package/src/marketing/components/Breadcrumbs.tsx +197 -0
- package/src/marketing/components/Button.tsx +469 -0
- package/src/marketing/components/Card.tsx +865 -0
- package/src/marketing/components/Contact.tsx +157 -0
- package/src/marketing/components/Cta.tsx +297 -0
- package/src/marketing/components/CustomerStoryFeature.tsx +218 -0
- package/src/marketing/components/Faq.tsx +334 -0
- package/src/marketing/components/FeatureAccordion.tsx +459 -0
- package/src/marketing/components/Footer.tsx +440 -0
- package/src/marketing/components/Hero.tsx +275 -0
- package/src/marketing/components/LeadCapture.tsx +322 -0
- package/src/marketing/components/Link.tsx +508 -0
- package/src/marketing/components/Logo.tsx +71 -0
- package/src/marketing/components/LogoWall.tsx +185 -0
- package/src/marketing/components/Mark.tsx +67 -0
- package/src/marketing/components/Media.tsx +275 -0
- package/src/marketing/components/Nav.tsx +1030 -0
- package/src/marketing/components/PartnersIndex.tsx +448 -0
- package/src/marketing/components/QuoteBand.tsx +288 -0
- package/src/marketing/components/Section.tsx +110 -0
- package/src/marketing/components/SectionHeading.tsx +227 -0
- package/src/marketing/components/Showcase.tsx +301 -0
- package/src/marketing/components/Stats.tsx +130 -0
- package/src/marketing/components/Steps.tsx +215 -0
- package/src/marketing/components/SymbolTile.tsx +89 -0
- package/src/marketing/components/Tab.tsx +306 -0
- package/src/marketing/components/Table.tsx +255 -0
- package/src/marketing/components/Tag.tsx +289 -0
- package/src/marketing/components/internal/Links.ts +19 -0
- package/src/marketing/icons/ArrowUpRight.tsx +25 -0
- package/src/marketing/icons/Checkmark.tsx +25 -0
- package/src/marketing/icons/ChevronRight.tsx +25 -0
- package/src/marketing/icons/Link.tsx +25 -0
- package/src/marketing/icons/Play.tsx +25 -0
- package/src/marketing/icons/Spinner.tsx +25 -0
- package/src/marketing/icons/Xmark.tsx +25 -0
- package/src/marketing/index.ts +34 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/** Renders Marketing tags that label one fixed fact, and the links drawn as them. @module */
|
|
2
|
+
import { useRender } from '@base-ui/react/use-render'
|
|
3
|
+
import type { ComponentPropsWithRef, ReactNode } from 'react'
|
|
4
|
+
import type * as zyzz from 'zyzz'
|
|
5
|
+
import { variants, vars } from '../zyzz.config.js'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A static `<span>` that labels one fixed fact, such as a post's category or what a partner
|
|
9
|
+
* supports. It takes no focus and has no states. Use `Tag.Link` to link the tag to its topic.
|
|
10
|
+
*
|
|
11
|
+
* - Name one fact in one or two words, in the name's own case, so a tag never wraps.
|
|
12
|
+
* - Set `size` by place: `small` beside Body B2, as on blog rows, and `medium` beside Body B1, as in
|
|
13
|
+
* a profile's facts.
|
|
14
|
+
* - Set `appearance="outline"` for lists of capabilities and partners, `appearance="inverse"` in a
|
|
15
|
+
* dark section, and `appearance="overlay"` over a photo or video.
|
|
16
|
+
* - Use `Tab` for a filter a visitor turns on and off, and `Button` for an action.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Tag icon={<Globe />}>Global</Tag>
|
|
20
|
+
*/
|
|
21
|
+
export function Tag(props: Tag.Props) {
|
|
22
|
+
const { appearance, children, className, icon, logo, size, vars, ...attributes } = props
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<span
|
|
26
|
+
{...attributes}
|
|
27
|
+
{...styles.root({ appearance, className, size, style: props.style, vars })}
|
|
28
|
+
>
|
|
29
|
+
<Content icon={icon} logo={logo} size={size}>
|
|
30
|
+
{children}
|
|
31
|
+
</Content>
|
|
32
|
+
</span>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace Tag {
|
|
37
|
+
export type Props = Omit<ComponentPropsWithRef<'span'>, 'aria-pressed'> &
|
|
38
|
+
zyzz.Props.Variants<typeof styles.root> &
|
|
39
|
+
Slots & {
|
|
40
|
+
/** A tag never toggles. Use `Tab` for a filter a visitor turns on and off. */
|
|
41
|
+
'aria-pressed'?: never
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** The glyph and logo slots that lead a tag's label. */
|
|
45
|
+
export type Slots = {
|
|
46
|
+
/**
|
|
47
|
+
* A glyph before the label, such as a globe icon, drawn at 16px, or 20px at `medium`. It is
|
|
48
|
+
* hidden from assistive technology.
|
|
49
|
+
*/
|
|
50
|
+
icon?: ReactNode | undefined
|
|
51
|
+
/**
|
|
52
|
+
* A logo, flag or coin mark before the label, drawn 16px tall at its own ratio, or 20px tall at
|
|
53
|
+
* `medium`. It is hidden from assistive technology, so the label names the fact.
|
|
54
|
+
*/
|
|
55
|
+
logo?: ReactNode | undefined
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* A tag that links to its topic. Only a linked tag is a control: it takes focus and a hit area 4px
|
|
60
|
+
* past its edges, and on a fine pointer eases a tint in on hover, which a press deepens. An
|
|
61
|
+
* `overlay` tag has no tint, so a press dims it. Pass `render` for a router link, such as
|
|
62
|
+
* `<NextLink href="/blog" />`.
|
|
63
|
+
*/
|
|
64
|
+
export function Link(props: Link.Props) {
|
|
65
|
+
const { appearance, children, className, icon, logo, ref, render, size, vars, ...attributes } =
|
|
66
|
+
props
|
|
67
|
+
|
|
68
|
+
return useRender({
|
|
69
|
+
defaultTagName: 'a',
|
|
70
|
+
props: {
|
|
71
|
+
...attributes,
|
|
72
|
+
...styles.root({ appearance, className, size, style: props.style, vars }),
|
|
73
|
+
children: (
|
|
74
|
+
<Content icon={icon} logo={logo} size={size}>
|
|
75
|
+
{children}
|
|
76
|
+
</Content>
|
|
77
|
+
),
|
|
78
|
+
},
|
|
79
|
+
ref,
|
|
80
|
+
render,
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace Link {
|
|
85
|
+
export type Props = Omit<useRender.ComponentProps<'a'>, 'aria-pressed'> &
|
|
86
|
+
zyzz.Props.Variants<typeof styles.root> &
|
|
87
|
+
Slots & {
|
|
88
|
+
/** A tag never toggles. Use `Tab` for a filter a visitor turns on and off. */
|
|
89
|
+
'aria-pressed'?: never
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function Content(props: Content.Props) {
|
|
95
|
+
const { children, icon, logo, size } = props
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<>
|
|
99
|
+
{icon !== undefined && (
|
|
100
|
+
<span aria-hidden="true" {...styles.icon({ size })}>
|
|
101
|
+
{icon}
|
|
102
|
+
</span>
|
|
103
|
+
)}
|
|
104
|
+
{logo !== undefined && (
|
|
105
|
+
<span aria-hidden="true" {...styles.logo({ size })}>
|
|
106
|
+
{logo}
|
|
107
|
+
</span>
|
|
108
|
+
)}
|
|
109
|
+
{children}
|
|
110
|
+
</>
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare namespace Content {
|
|
115
|
+
type Props = Tag.Slots & {
|
|
116
|
+
children?: ReactNode | undefined
|
|
117
|
+
size?: Tag.Props['size']
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace styles {
|
|
122
|
+
// The icon slot draws a glyph of `1em`, or any glyph it holds, at the slot's size.
|
|
123
|
+
export const icon = variants(
|
|
124
|
+
{
|
|
125
|
+
base: {
|
|
126
|
+
display: 'inline-flex',
|
|
127
|
+
flexShrink: '0 !custom',
|
|
128
|
+
fontSize: '16px !custom',
|
|
129
|
+
selectors: { '& > *': { blockSize: '1em !custom', inlineSize: '1em !custom' } },
|
|
130
|
+
},
|
|
131
|
+
defaultVariants: { size: 'small' },
|
|
132
|
+
variants: { size: { medium: { fontSize: '20px !custom' }, small: {} } },
|
|
133
|
+
},
|
|
134
|
+
{ id: 'tds/marketing/tag/icon' },
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
// The logo slot holds its drawing to the slot's height: 16px at small, at the logo's own ratio,
|
|
138
|
+
// and 20px at medium, where a flag or coin mark brings its own 20px box and keeps its width.
|
|
139
|
+
export const logo = variants(
|
|
140
|
+
{
|
|
141
|
+
base: { display: 'inline-flex', flexShrink: '0 !custom' },
|
|
142
|
+
defaultVariants: { size: 'small' },
|
|
143
|
+
variants: {
|
|
144
|
+
size: {
|
|
145
|
+
medium: { selectors: { '& > *': { blockSize: '20px !custom' } } },
|
|
146
|
+
small: {
|
|
147
|
+
selectors: { '& > *': { blockSize: '16px !custom', inlineSize: 'auto !custom' } },
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{ id: 'tds/marketing/tag/logo' },
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
export const root = variants(
|
|
156
|
+
{
|
|
157
|
+
base: {
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
borderColor: 'transparent !custom',
|
|
160
|
+
borderRadius: '2xs',
|
|
161
|
+
borderStyle: 'solid',
|
|
162
|
+
borderWidth: 'regular',
|
|
163
|
+
boxSizing: 'border-box',
|
|
164
|
+
columnGap: '4',
|
|
165
|
+
display: 'inline-flex',
|
|
166
|
+
flexShrink: '0 !custom',
|
|
167
|
+
minHeight: '32',
|
|
168
|
+
outlineColor: 'neutral.100',
|
|
169
|
+
outlineOffset: 'ringInline',
|
|
170
|
+
outlineStyle: 'none',
|
|
171
|
+
outlineWidth: 'ring',
|
|
172
|
+
paddingBlock: '4',
|
|
173
|
+
// 12px less the 1px border.
|
|
174
|
+
paddingInline: '11px !custom',
|
|
175
|
+
position: 'relative',
|
|
176
|
+
textDecoration: 'none !custom',
|
|
177
|
+
// At rest is where hover out and a release land.
|
|
178
|
+
transitionDuration: 'hoverOut',
|
|
179
|
+
transitionProperty: 'background-color, opacity !custom',
|
|
180
|
+
transitionTimingFunction: 'standard',
|
|
181
|
+
typography: 'body.b2',
|
|
182
|
+
whiteSpace: 'nowrap',
|
|
183
|
+
selectors: {
|
|
184
|
+
// A linked tag's hit area, which leaves the visible size alone. Centered, it grows toward
|
|
185
|
+
// 44px, but reaches at most 4px past an edge, half the 8px between tags in a row. It is
|
|
186
|
+
// measured inside the 1px border, so 5px here is 4px past the edge.
|
|
187
|
+
'&:is(a)::after': {
|
|
188
|
+
content: '"" !custom',
|
|
189
|
+
insetBlock: `max(-5px, min(0px, (100% - ${vars.spacing.hitMin}) / 2)) !custom`,
|
|
190
|
+
insetInline: `max(-5px, min(0px, (100% - ${vars.spacing.hitMin}) / 2)) !custom`,
|
|
191
|
+
position: 'absolute',
|
|
192
|
+
},
|
|
193
|
+
// Overlay has no hover tint, so a press dims it. The others deepen their tint instead.
|
|
194
|
+
'&:is(a):active': { opacity: 'press', transitionDuration: 'press' },
|
|
195
|
+
'&:focus-visible': { outlineStyle: 'solid' },
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
compoundVariants: [
|
|
199
|
+
// Forced colors drop fills, so the hairline draws every tag, after the appearances' own
|
|
200
|
+
// border colors.
|
|
201
|
+
{
|
|
202
|
+
when: { appearance: ['base', 'inverse', 'outline', 'overlay'] },
|
|
203
|
+
style: {
|
|
204
|
+
'@media (forced-colors: active)': {
|
|
205
|
+
borderColor: 'CanvasText !custom',
|
|
206
|
+
selectors: { '&:focus-visible': { outlineColor: 'Highlight !custom' } },
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
defaultVariants: { appearance: 'base', size: 'small' },
|
|
212
|
+
variants: {
|
|
213
|
+
/**
|
|
214
|
+
* The tag's ground and edge: `base` fills with a 4% tint on the page or a white card,
|
|
215
|
+
* `outline` draws an 8% hairline without a fill, `inverse` takes a white tint in a dark
|
|
216
|
+
* section, and `overlay` a blurred glass over a photo or video.
|
|
217
|
+
*
|
|
218
|
+
* @default 'base'
|
|
219
|
+
*/
|
|
220
|
+
appearance: {
|
|
221
|
+
base: {
|
|
222
|
+
backgroundColor: 'container.control',
|
|
223
|
+
color: 'content.primary',
|
|
224
|
+
selectors: {
|
|
225
|
+
'&:is(a):active': { backgroundColor: 'neutral.shade.012', opacity: 'full' },
|
|
226
|
+
},
|
|
227
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
228
|
+
selectors: {
|
|
229
|
+
'&:is(a):hover:not(:active)': {
|
|
230
|
+
backgroundColor: 'neutral.shade.008',
|
|
231
|
+
transitionDuration: 'hoverIn',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
inverse: {
|
|
237
|
+
backgroundColor: 'inverse.container.control',
|
|
238
|
+
color: 'inverse.content.primary',
|
|
239
|
+
outlineColor: 'neutral.004',
|
|
240
|
+
selectors: {
|
|
241
|
+
'&:is(a):active': { backgroundColor: 'neutral.tint.028', opacity: 'full' },
|
|
242
|
+
},
|
|
243
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
244
|
+
selectors: {
|
|
245
|
+
'&:is(a):hover:not(:active)': {
|
|
246
|
+
backgroundColor: 'neutral.tint.020',
|
|
247
|
+
transitionDuration: 'hoverIn',
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
// Hover adds a tint, so a press deepens it a step instead of dimming it.
|
|
253
|
+
outline: {
|
|
254
|
+
borderColor: 'line.secondary',
|
|
255
|
+
color: 'content.primary',
|
|
256
|
+
selectors: {
|
|
257
|
+
'&:is(a):active': { backgroundColor: 'neutral.shade.008', opacity: 'full' },
|
|
258
|
+
},
|
|
259
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
260
|
+
selectors: {
|
|
261
|
+
'&:is(a):hover:not(:active)': {
|
|
262
|
+
backgroundColor: 'neutral.shade.004',
|
|
263
|
+
transitionDuration: 'hoverIn',
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
overlay: {
|
|
269
|
+
backdropFilter: `blur(${vars.blur.control}) !custom`,
|
|
270
|
+
backgroundColor: 'neutral.glass.032',
|
|
271
|
+
color: 'neutral.004',
|
|
272
|
+
outlineColor: 'neutral.004',
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* The height and type: `small` is 32px in Body B2, beside B2 text, and `medium` 36px in
|
|
277
|
+
* Body B1 with its slot 8px from the label, as in a profile's facts rows.
|
|
278
|
+
*
|
|
279
|
+
* @default 'small'
|
|
280
|
+
*/
|
|
281
|
+
size: {
|
|
282
|
+
medium: { columnGap: '8', minHeight: '36px !custom', typography: 'body.b1' },
|
|
283
|
+
small: {},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
{ id: 'tds/marketing/tag' },
|
|
288
|
+
)
|
|
289
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Applies a caller's router element to each of many links. @module */
|
|
2
|
+
import * as BaseUi from '@base-ui/react/merge-props'
|
|
3
|
+
import type { useRender } from '@base-ui/react/use-render'
|
|
4
|
+
import { cloneElement, type HTMLAttributes, isValidElement } from 'react'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns the `render` for one of many links that share a caller's router element, such as
|
|
8
|
+
* `<NextLink href="" />`. Base UI merges a render element's own props over the link's, so a shared
|
|
9
|
+
* element would give every link the element's `href`. The returned function merges the link's props
|
|
10
|
+
* over the element's instead. A render function passes through unchanged.
|
|
11
|
+
*/
|
|
12
|
+
export function shared(
|
|
13
|
+
render: useRender.ComponentProps<'a'>['render'],
|
|
14
|
+
): useRender.ComponentProps<'a'>['render'] {
|
|
15
|
+
if (!isValidElement<HTMLAttributes<HTMLAnchorElement>>(render)) return render
|
|
16
|
+
|
|
17
|
+
return (props: HTMLAttributes<HTMLAnchorElement>) =>
|
|
18
|
+
cloneElement(render, BaseUi.mergeProps(render.props, props))
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function ArrowUpRight(props: ArrowUpRight.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M3.711 11.971C3.37 11.63 3.37 11.577 3.711 11.236L9.808 5.139L10.17 4.891C10.263 4.827 10.251 4.798 10.14 4.819L9.708 4.899L6.493 4.899C6.011 4.899 5.973 4.861 5.973 4.379L5.973 3.994C5.973 3.512 6.011 3.474 6.493 3.474L11.705 3.474C12.101 3.474 12.299 3.474 12.422 3.597C12.545 3.72 12.545 3.918 12.545 4.314L12.545 9.488C12.545 9.97 12.507 10.008 12.025 10.008L11.565 10.008C11.082 10.008 11.045 9.97 11.045 9.488L11.045 6.311L11.125 5.879C11.146 5.768 11.117 5.756 11.053 5.849L10.804 6.211L4.745 12.27C4.404 12.611 4.351 12.611 4.01 12.27L3.711 11.971Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace ArrowUpRight {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function Checkmark(props: Checkmark.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M14.667 8C14.667 11.685 11.682 14.671 8 14.671C4.318 14.671 1.333 11.685 1.333 8C1.333 4.315 4.318 1.329 8 1.329C11.682 1.329 14.667 4.315 14.667 8ZM13.167 8C13.167 5.102 10.853 2.754 8 2.754C5.147 2.754 2.833 5.102 2.833 8C2.833 10.898 5.147 13.246 8 13.246C10.853 13.246 13.167 10.898 13.167 8ZM5.681 8.211C6.022 7.87 6.075 7.87 6.416 8.211L7.274 9.068L9.587 5.073C9.828 4.656 9.88 4.642 10.297 4.884L10.679 5.105C11.096 5.347 11.11 5.398 10.868 5.816L7.873 10.989C7.619 11.429 7.572 11.435 7.213 11.076L5.382 9.245C5.041 8.904 5.041 8.851 5.382 8.51L5.681 8.211Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Checkmark {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function ChevronRight(props: ChevronRight.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M6.294 4.492C6.635 4.151 6.689 4.151 7.03 4.492L9.944 7.406C10.224 7.686 10.364 7.826 10.364 8C10.364 8.174 10.224 8.314 9.944 8.594L7.03 11.508C6.689 11.849 6.635 11.849 6.294 11.508L5.892 11.106C5.551 10.765 5.551 10.712 5.892 10.37L8.263 8L5.892 5.63C5.551 5.288 5.551 5.235 5.892 4.894L6.294 4.492Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace ChevronRight {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function Link(props: Link.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M6.526 4.457C6.185 4.116 6.185 4.063 6.526 3.722L7.955 2.293C9.514 0.734 12.148 0.734 13.707 2.293C15.32 3.906 15.32 6.433 13.707 8.045L12.278 9.474C11.937 9.815 11.884 9.815 11.543 9.474L11.244 9.176C10.903 8.834 10.903 8.781 11.244 8.44L12.673 7.011C13.662 6.022 13.662 4.316 12.673 3.327C11.63 2.284 10.032 2.284 8.989 3.327L7.56 4.756C7.219 5.097 7.166 5.097 6.824 4.756L6.526 4.457ZM9.474 11.543C9.815 11.884 9.815 11.937 9.474 12.278L8.045 13.707C6.486 15.266 3.852 15.266 2.293 13.707C0.68 12.094 0.68 9.567 2.293 7.955L3.722 6.526C4.063 6.185 4.116 6.185 4.457 6.526L4.756 6.824C5.097 7.166 5.097 7.219 4.756 7.56L3.327 8.989C2.338 9.978 2.338 11.684 3.327 12.673C4.37 13.716 5.968 13.716 7.011 12.673L8.44 11.244C8.781 10.903 8.834 10.903 9.176 11.244L9.474 11.543ZM5.11 10.591C4.769 10.25 4.769 10.197 5.11 9.856L9.856 5.11C10.197 4.769 10.25 4.769 10.591 5.11L10.89 5.409C11.231 5.75 11.231 5.803 10.89 6.144L6.144 10.89C5.803 11.231 5.75 11.231 5.409 10.89L5.11 10.591Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Link {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function Play(props: Play.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M4.369 3.497C4.369 3.123 4.369 2.936 4.469 2.879C4.569 2.823 4.729 2.919 5.05 3.111L12.571 7.614C12.875 7.796 13.027 7.887 13.027 8C13.027 8.113 12.875 8.204 12.571 8.386L5.05 12.889C4.729 13.081 4.569 13.177 4.469 13.121C4.369 13.064 4.369 12.877 4.369 12.503L4.369 3.497Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Play {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function Spinner(props: Spinner.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M14.288 8C14.542 8 14.669 8 14.743 8.076C14.816 8.152 14.806 8.275 14.788 8.52C14.52 12.025 11.563 14.77 8 14.77C4.262 14.77 1.192 11.749 1.192 8C1.192 4.426 3.982 1.514 7.48 1.25C7.725 1.231 7.848 1.222 7.924 1.295C8 1.368 8 1.496 8 1.75L8 2.135C8 2.368 8 2.485 7.924 2.564C7.848 2.644 7.726 2.656 7.481 2.68C4.783 2.944 2.692 5.243 2.692 8C2.692 10.932 5.057 13.345 8 13.345C10.768 13.345 13.023 11.211 13.283 8.519C13.306 8.274 13.318 8.152 13.398 8.076C13.478 8 13.594 8 13.828 8L14.288 8Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Spinner {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
|
|
3
|
+
export function Xmark(props: Xmark.Props) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
12
|
+
role={props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M3.709 3.41C4.05 3.069 4.103 3.069 4.444 3.41L8 6.966L11.556 3.41C11.897 3.069 11.95 3.069 12.291 3.41L12.59 3.709C12.931 4.05 12.931 4.103 12.59 4.444L9.034 8L12.59 11.556C12.931 11.897 12.931 11.95 12.59 12.291L12.291 12.59C11.95 12.931 11.897 12.931 11.556 12.59L8 9.034L4.444 12.59C4.103 12.931 4.05 12.931 3.709 12.59L3.41 12.291C3.069 11.95 3.069 11.897 3.41 11.556L6.966 8L3.41 4.444C3.069 4.103 3.069 4.05 3.41 3.709L3.709 3.41Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Xmark {
|
|
24
|
+
export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children' | 'dangerouslySetInnerHTML'>
|
|
25
|
+
}
|
package/src/marketing/index.ts
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
/** Marketing surface: the variables
|
|
1
|
+
/** Marketing surface: the variables, authoring helpers and components for Tempo's marketing websites. @module */
|
|
2
|
+
export { ArticleBody } from './components/ArticleBody.js'
|
|
3
|
+
export { ArticleHero } from './components/ArticleHero.js'
|
|
4
|
+
export { ArticleIndex } from './components/ArticleIndex.js'
|
|
5
|
+
export { ArticleRail } from './components/ArticleRail.js'
|
|
6
|
+
export { AsideLayout } from './components/AsideLayout.js'
|
|
7
|
+
export { Breadcrumbs } from './components/Breadcrumbs.js'
|
|
8
|
+
export { Button } from './components/Button.js'
|
|
9
|
+
export { Card } from './components/Card.js'
|
|
10
|
+
export { Contact } from './components/Contact.js'
|
|
11
|
+
export { Cta } from './components/Cta.js'
|
|
12
|
+
export { CustomerStoryFeature } from './components/CustomerStoryFeature.js'
|
|
13
|
+
export { Faq } from './components/Faq.js'
|
|
14
|
+
export { FeatureAccordion } from './components/FeatureAccordion.js'
|
|
15
|
+
export { Footer } from './components/Footer.js'
|
|
16
|
+
export { Hero } from './components/Hero.js'
|
|
17
|
+
export { LeadCapture } from './components/LeadCapture.js'
|
|
18
|
+
export { Link } from './components/Link.js'
|
|
19
|
+
export { Logo } from './components/Logo.js'
|
|
20
|
+
export { LogoWall } from './components/LogoWall.js'
|
|
21
|
+
export { Mark } from './components/Mark.js'
|
|
22
|
+
export { Media } from './components/Media.js'
|
|
23
|
+
export { Nav } from './components/Nav.js'
|
|
24
|
+
export { PartnersIndex } from './components/PartnersIndex.js'
|
|
25
|
+
export { QuoteBand } from './components/QuoteBand.js'
|
|
26
|
+
export { Section } from './components/Section.js'
|
|
27
|
+
export { SectionHeading } from './components/SectionHeading.js'
|
|
28
|
+
export { Showcase } from './components/Showcase.js'
|
|
29
|
+
export { Stats } from './components/Stats.js'
|
|
30
|
+
export { Steps } from './components/Steps.js'
|
|
31
|
+
export { SymbolTile } from './components/SymbolTile.js'
|
|
32
|
+
export { Tab } from './components/Tab.js'
|
|
33
|
+
export { Table } from './components/Table.js'
|
|
34
|
+
export { Tag } from './components/Tag.js'
|
|
2
35
|
export { style, variants, vars } from './zyzz.config.js'
|
|
3
36
|
export { variables } from './vars.js'
|