@lt-three/love3 0.1.0 → 0.1.1

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.
Files changed (271) hide show
  1. package/README.md +40 -40
  2. package/dist/native/analytics/animation.d.ts +1 -1
  3. package/dist/native/analytics/animation.js +1 -1
  4. package/dist/native/analytics/chart.types.d.ts +3 -3
  5. package/dist/native/analytics/metric-card.d.ts +3 -3
  6. package/dist/native/analytics/metric-card.js +3 -3
  7. package/dist/native/analytics/multi-line-chart.d.ts +9 -8
  8. package/dist/native/analytics/multi-line-chart.js +14 -13
  9. package/dist/native/analytics/pie-chart.d.ts +7 -7
  10. package/dist/native/analytics/pie-chart.js +8 -8
  11. package/dist/native/analytics/single-number.d.ts +4 -4
  12. package/dist/native/analytics/single-number.js +2 -2
  13. package/dist/native/atom/avatar.d.ts +6 -6
  14. package/dist/native/atom/avatar.js +2 -2
  15. package/dist/native/atom/badge.d.ts +5 -5
  16. package/dist/native/atom/button.d.ts +12 -12
  17. package/dist/native/atom/button.js +8 -8
  18. package/dist/native/atom/checkbox.d.ts +4 -4
  19. package/dist/native/atom/checkbox.js +2 -2
  20. package/dist/native/atom/colored-value.d.ts +4 -4
  21. package/dist/native/atom/colored-value.js +4 -4
  22. package/dist/native/atom/image.d.ts +7 -7
  23. package/dist/native/atom/image.js +2 -2
  24. package/dist/native/atom/label.d.ts +5 -5
  25. package/dist/native/atom/label.js +2 -2
  26. package/dist/native/atom/link.d.ts +5 -5
  27. package/dist/native/atom/link.js +5 -5
  28. package/dist/native/atom/readout.d.ts +7 -7
  29. package/dist/native/atom/readout.js +3 -3
  30. package/dist/native/atom/search-input.d.ts +2 -2
  31. package/dist/native/atom/search-input.js +2 -2
  32. package/dist/native/atom/select.d.ts +14 -14
  33. package/dist/native/atom/select.js +8 -8
  34. package/dist/native/atom/separator.d.ts +2 -3
  35. package/dist/native/atom/separator.js +2 -3
  36. package/dist/native/atom/skeleton.d.ts +3 -3
  37. package/dist/native/atom/skeleton.js +3 -3
  38. package/dist/native/atom/slider.d.ts +6 -6
  39. package/dist/native/atom/slider.js +3 -3
  40. package/dist/native/atom/spinner.d.ts +4 -4
  41. package/dist/native/atom/spinner.js +2 -2
  42. package/dist/native/atom/switch.d.ts +4 -4
  43. package/dist/native/atom/switch.js +3 -3
  44. package/dist/native/atom/symbol.d.ts +7 -7
  45. package/dist/native/atom/symbol.js +7 -7
  46. package/dist/native/atom/symbol.types.d.ts +8 -8
  47. package/dist/native/atom/symbol.types.js +7 -7
  48. package/dist/native/atom/text-field.d.ts +15 -15
  49. package/dist/native/atom/text-field.js +5 -5
  50. package/dist/native/atom/theme-toggle.d.ts +7 -7
  51. package/dist/native/atom/theme-toggle.js +4 -4
  52. package/dist/native/atom/timezone-select.d.ts +5 -5
  53. package/dist/native/atom/timezone-select.js +4 -4
  54. package/dist/native/atom/typography.d.ts +2 -2
  55. package/dist/native/atom/typography.js +2 -2
  56. package/dist/native/base/button.d.ts +13 -13
  57. package/dist/native/base/button.js +4 -4
  58. package/dist/native/base/form.d.ts +15 -15
  59. package/dist/native/base/form.js +11 -11
  60. package/dist/native/base/glass-card.d.ts +3 -3
  61. package/dist/native/base/glass-card.js +3 -3
  62. package/dist/native/base/input.d.ts +8 -8
  63. package/dist/native/base/input.js +7 -7
  64. package/dist/native/base/sheet.d.ts +27 -27
  65. package/dist/native/base/sheet.js +15 -15
  66. package/dist/native/form/checkbox.d.ts +3 -3
  67. package/dist/native/form/checkbox.js +2 -2
  68. package/dist/native/form/date-picker.d.ts +9 -9
  69. package/dist/native/form/date-picker.js +9 -9
  70. package/dist/native/form/form.d.ts +5 -6
  71. package/dist/native/form/form.js +4 -5
  72. package/dist/native/form/radio-group.d.ts +5 -5
  73. package/dist/native/form/radio-group.js +4 -4
  74. package/dist/native/form/select.d.ts +2 -2
  75. package/dist/native/form/select.js +2 -2
  76. package/dist/native/form/slider.d.ts +2 -2
  77. package/dist/native/form/slider.js +2 -2
  78. package/dist/native/form/switch.d.ts +2 -2
  79. package/dist/native/form/switch.js +2 -2
  80. package/dist/native/form/text-area.d.ts +2 -2
  81. package/dist/native/form/text-area.js +1 -1
  82. package/dist/native/form/text-input.d.ts +5 -5
  83. package/dist/native/form/text-input.js +8 -8
  84. package/dist/native/layout/accordion.d.ts +5 -5
  85. package/dist/native/layout/accordion.js +2 -2
  86. package/dist/native/layout/card.d.ts +8 -8
  87. package/dist/native/layout/card.js +3 -3
  88. package/dist/native/layout/description.d.ts +2 -2
  89. package/dist/native/layout/description.js +2 -2
  90. package/dist/native/layout/error.d.ts +5 -5
  91. package/dist/native/layout/error.js +2 -2
  92. package/dist/native/layout/information.d.ts +4 -4
  93. package/dist/native/layout/information.js +3 -3
  94. package/dist/native/layout/locked.d.ts +15 -15
  95. package/dist/native/layout/locked.js +7 -7
  96. package/dist/native/layout/modal.d.ts +8 -8
  97. package/dist/native/layout/modal.js +5 -5
  98. package/dist/native/layout/not-found.d.ts +4 -4
  99. package/dist/native/layout/not-found.js +3 -3
  100. package/dist/native/layout/page-frame.d.ts +8 -8
  101. package/dist/native/layout/page-frame.js +3 -3
  102. package/dist/native/layout/panel.d.ts +5 -5
  103. package/dist/native/layout/panel.js +5 -5
  104. package/dist/native/layout/reorderable-list.d.ts +14 -14
  105. package/dist/native/layout/reorderable-list.js +10 -10
  106. package/dist/native/layout/sheet.d.ts +10 -10
  107. package/dist/native/layout/sheet.js +4 -4
  108. package/dist/native/layout/simple-dialog.d.ts +3 -3
  109. package/dist/native/layout/simple-dialog.js +2 -2
  110. package/dist/native/layout/simple-table.d.ts +18 -18
  111. package/dist/native/layout/simple-table.js +1 -1
  112. package/dist/native/layout/tab-bar.d.ts +10 -10
  113. package/dist/native/layout/tab-bar.js +4 -4
  114. package/dist/native/layout/tabs.d.ts +6 -6
  115. package/dist/native/layout/tabs.js +4 -4
  116. package/dist/native/layout/tuning-panel.d.ts +10 -10
  117. package/dist/native/layout/tuning-panel.js +15 -15
  118. package/dist/native/lib/autocomplete.d.ts +1 -1
  119. package/dist/native/lib/autocomplete.js +1 -1
  120. package/dist/native/lib/breakpoints.d.ts +3 -3
  121. package/dist/native/lib/breakpoints.js +3 -3
  122. package/dist/native/lib/chart-palette.d.ts +2 -2
  123. package/dist/native/lib/chart-palette.js +2 -2
  124. package/dist/native/lib/confirm.d.ts +15 -16
  125. package/dist/native/lib/confirm.js +9 -10
  126. package/dist/native/lib/control.d.ts +9 -9
  127. package/dist/native/lib/external-store.d.ts +4 -5
  128. package/dist/native/lib/keyboard.d.ts +7 -7
  129. package/dist/native/lib/keyboard.js +7 -7
  130. package/dist/native/lib/labels.d.ts +6 -6
  131. package/dist/native/lib/labels.js +6 -6
  132. package/dist/native/lib/loading.d.ts +3 -3
  133. package/dist/native/lib/loading.js +3 -3
  134. package/dist/native/lib/network.d.ts +5 -6
  135. package/dist/native/lib/network.js +5 -6
  136. package/dist/native/lib/scheme.d.ts +7 -7
  137. package/dist/native/lib/scheme.js +3 -3
  138. package/dist/native/lib/snackbar.d.ts +12 -13
  139. package/dist/native/lib/snackbar.js +7 -8
  140. package/dist/native/lib/theme.d.ts +15 -15
  141. package/dist/native/lib/theme.js +15 -15
  142. package/dist/native/lib/timezone.d.ts +13 -13
  143. package/dist/native/lib/timezone.js +13 -13
  144. package/dist/native/lib/token-color.d.ts +1 -1
  145. package/dist/native/lib/token-color.js +1 -1
  146. package/dist/native/lib/tuning-context.d.ts +2 -2
  147. package/dist/native/lib/tuning.d.ts +10 -10
  148. package/dist/native/lib/tuning.js +8 -8
  149. package/dist/native/lib/typography.d.ts +3 -3
  150. package/dist/native/lib/typography.js +3 -3
  151. package/dist/native/lib/utils.d.ts +3 -3
  152. package/dist/native/lib/utils.js +3 -3
  153. package/dist/native/once/confirm.d.ts +2 -2
  154. package/dist/native/once/confirm.js +2 -2
  155. package/dist/native/once/error-boundary.d.ts +3 -3
  156. package/dist/native/once/error-boundary.js +2 -2
  157. package/dist/native/once/loading-lock.d.ts +3 -3
  158. package/dist/native/once/loading-lock.js +3 -3
  159. package/dist/native/once/offline-banner.d.ts +6 -6
  160. package/dist/native/once/offline-banner.js +5 -5
  161. package/dist/native/once/snackbar.d.ts +7 -7
  162. package/dist/native/once/snackbar.js +5 -5
  163. package/dist/native/styles.css +21 -21
  164. package/dist/shared/analytics.d.ts +23 -23
  165. package/dist/shared/button.d.ts +1 -1
  166. package/dist/shared/form.d.ts +7 -7
  167. package/dist/shared/form.js +2 -2
  168. package/dist/tokens/contrast-pairs.d.ts +9 -9
  169. package/dist/tokens/contrast-pairs.js +10 -10
  170. package/dist/tokens/index.d.ts +1 -1
  171. package/dist/tokens/index.js +1 -1
  172. package/dist/tokens/styles.gen.css +87 -87
  173. package/dist/tokens/tokens.gen.d.ts +2 -2
  174. package/dist/tokens/tokens.gen.js +2 -2
  175. package/dist/tuning/catalog.d.ts +8 -8
  176. package/dist/tuning/catalog.js +9 -9
  177. package/dist/tuning/color.d.ts +4 -4
  178. package/dist/tuning/color.js +5 -5
  179. package/dist/tuning/css.d.ts +13 -13
  180. package/dist/tuning/css.js +17 -17
  181. package/dist/tuning/model.d.ts +11 -11
  182. package/dist/tuning/model.js +11 -11
  183. package/dist/tuning/native.d.ts +18 -18
  184. package/dist/tuning/native.js +18 -18
  185. package/dist/tuning/schema.d.ts +15 -15
  186. package/dist/tuning/schema.js +22 -22
  187. package/dist/tuning/types.d.ts +25 -25
  188. package/dist/tuning/types.js +6 -6
  189. package/dist/web/analytics/line-chart.d.ts +6 -6
  190. package/dist/web/analytics/line-chart.js +3 -3
  191. package/dist/web/analytics/metric-card.d.ts +6 -6
  192. package/dist/web/analytics/metric-card.js +5 -5
  193. package/dist/web/analytics/multi-line-chart.d.ts +23 -23
  194. package/dist/web/analytics/multi-line-chart.js +33 -33
  195. package/dist/web/atom/avatar.d.ts +1 -1
  196. package/dist/web/atom/checkbox.d.ts +6 -6
  197. package/dist/web/atom/checkbox.js +2 -2
  198. package/dist/web/atom/colored-value.d.ts +4 -4
  199. package/dist/web/atom/colored-value.js +4 -4
  200. package/dist/web/atom/help.d.ts +1 -1
  201. package/dist/web/atom/segmented-control.d.ts +13 -14
  202. package/dist/web/atom/segmented-control.js +6 -7
  203. package/dist/web/atom/select.d.ts +7 -7
  204. package/dist/web/atom/select.js +5 -5
  205. package/dist/web/atom/slider.d.ts +3 -3
  206. package/dist/web/atom/slider.js +2 -2
  207. package/dist/web/atom/switch.d.ts +3 -3
  208. package/dist/web/atom/text-area.d.ts +9 -8
  209. package/dist/web/atom/text-area.js +9 -8
  210. package/dist/web/atom/text-field.d.ts +5 -4
  211. package/dist/web/atom/text-field.js +5 -4
  212. package/dist/web/atom/toggle-chip.d.ts +6 -6
  213. package/dist/web/atom/toggle-chip.js +4 -4
  214. package/dist/web/atom/tooltip.d.ts +6 -6
  215. package/dist/web/atom/tooltip.js +2 -2
  216. package/dist/web/base/accordion.js +1 -1
  217. package/dist/web/base/breadcrumb.d.ts +1 -1
  218. package/dist/web/base/breadcrumb.js +1 -1
  219. package/dist/web/base/card.d.ts +3 -3
  220. package/dist/web/base/card.js +2 -2
  221. package/dist/web/base/dialog.d.ts +1 -1
  222. package/dist/web/base/dialog.js +1 -1
  223. package/dist/web/base/form.d.ts +7 -7
  224. package/dist/web/base/form.js +5 -5
  225. package/dist/web/base/pagination.d.ts +5 -5
  226. package/dist/web/base/pagination.js +1 -1
  227. package/dist/web/base/sheet.d.ts +1 -1
  228. package/dist/web/base/sheet.js +1 -1
  229. package/dist/web/base/slider.d.ts +1 -1
  230. package/dist/web/base/sonner.d.ts +2 -2
  231. package/dist/web/base/sonner.js +2 -2
  232. package/dist/web/base/spinner.js +1 -1
  233. package/dist/web/form/checkbox.d.ts +8 -8
  234. package/dist/web/form/checkbox.js +3 -3
  235. package/dist/web/form/radio-group.js +3 -3
  236. package/dist/web/form/select.js +1 -1
  237. package/dist/web/form/slider.d.ts +3 -3
  238. package/dist/web/form/slider.js +3 -3
  239. package/dist/web/form/switch.d.ts +3 -3
  240. package/dist/web/form/switch.js +4 -4
  241. package/dist/web/form/text-area.js +1 -1
  242. package/dist/web/form/text-input.d.ts +1 -1
  243. package/dist/web/form/text-input.js +1 -1
  244. package/dist/web/layout/accordion.d.ts +5 -5
  245. package/dist/web/layout/accordion.js +2 -2
  246. package/dist/web/layout/alert-modal.d.ts +11 -11
  247. package/dist/web/layout/alert-modal.js +7 -7
  248. package/dist/web/layout/card.d.ts +1 -1
  249. package/dist/web/layout/information.d.ts +9 -9
  250. package/dist/web/layout/information.js +7 -7
  251. package/dist/web/layout/modal.d.ts +1 -1
  252. package/dist/web/layout/page-frame.d.ts +14 -14
  253. package/dist/web/layout/page-frame.js +7 -7
  254. package/dist/web/layout/scroll-area.d.ts +1 -1
  255. package/dist/web/layout/sheet.d.ts +4 -4
  256. package/dist/web/layout/simple-table.d.ts +18 -18
  257. package/dist/web/layout/simple-table.js +2 -2
  258. package/dist/web/layout/tabs.d.ts +4 -4
  259. package/dist/web/layout/titled-modal.d.ts +10 -11
  260. package/dist/web/layout/titled-modal.js +7 -8
  261. package/dist/web/lib/css-vars.d.ts +6 -6
  262. package/dist/web/lib/css-vars.js +5 -5
  263. package/dist/web/lib/dialog.d.ts +4 -4
  264. package/dist/web/lib/labels.d.ts +8 -8
  265. package/dist/web/lib/labels.js +8 -8
  266. package/dist/web/lib/modal-open-focus.d.ts +7 -7
  267. package/dist/web/lib/modal-open-focus.js +9 -9
  268. package/dist/web/lib/restore-focus.d.ts +4 -4
  269. package/dist/web/lib/restore-focus.js +4 -4
  270. package/dist/web/styles.css +33 -33
  271. package/package.json +2 -2
