Metadata-Version: 2.4
Name: streamlit-jp-date-input
Version: 0.1.0
Summary: Japanese calendar date input component for Streamlit
Author-email: Ayumu Yamaguchi <ayumu.yamaguchi@example.com>
License-Expression: Apache-2.0
Keywords: streamlit,component,date,japanese,calendar
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit>=1.51
Dynamic: license-file

# streamlit-jp-date-input

日本語カレンダー付き日付選択コンポーネントです。Streamlit アプリに和暦スタイルのカレンダー UI を追加できます。

## インストール

```bash
pip install streamlit-jp-date-input
```

## 使い方

```python
import streamlit as st
from streamlit_jp_date_input import jp_date_input

date = jp_date_input("日付を選択", min_date="2020-01-01", max_date="2030-12-31")
st.write("選択日:", date)
```

### パラメータ

| パラメータ | 型 | 説明 |
|---|---|---|
| `label` | `str` | 入力フィールドのラベル |
| `value` | `str \| None` | 初期選択日付（YYYY-MM-DD 形式） |
| `min_date` | `str \| None` | 選択可能な最小日付（YYYY-MM-DD 形式） |
| `max_date` | `str \| None` | 選択可能な最大日付（YYYY-MM-DD 形式） |
| `key` | `str \| None` | コンポーネントを一意に識別するキー |

### 戻り値

選択された日付（`YYYY-MM-DD` 形式の `str`）、未選択の場合は `None`。

## フロントエンドのビルド手順

開発時やソースからビルドする場合：

```bash
cd streamlit_jp_date_input/frontend
npm install
npm run build
```

ビルド成果物は `streamlit_jp_date_input/frontend/build/` に出力されます。

## PyPI 配布手順

```bash
# パッケージビルド
uv build

# PyPI アップロード
uv run twine upload dist/*
```

> **Note:** PyPI 公開前に `pyproject.toml` の `authors.email` を実際のメールアドレスに変更してください。

## ライセンス

Apache License 2.0
