diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9407fa3..3da4cc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,5 +18,5 @@ jobs: node-version: "20.x" - run: npm ci - run: npm run build - - run: npx playwright install --with-deps + - run: npx playwright install chromium webkit --with-deps - run: npm test diff --git a/docs/src/components/Color.astro b/docs/src/components/Color.astro index db28ba7..95d8563 100644 --- a/docs/src/components/Color.astro +++ b/docs/src/components/Color.astro @@ -12,7 +12,7 @@ const { color } = Astro.props; display: inline-flex; align-items: center; gap: var(--space-3xs); - border-radius: var(--border-radius); + padding-block: 0; } span { display: inline-block; diff --git a/docs/src/components/IntroExample.astro b/docs/src/components/IntroExample.astro new file mode 100644 index 0000000..977406f --- /dev/null +++ b/docs/src/components/IntroExample.astro @@ -0,0 +1,169 @@ +--- +import Example from "./Example.astro"; +--- + + +
+ + + + + + + + +
+ + +
+
+
+
+ + + + diff --git a/docs/src/components/PageIntro.astro b/docs/src/components/PageIntro.astro index 8d43090..6e7d50c 100644 --- a/docs/src/components/PageIntro.astro +++ b/docs/src/components/PageIntro.astro @@ -6,7 +6,7 @@ font-size: var(--step-2); color: var(--color-intro); font-weight: 300; - line-height: 1.4; + line-height: 1.3; letter-spacing: -0.005em; text-wrap: pretty; } diff --git a/docs/src/layouts/Layout.astro b/docs/src/layouts/Layout.astro index 5607d66..e308aa5 100644 --- a/docs/src/layouts/Layout.astro +++ b/docs/src/layouts/Layout.astro @@ -18,9 +18,8 @@ const { title, root } = Astro.props; - - {title} - Cally - + + {title} - Cally diff --git a/docs/src/pages/components/calendar-date.astro b/docs/src/pages/components/calendar-date.astro index b8cb11b..e4c3276 100644 --- a/docs/src/pages/components/calendar-date.astro +++ b/docs/src/pages/components/calendar-date.astro @@ -93,15 +93,6 @@ import Link from "../../components/Link.astro"; number 1 - - dir - dir - - The writing direction. Set to "rtl" for RTL languages - - "ltr" | "rtl" - "ltr" - isDateDisallowed - @@ -169,8 +160,8 @@ import Link from "../../components/Link.astro";

- See the guide on theming for a walkthrough of how - to style this component. + See the guide on theming for a walkthrough + of how to style this component.

diff --git a/docs/src/pages/components/calendar-month.astro b/docs/src/pages/components/calendar-month.astro index 60be672..fa3416b 100644 --- a/docs/src/pages/components/calendar-month.astro +++ b/docs/src/pages/components/calendar-month.astro @@ -69,8 +69,8 @@ import Link from "../../components/Link.astro";

- See the guide on theming for a walkthrough of how - to style this component. + See the guide on theming for a walkthrough + of how to style this component.

diff --git a/docs/src/pages/components/calendar-range.astro b/docs/src/pages/components/calendar-range.astro index 03c563e..3416498 100644 --- a/docs/src/pages/components/calendar-range.astro +++ b/docs/src/pages/components/calendar-range.astro @@ -98,15 +98,6 @@ import Link from "../../components/Link.astro"; - - - - - - - @@ -206,8 +197,8 @@ import Link from "../../components/Link.astro";

- See the guide on theming for a walkthrough of how - to style this component. + See the guide on theming for a walkthrough + of how to style this component.

number 1
dirdir - The writing direction. Set to "rtl" for RTL languages - "ltr" | "rtl""ltr"
isDateDisallowed -
diff --git a/docs/src/pages/components/index.astro b/docs/src/pages/components/index.astro index 54a06f9..6d2c95a 100644 --- a/docs/src/pages/components/index.astro +++ b/docs/src/pages/components/index.astro @@ -1,5 +1,6 @@ --- import Layout from "../../layouts/Layout.astro"; +import Link from "../../components/Link.astro"; --- @@ -11,8 +12,20 @@ import Layout from "../../layouts/Layout.astro";