@@ -2,10 +2,10 @@ import { useRef } from "react";
2
2
 
3
3
  //#region src/web/lib/restore-focus.ts
4
4
  /**
5
- * Radix の Dialog は、閉じたあとのフォーカスを `DialogTrigger` にしか戻さない。love3 の Modal・Sheet・AlertModal は `open` を状態で持つ
6
- * (トリガーが無い)ので、そのままだとフォーカスが `body` に落ちる(キーボード・支援技術の利用者が、開いた場所を見失う)。
7
- * 開いた時点でフォーカスのあった要素を覚えて、閉じたときにそこへ戻す。`DialogTrigger` で開いた場合など、覚えた要素が無いとき・
8
- * 呼び出し側が `preventDefault` したときは、何もしない(Radix の既定の動きに任せる)。
5
+ * Radix's Dialog returns focus after closing only to `DialogTrigger`. love3's Modal, Sheet and AlertModal keep `open` in state
6
+ * (there is no trigger), so as is, focus falls to `body` (keyboard and assistive-technology users lose track of where they opened it).
7
+ * It remembers the element that had focus when the dialog opened and returns focus there on close. When there is no remembered element, such as when it was opened with `DialogTrigger`, or
8
+ * when the caller called `preventDefault`, it does nothing (it leaves it to Radix's default behaviour).
9
9
  */
