@lt-three/love3 0.0.0 → 0.1.0
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/README.md +85 -1
- package/dist/native/analytics/animation.d.ts +4 -0
- package/dist/native/analytics/animation.js +6 -0
- package/dist/native/analytics/chart.types.d.ts +25 -0
- package/dist/native/analytics/chart.types.js +0 -0
- package/dist/native/analytics/line-chart.d.ts +4 -0
- package/dist/native/analytics/line-chart.ios.d.ts +4 -0
- package/dist/native/analytics/line-chart.ios.js +24 -0
- package/dist/native/analytics/line-chart.js +33 -0
- package/dist/native/analytics/metric-card.d.ts +10 -0
- package/dist/native/analytics/metric-card.js +29 -0
- package/dist/native/analytics/multi-line-chart.d.ts +17 -0
- package/dist/native/analytics/multi-line-chart.js +215 -0
- package/dist/native/analytics/pie-chart.d.ts +15 -0
- package/dist/native/analytics/pie-chart.ios.d.ts +4 -0
- package/dist/native/analytics/pie-chart.ios.js +24 -0
- package/dist/native/analytics/pie-chart.js +92 -0
- package/dist/native/analytics/single-number.d.ts +19 -0
- package/dist/native/analytics/single-number.js +101 -0
- package/dist/native/atom/avatar.d.ts +21 -0
- package/dist/native/atom/avatar.js +46 -0
- package/dist/native/atom/badge.d.ts +28 -0
- package/dist/native/atom/badge.js +51 -0
- package/dist/native/atom/button.d.ts +46 -0
- package/dist/native/atom/button.js +109 -0
- package/dist/native/atom/checkbox.d.ts +21 -0
- package/dist/native/atom/checkbox.js +47 -0
- package/dist/native/atom/colored-value.d.ts +12 -0
- package/dist/native/atom/colored-value.js +24 -0
- package/dist/native/atom/image.d.ts +21 -0
- package/dist/native/atom/image.js +72 -0
- package/dist/native/atom/label.d.ts +18 -0
- package/dist/native/atom/label.js +33 -0
- package/dist/native/atom/link.d.ts +18 -0
- package/dist/native/atom/link.js +25 -0
- package/dist/native/atom/readout.d.ts +22 -0
- package/dist/native/atom/readout.js +39 -0
- package/dist/native/atom/search-input.d.ts +12 -0
- package/dist/native/atom/search-input.js +36 -0
- package/dist/native/atom/select.d.ts +54 -0
- package/dist/native/atom/select.js +200 -0
- package/dist/native/atom/separator.d.ts +13 -0
- package/dist/native/atom/separator.js +17 -0
- package/dist/native/atom/skeleton.d.ts +12 -0
- package/dist/native/atom/skeleton.js +39 -0
- package/dist/native/atom/slider.d.ts +32 -0
- package/dist/native/atom/slider.js +75 -0
- package/dist/native/atom/spinner.d.ts +15 -0
- package/dist/native/atom/spinner.js +25 -0
- package/dist/native/atom/switch.d.ts +18 -0
- package/dist/native/atom/switch.js +52 -0
- package/dist/native/atom/symbol.d.ts +16 -0
- package/dist/native/atom/symbol.js +38 -0
- package/dist/native/atom/symbol.types.d.ts +25 -0
- package/dist/native/atom/symbol.types.js +49 -0
- package/dist/native/atom/text-field.d.ts +49 -0
- package/dist/native/atom/text-field.js +56 -0
- package/dist/native/atom/text.d.ts +2 -0
- package/dist/native/atom/text.js +3 -0
- package/dist/native/atom/theme-toggle.d.ts +21 -0
- package/dist/native/atom/theme-toggle.js +36 -0
- package/dist/native/atom/timezone-select.d.ts +16 -0
- package/dist/native/atom/timezone-select.js +28 -0
- package/dist/native/atom/typography.d.ts +13 -0
- package/dist/native/atom/typography.js +28 -0
- package/dist/native/base/button.d.ts +61 -0
- package/dist/native/base/button.js +92 -0
- package/dist/native/base/form.d.ts +72 -0
- package/dist/native/base/form.js +113 -0
- package/dist/native/base/glass-card.d.ts +15 -0
- package/dist/native/base/glass-card.js +38 -0
- package/dist/native/base/input.d.ts +29 -0
- package/dist/native/base/input.js +27 -0
- package/dist/native/base/sheet.d.ts +71 -0
- package/dist/native/base/sheet.js +187 -0
- package/dist/native/base/text.d.ts +14 -0
- package/dist/native/base/text.js +53 -0
- package/dist/native/form/checkbox.d.ts +13 -0
- package/dist/native/form/checkbox.js +55 -0
- package/dist/native/form/date-picker.d.ts +23 -0
- package/dist/native/form/date-picker.js +119 -0
- package/dist/native/form/form.d.ts +23 -0
- package/dist/native/form/form.js +45 -0
- package/dist/native/form/radio-group.d.ts +23 -0
- package/dist/native/form/radio-group.js +88 -0
- package/dist/native/form/select.d.ts +13 -0
- package/dist/native/form/select.js +45 -0
- package/dist/native/form/slider.d.ts +14 -0
- package/dist/native/form/slider.js +42 -0
- package/dist/native/form/switch.d.ts +9 -0
- package/dist/native/form/switch.js +59 -0
- package/dist/native/form/text-area.d.ts +11 -0
- package/dist/native/form/text-area.js +50 -0
- package/dist/native/form/text-input.d.ts +18 -0
- package/dist/native/form/text-input.js +90 -0
- package/dist/native/index.d.ts +1 -0
- package/dist/native/index.js +0 -0
- package/dist/native/layout/accordion.d.ts +25 -0
- package/dist/native/layout/accordion.js +54 -0
- package/dist/native/layout/card.d.ts +47 -0
- package/dist/native/layout/card.js +57 -0
- package/dist/native/layout/description.d.ts +16 -0
- package/dist/native/layout/description.js +32 -0
- package/dist/native/layout/error.d.ts +21 -0
- package/dist/native/layout/error.js +44 -0
- package/dist/native/layout/information.d.ts +25 -0
- package/dist/native/layout/information.js +35 -0
- package/dist/native/layout/locked.d.ts +38 -0
- package/dist/native/layout/locked.js +94 -0
- package/dist/native/layout/modal.d.ts +25 -0
- package/dist/native/layout/modal.js +93 -0
- package/dist/native/layout/not-found.d.ts +17 -0
- package/dist/native/layout/not-found.js +30 -0
- package/dist/native/layout/page-frame.d.ts +23 -0
- package/dist/native/layout/page-frame.js +46 -0
- package/dist/native/layout/panel.d.ts +18 -0
- package/dist/native/layout/panel.js +23 -0
- package/dist/native/layout/reorderable-list.d.ts +42 -0
- package/dist/native/layout/reorderable-list.js +52 -0
- package/dist/native/layout/sheet.d.ts +30 -0
- package/dist/native/layout/sheet.js +46 -0
- package/dist/native/layout/simple-dialog.d.ts +16 -0
- package/dist/native/layout/simple-dialog.js +20 -0
- package/dist/native/layout/simple-table.d.ts +50 -0
- package/dist/native/layout/simple-table.js +75 -0
- package/dist/native/layout/tab-bar.d.ts +33 -0
- package/dist/native/layout/tab-bar.js +48 -0
- package/dist/native/layout/tabs.d.ts +28 -0
- package/dist/native/layout/tabs.js +54 -0
- package/dist/native/layout/tuning-panel.d.ts +24 -0
- package/dist/native/layout/tuning-panel.js +246 -0
- package/dist/native/lib/autocomplete.d.ts +7 -0
- package/dist/native/lib/autocomplete.js +34 -0
- package/dist/native/lib/breakpoints.d.ts +14 -0
- package/dist/native/lib/breakpoints.js +17 -0
- package/dist/native/lib/chart-palette.d.ts +8 -0
- package/dist/native/lib/chart-palette.js +20 -0
- package/dist/native/lib/confirm.d.ts +49 -0
- package/dist/native/lib/confirm.js +70 -0
- package/dist/native/lib/control.d.ts +24 -0
- package/dist/native/lib/control.js +0 -0
- package/dist/native/lib/external-store.d.ts +17 -0
- package/dist/native/lib/external-store.js +30 -0
- package/dist/native/lib/keyboard.d.ts +15 -0
- package/dist/native/lib/keyboard.js +24 -0
- package/dist/native/lib/labels.d.ts +15 -0
- package/dist/native/lib/labels.js +17 -0
- package/dist/native/lib/loading.d.ts +10 -0
- package/dist/native/lib/loading.js +15 -0
- package/dist/native/lib/network.d.ts +12 -0
- package/dist/native/lib/network.js +21 -0
- package/dist/native/lib/scheme.d.ts +18 -0
- package/dist/native/lib/scheme.js +22 -0
- package/dist/native/lib/snackbar.d.ts +46 -0
- package/dist/native/lib/snackbar.js +60 -0
- package/dist/native/lib/theme.d.ts +34 -0
- package/dist/native/lib/theme.js +53 -0
- package/dist/native/lib/timezone.d.ts +26 -0
- package/dist/native/lib/timezone.js +95 -0
- package/dist/native/lib/token-color.d.ts +5 -0
- package/dist/native/lib/token-color.js +13 -0
- package/dist/native/lib/token-color.web.d.ts +4 -0
- package/dist/native/lib/token-color.web.js +7 -0
- package/dist/native/lib/tuning-context.d.ts +9 -0
- package/dist/native/lib/tuning-context.js +7 -0
- package/dist/native/lib/tuning.d.ts +24 -0
- package/dist/native/lib/tuning.js +42 -0
- package/dist/native/lib/typography.d.ts +10 -0
- package/dist/native/lib/typography.js +11 -0
- package/dist/native/lib/utils.d.ts +11 -0
- package/dist/native/lib/utils.js +21 -0
- package/dist/native/once/confirm.d.ts +7 -0
- package/dist/native/once/confirm.js +60 -0
- package/dist/native/once/error-boundary.d.ts +28 -0
- package/dist/native/once/error-boundary.js +55 -0
- package/dist/native/once/loading-lock.d.ts +8 -0
- package/dist/native/once/loading-lock.js +28 -0
- package/dist/native/once/offline-banner.d.ts +15 -0
- package/dist/native/once/offline-banner.js +35 -0
- package/dist/native/once/snackbar.d.ts +17 -0
- package/dist/native/once/snackbar.js +106 -0
- package/dist/native/styles.css +46 -0
- package/dist/shared/analytics.d.ts +71 -0
- package/dist/shared/analytics.js +0 -0
- package/dist/shared/button.d.ts +7 -0
- package/dist/shared/button.js +23 -0
- package/dist/shared/form.d.ts +45 -0
- package/dist/shared/form.js +46 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.js +3 -0
- package/dist/tokens/contrast-pairs.d.ts +30 -0
- package/dist/tokens/contrast-pairs.js +404 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.js +10 -0
- package/dist/tokens/styles.gen.css +250 -0
- package/dist/tokens/tokens.gen.d.ts +141 -0
- package/dist/tokens/tokens.gen.js +206 -0
- package/dist/tuning/catalog.d.ts +27 -0
- package/dist/tuning/catalog.gen.d.ts +4 -0
- package/dist/tuning/catalog.gen.js +397 -0
- package/dist/tuning/catalog.js +128 -0
- package/dist/tuning/color.d.ts +20 -0
- package/dist/tuning/color.js +80 -0
- package/dist/tuning/css.d.ts +35 -0
- package/dist/tuning/css.js +147 -0
- package/dist/tuning/index.d.ts +8 -0
- package/dist/tuning/index.js +9 -0
- package/dist/tuning/model.d.ts +33 -0
- package/dist/tuning/model.js +154 -0
- package/dist/tuning/native.d.ts +35 -0
- package/dist/tuning/native.js +80 -0
- package/dist/tuning/schema.d.ts +69 -0
- package/dist/tuning/schema.js +247 -0
- package/dist/tuning/types.d.ts +75 -0
- package/dist/tuning/types.js +39 -0
- package/dist/web/analytics/line-chart.d.ts +20 -0
- package/dist/web/analytics/line-chart.js +28 -0
- package/dist/web/analytics/metric-card.d.ts +18 -0
- package/dist/web/analytics/metric-card.js +40 -0
- package/dist/web/analytics/multi-line-chart.d.ts +39 -0
- package/dist/web/analytics/multi-line-chart.js +345 -0
- package/dist/web/atom/avatar.d.ts +11 -0
- package/dist/web/atom/avatar.js +24 -0
- package/dist/web/atom/badge.d.ts +2 -0
- package/dist/web/atom/badge.js +3 -0
- package/dist/web/atom/button.d.ts +23 -0
- package/dist/web/atom/button.js +35 -0
- package/dist/web/atom/checkbox.d.ts +19 -0
- package/dist/web/atom/checkbox.js +33 -0
- package/dist/web/atom/colored-value.d.ts +13 -0
- package/dist/web/atom/colored-value.js +24 -0
- package/dist/web/atom/help.d.ts +10 -0
- package/dist/web/atom/help.js +18 -0
- package/dist/web/atom/label.d.ts +2 -0
- package/dist/web/atom/label.js +3 -0
- package/dist/web/atom/segmented-control.d.ts +40 -0
- package/dist/web/atom/segmented-control.js +43 -0
- package/dist/web/atom/select.d.ts +43 -0
- package/dist/web/atom/select.js +93 -0
- package/dist/web/atom/separator.d.ts +2 -0
- package/dist/web/atom/separator.js +3 -0
- package/dist/web/atom/skeleton.d.ts +2 -0
- package/dist/web/atom/skeleton.js +3 -0
- package/dist/web/atom/slider.d.ts +33 -0
- package/dist/web/atom/slider.js +70 -0
- package/dist/web/atom/spinner.d.ts +8 -0
- package/dist/web/atom/spinner.js +14 -0
- package/dist/web/atom/switch.d.ts +11 -0
- package/dist/web/atom/switch.js +10 -0
- package/dist/web/atom/text-area.d.ts +22 -0
- package/dist/web/atom/text-area.js +26 -0
- package/dist/web/atom/text-field.d.ts +17 -0
- package/dist/web/atom/text-field.js +21 -0
- package/dist/web/atom/toggle-chip.d.ts +22 -0
- package/dist/web/atom/toggle-chip.js +28 -0
- package/dist/web/atom/tooltip.d.ts +23 -0
- package/dist/web/atom/tooltip.js +26 -0
- package/dist/web/atom/typography.d.ts +6 -0
- package/dist/web/atom/typography.js +23 -0
- package/dist/web/base/accordion.d.ts +9 -0
- package/dist/web/base/accordion.js +44 -0
- package/dist/web/base/alert.d.ts +11 -0
- package/dist/web/base/alert.js +37 -0
- package/dist/web/base/avatar.d.ts +8 -0
- package/dist/web/base/avatar.js +29 -0
- package/dist/web/base/badge.d.ts +12 -0
- package/dist/web/base/badge.js +26 -0
- package/dist/web/base/breadcrumb.d.ts +16 -0
- package/dist/web/base/breadcrumb.js +72 -0
- package/dist/web/base/button.d.ts +12 -0
- package/dist/web/base/button.js +47 -0
- package/dist/web/base/card.d.ts +19 -0
- package/dist/web/base/card.js +74 -0
- package/dist/web/base/checkbox.d.ts +6 -0
- package/dist/web/base/checkbox.js +21 -0
- package/dist/web/base/dialog.d.ts +20 -0
- package/dist/web/base/dialog.js +92 -0
- package/dist/web/base/dropdown-menu.d.ts +29 -0
- package/dist/web/base/dropdown-menu.js +125 -0
- package/dist/web/base/field.d.ts +27 -0
- package/dist/web/base/field.js +118 -0
- package/dist/web/base/form.d.ts +38 -0
- package/dist/web/base/form.js +110 -0
- package/dist/web/base/input.d.ts +9 -0
- package/dist/web/base/input.js +23 -0
- package/dist/web/base/label.d.ts +6 -0
- package/dist/web/base/label.js +15 -0
- package/dist/web/base/pagination.d.ts +34 -0
- package/dist/web/base/pagination.js +90 -0
- package/dist/web/base/popover.d.ts +11 -0
- package/dist/web/base/popover.js +37 -0
- package/dist/web/base/radio-group.d.ts +7 -0
- package/dist/web/base/radio-group.js +27 -0
- package/dist/web/base/scroll-area.d.ts +10 -0
- package/dist/web/base/scroll-area.js +41 -0
- package/dist/web/base/select.d.ts +17 -0
- package/dist/web/base/select.js +96 -0
- package/dist/web/base/separator.d.ts +6 -0
- package/dist/web/base/separator.js +17 -0
- package/dist/web/base/sheet.d.ts +19 -0
- package/dist/web/base/sheet.js +88 -0
- package/dist/web/base/skeleton.d.ts +5 -0
- package/dist/web/base/skeleton.js +14 -0
- package/dist/web/base/slider.d.ts +9 -0
- package/dist/web/base/slider.js +39 -0
- package/dist/web/base/sonner.d.ts +9 -0
- package/dist/web/base/sonner.js +25 -0
- package/dist/web/base/spinner.d.ts +5 -0
- package/dist/web/base/spinner.js +17 -0
- package/dist/web/base/switch.d.ts +6 -0
- package/dist/web/base/switch.js +19 -0
- package/dist/web/base/table.d.ts +14 -0
- package/dist/web/base/table.js +68 -0
- package/dist/web/base/tabs.d.ts +9 -0
- package/dist/web/base/tabs.js +36 -0
- package/dist/web/base/textarea.d.ts +9 -0
- package/dist/web/base/textarea.js +23 -0
- package/dist/web/base/tooltip.d.ts +9 -0
- package/dist/web/base/tooltip.js +36 -0
- package/dist/web/form/checkbox.d.ts +35 -0
- package/dist/web/form/checkbox.js +91 -0
- package/dist/web/form/radio-group.d.ts +24 -0
- package/dist/web/form/radio-group.js +75 -0
- package/dist/web/form/select.d.ts +16 -0
- package/dist/web/form/select.js +44 -0
- package/dist/web/form/slider.d.ts +19 -0
- package/dist/web/form/slider.js +51 -0
- package/dist/web/form/switch.d.ts +11 -0
- package/dist/web/form/switch.js +50 -0
- package/dist/web/form/text-area.d.ts +10 -0
- package/dist/web/form/text-area.js +31 -0
- package/dist/web/form/text-input.d.ts +10 -0
- package/dist/web/form/text-input.js +42 -0
- package/dist/web/index.d.ts +1 -0
- package/dist/web/index.js +0 -0
- package/dist/web/layout/accordion.d.ts +26 -0
- package/dist/web/layout/accordion.js +29 -0
- package/dist/web/layout/alert-modal.d.ts +41 -0
- package/dist/web/layout/alert-modal.js +71 -0
- package/dist/web/layout/card.d.ts +17 -0
- package/dist/web/layout/card.js +35 -0
- package/dist/web/layout/description.d.ts +12 -0
- package/dist/web/layout/description.js +20 -0
- package/dist/web/layout/information.d.ts +36 -0
- package/dist/web/layout/information.js +53 -0
- package/dist/web/layout/modal.d.ts +16 -0
- package/dist/web/layout/modal.js +37 -0
- package/dist/web/layout/page-frame.d.ts +37 -0
- package/dist/web/layout/page-frame.js +79 -0
- package/dist/web/layout/scroll-area.d.ts +10 -0
- package/dist/web/layout/scroll-area.js +13 -0
- package/dist/web/layout/sheet.d.ts +32 -0
- package/dist/web/layout/sheet.js +68 -0
- package/dist/web/layout/simple-dialog.d.ts +11 -0
- package/dist/web/layout/simple-dialog.js +24 -0
- package/dist/web/layout/simple-table.d.ts +49 -0
- package/dist/web/layout/simple-table.js +58 -0
- package/dist/web/layout/tabs.d.ts +26 -0
- package/dist/web/layout/tabs.js +42 -0
- package/dist/web/layout/titled-modal.d.ts +33 -0
- package/dist/web/layout/titled-modal.js +59 -0
- package/dist/web/lib/css-vars.d.ts +14 -0
- package/dist/web/lib/css-vars.js +18 -0
- package/dist/web/lib/dialog.d.ts +13 -0
- package/dist/web/lib/dialog.js +0 -0
- package/dist/web/lib/form.d.ts +2 -0
- package/dist/web/lib/form.js +3 -0
- package/dist/web/lib/labels.d.ts +27 -0
- package/dist/web/lib/labels.js +29 -0
- package/dist/web/lib/modal-open-focus.d.ts +17 -0
- package/dist/web/lib/modal-open-focus.js +44 -0
- package/dist/web/lib/restore-focus.d.ts +12 -0
- package/dist/web/lib/restore-focus.js +32 -0
- package/dist/web/lib/utils.d.ts +4 -0
- package/dist/web/lib/utils.js +10 -0
- package/dist/web/styles.css +162 -0
- package/package.json +203 -4
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* love3 の web 用スタイル(`@lt-three/love3/web/styles.css`)。アプリの CSS の入口で 1 度だけ import する。
|
|
3
|
+
*
|
|
4
|
+
* @import "@lt-three/love3/web/styles.css";
|
|
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
|
+
* (公開ページを常にライトにしたいときは、生トークンのクラスを使うか、使う側で変数を再宣言する)。
|
|
11
|
+
*/
|
|
12
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
13
|
+
@import "tailwindcss/preflight.css" layer(base);
|
|
14
|
+
@import "tailwindcss/utilities.css";
|
|
15
|
+
|
|
16
|
+
/* 欧文は Geist を self-host(Latin のみで軽量)。和文は游ゴシックの OS 同梱フォントを使い、未搭載なら sans-serif に落ちる */
|
|
17
|
+
@import "@fontsource-variable/geist";
|
|
18
|
+
/* 数字・ID・コード・データテーブルは Geist Mono */
|
|
19
|
+
@import "@fontsource-variable/geist-mono";
|
|
20
|
+
|
|
21
|
+
@import "tw-animate-css";
|
|
22
|
+
|
|
23
|
+
/* トークン本体(@theme・ライト・ダーク)。生成物なので、値を変えるときは definition.ts を直す */
|
|
24
|
+
@import "@lt-three/love3/styles.css";
|
|
25
|
+
|
|
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 の位置は関係しない)。
|
|
33
|
+
*/
|
|
34
|
+
@source "./**/*.{tsx,js}";
|
|
35
|
+
@source not "./**/*.test.tsx";
|
|
36
|
+
|
|
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 は使わない)。
|
|
42
|
+
*/
|
|
43
|
+
[data-sonner-toaster] [data-sonner-toast][data-styled="true"] {
|
|
44
|
+
box-shadow: var(--shadow-md);
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
}
|
|
47
|
+
[data-sonner-toaster] [data-sonner-toast][data-styled="true"][data-type="success"] [data-icon] {
|
|
48
|
+
color: var(--state-success);
|
|
49
|
+
}
|
|
50
|
+
[data-sonner-toaster] [data-sonner-toast][data-styled="true"][data-type="error"] [data-icon] {
|
|
51
|
+
color: var(--state-error);
|
|
52
|
+
}
|
|
53
|
+
[data-sonner-toaster] [data-sonner-toast][data-styled="true"][data-type="warning"] [data-icon] {
|
|
54
|
+
color: var(--state-warning);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@layer base {
|
|
58
|
+
html {
|
|
59
|
+
font-family: var(--font-primary), sans-serif;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
input[type="number"]::-webkit-outer-spin-button,
|
|
63
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
64
|
+
input[type="number"] {
|
|
65
|
+
-webkit-appearance: none;
|
|
66
|
+
-moz-appearance: textfield !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
* {
|
|
70
|
+
@apply border-border outline-ring/50;
|
|
71
|
+
}
|
|
72
|
+
body {
|
|
73
|
+
@apply bg-background text-foreground;
|
|
74
|
+
/* 日本語は文節(bunsetsu)境界で改行し、単語の途中で折り返さない */
|
|
75
|
+
word-break: auto-phrase;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* 見出しも本文と同じ Geist。フラッシュレフト、わずかに字間を詰める。 */
|
|
79
|
+
h1,
|
|
80
|
+
h2,
|
|
81
|
+
h3,
|
|
82
|
+
h4,
|
|
83
|
+
h5,
|
|
84
|
+
h6 {
|
|
85
|
+
font-family: var(--font-sans, "Geist Variable", sans-serif);
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
letter-spacing: -0.01em;
|
|
88
|
+
/* 見出しも文節境界で改行。意図した改行は文言側(i18n の \n)で制御する */
|
|
89
|
+
word-break: auto-phrase;
|
|
90
|
+
}
|
|
91
|
+
h1 {
|
|
92
|
+
@apply text-3xl my-2;
|
|
93
|
+
letter-spacing: -0.02em;
|
|
94
|
+
}
|
|
95
|
+
h2 {
|
|
96
|
+
@apply text-2xl my-2;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
h3 {
|
|
100
|
+
@apply text-xl my-2;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
}
|
|
103
|
+
h4 {
|
|
104
|
+
@apply text-lg my-2;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
}
|
|
107
|
+
h5 {
|
|
108
|
+
@apply text-base my-2;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
}
|
|
111
|
+
h6 {
|
|
112
|
+
@apply text-sm my-1;
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
color: var(--muted-foreground);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* 数字 / ID / コード / データはタブラー(等幅数字) */
|
|
118
|
+
code,
|
|
119
|
+
kbd,
|
|
120
|
+
samp,
|
|
121
|
+
pre,
|
|
122
|
+
[data-mono] {
|
|
123
|
+
font-variant-numeric: tabular-nums;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* テキスト選択はインディゴの淡い面。文字色は変えない */
|
|
127
|
+
::selection {
|
|
128
|
+
background: color-mix(in srgb, var(--action) 30%, transparent);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/*
|
|
133
|
+
* テキストリンクの状態。
|
|
134
|
+
* default: 文字のみ
|
|
135
|
+
* hover: 1px の下線
|
|
136
|
+
* active: 文字の塗りを抜いて、外側に 1px の縁取り + 下線(押している間)
|
|
137
|
+
* 色は currentColor に追従させるので、壁紙の上に載る白文字など、テキストの色を変えても同じ作法で効く。
|
|
138
|
+
* hover は即時に切り替える(transition なし)。
|
|
139
|
+
*
|
|
140
|
+
* 「外側だけの縁取り」は -webkit-text-stroke(輪郭の中心に引かれる)では作れないため、
|
|
141
|
+
* SVG フィルター #text-outside-stroke(文字を 1px 膨らませて元の文字を抜く)で作る。
|
|
142
|
+
* フィルターの定義は使う側のアプリが DOM に 1 つ置く。
|
|
143
|
+
*/
|
|
144
|
+
@utility text-outline {
|
|
145
|
+
filter: url(#text-outside-stroke);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@utility text-link {
|
|
149
|
+
text-underline-position: from-font;
|
|
150
|
+
text-decoration-thickness: 1px;
|
|
151
|
+
|
|
152
|
+
@media (hover: hover) {
|
|
153
|
+
&:hover {
|
|
154
|
+
text-decoration-line: underline;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:active {
|
|
159
|
+
text-decoration-line: underline;
|
|
160
|
+
filter: url(#text-outside-stroke);
|
|
161
|
+
}
|
|
162
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,207 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lt-three/love3",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "<3(Less Than Three)共通のデザインシステム。web・React Native(NativeWind)・トークンを 1 パッケージで配信する",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-system",
|
|
7
|
+
"nativewind",
|
|
8
|
+
"react",
|
|
9
|
+
"react-native",
|
|
10
|
+
"tailwindcss",
|
|
11
|
+
"tokens"
|
|
12
|
+
],
|
|
5
13
|
"license": "MIT",
|
|
6
|
-
"files": [
|
|
7
|
-
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"**/*.css"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
"./tokens": {
|
|
25
|
+
"types": "./dist/tokens/index.d.ts",
|
|
26
|
+
"default": "./dist/tokens/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./tokens/contrast": {
|
|
29
|
+
"types": "./dist/tokens/contrast-pairs.d.ts",
|
|
30
|
+
"default": "./dist/tokens/contrast-pairs.js"
|
|
31
|
+
},
|
|
32
|
+
"./tuning": {
|
|
33
|
+
"types": "./dist/tuning/index.d.ts",
|
|
34
|
+
"default": "./dist/tuning/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./tuning/*.ts": {
|
|
37
|
+
"types": "./dist/tuning/*.d.ts",
|
|
38
|
+
"default": "./dist/tuning/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./styles.css": "./dist/tokens/styles.gen.css",
|
|
41
|
+
"./shared": {
|
|
42
|
+
"types": "./dist/shared/index.d.ts",
|
|
43
|
+
"default": "./dist/shared/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./shared/*.ts": {
|
|
46
|
+
"types": "./dist/shared/*.d.ts",
|
|
47
|
+
"default": "./dist/shared/*.js"
|
|
48
|
+
},
|
|
49
|
+
"./shared/*.tsx": {
|
|
50
|
+
"types": "./dist/shared/*.d.ts",
|
|
51
|
+
"default": "./dist/shared/*.js"
|
|
52
|
+
},
|
|
53
|
+
"./web": {
|
|
54
|
+
"types": "./dist/web/index.d.ts",
|
|
55
|
+
"default": "./dist/web/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./web/*.ts": {
|
|
58
|
+
"types": "./dist/web/*.d.ts",
|
|
59
|
+
"default": "./dist/web/*.js"
|
|
60
|
+
},
|
|
61
|
+
"./web/*.tsx": {
|
|
62
|
+
"types": "./dist/web/*.d.ts",
|
|
63
|
+
"default": "./dist/web/*.js"
|
|
64
|
+
},
|
|
65
|
+
"./native": {
|
|
66
|
+
"types": "./dist/native/index.d.ts",
|
|
67
|
+
"default": "./dist/native/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./native/*.ts": {
|
|
70
|
+
"types": "./dist/native/*.d.ts",
|
|
71
|
+
"default": "./dist/native/*.js"
|
|
72
|
+
},
|
|
73
|
+
"./native/*.tsx": {
|
|
74
|
+
"types": "./dist/native/*.d.ts",
|
|
75
|
+
"default": "./dist/native/*.js"
|
|
76
|
+
},
|
|
77
|
+
"./web/styles.css": "./dist/web/styles.css",
|
|
78
|
+
"./native/styles.css": "./dist/native/styles.css"
|
|
79
|
+
},
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@fontsource-variable/geist": "^5.3.0",
|
|
85
|
+
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
86
|
+
"@radix-ui/react-accordion": "^1.3.1",
|
|
87
|
+
"@radix-ui/react-avatar": "^1.3.1",
|
|
88
|
+
"@radix-ui/react-checkbox": "^1.4.1",
|
|
89
|
+
"@radix-ui/react-dialog": "^1.3.1",
|
|
90
|
+
"@radix-ui/react-dropdown-menu": "^2.2.1",
|
|
91
|
+
"@radix-ui/react-label": "^2.1.17",
|
|
92
|
+
"@radix-ui/react-popover": "^1.3.1",
|
|
93
|
+
"@radix-ui/react-radio-group": "^1.5.1",
|
|
94
|
+
"@radix-ui/react-scroll-area": "^1.4.0",
|
|
95
|
+
"@radix-ui/react-select": "^2.4.1",
|
|
96
|
+
"@radix-ui/react-separator": "^1.2.0",
|
|
97
|
+
"@radix-ui/react-slider": "^1.6.1",
|
|
98
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
99
|
+
"@radix-ui/react-switch": "^1.4.1",
|
|
100
|
+
"@radix-ui/react-tabs": "^1.2.1",
|
|
101
|
+
"@radix-ui/react-tooltip": "^1.4.1",
|
|
102
|
+
"@tanstack/charts": "^1.4.0",
|
|
103
|
+
"@tanstack/react-form": "^1.33.5",
|
|
104
|
+
"@tanstack/react-pacer": "^0.24.1",
|
|
105
|
+
"class-variance-authority": "^0.7.1",
|
|
106
|
+
"clsx": "^2.1.1",
|
|
107
|
+
"es-toolkit": "^1.52.0",
|
|
108
|
+
"lucide-react": "^1.60.0",
|
|
109
|
+
"sonner": "^2.0.8",
|
|
110
|
+
"tailwind-merge": "^3.7.0",
|
|
111
|
+
"tw-animate-css": "^1.4.0",
|
|
112
|
+
"zod": "^4.6.7"
|
|
113
|
+
},
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"@expo/ui": ">=58.0.21",
|
|
116
|
+
"@expo/vector-icons": ">=15.1.1",
|
|
117
|
+
"@react-native-community/datetimepicker": ">=9.2.1",
|
|
118
|
+
"@react-native-community/netinfo": ">=12.0.1",
|
|
119
|
+
"@react-native-community/slider": ">=5.2.1",
|
|
120
|
+
"@rn-primitives/slot": ">=1.5.2",
|
|
121
|
+
"expo": ">=58.0.16",
|
|
122
|
+
"expo-glass-effect": ">=58.0.4",
|
|
123
|
+
"expo-image": ">=58.0.16",
|
|
124
|
+
"expo-router": ">=58.0.24",
|
|
125
|
+
"expo-symbols": ">=58.0.4",
|
|
126
|
+
"nativewind": ">=5.0.0-rc.0",
|
|
127
|
+
"react": ">=19.3.0 <20",
|
|
128
|
+
"react-dom": ">=19.3.0 <20",
|
|
129
|
+
"react-native": ">=0.88.0",
|
|
130
|
+
"react-native-css": ">=3.0.7",
|
|
131
|
+
"react-native-gesture-handler": ">=3.4.0",
|
|
132
|
+
"react-native-reanimated": ">=4.7.1",
|
|
133
|
+
"react-native-reorderable-list": ">=0.18.2",
|
|
134
|
+
"react-native-safe-area-context": ">=5.10.1",
|
|
135
|
+
"react-native-svg": ">=15.16.0",
|
|
136
|
+
"react-native-worklets": ">=0.13.0",
|
|
137
|
+
"tailwindcss": "^4.3.3"
|
|
138
|
+
},
|
|
139
|
+
"peerDependenciesMeta": {
|
|
140
|
+
"@expo/ui": {
|
|
141
|
+
"optional": true
|
|
142
|
+
},
|
|
143
|
+
"@expo/vector-icons": {
|
|
144
|
+
"optional": true
|
|
145
|
+
},
|
|
146
|
+
"@react-native-community/datetimepicker": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@react-native-community/netinfo": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"@react-native-community/slider": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"@rn-primitives/slot": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"expo": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"expo-glass-effect": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"expo-image": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"expo-router": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"expo-symbols": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"nativewind": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"react-dom": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"react-native": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"react-native-css": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"react-native-gesture-handler": {
|
|
186
|
+
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"react-native-reanimated": {
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
"react-native-reorderable-list": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
194
|
+
"react-native-safe-area-context": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"react-native-svg": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"react-native-worklets": {
|
|
201
|
+
"optional": true
|
|
202
|
+
},
|
|
203
|
+
"tailwindcss": {
|
|
204
|
+
"optional": true
|
|
205
|
+
}
|
|
206
|
+
}
|
|
8
207
|
}
|