@stealthscale/component-typography 0.3.1 → 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 +1 -1
- 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 +4 -3
- /package/dist/{recipe-DuvOpofr.js → recipes-DuvOpofr.js} +0 -0
|
@@ -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,9 +40,9 @@
|
|
|
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-specimen": "^0.3.0",
|
|
45
46
|
"@stealthscale/vite-config-theme": "^0.3.0",
|
|
46
47
|
"@stealthscale/vite-config-typescript": "^0.3.0",
|
|
47
48
|
"@testing-library/react": "^16.3",
|
|
File without changes
|