10
10
  function useRestoreFocus(onOpenAutoFocus, onCloseAutoFocus) {
11
11
  const previous = useRef(null);
@@ -1,44 +1,44 @@
1
1
  /*
2
- * love3 の web 用スタイル(`@lt-three/love3/web/styles.css`)。アプリの CSS の入口で 1 度だけ import する。
2
+ * Web styles for love3 (`@lt-three/love3/web/styles.css`). Import it once, at the entry of your app's CSS.
3
3
  *
4
4
  * @import "@lt-three/love3/web/styles.css";
5
5
  *
6
- * 中身は、Tailwind v4 の本体・フォント・アニメーション・トークン(`@lt-three/love3/styles.css`)・ベーススタイル。
7
- * トークンの値は `src/tokens/definition.ts`(SSOT)が持つ。ここにはトークンを書かない。
8
- * `.theme-light` は生トークン(`bg-paper` / `text-ink-900` など)だけを明るくする。
9
- * セマンティックなクラス(`bg-background` / `bg-primary` など)は明るくならないので、部品では使わない
10
- * (公開ページを常にライトにしたいときは、生トークンのクラスを使うか、使う側で変数を再宣言する)。
6
+ * It contains Tailwind v4 itself, the fonts, the animations, the tokens (`@lt-three/love3/styles.css`) and the base styles.
7
+ * The token values live in `src/tokens/definition.ts` (the SSOT). No tokens are written here.
8
+ * `.theme-light` only lightens the raw tokens (such as `bg-paper` / `text-ink-900`).
9
+ * Semantic classes (such as `bg-background` / `bg-primary`) do not get lighter, so components do not use them
10
+ * (to keep a public page always light, use raw-token classes or redeclare the variables on the consuming side).
11
11
  */
12
12
  @import "tailwindcss/theme.css" layer(theme);
13
13
  @import "tailwindcss/preflight.css" layer(base);
14
14
  @import "tailwindcss/utilities.css";
15
15
 
16
- /* 欧文は Geist を self-host(Latin のみで軽量)。和文は游ゴシックの OS 同梱フォントを使い、未搭載なら sans-serif に落ちる */
16
+ /* Latin text uses self-hosted Geist (Latin only, so it is light). Japanese text uses the Yu Gothic fonts that ship with the OS, and falls back to sans-serif where they are not installed */
17
17
  @import "@fontsource-variable/geist";
18
- /* 数字・ID・コード・データテーブルは Geist Mono */
18
+ /* Numbers, IDs, code and data tables use Geist Mono */
19
19
  @import "@fontsource-variable/geist-mono";
20
20
 
21
21
  @import "tw-animate-css";
22
22
 
23
- /* トークン本体(@theme・ライト・ダーク)。生成物なので、値を変えるときは definition.ts を直す */
23
+ /* The token definitions (@theme, light, dark). It is generated, so to change a value edit definition.ts */
24
24
  @import "@lt-three/love3/styles.css";
25
25
 
26
26
  /*
27
- * love3 の部品が使う Tailwind のクラスを拾う(部品は *.tsx。lib の *.ts にクラスは無い)。
28
- * node_modules(workspace の symlink 越し)は自動検出の対象外なので、ここで明示する。
29
- * `@source` のパスは、この CSS ファイルの位置が基準。
30
- * 公開物(`dist/`)では部品が `*.js` になるので、`tsx` と `js` の両方を拾う(同じファイルを src と dist の両方に置く)。
31
- * 使う側のアプリ自身のソースは、バンドラのプロジェクトルート(vite の root、postcss なら cwd)を基準にした
32
- * 自動検出に任せる(この CSS の位置は関係しない)。
27
+ * Picks up the Tailwind classes used by love3's components (components are *.tsx; the *.ts files in lib have no classes).
28
+ * node_modules (through a workspace symlink) is outside automatic detection, so it is stated explicitly here.
29
+ * The `@source` path is relative to the location of this CSS file.
30
+ * In the published build (`dist/`) the components are `*.js`, so both `tsx` and `js` are picked up (the same file is placed in both src and dist).
31
+ * The consuming app's own sources are left to automatic detection based on the bundler's project root
32
+ * (the Vite root, or the cwd for PostCSS); the location of this CSS file does not matter.
33
33
  */
34
34
  @source "./**/*.{tsx,js}";
35
35
  @source not "./**/*.test.tsx";
36
36
 
37
37
  /*
38
- * 通知(sonner)— overlay 面 + 1px の薄い枠 + 淡い影(shadow-md)。角丸は surface の段。
39
- * state は左罫線ではなく、アイコンの色で表す(文字は通常色のまま)。
40
- * sonner はスタイルを実行時に注入する(既定の `[data-sonner-toast][data-styled=true]` と同じ詳細度だと、読み込み順で負ける)ので、
41
- * `[data-sonner-toaster]` と `[data-styled="true"]` を付けて詳細度を 1 つ上げて確実に勝つ(!important は使わない)。
38
+ * Notifications (sonner): overlay surface + thin 1px border + soft shadow (shadow-md). Corner radius is the surface step.
39
+ * The state is shown by the icon colour, not by a left border (the text stays in the normal colour).
40
+ * sonner injects its styles at runtime (at the same specificity as the default `[data-sonner-toast][data-styled=true]`, load order would make us lose), so
41
+ * `[data-sonner-toaster]` and `[data-styled="true"]` are added to raise the specificity by one step and win reliably (!important is not used).
42
42
  */
43
43
  [data-sonner-toaster] [data-sonner-toast][data-styled="true"] {
44
44
  box-shadow: var(--shadow-md);
@@ -71,11 +71,11 @@
71
71
  }
72
72
  body {
73
73
  @apply bg-background text-foreground;
74
- /* 日本語は文節(bunsetsu)境界で改行し、単語の途中で折り返さない */
74
+ /* Japanese breaks lines at bunsetsu (phrase) boundaries and does not wrap in the middle of a word */
75
75
  word-break: auto-phrase;
76
76
  }
77
77
 
78
- /* 見出しも本文と同じ Geist。フラッシュレフト、わずかに字間を詰める。 */
78
+ /* Headings use the same Geist as the body. Flush left, with slightly tightened letter spacing. */
79
79
  h1,
80
80
  h2,
81
81
  h3,
@@ -85,7 +85,7 @@
85
85
  font-family: var(--font-sans, "Geist Variable", sans-serif);
86
86
  font-weight: 700;
87
87
  letter-spacing: -0.01em;
88
- /* 見出しも文節境界で改行。意図した改行は文言側(i18n の \n)で制御する */
88
+ /* Headings also break at phrase boundaries. Intentional line breaks are controlled in the copy itself (a \n in the text) */
89
89
  word-break: auto-phrase;
90
90
  }
