Metadata-Version: 2.5
Name: spaday-calcite
Version: 0.1.0
Summary: Calcite Design System for spaday
Project-URL: Repository, https://github.com/1kbgz/spaday-calcite
Project-URL: Homepage, https://github.com/1kbgz/spaday-calcite
Author-email: 1kbgz <dev@1kbgz.com>
License: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: spaday<1.0,>=0.8.2
Provides-Extra: develop
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-dist; extra == 'develop'
Requires-Dist: codespell; extra == 'develop'
Requires-Dist: hatch-js; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: httpx; extra == 'develop'
Requires-Dist: mdformat; extra == 'develop'
Requires-Dist: mdformat-tables>=1; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: starlette; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: ty; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: uvicorn; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Provides-Extra: examples
Requires-Dist: starlette; extra == 'examples'
Requires-Dist: uvicorn; extra == 'examples'
Description-Content-Type: text/markdown

# spaday-calcite

Typed [Calcite Design System](https://developers.arcgis.com/calcite-design-system/) components and browser assets for [spaday](https://github.com/1kbgz/spaday).

[![Build Status](https://github.com/1kbgz/spaday-calcite/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/1kbgz/spaday-calcite/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/1kbgz/spaday-calcite/branch/main/graph/badge.svg)](https://codecov.io/gh/1kbgz/spaday-calcite)
[![License](https://img.shields.io/github/license/1kbgz/spaday-calcite)](https://github.com/1kbgz/spaday-calcite)
[![PyPI](https://img.shields.io/pypi/v/spaday-calcite.svg)](https://pypi.python.org/pypi/spaday-calcite)

## Usage

```python
from spaday import element
from spaday.backends.starlette import serve
from spaday_calcite import CalciteButton, CalciteNotice, package

page = element(
    "main",
    CalciteNotice(open=True, kind="success").child_in("title", "Ready"),
    CalciteButton("Open map", icon_start="map"),
)

app = serve(page, packages=[package], title="Calcite app")
```

Install the package with `pip install spaday-calcite`. Assets are loaded only when the exported `package` descriptor is passed to `serve`.

## Catalog coverage

Wrappers are generated from the Custom Elements Manifest published with `@esri/calcite-components` 5.1.2. The catalog covers its 104 public, declaratively usable elements. The upstream manifest also exposes `calcite-date-picker-day` and `calcite-date-picker-month`; these are undocumented private calendar renderers that require internal controller context and cannot be authored as standalone custom elements, so they are deliberately excluded.

Coverage is enforced at two layers:

- Python tests require the exact tags in `gallery.page.to_node()` to match the generated wrapper catalog.
- Playwright loads that Python page through Pyodide and requires every resulting host to be registered and hydrated with a shadow root.

The browser harness does not synthesize substitute components.

## Browser examples

- [Open the field operations workspace](https://1kbgz.github.io/spaday-calcite/lite/) ([source](spaday_calcite/example.py)).
- [Open the complete component gallery](https://1kbgz.github.io/spaday-calcite/lite/?example=gallery) ([source](spaday_calcite/gallery.py)).

Both run Python locally through Pyodide; no install or server is required.

## Run the examples locally

```bash
python -m pip install -e ".[examples]"
python -m spaday_calcite.example
python -m spaday_calcite.gallery
```

Open `http://127.0.0.1:8026` for the field operations workspace or `http://127.0.0.1:8027` for the complete component gallery.

> [!NOTE]
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
