@stealthscale/component-typography 0.3.0 → 0.3.2
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/cyclonedx/bom.json +1 -1
- package/dist/index.js +1 -515
- package/dist/pages/blockquote/blockquote.js +117 -0
- package/dist/pages/blockquote/blockquote.props.js +3 -0
- package/dist/pages/code/code.js +200 -0
- package/dist/pages/code/code.props.js +3 -0
- package/dist/pages/em/em.js +85 -0
- package/dist/pages/em/em.props.js +3 -0
- package/dist/pages/heading/heading.js +180 -0
- package/dist/pages/heading/heading.props.js +3 -0
- package/dist/pages/highlight/highlight.js +334 -0
- package/dist/pages/highlight/highlight.props.js +3 -0
- package/dist/pages/icon/icon.js +110 -0
- package/dist/pages/icon/icon.props.js +3 -0
- package/dist/pages/kbd/kbd.js +234 -0
- package/dist/pages/kbd/kbd.props.js +3 -0
- package/dist/pages/list/list.js +175 -0
- package/dist/pages/list/list.props.js +3 -0
- package/dist/pages/mark/mark.js +127 -0
- package/dist/pages/mark/mark.props.js +3 -0
- package/dist/pages/pages.json +141 -0
- package/dist/pages/quote/quote.js +89 -0
- package/dist/pages/quote/quote.props.js +3 -0
- package/dist/pages/span/span.js +121 -0
- package/dist/pages/span/span.props.js +3 -0
- package/dist/pages/strong/strong.js +80 -0
- package/dist/pages/strong/strong.props.js +3 -0
- package/dist/pages/text/text.js +143 -0
- package/dist/pages/text/text.props.js +3 -0
- package/dist/shared-CRBzNmJA.js +516 -0
- package/dist/theme.js +23 -14
- package/locales/en/specimen/blockquote.json +26 -0
- package/locales/en/specimen/code.json +26 -0
- package/locales/en/specimen/em.json +15 -0
- package/locales/en/specimen/heading.json +32 -0
- package/locales/en/specimen/highlight.json +37 -0
- package/locales/en/specimen/icon.json +22 -0
- package/locales/en/specimen/kbd.json +32 -0
- package/locales/en/specimen/list.json +34 -0
- package/locales/en/specimen/mark.json +23 -0
- package/locales/en/specimen/quote.json +19 -0
- package/locales/en/specimen/span.json +19 -0
- package/locales/en/specimen/strong.json +14 -0
- package/locales/en/specimen/text.json +31 -0
- package/package.json +5 -4
- /package/dist/{recipe-DuvOpofr.js → recipes-DuvOpofr.js} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Highlight marks every match of a search query in a text, each in the mark component, so a reader sees why a result matched. It matches as the search filters: by substring, with letter case ignored, each term trimmed and the longer term first.",
|
|
3
|
+
"letters": {
|
|
4
|
+
"about": "One query with letter case ignored, the default, and matched. Ignored, it marks Net and the net in network. Matched, it marks the lower-case net alone.",
|
|
5
|
+
"query": "net",
|
|
6
|
+
"text": "Net 30 terms apply to every invoice on the network plan.",
|
|
7
|
+
"title": "Letter case"
|
|
8
|
+
},
|
|
9
|
+
"looks": {
|
|
10
|
+
"about": "Every match takes the props of the mark, so a theme styles a match as it styles any highlight. The text look marks by weight, for a reader who does not see the fill.",
|
|
11
|
+
"query": "settled",
|
|
12
|
+
"text": "The dispute was raised on Tuesday and settled on Friday.",
|
|
13
|
+
"title": "Looks"
|
|
14
|
+
},
|
|
15
|
+
"search": {
|
|
16
|
+
"about": "Type in the field: the list keeps the titles that contain the query and marks it in each, as a help centre shows its results.",
|
|
17
|
+
"articles": {
|
|
18
|
+
"chargebacks": "Chargebacks and disputes",
|
|
19
|
+
"fees": "Fees for international payments",
|
|
20
|
+
"methods": "Payment methods by country",
|
|
21
|
+
"payouts": "Payout schedules",
|
|
22
|
+
"refunds": "Refunds and partial refunds"
|
|
23
|
+
},
|
|
24
|
+
"clear": "Clear the search",
|
|
25
|
+
"label": "Search the help centre",
|
|
26
|
+
"query": "pay",
|
|
27
|
+
"title": "Search results"
|
|
28
|
+
},
|
|
29
|
+
"terms": {
|
|
30
|
+
"about": "Several terms mark together, each wherever it occurs in the text.",
|
|
31
|
+
"chargeback": "chargeback",
|
|
32
|
+
"refund": "refund",
|
|
33
|
+
"text": "A refund returns a payment to the customer. A chargeback is a refund the customer's bank takes back after a dispute, and every chargeback costs a fee.",
|
|
34
|
+
"title": "Several terms"
|
|
35
|
+
},
|
|
36
|
+
"title": "Highlight"
|
|
37
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders an icon at a size, in a text ink and with a motion. The component ships no artwork: pass paths as children or an icon component through `as`.",
|
|
3
|
+
"arrow": "Next",
|
|
4
|
+
"mirrored": {
|
|
5
|
+
"about": "An icon that points is mirrored in a right-to-left page. The arrow renders the same in this left-to-right page.",
|
|
6
|
+
"title": "Mirrored"
|
|
7
|
+
},
|
|
8
|
+
"motion": {
|
|
9
|
+
"about": "`spin` for loading, `float` for waiting and `twinkle` for something new. Each stops under reduced motion.",
|
|
10
|
+
"title": "Motion"
|
|
11
|
+
},
|
|
12
|
+
"size": {
|
|
13
|
+
"about": "The eight steps of the icon scale, and `inherit`, which is the height of the surrounding text.",
|
|
14
|
+
"title": "Sizes"
|
|
15
|
+
},
|
|
16
|
+
"star": "Favourite",
|
|
17
|
+
"title": "Icon",
|
|
18
|
+
"tone": {
|
|
19
|
+
"about": "Every text ink. `current` takes the ink of the surrounding text. The inverted ink is for a dark surface, so its cell renders on `bg.inverted`.",
|
|
20
|
+
"title": "Inks"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders keyboard input as keycaps. `Kbd.Group` renders a key combination and sets the size, look and palette of its keycaps.",
|
|
3
|
+
"commands": {
|
|
4
|
+
"palette": "Open the command palette",
|
|
5
|
+
"redo": "Redo",
|
|
6
|
+
"save": "Save",
|
|
7
|
+
"undo": "Undo"
|
|
8
|
+
},
|
|
9
|
+
"find": "to search.",
|
|
10
|
+
"keys": {
|
|
11
|
+
"about": "Modifier and named keys at `md`. A one-character key is square.",
|
|
12
|
+
"title": "Keys"
|
|
13
|
+
},
|
|
14
|
+
"palette": {
|
|
15
|
+
"about": "Every look in every palette.",
|
|
16
|
+
"title": "Palettes"
|
|
17
|
+
},
|
|
18
|
+
"press": "Press",
|
|
19
|
+
"sentence": {
|
|
20
|
+
"about": "A combination at `md` inside a line of body text. The keycap is shorter than the line.",
|
|
21
|
+
"title": "In a sentence"
|
|
22
|
+
},
|
|
23
|
+
"shortcuts": {
|
|
24
|
+
"about": "Commands with their combinations in a 384px room. Each `Kbd.Group` sets `sm` on its keycaps.",
|
|
25
|
+
"title": "Shortcuts"
|
|
26
|
+
},
|
|
27
|
+
"title": "Kbd",
|
|
28
|
+
"variant": {
|
|
29
|
+
"about": "Every look at every size. `raised` is the default.",
|
|
30
|
+
"title": "Looks and sizes"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a list of items with the browser's markers, or with a mark in each item's `List.Indicator`.",
|
|
3
|
+
"align": {
|
|
4
|
+
"about": "The three alignments of the indicator against an item that wraps, in a 320px room.",
|
|
5
|
+
"title": "Alignment"
|
|
6
|
+
},
|
|
7
|
+
"features": {
|
|
8
|
+
"currencies": "Payouts in 34 currencies",
|
|
9
|
+
"invoices": "Unlimited invoices",
|
|
10
|
+
"sso": "Single sign-on with SAML and SCIM provisioning for every workspace"
|
|
11
|
+
},
|
|
12
|
+
"gap": {
|
|
13
|
+
"about": "Every gap token between the items.",
|
|
14
|
+
"title": "Gaps"
|
|
15
|
+
},
|
|
16
|
+
"marker": {
|
|
17
|
+
"about": "Every marker type. A counting marker renders on an `ol`.",
|
|
18
|
+
"title": "Markers"
|
|
19
|
+
},
|
|
20
|
+
"motion": {
|
|
21
|
+
"about": "The animation each item enters with. Each one runs once when the item mounts.",
|
|
22
|
+
"title": "Motion"
|
|
23
|
+
},
|
|
24
|
+
"steps": {
|
|
25
|
+
"connect": "Connect a bank account",
|
|
26
|
+
"invite": "Invite your team",
|
|
27
|
+
"verify": "Verify your email address"
|
|
28
|
+
},
|
|
29
|
+
"title": "List",
|
|
30
|
+
"variant": {
|
|
31
|
+
"about": "`plain` removes the browser's markers, and each item renders its mark in `List.Indicator`. Every other scene renders the default `marker` look.",
|
|
32
|
+
"title": "Plain"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Highlights text inside a line, such as a search hit. The element has the mark role.",
|
|
3
|
+
"effect": {
|
|
4
|
+
"about": "`glow` adds a shadow around the highlight. `shine` moves a highlight across the text.",
|
|
5
|
+
"title": "Effects"
|
|
6
|
+
},
|
|
7
|
+
"files": "in 3 files.",
|
|
8
|
+
"found": "Found",
|
|
9
|
+
"motion": {
|
|
10
|
+
"about": "The animation a highlight enters with. Each one runs once when the highlight mounts.",
|
|
11
|
+
"title": "Motion"
|
|
12
|
+
},
|
|
13
|
+
"palette": {
|
|
14
|
+
"about": "Every look in every palette. The `text` look sets a heavier weight in place of a fill, for a highlight that has to be distinguishable without colour.",
|
|
15
|
+
"title": "Palettes and looks"
|
|
16
|
+
},
|
|
17
|
+
"radius": {
|
|
18
|
+
"about": "Every corner at every inline inset, in the subtle look.",
|
|
19
|
+
"title": "Corners and insets"
|
|
20
|
+
},
|
|
21
|
+
"term": "chassis",
|
|
22
|
+
"title": "Mark"
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a quotation inside a line of text. The browser adds the quotation marks of the language in `lang`.",
|
|
3
|
+
"after": ".",
|
|
4
|
+
"before": "The auditor called the report",
|
|
5
|
+
"claim": "complete and accurate",
|
|
6
|
+
"marks": {
|
|
7
|
+
"about": "`auto` adds the browser's quotation marks. `none` adds no marks, for text that contains its own punctuation.",
|
|
8
|
+
"title": "Marks"
|
|
9
|
+
},
|
|
10
|
+
"motion": {
|
|
11
|
+
"about": "The animation a quotation enters with. Each one runs once when the quotation mounts.",
|
|
12
|
+
"title": "Motion"
|
|
13
|
+
},
|
|
14
|
+
"title": "Quote",
|
|
15
|
+
"tone": {
|
|
16
|
+
"about": "The quotation in every text ink, inside a line of body text. The inverted ink is for a dark surface, so its cell renders on `bg.inverted`.",
|
|
17
|
+
"title": "Inks"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a run of text inside a line. A span has no semantics and inherits the font of its line.",
|
|
3
|
+
"due": "Due",
|
|
4
|
+
"motion": {
|
|
5
|
+
"about": "The animation a span enters with. Each one runs once when the span mounts.",
|
|
6
|
+
"title": "Motion"
|
|
7
|
+
},
|
|
8
|
+
"path": "/var/log/nginx/sites/invoices.example.com/access.log.2026-09-19.gz",
|
|
9
|
+
"title": "Span",
|
|
10
|
+
"tone": {
|
|
11
|
+
"about": "Every text ink at every weight, inside a line of body text. The inverted ink is for a dark surface, so its row renders on `bg.inverted`.",
|
|
12
|
+
"title": "Inks and weights"
|
|
13
|
+
},
|
|
14
|
+
"total": "€1,024.00",
|
|
15
|
+
"truncate": {
|
|
16
|
+
"about": "A log path that wraps in a 320px room, and the same path cut to one line with an ellipsis.",
|
|
17
|
+
"title": "Truncate"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Marks text as more important than the surrounding text. The element has the strong role.",
|
|
3
|
+
"motion": {
|
|
4
|
+
"about": "The animation a strong run enters with. Each one runs once when the run mounts.",
|
|
5
|
+
"title": "Motion"
|
|
6
|
+
},
|
|
7
|
+
"permanent": "cannot be undone.",
|
|
8
|
+
"subject": "Deleting a workspace",
|
|
9
|
+
"title": "Strong",
|
|
10
|
+
"tone": {
|
|
11
|
+
"about": "Every weight in every text ink, inside a line of body text. The inverted ink is for a dark surface, so its row renders on `bg.inverted`.",
|
|
12
|
+
"title": "Weights and inks"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a paragraph in a body size, a text ink, a weight and an alignment.",
|
|
3
|
+
"align": {
|
|
4
|
+
"about": "The four alignments of a paragraph in a 576px room. `start` and `end` follow the writing direction.",
|
|
5
|
+
"title": "Alignment"
|
|
6
|
+
},
|
|
7
|
+
"mask": {
|
|
8
|
+
"about": "The three fade masks. `bottom` fades the last lines, `edges` fades both inline ends of a line that scrolls, and `radial` fades out from the centre.",
|
|
9
|
+
"title": "Mask"
|
|
10
|
+
},
|
|
11
|
+
"motion": {
|
|
12
|
+
"about": "The animation a paragraph enters with. Each one runs once when the paragraph mounts.",
|
|
13
|
+
"title": "Motion"
|
|
14
|
+
},
|
|
15
|
+
"payment": "Paid on 12 March.",
|
|
16
|
+
"release": "Payouts settle within two business days in 34 countries. A transfer started before 14:00 UTC arrives on the same day, and the dashboard shows the expected arrival date of every transfer.",
|
|
17
|
+
"session": "Your session ends in five minutes.",
|
|
18
|
+
"size": {
|
|
19
|
+
"about": "The five steps of the body text role.",
|
|
20
|
+
"title": "Sizes"
|
|
21
|
+
},
|
|
22
|
+
"title": "Text",
|
|
23
|
+
"tone": {
|
|
24
|
+
"about": "Every text ink at every weight. The inverted ink is for a dark surface, so its row renders on `bg.inverted`.",
|
|
25
|
+
"title": "Inks and weights"
|
|
26
|
+
},
|
|
27
|
+
"truncate": {
|
|
28
|
+
"about": "A paragraph that wraps, and the same paragraph cut to one line with an ellipsis. Show the full text elsewhere, such as in a detail view.",
|
|
29
|
+
"title": "Truncate"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stealthscale/component-typography",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Draws the components that are text: a heading, a paragraph, a snippet of code, a key a reader is asked to press.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
21
|
"LICENSE",
|
|
22
|
+
"locales",
|
|
22
23
|
"README.md"
|
|
23
24
|
],
|
|
24
25
|
"type": "module",
|
|
@@ -39,10 +40,10 @@
|
|
|
39
40
|
"@stealthscale/hooks": "^0.3.0",
|
|
40
41
|
"@stealthscale/theme": "^0.5.0",
|
|
41
42
|
"@stealthscale/vite-config": "^0.8.0",
|
|
42
|
-
"@stealthscale/vite-config-i18n": "^0.2.
|
|
43
|
+
"@stealthscale/vite-config-i18n": "^0.2.2",
|
|
43
44
|
"@stealthscale/vite-config-react": "^0.9.1",
|
|
44
|
-
"@stealthscale/vite-config-specimen": "^0.
|
|
45
|
-
"@stealthscale/vite-config-theme": "^0.
|
|
45
|
+
"@stealthscale/vite-config-specimen": "^0.3.0",
|
|
46
|
+
"@stealthscale/vite-config-theme": "^0.3.0",
|
|
46
47
|
"@stealthscale/vite-config-typescript": "^0.3.0",
|
|
47
48
|
"@testing-library/react": "^16.3",
|
|
48
49
|
"@types/react": "^19.3",
|
|
File without changes
|