91
91
  h1 {
@@ -114,7 +114,7 @@
114
114
  color: var(--muted-foreground);
115
115
  }
116
116
 
117
- /* 数字 / ID / コード / データはタブラー(等幅数字) */
117
+ /* Numbers / IDs / code / data use tabular (monospaced) figures */
118
118
  code,
119
119
  kbd,
120
120
  samp,
@@ -123,23 +123,23 @@
123
123
  font-variant-numeric: tabular-nums;
124
124
  }
125
125
 
126
- /* テキスト選択はインディゴの淡い面。文字色は変えない */
126
+ /* Text selection is a pale indigo surface. The text colour is unchanged */
127
127
  ::selection {
128
128
  background: color-mix(in srgb, var(--action) 30%, transparent);
129
129
  }
130
130
  }
131
131
 
132
132
  /*
133
- * テキストリンクの状態。
134
- * default: 文字のみ
135
- * hover: 1px の下線
136
- * active: 文字の塗りを抜いて、外側に 1px の縁取り + 下線(押している間)
137
- * 色は currentColor に追従させるので、壁紙の上に載る白文字など、テキストの色を変えても同じ作法で効く。
138
- * hover は即時に切り替える(transition なし)。
133
+ * States of a text link.
134
+ * default: text only
135
+ * hover: a 1px underline
136
+ * active: knock out the text fill and draw a 1px outline on the outside + an underline (while pressed)
137
+ * The colour follows currentColor, so it works the same way when the text colour changes, such as white text on top of a wallpaper.
138
+ * hover switches instantly (no transition).
139
139
  *
140
- * 「外側だけの縁取り」は -webkit-text-stroke(輪郭の中心に引かれる)では作れないため、
141
- * SVG フィルター #text-outside-stroke(文字を 1px 膨らませて元の文字を抜く)で作る。
142
- * フィルターの定義は使う側のアプリが DOM に 1 つ置く。
140
+ * An "outside-only outline" cannot be made with -webkit-text-stroke (it is drawn centred on the glyph edge), so
141
+ * it is made with the SVG filter #text-outside-stroke (grow the text by 1px and knock out the original text).
142
+ * The consuming app places the filter definition in the DOM once.
143
143
  */
144
144
  @utility text-outline {
145
145
  filter: url(#text-outside-stroke);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lt-three/love3",
3
- "version": "0.1.0",
4
- "description": "<3(Less Than Three)共通のデザインシステム。web・React Native(NativeWind)・トークンを 1 パッケージで配信する",
3
+ "version": "0.1.1",
4
+ "description": "Design system for <3 (Less Than Three): web and React Native (NativeWind) components plus design tokens, in a single package.",
5
5
  "keywords": [
6
6
  "design-system",
7
7
  "nativewind",