@seanyeh77/ui 0.48.1 → 0.48.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/css/DataTable.css +5 -1
- package/dist/css/InlineCode.css +9 -0
- package/dist/styles.css +14 -1
- package/docs/agents.md +5 -5
- package/package.json +2 -2
package/dist/css/DataTable.css
CHANGED
|
@@ -1118,10 +1118,14 @@
|
|
|
1118
1118
|
transition: none;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
/* A long cell cut off on desktop: focusable, so the keyboard gets its Tooltip too.
|
|
1121
|
+
/* A long cell cut off on desktop: focusable, so the keyboard gets its Tooltip too. Being a target, it is at least 24 px
|
|
1122
|
+
tall (WCAG 2.5.8) even when the page sets a line height under 24 px (14 px / 22 px text): padding grows the box to
|
|
1123
|
+
24 px and an equal negative margin takes it back, so the line, the text and the row keep their height. */
|
|
1122
1124
|
.ui-dt-long.is-cut {
|
|
1123
1125
|
cursor: default;
|
|
1124
1126
|
border-radius: var(--radius-sm);
|
|
1127
|
+
padding-block: max(0px, calc((24px - 1lh) / 2));
|
|
1128
|
+
margin-block: min(0px, calc((1lh - 24px) / 2));
|
|
1125
1129
|
}
|
|
1126
1130
|
|
|
1127
1131
|
.ui-dt-views {
|
package/dist/css/InlineCode.css
CHANGED
|
@@ -61,6 +61,15 @@
|
|
|
61
61
|
font-size: var(--text-small);
|
|
62
62
|
white-space: nowrap;
|
|
63
63
|
}
|
|
64
|
+
/* In a table cell a location is often a target on its own, beside the row's other links: its box is about 17 px of
|
|
65
|
+
13 px text. Vertical padding on an inline box grows the box it is clicked by to at least 24 px (WCAG 2.5.8) and
|
|
66
|
+
moves neither the line nor the row; there is no background, so nothing shows. Desktop rows only: in a phone card
|
|
67
|
+
the two-line clamp of a long text would grow by the padding. */
|
|
68
|
+
@media (min-width: 600px) {
|
|
69
|
+
:is(.ui-dt-body, .ui-dt-detail) .ui-code.is-link.is-location {
|
|
70
|
+
padding-block: 4px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
64
73
|
.ui-code.is-link.is-name:is(:hover, :focus-visible),
|
|
65
74
|
.ui-code.is-link.is-location:is(:hover, :focus-visible) {
|
|
66
75
|
text-decoration: underline;
|
package/dist/styles.css
CHANGED
|
@@ -765,6 +765,15 @@ label:has(> .ui-switch) {
|
|
|
765
765
|
font-size: var(--text-small);
|
|
766
766
|
white-space: nowrap;
|
|
767
767
|
}
|
|
768
|
+
/* In a table cell a location is often a target on its own, beside the row's other links: its box is about 17 px of
|
|
769
|
+
13 px text. Vertical padding on an inline box grows the box it is clicked by to at least 24 px (WCAG 2.5.8) and
|
|
770
|
+
moves neither the line nor the row; there is no background, so nothing shows. Desktop rows only: in a phone card
|
|
771
|
+
the two-line clamp of a long text would grow by the padding. */
|
|
772
|
+
@media (min-width: 600px) {
|
|
773
|
+
:is(.ui-dt-body, .ui-dt-detail) .ui-code.is-link.is-location {
|
|
774
|
+
padding-block: 4px;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
768
777
|
.ui-code.is-link.is-name:is(:hover, :focus-visible),
|
|
769
778
|
.ui-code.is-link.is-location:is(:hover, :focus-visible) {
|
|
770
779
|
text-decoration: underline;
|
|
@@ -4589,10 +4598,14 @@ div.ui-toast[role='status'] {
|
|
|
4589
4598
|
transition: none;
|
|
4590
4599
|
}
|
|
4591
4600
|
}
|
|
4592
|
-
/* A long cell cut off on desktop: focusable, so the keyboard gets its Tooltip too.
|
|
4601
|
+
/* A long cell cut off on desktop: focusable, so the keyboard gets its Tooltip too. Being a target, it is at least 24 px
|
|
4602
|
+
tall (WCAG 2.5.8) even when the page sets a line height under 24 px (14 px / 22 px text): padding grows the box to
|
|
4603
|
+
24 px and an equal negative margin takes it back, so the line, the text and the row keep their height. */
|
|
4593
4604
|
.ui-dt-long.is-cut {
|
|
4594
4605
|
cursor: default;
|
|
4595
4606
|
border-radius: var(--radius-sm);
|
|
4607
|
+
padding-block: max(0px, calc((24px - 1lh) / 2));
|
|
4608
|
+
margin-block: min(0px, calc((1lh - 24px) / 2));
|
|
4596
4609
|
}
|
|
4597
4610
|
|
|
4598
4611
|
.ui-dt-views {
|
package/docs/agents.md
CHANGED
|
@@ -65,11 +65,11 @@ export default [ui.configs.recommended];
|
|
|
65
65
|
```html
|
|
66
66
|
<meta charset="utf-8">
|
|
67
67
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
68
|
-
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.
|
|
69
|
-
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.
|
|
70
|
-
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.
|
|
68
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.2/fonts.css">
|
|
69
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.2/tokens.css">
|
|
70
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.48.2/styles.css">
|
|
71
71
|
<div id="root"></div>
|
|
72
|
-
<script src="https://seanyeh77.github.io/ui-design-system/dist/0.48.
|
|
72
|
+
<script src="https://seanyeh77.github.io/ui-design-system/dist/0.48.2/bundle.js"></script>
|
|
73
73
|
<script>
|
|
74
74
|
const h = React.createElement;
|
|
75
75
|
UI.initTheme();
|
|
@@ -77,6 +77,6 @@ export default [ui.configs.recommended];
|
|
|
77
77
|
</script>
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
Pin a version as above: `/dist/<version>/` never changes; `/dist/` always serves the latest release. jsDelivr has the same files (`https://cdn.jsdelivr.net/npm/@seanyeh77/ui@0.48.
|
|
80
|
+
Pin a version as above: `/dist/<version>/` never changes; `/dist/` always serves the latest release. jsDelivr has the same files (`https://cdn.jsdelivr.net/npm/@seanyeh77/ui@0.48.2/dist/bundle.js`, `…/dist/styles.css`; the fonts at `https://cdn.jsdelivr.net/npm/@seanyeh77/tokens@0.48.2/fonts.css`). Without a bundler, `@seanyeh77/ui/dist/fonts.css` cannot resolve its import: load the tokens package's `fonts.css` or the pinned site URL.
|
|
81
81
|
|
|
82
82
|
Scope: web UI, and the tokens of SeanYeh's Slidev decks (`initTheme({ preset: 'teaching' })`, see `theme.md`). Slide layout, Notion documents and teaching diagrams follow the separate `teaching-materials-style` skill.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/ui",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
4
4
|
"description": "SeanYeh's design system: typed React components on Base UI, styled with design tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@base-ui/react": "^1.9.0",
|
|
61
|
-
"@seanyeh77/tokens": "^0.48.
|
|
61
|
+
"@seanyeh77/tokens": "^0.48.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "node scripts/theme-defaults.ts && tsdown && node scripts/postbuild.ts",
|