diff --git a/docs/src/pages/guides/index.astro b/docs/src/pages/guides/index.astro new file mode 100644 index 0000000..6002344 --- /dev/null +++ b/docs/src/pages/guides/index.astro @@ -0,0 +1,22 @@ +--- +import Layout from "../../layouts/Layout.astro"; +import Link from "../../components/Link.astro"; +--- + + +

Guides

+ +

+ Learn how to style Cally's components or integrate with external components + to build more complex UIs. +

+ + +
diff --git a/docs/src/pages/integration.astro b/docs/src/pages/guides/integration.astro similarity index 96% rename from docs/src/pages/integration.astro rename to docs/src/pages/guides/integration.astro index aa83fdb..1569726 100644 --- a/docs/src/pages/integration.astro +++ b/docs/src/pages/guides/integration.astro @@ -1,10 +1,10 @@ --- -import PageIntro from "../components/PageIntro.astro"; -import Layout from "../layouts/Layout.astro"; -import Example from "../components/Example.astro"; -import Note from "../components/Note.astro"; -import Heading from "../components/Heading.astro"; -import Link from "../components/Link.astro"; +import PageIntro from "../../components/PageIntro.astro"; +import Layout from "../../layouts/Layout.astro"; +import Example from "../../components/Example.astro"; +import Note from "../../components/Note.astro"; +import Heading from "../../components/Heading.astro"; +import Link from "../../components/Link.astro"; --- @@ -122,7 +122,7 @@ import Link from "../components/Link.astro"; For more information on styling and theming the calendar components please - see the full theming guide. + see the full theming guide. The input and toggle button @@ -426,7 +426,7 @@ import Link from "../components/Link.astro";

To find out more about each component, please see the respective component API docs. Or visit the - theming guide for a more in-depth look at styling - the components. + theming guide for a more in-depth look at + styling the components.

diff --git a/docs/src/pages/theming.astro b/docs/src/pages/guides/theming.astro similarity index 96% rename from docs/src/pages/theming.astro rename to docs/src/pages/guides/theming.astro index 3a174d1..6c46057 100644 --- a/docs/src/pages/theming.astro +++ b/docs/src/pages/guides/theming.astro @@ -1,11 +1,11 @@ --- -import Layout from "../layouts/Layout.astro"; -import Example from "../components/Example.astro"; -import Color from "../components/Color.astro"; -import Note from "../components/Note.astro"; -import PageIntro from "../components/PageIntro.astro"; -import Heading from "../components/Heading.astro"; -import Link from "../components/Link.astro"; +import Layout from "../../layouts/Layout.astro"; +import Example from "../../components/Example.astro"; +import Color from "../../components/Color.astro"; +import Note from "../../components/Note.astro"; +import PageIntro from "../../components/PageIntro.astro"; +import Heading from "../../components/Heading.astro"; +import Link from "../../components/Link.astro"; const colorAccent = "#7048e8"; const colorAccentSecondary = "#845ef7"; @@ -593,8 +593,8 @@ const colorTextOnAccent = "#ffffff";

To find out more about each component, please see the respective component API docs. Or visit the - theming guide for a more in-depth look at styling - the components. + theming guide for a more in-depth look at + styling the components.

diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index 0708ce0..7a3ef3e 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -5,55 +5,15 @@ import PageIntro from "../components/PageIntro.astro"; import Example from "../components/Example.astro"; import Heading from "../components/Heading.astro"; import Link from "../components/Link.astro"; +import IntroExample from "../components/IntroExample.astro"; const tagline = "Small, feature-rich calendar components"; --- - - {tagline} - -
- - - - - - - - -
- - -
-
-
-
+ Goals @@ -196,10 +156,11 @@ const tagline = "Small, feature-rich calendar components";

For a detailed look at each component, check out the respective component API docs. The - theming guide to explains how to style the components - to match your designs. And the - integration guide explains how to compose Cally's - components to build a date/range picker using your own or third-party components. + theming guide to explains how to style the + components to match your designs. And the + integration guide explains how to compose + Cally's components to build a date/range picker using your own or third-party + components.

@@ -225,116 +186,6 @@ const tagline = "Small, feature-rich calendar components";