@540deg/ds 0.0.0-stage → 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/LICENSE +202 -0
- package/NOTICE +13 -0
- package/README.md +207 -2
- package/dist/assets/samples/captura.js +4 -0
- package/dist/assets/samples/charla-david.js +4 -0
- package/dist/assets/samples/charla-escultura.js +4 -0
- package/dist/assets/samples/charla-fachada.js +4 -0
- package/dist/assets/samples/charla-pintura.js +4 -0
- package/dist/assets/samples/charla-placa.js +4 -0
- package/dist/assets/samples/charla-teclado.js +4 -0
- package/dist/assets/samples/logo-540-claro.js +4 -0
- package/dist/assets/samples/logo-540-portada-claro.js +4 -0
- package/dist/assets/samples/logo-540-portada-oscuro.js +4 -0
- package/dist/assets/samples/logos/cliente-1.js +4 -0
- package/dist/assets/samples/logos/cliente-2.js +4 -0
- package/dist/assets/samples/logos/cliente-3.js +4 -0
- package/dist/assets/samples/logos/cliente-4.js +4 -0
- package/dist/assets/samples/logos/cliente-5.js +4 -0
- package/dist/assets/samples/logos/cliente-6.js +4 -0
- package/dist/assets/samples/logos/cliente-7.js +4 -0
- package/dist/assets/samples/logos/cliente-8.js +4 -0
- package/dist/assets/samples/logos/cliente-9.js +4 -0
- package/dist/assets/samples/retrato.js +4 -0
- package/dist/components/atoms/Bullets/Bullets.d.ts +6 -0
- package/dist/components/atoms/Bullets/Bullets.js +34 -0
- package/dist/components/atoms/Bullets/Bullets.module.js +13 -0
- package/dist/components/atoms/Bullets/index.d.ts +3 -0
- package/dist/components/atoms/Bullets/types.d.ts +23 -0
- package/dist/components/atoms/Bullets/types.js +9 -0
- package/dist/components/atoms/Button/Button.d.ts +6 -0
- package/dist/components/atoms/Button/Button.js +46 -0
- package/dist/components/atoms/Button/Button.module.js +24 -0
- package/dist/components/atoms/Button/index.d.ts +3 -0
- package/dist/components/atoms/Button/types.d.ts +38 -0
- package/dist/components/atoms/Button/types.js +14 -0
- package/dist/components/atoms/Count/Count.d.ts +6 -0
- package/dist/components/atoms/Count/Count.js +51 -0
- package/dist/components/atoms/Count/Count.module.js +9 -0
- package/dist/components/atoms/Count/index.d.ts +3 -0
- package/dist/components/atoms/Count/types.d.ts +17 -0
- package/dist/components/atoms/Count/types.js +8 -0
- package/dist/components/atoms/Image/Image.d.ts +6 -0
- package/dist/components/atoms/Image/Image.js +30 -0
- package/dist/components/atoms/Image/Image.module.js +11 -0
- package/dist/components/atoms/Image/index.d.ts +3 -0
- package/dist/components/atoms/Image/types.d.ts +16 -0
- package/dist/components/atoms/Image/types.js +13 -0
- package/dist/components/atoms/Logo/Logo.d.ts +6 -0
- package/dist/components/atoms/Logo/Logo.js +32 -0
- package/dist/components/atoms/Logo/Logo.module.js +10 -0
- package/dist/components/atoms/Logo/index.d.ts +3 -0
- package/dist/components/atoms/Logo/paths.d.ts +2 -0
- package/dist/components/atoms/Logo/paths.js +11 -0
- package/dist/components/atoms/Logo/types.d.ts +14 -0
- package/dist/components/atoms/Logo/types.js +12 -0
- package/dist/components/atoms/MenuItem/MenuItem.d.ts +6 -0
- package/dist/components/atoms/MenuItem/MenuItem.js +28 -0
- package/dist/components/atoms/MenuItem/MenuItem.module.js +19 -0
- package/dist/components/atoms/MenuItem/index.d.ts +3 -0
- package/dist/components/atoms/MenuItem/types.d.ts +18 -0
- package/dist/components/atoms/MenuItem/types.js +8 -0
- package/dist/components/atoms/SocialIcon/SocialIcon.d.ts +6 -0
- package/dist/components/atoms/SocialIcon/SocialIcon.js +26 -0
- package/dist/components/atoms/SocialIcon/SocialIcon.module.js +9 -0
- package/dist/components/atoms/SocialIcon/index.d.ts +3 -0
- package/dist/components/atoms/SocialIcon/paths.d.ts +7 -0
- package/dist/components/atoms/SocialIcon/paths.js +10 -0
- package/dist/components/atoms/SocialIcon/types.d.ts +15 -0
- package/dist/components/atoms/SocialIcon/types.js +11 -0
- package/dist/components/atoms/Text/Text.d.ts +6 -0
- package/dist/components/atoms/Text/Text.js +28 -0
- package/dist/components/atoms/Text/Text.module.js +32 -0
- package/dist/components/atoms/Text/index.d.ts +3 -0
- package/dist/components/atoms/Text/types.d.ts +39 -0
- package/dist/components/atoms/Text/types.js +54 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.d.ts +6 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.js +30 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.module.js +17 -0
- package/dist/components/atoms/ThemeToggle/index.d.ts +3 -0
- package/dist/components/atoms/ThemeToggle/types.d.ts +13 -0
- package/dist/components/atoms/ThemeToggle/types.js +4 -0
- package/dist/components/molecules/Card/Card.d.ts +6 -0
- package/dist/components/molecules/Card/Card.js +82 -0
- package/dist/components/molecules/Card/Card.module.js +33 -0
- package/dist/components/molecules/Card/index.d.ts +3 -0
- package/dist/components/molecules/Card/types.d.ts +48 -0
- package/dist/components/molecules/Card/types.js +17 -0
- package/dist/components/molecules/Carousel/Carousel.d.ts +5 -0
- package/dist/components/molecules/Carousel/Carousel.js +148 -0
- package/dist/components/molecules/Carousel/Carousel.module.js +29 -0
- package/dist/components/molecules/Carousel/index.d.ts +3 -0
- package/dist/components/molecules/Carousel/types.d.ts +24 -0
- package/dist/components/molecules/Carousel/types.js +12 -0
- package/dist/components/molecules/CaseItem/CaseItem.d.ts +6 -0
- package/dist/components/molecules/CaseItem/CaseItem.js +54 -0
- package/dist/components/molecules/CaseItem/CaseItem.module.js +19 -0
- package/dist/components/molecules/CaseItem/index.d.ts +3 -0
- package/dist/components/molecules/CaseItem/types.d.ts +20 -0
- package/dist/components/molecules/CaseItem/types.js +7 -0
- package/dist/components/molecules/Dialog/Dialog.d.ts +6 -0
- package/dist/components/molecules/Dialog/Dialog.js +81 -0
- package/dist/components/molecules/Dialog/Dialog.module.js +19 -0
- package/dist/components/molecules/Dialog/index.d.ts +2 -0
- package/dist/components/molecules/Dialog/types.d.ts +22 -0
- package/dist/components/molecules/Field/Field.d.ts +6 -0
- package/dist/components/molecules/Field/Field.js +47 -0
- package/dist/components/molecules/Field/Field.module.js +15 -0
- package/dist/components/molecules/Field/index.d.ts +3 -0
- package/dist/components/molecules/Field/types.d.ts +24 -0
- package/dist/components/molecules/Field/types.js +5 -0
- package/dist/components/molecules/Footer/Footer.d.ts +6 -0
- package/dist/components/molecules/Footer/Footer.js +102 -0
- package/dist/components/molecules/Footer/Footer.module.js +33 -0
- package/dist/components/molecules/Footer/index.d.ts +3 -0
- package/dist/components/molecules/Footer/types.d.ts +46 -0
- package/dist/components/molecules/Footer/types.js +8 -0
- package/dist/components/molecules/Grid/Grid.d.ts +5 -0
- package/dist/components/molecules/Grid/Grid.js +32 -0
- package/dist/components/molecules/Grid/Grid.module.js +29 -0
- package/dist/components/molecules/Grid/index.d.ts +3 -0
- package/dist/components/molecules/Grid/types.d.ts +28 -0
- package/dist/components/molecules/Grid/types.js +14 -0
- package/dist/components/molecules/Lists/Lists.d.ts +7 -0
- package/dist/components/molecules/Lists/Lists.js +54 -0
- package/dist/components/molecules/Lists/Lists.module.js +15 -0
- package/dist/components/molecules/Lists/index.d.ts +2 -0
- package/dist/components/molecules/Lists/types.d.ts +22 -0
- package/dist/components/molecules/Menu/Menu.d.ts +6 -0
- package/dist/components/molecules/Menu/Menu.js +43 -0
- package/dist/components/molecules/Menu/Menu.module.js +13 -0
- package/dist/components/molecules/Menu/index.d.ts +3 -0
- package/dist/components/molecules/Menu/types.d.ts +27 -0
- package/dist/components/molecules/Menu/types.js +8 -0
- package/dist/components/molecules/Metric/Metric.d.ts +5 -0
- package/dist/components/molecules/Metric/Metric.js +40 -0
- package/dist/components/molecules/Metric/Metric.module.js +11 -0
- package/dist/components/molecules/Metric/index.d.ts +2 -0
- package/dist/components/molecules/Metric/types.d.ts +15 -0
- package/dist/components/molecules/NavMobile/NavMobile.d.ts +6 -0
- package/dist/components/molecules/NavMobile/NavMobile.js +95 -0
- package/dist/components/molecules/NavMobile/NavMobile.module.js +17 -0
- package/dist/components/molecules/NavMobile/index.d.ts +3 -0
- package/dist/components/molecules/NavMobile/types.d.ts +20 -0
- package/dist/components/molecules/NavMobile/types.js +8 -0
- package/dist/components/molecules/Question/Question.d.ts +3 -0
- package/dist/components/molecules/Question/Question.js +22 -0
- package/dist/components/molecules/Question/Question.module.js +5 -0
- package/dist/components/molecules/Question/index.d.ts +2 -0
- package/dist/components/molecules/Question/types.d.ts +8 -0
- package/dist/components/molecules/Screenshot/Screenshot.d.ts +3 -0
- package/dist/components/molecules/Screenshot/Screenshot.js +17 -0
- package/dist/components/molecules/Screenshot/Screenshot.module.js +5 -0
- package/dist/components/molecules/Screenshot/index.d.ts +2 -0
- package/dist/components/molecules/Screenshot/types.d.ts +12 -0
- package/dist/components/molecules/Section/Section.d.ts +6 -0
- package/dist/components/molecules/Section/Section.js +25 -0
- package/dist/components/molecules/Section/Section.module.js +11 -0
- package/dist/components/molecules/Section/index.d.ts +3 -0
- package/dist/components/molecules/Section/types.d.ts +13 -0
- package/dist/components/molecules/Section/types.js +5 -0
- package/dist/components/molecules/SectionHeader/SectionHeader.d.ts +6 -0
- package/dist/components/molecules/SectionHeader/SectionHeader.js +34 -0
- package/dist/components/molecules/SectionHeader/SectionHeader.module.js +9 -0
- package/dist/components/molecules/SectionHeader/index.d.ts +3 -0
- package/dist/components/molecules/SectionHeader/types.d.ts +22 -0
- package/dist/components/molecules/SectionHeader/types.js +14 -0
- package/dist/components/molecules/Stack/Stack.d.ts +6 -0
- package/dist/components/molecules/Stack/Stack.js +22 -0
- package/dist/components/molecules/Stack/Stack.module.js +12 -0
- package/dist/components/molecules/Stack/index.d.ts +3 -0
- package/dist/components/molecules/Stack/types.d.ts +18 -0
- package/dist/components/molecules/Stack/types.js +17 -0
- package/dist/components/molecules/TeamMember/TeamMember.d.ts +6 -0
- package/dist/components/molecules/TeamMember/TeamMember.js +55 -0
- package/dist/components/molecules/TeamMember/TeamMember.module.js +13 -0
- package/dist/components/molecules/TeamMember/index.d.ts +3 -0
- package/dist/components/molecules/TeamMember/types.d.ts +24 -0
- package/dist/components/molecules/TeamMember/types.js +8 -0
- package/dist/components/organisms/Bars/Bars.d.ts +6 -0
- package/dist/components/organisms/Bars/Bars.js +94 -0
- package/dist/components/organisms/Bars/Bars.module.js +26 -0
- package/dist/components/organisms/Bars/index.d.ts +3 -0
- package/dist/components/organisms/Bars/types.d.ts +43 -0
- package/dist/components/organisms/Bars/types.js +12 -0
- package/dist/components/organisms/Blobs/Blobs.d.ts +3 -0
- package/dist/components/organisms/Blobs/Blobs.js +14 -0
- package/dist/components/organisms/Blobs/Blobs.module.js +15 -0
- package/dist/components/organisms/Blobs/index.d.ts +2 -0
- package/dist/components/organisms/Blobs/types.d.ts +3 -0
- package/dist/components/organisms/BlockTitle/BlockTitle.d.ts +6 -0
- package/dist/components/organisms/BlockTitle/BlockTitle.js +46 -0
- package/dist/components/organisms/BlockTitle/BlockTitle.module.js +15 -0
- package/dist/components/organisms/BlockTitle/index.d.ts +2 -0
- package/dist/components/organisms/BlockTitle/types.d.ts +18 -0
- package/dist/components/organisms/CardList/CardList.d.ts +6 -0
- package/dist/components/organisms/CardList/CardList.js +15 -0
- package/dist/components/organisms/CardList/CardList.module.js +5 -0
- package/dist/components/organisms/CardList/index.d.ts +2 -0
- package/dist/components/organisms/CardList/types.d.ts +6 -0
- package/dist/components/organisms/Closing/Closing.d.ts +6 -0
- package/dist/components/organisms/Closing/Closing.js +42 -0
- package/dist/components/organisms/Closing/Closing.module.js +9 -0
- package/dist/components/organisms/Closing/index.d.ts +3 -0
- package/dist/components/organisms/Closing/types.d.ts +15 -0
- package/dist/components/organisms/Closing/types.js +4 -0
- package/dist/components/organisms/Cover/Cover.d.ts +6 -0
- package/dist/components/organisms/Cover/Cover.js +85 -0
- package/dist/components/organisms/Cover/Cover.module.js +21 -0
- package/dist/components/organisms/Cover/index.d.ts +3 -0
- package/dist/components/organisms/Cover/types.d.ts +33 -0
- package/dist/components/organisms/Cover/types.js +4 -0
- package/dist/components/organisms/Cycle/Cycle.d.ts +6 -0
- package/dist/components/organisms/Cycle/Cycle.js +79 -0
- package/dist/components/organisms/Cycle/Cycle.module.js +17 -0
- package/dist/components/organisms/Cycle/index.d.ts +3 -0
- package/dist/components/organisms/Cycle/types.d.ts +18 -0
- package/dist/components/organisms/Cycle/types.js +9 -0
- package/dist/components/organisms/Deck/Deck.d.ts +6 -0
- package/dist/components/organisms/Deck/Deck.js +159 -0
- package/dist/components/organisms/Deck/Deck.module.js +19 -0
- package/dist/components/organisms/Deck/index.d.ts +4 -0
- package/dist/components/organisms/Deck/types.d.ts +37 -0
- package/dist/components/organisms/Deck/types.js +13 -0
- package/dist/components/organisms/Deck/useDeckNavigation.d.ts +15 -0
- package/dist/components/organisms/Deck/useDeckNavigation.js +218 -0
- package/dist/components/organisms/DeckFooter/DeckFooter.d.ts +6 -0
- package/dist/components/organisms/DeckFooter/DeckFooter.js +75 -0
- package/dist/components/organisms/DeckFooter/DeckFooter.module.js +25 -0
- package/dist/components/organisms/DeckFooter/index.d.ts +3 -0
- package/dist/components/organisms/DeckFooter/types.d.ts +22 -0
- package/dist/components/organisms/DeckFooter/types.js +8 -0
- package/dist/components/organisms/Flow/Flow.d.ts +6 -0
- package/dist/components/organisms/Flow/Flow.js +26 -0
- package/dist/components/organisms/Flow/Flow.module.js +13 -0
- package/dist/components/organisms/Flow/index.d.ts +3 -0
- package/dist/components/organisms/Flow/types.d.ts +17 -0
- package/dist/components/organisms/Flow/types.js +4 -0
- package/dist/components/organisms/Form/Form.d.ts +6 -0
- package/dist/components/organisms/Form/Form.js +28 -0
- package/dist/components/organisms/Form/Form.module.js +13 -0
- package/dist/components/organisms/Form/index.d.ts +3 -0
- package/dist/components/organisms/Form/types.d.ts +16 -0
- package/dist/components/organisms/Form/types.js +8 -0
- package/dist/components/organisms/Heartbeat/Heartbeat.d.ts +3 -0
- package/dist/components/organisms/Heartbeat/Heartbeat.js +17 -0
- package/dist/components/organisms/Heartbeat/Heartbeat.module.js +13 -0
- package/dist/components/organisms/Heartbeat/index.d.ts +2 -0
- package/dist/components/organisms/Heartbeat/types.d.ts +3 -0
- package/dist/components/organisms/LogoCarousel/LogoCarousel.d.ts +6 -0
- package/dist/components/organisms/LogoCarousel/LogoCarousel.js +72 -0
- package/dist/components/organisms/LogoCarousel/LogoCarousel.module.js +13 -0
- package/dist/components/organisms/LogoCarousel/index.d.ts +3 -0
- package/dist/components/organisms/LogoCarousel/types.d.ts +18 -0
- package/dist/components/organisms/LogoCarousel/types.js +4 -0
- package/dist/components/organisms/Marquee/Marquee.d.ts +7 -0
- package/dist/components/organisms/Marquee/Marquee.js +57 -0
- package/dist/components/organisms/Marquee/Marquee.module.js +15 -0
- package/dist/components/organisms/Marquee/index.d.ts +3 -0
- package/dist/components/organisms/Marquee/types.d.ts +11 -0
- package/dist/components/organisms/Marquee/types.js +4 -0
- package/dist/components/organisms/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/components/organisms/ProgressBar/ProgressBar.js +56 -0
- package/dist/components/organisms/ProgressBar/ProgressBar.module.js +17 -0
- package/dist/components/organisms/ProgressBar/index.d.ts +3 -0
- package/dist/components/organisms/ProgressBar/types.d.ts +20 -0
- package/dist/components/organisms/ProgressBar/types.js +7 -0
- package/dist/components/organisms/Punchline/Punchline.d.ts +6 -0
- package/dist/components/organisms/Punchline/Punchline.js +41 -0
- package/dist/components/organisms/Punchline/Punchline.module.js +11 -0
- package/dist/components/organisms/Punchline/index.d.ts +3 -0
- package/dist/components/organisms/Punchline/types.d.ts +15 -0
- package/dist/components/organisms/Punchline/types.js +4 -0
- package/dist/components/organisms/Quote/Quote.d.ts +3 -0
- package/dist/components/organisms/Quote/Quote.js +33 -0
- package/dist/components/organisms/Quote/Quote.module.js +5 -0
- package/dist/components/organisms/Quote/index.d.ts +3 -0
- package/dist/components/organisms/Quote/types.d.ts +15 -0
- package/dist/components/organisms/Quote/types.js +4 -0
- package/dist/components/organisms/Schema/Schema.d.ts +54 -0
- package/dist/components/organisms/Schema/Schema.js +117 -0
- package/dist/components/organisms/Schema/Schema.module.js +87 -0
- package/dist/components/organisms/Schema/index.d.ts +2 -0
- package/dist/components/organisms/Schema/types.d.ts +32 -0
- package/dist/components/organisms/Share/Share.d.ts +6 -0
- package/dist/components/organisms/Share/Share.js +68 -0
- package/dist/components/organisms/Share/Share.module.js +22 -0
- package/dist/components/organisms/Share/index.d.ts +3 -0
- package/dist/components/organisms/Share/types.d.ts +24 -0
- package/dist/components/organisms/Share/types.js +4 -0
- package/dist/components/organisms/Sheet/Sheet.d.ts +2 -0
- package/dist/components/organisms/Sheet/Sheet.js +92 -0
- package/dist/components/organisms/Sheet/Sheet.module.js +15 -0
- package/dist/components/organisms/Sheet/index.d.ts +3 -0
- package/dist/components/organisms/Sheet/types.d.ts +15 -0
- package/dist/components/organisms/Sheet/types.js +4 -0
- package/dist/components/organisms/Slide/Slide.d.ts +6 -0
- package/dist/components/organisms/Slide/Slide.js +29 -0
- package/dist/components/organisms/Slide/Slide.module.js +13 -0
- package/dist/components/organisms/Slide/index.d.ts +3 -0
- package/dist/components/organisms/Slide/types.d.ts +18 -0
- package/dist/components/organisms/Slide/types.js +8 -0
- package/dist/components/organisms/Spotlight/Spotlight.d.ts +7 -0
- package/dist/components/organisms/Spotlight/Spotlight.js +39 -0
- package/dist/components/organisms/Spotlight/Spotlight.module.js +5 -0
- package/dist/components/organisms/Spotlight/index.d.ts +2 -0
- package/dist/components/organisms/Spotlight/types.d.ts +6 -0
- package/dist/components/organisms/Statements/Statements.d.ts +7 -0
- package/dist/components/organisms/Statements/Statements.js +50 -0
- package/dist/components/organisms/Statements/Statements.module.js +11 -0
- package/dist/components/organisms/Statements/index.d.ts +3 -0
- package/dist/components/organisms/Statements/types.d.ts +14 -0
- package/dist/components/organisms/Statements/types.js +7 -0
- package/dist/components/organisms/Steps/Steps.d.ts +15 -0
- package/dist/components/organisms/Steps/Steps.js +117 -0
- package/dist/components/organisms/Steps/Steps.module.js +13 -0
- package/dist/components/organisms/Steps/StepsContext.d.ts +11 -0
- package/dist/components/organisms/Steps/StepsContext.js +18 -0
- package/dist/components/organisms/Steps/index.d.ts +3 -0
- package/dist/components/organisms/Steps/types.d.ts +22 -0
- package/dist/components/organisms/Story/Story.d.ts +6 -0
- package/dist/components/organisms/Story/Story.js +43 -0
- package/dist/components/organisms/Story/Story.module.js +5 -0
- package/dist/components/organisms/Story/index.d.ts +3 -0
- package/dist/components/organisms/Story/types.d.ts +20 -0
- package/dist/components/organisms/Story/types.js +7 -0
- package/dist/components/organisms/Timeline/Timeline.d.ts +7 -0
- package/dist/components/organisms/Timeline/Timeline.js +67 -0
- package/dist/components/organisms/Timeline/Timeline.module.js +19 -0
- package/dist/components/organisms/Timeline/index.d.ts +3 -0
- package/dist/components/organisms/Timeline/types.d.ts +25 -0
- package/dist/components/organisms/Timeline/types.js +4 -0
- package/dist/components/organisms/Tools/Tools.d.ts +6 -0
- package/dist/components/organisms/Tools/Tools.js +47 -0
- package/dist/components/organisms/Tools/Tools.module.js +17 -0
- package/dist/components/organisms/Tools/index.d.ts +3 -0
- package/dist/components/organisms/Tools/types.d.ts +23 -0
- package/dist/components/organisms/Tools/types.js +4 -0
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/dm-sans-latin-opsz-normal.woff2 +0 -0
- package/dist/hooks/useCenterState.d.ts +9 -0
- package/dist/hooks/useCenterState.js +40 -0
- package/dist/hooks/useReveal.d.ts +7 -0
- package/dist/hooks/useReveal.js +34 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +98 -0
- package/dist/styles.css +3441 -0
- package/dist/templates/TalkTemplate/TalkTemplate.d.ts +7 -0
- package/dist/templates/TalkTemplate/TalkTemplate.js +1392 -0
- package/dist/templates/TalkTemplate/index.d.ts +2 -0
- package/package.json +86 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type StoryProps = {
|
|
3
|
+
/** The stop's anchor. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The title: title-m for a story, title-s for an objection. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** The paragraphs, body-l secondary. */
|
|
8
|
+
paragraphs: ReactNode[];
|
|
9
|
+
/** The bridge to the next stop, body-l primary. */
|
|
10
|
+
bridge?: ReactNode;
|
|
11
|
+
/** story (title-m) or objection (title-s). */
|
|
12
|
+
kind?: 'story' | 'objection';
|
|
13
|
+
/** The band tone; stories and objections usually go raised. */
|
|
14
|
+
tone?: 'default' | 'raised';
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const STORY_DEFAULTS: {
|
|
18
|
+
readonly kind: "story";
|
|
19
|
+
readonly tone: "raised";
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TimelineProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Timeline is a vertical axis at half the grid: a dot, a title and a body per step,
|
|
4
|
+
* joined by a continuous line. Each step is a stop of the journey: the one holding the center is
|
|
5
|
+
* lit, the told ones dim to 14 % and the ones to come stay hidden.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Timeline({ id, title, description, steps, className }: TimelineProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Text } from "../../atoms/Text/Text.js";
|
|
2
|
+
import { SectionHeader } from "../../molecules/SectionHeader/SectionHeader.js";
|
|
3
|
+
import { Slide } from "../Slide/Slide.js";
|
|
4
|
+
import { useCenterState } from "../../../hooks/useCenterState.js";
|
|
5
|
+
import Timeline_module_default from "./Timeline.module.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useRef } from "react";
|
|
8
|
+
//#region src/components/organisms/Timeline/Timeline.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Timeline is a vertical axis at half the grid: a dot, a title and a body per step,
|
|
11
|
+
* joined by a continuous line. Each step is a stop of the journey: the one holding the center is
|
|
12
|
+
* lit, the told ones dim to 14 % and the ones to come stay hidden.
|
|
13
|
+
*/
|
|
14
|
+
function Timeline({ id, title, description, steps, className }) {
|
|
15
|
+
return /* @__PURE__ */ jsxs(Slide, {
|
|
16
|
+
id,
|
|
17
|
+
className,
|
|
18
|
+
"aria-labelledby": `${id}-title`,
|
|
19
|
+
children: [/* @__PURE__ */ jsx(SectionHeader, {
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
titleId: `${id}-title`,
|
|
23
|
+
align: "center"
|
|
24
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
25
|
+
className: Timeline_module_default.list,
|
|
26
|
+
children: steps.map((step, i) => /* @__PURE__ */ jsx(Step, { step }, i))
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function Step({ step }) {
|
|
31
|
+
const ref = useRef(null);
|
|
32
|
+
const state = useCenterState(ref);
|
|
33
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
34
|
+
ref,
|
|
35
|
+
className: [Timeline_module_default.step, step.alert ? Timeline_module_default.alert : ""].filter(Boolean).join(" "),
|
|
36
|
+
"data-stop": "",
|
|
37
|
+
"data-state": state,
|
|
38
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
39
|
+
className: Timeline_module_default.dot,
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
42
|
+
className: Timeline_module_default.text,
|
|
43
|
+
children: [
|
|
44
|
+
step.kicker ? /* @__PURE__ */ jsx(Text, {
|
|
45
|
+
variant: "body-s",
|
|
46
|
+
tone: "secondary",
|
|
47
|
+
children: step.kicker
|
|
48
|
+
}) : null,
|
|
49
|
+
/* @__PURE__ */ jsx(Text, {
|
|
50
|
+
as: "h3",
|
|
51
|
+
variant: "title-s",
|
|
52
|
+
wrap: "balance",
|
|
53
|
+
children: step.title
|
|
54
|
+
}),
|
|
55
|
+
step.body ? /* @__PURE__ */ jsx(Text, {
|
|
56
|
+
variant: "body-m",
|
|
57
|
+
tone: "secondary",
|
|
58
|
+
wrap: "pretty",
|
|
59
|
+
children: step.body
|
|
60
|
+
}) : null,
|
|
61
|
+
step.extra
|
|
62
|
+
]
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { Timeline };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/components/organisms/Timeline/Timeline.module.css
|
|
2
|
+
var list = "_list_9azf2_4";
|
|
3
|
+
var step = "_step_9azf2_11";
|
|
4
|
+
var dot = "_dot_9azf2_40";
|
|
5
|
+
var alert = "_alert_9azf2_48";
|
|
6
|
+
var text = "_text_9azf2_52";
|
|
7
|
+
var draw = "_draw_9azf2_1";
|
|
8
|
+
var pop = "_pop_9azf2_1";
|
|
9
|
+
var Timeline_module_default = {
|
|
10
|
+
list,
|
|
11
|
+
step,
|
|
12
|
+
dot,
|
|
13
|
+
alert,
|
|
14
|
+
text,
|
|
15
|
+
draw,
|
|
16
|
+
pop
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { alert, Timeline_module_default as default, dot, draw, list, pop, step, text };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type TimelineStep = {
|
|
3
|
+
/** A small line above the title: a date, "Zoom · marzo". In secondary. */
|
|
4
|
+
kicker?: ReactNode;
|
|
5
|
+
/** The title of the step: a month, a milestone. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** What happened, body-m secondary. */
|
|
8
|
+
body?: ReactNode;
|
|
9
|
+
/** A warning step: the dot goes red. The text stays in the neutral inks. */
|
|
10
|
+
alert?: boolean;
|
|
11
|
+
/** Anything after the body: a Flow, a Sheet inside a Step. */
|
|
12
|
+
extra?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export type TimelineProps = {
|
|
15
|
+
/** The stop's anchor. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** The header above the axis. */
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
/** One sentence under the header. */
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
/** The steps, in order. Each one is a stop of the journey. */
|
|
22
|
+
steps: TimelineStep[];
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const TIMELINE_DEFAULTS: {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ToolsProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Tools is a grid of tools: a logo in a common 52 px box (optically corrected per brand),
|
|
4
|
+
* the name in title-s and an optional one-line verdict.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Tools({ tools, columns, className }: ToolsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Text } from "../../atoms/Text/Text.js";
|
|
2
|
+
import Tools_module_default from "./Tools.module.js";
|
|
3
|
+
import { TOOLS_DEFAULTS } from "./types.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/organisms/Tools/Tools.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Tools is a grid of tools: a logo in a common 52 px box (optically corrected per brand),
|
|
8
|
+
* the name in title-s and an optional one-line verdict.
|
|
9
|
+
*/
|
|
10
|
+
function Tools({ tools, columns = TOOLS_DEFAULTS.columns, className }) {
|
|
11
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
12
|
+
className: [
|
|
13
|
+
Tools_module_default.grid,
|
|
14
|
+
Tools_module_default[`cols-${columns}`],
|
|
15
|
+
className ?? ""
|
|
16
|
+
].filter(Boolean).join(" "),
|
|
17
|
+
children: tools.map((tool) => /* @__PURE__ */ jsx("li", {
|
|
18
|
+
className: Tools_module_default.item,
|
|
19
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
className: Tools_module_default.tool,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx("img", {
|
|
23
|
+
className: [Tools_module_default.logo, tool.invertInDark ? Tools_module_default.invert : ""].filter(Boolean).join(" "),
|
|
24
|
+
src: tool.src,
|
|
25
|
+
alt: "",
|
|
26
|
+
loading: "lazy",
|
|
27
|
+
style: tool.scale ? { "--tool-scale": tool.scale } : void 0
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ jsx(Text, {
|
|
30
|
+
as: "h3",
|
|
31
|
+
variant: "title-s",
|
|
32
|
+
wrap: "balance",
|
|
33
|
+
children: tool.name
|
|
34
|
+
}),
|
|
35
|
+
tool.verdict ? /* @__PURE__ */ jsx(Text, {
|
|
36
|
+
variant: "body-s-light",
|
|
37
|
+
tone: "secondary",
|
|
38
|
+
wrap: "pretty",
|
|
39
|
+
children: tool.verdict
|
|
40
|
+
}) : null
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
}, tool.name))
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Tools };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/organisms/Tools/Tools.module.css
|
|
2
|
+
var grid = "_grid_e43sg_3";
|
|
3
|
+
var item = "_item_e43sg_13";
|
|
4
|
+
var tool = "_tool_e43sg_33";
|
|
5
|
+
var logo = "_logo_e43sg_43";
|
|
6
|
+
var invert = "_invert_e43sg_51";
|
|
7
|
+
var Tools_module_default = {
|
|
8
|
+
grid,
|
|
9
|
+
item,
|
|
10
|
+
"cols-4": "_cols-4_e43sg_24",
|
|
11
|
+
"cols-3": "_cols-3_e43sg_28",
|
|
12
|
+
tool,
|
|
13
|
+
logo,
|
|
14
|
+
invert
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Tools_module_default as default, grid, invert, item, logo, tool };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type Tool = {
|
|
3
|
+
/** The logo file. */
|
|
4
|
+
src: string;
|
|
5
|
+
/** The name of the tool. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** One short line, body-s-light secondary. Optional. */
|
|
8
|
+
verdict?: ReactNode;
|
|
9
|
+
/** Invert the logo in the dark theme (black logos on white). */
|
|
10
|
+
invertInDark?: boolean;
|
|
11
|
+
/** Optical correction: scale the logo so all look the same weight. */
|
|
12
|
+
scale?: number;
|
|
13
|
+
};
|
|
14
|
+
export type ToolsProps = {
|
|
15
|
+
/** The tools, in a staggered grid. */
|
|
16
|
+
tools: Tool[];
|
|
17
|
+
/** Columns from 1024 px: 3 or 4. */
|
|
18
|
+
columns?: 3 | 4;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const TOOLS_DEFAULTS: {
|
|
22
|
+
readonly columns: 4;
|
|
23
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) DMSans-Italic[opsz,wght].ttf: Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
export type CenterState = 'before' | 'on' | 'after';
|
|
3
|
+
/**
|
|
4
|
+
* Where a piece is against the center line of the window: already passed (before), holding it
|
|
5
|
+
* (on) or still to come (after). The sentences of the journey and the steps of a timeline use it
|
|
6
|
+
* to light the one being told, dim the told ones and hide the ones to come. With
|
|
7
|
+
* prefers-reduced-motion it is always on.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useCenterState(ref: RefObject<Element | null>): CenterState;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
//#region src/hooks/useCenterState.ts
|
|
3
|
+
/**
|
|
4
|
+
* Where a piece is against the center line of the window: already passed (before), holding it
|
|
5
|
+
* (on) or still to come (after). The sentences of the journey and the steps of a timeline use it
|
|
6
|
+
* to light the one being told, dim the told ones and hide the ones to come. With
|
|
7
|
+
* prefers-reduced-motion it is always on.
|
|
8
|
+
*/
|
|
9
|
+
function useCenterState(ref) {
|
|
10
|
+
const [state, setState] = useState("on");
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
13
|
+
let frame = 0;
|
|
14
|
+
const measure = () => {
|
|
15
|
+
frame = 0;
|
|
16
|
+
const el = ref.current;
|
|
17
|
+
if (!el) return;
|
|
18
|
+
const r = el.getBoundingClientRect();
|
|
19
|
+
const c = window.innerHeight / 2;
|
|
20
|
+
setState(r.bottom <= c ? "before" : r.top > c ? "after" : "on");
|
|
21
|
+
};
|
|
22
|
+
const schedule = () => {
|
|
23
|
+
if (!frame) frame = requestAnimationFrame(measure);
|
|
24
|
+
};
|
|
25
|
+
measure();
|
|
26
|
+
window.addEventListener("scroll", schedule, {
|
|
27
|
+
passive: true,
|
|
28
|
+
capture: true
|
|
29
|
+
});
|
|
30
|
+
window.addEventListener("resize", schedule);
|
|
31
|
+
return () => {
|
|
32
|
+
cancelAnimationFrame(frame);
|
|
33
|
+
window.removeEventListener("scroll", schedule, { capture: true });
|
|
34
|
+
window.removeEventListener("resize", schedule);
|
|
35
|
+
};
|
|
36
|
+
}, [ref]);
|
|
37
|
+
return state;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { useCenterState };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Whether a piece should show its final state: it is on screen (a third of it, at least) and its
|
|
4
|
+
* Step, if any, is on. Goes back to false when either stops, so a counter or a bar replays
|
|
5
|
+
* every time the talk comes back to it. With prefers-reduced-motion it is always true.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useReveal(ref: RefObject<Element | null>): boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useStepOn } from "../components/organisms/Steps/StepsContext.js";
|
|
2
|
+
import { useEffect, useState, useSyncExternalStore } from "react";
|
|
3
|
+
//#region src/hooks/useReveal.ts
|
|
4
|
+
var REDUCED_MOTION = "(prefers-reduced-motion: reduce)";
|
|
5
|
+
function subscribeReducedMotion(onChange) {
|
|
6
|
+
const query = window.matchMedia?.(REDUCED_MOTION);
|
|
7
|
+
query?.addEventListener?.("change", onChange);
|
|
8
|
+
return () => query?.removeEventListener?.("change", onChange);
|
|
9
|
+
}
|
|
10
|
+
var readReducedMotion = () => window.matchMedia?.(REDUCED_MOTION).matches ?? false;
|
|
11
|
+
var serverReducedMotion = () => false;
|
|
12
|
+
/**
|
|
13
|
+
* Whether a piece should show its final state: it is on screen (a third of it, at least) and its
|
|
14
|
+
* Step, if any, is on. Goes back to false when either stops, so a counter or a bar replays
|
|
15
|
+
* every time the talk comes back to it. With prefers-reduced-motion it is always true.
|
|
16
|
+
*/
|
|
17
|
+
function useReveal(ref) {
|
|
18
|
+
const stepOn = useStepOn();
|
|
19
|
+
const [seen, setSeen] = useState(false);
|
|
20
|
+
const reduced = useSyncExternalStore(subscribeReducedMotion, readReducedMotion, serverReducedMotion);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
const el = ref.current;
|
|
23
|
+
if (!el || reduced || typeof IntersectionObserver === "undefined") {
|
|
24
|
+
setSeen(true);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const io = new IntersectionObserver(([entry]) => setSeen(entry.isIntersecting), { threshold: .3 });
|
|
28
|
+
io.observe(el);
|
|
29
|
+
return () => io.disconnect();
|
|
30
|
+
}, [ref, reduced]);
|
|
31
|
+
return reduced || seen && stepOn;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { useReveal };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export * from './components/atoms/Bullets';
|
|
2
|
+
export * from './components/atoms/Button';
|
|
3
|
+
export * from './components/atoms/Count';
|
|
4
|
+
export * from './components/atoms/Image';
|
|
5
|
+
export * from './components/atoms/Logo';
|
|
6
|
+
export * from './components/atoms/MenuItem';
|
|
7
|
+
export * from './components/atoms/SocialIcon';
|
|
8
|
+
export * from './components/atoms/Text';
|
|
9
|
+
export * from './components/atoms/ThemeToggle';
|
|
10
|
+
export * from './components/molecules/Card';
|
|
11
|
+
export * from './components/molecules/Carousel';
|
|
12
|
+
export * from './components/molecules/CaseItem';
|
|
13
|
+
export * from './components/molecules/Dialog';
|
|
14
|
+
export * from './components/molecules/Field';
|
|
15
|
+
export * from './components/molecules/Footer';
|
|
16
|
+
export * from './components/molecules/Grid';
|
|
17
|
+
export * from './components/molecules/Lists';
|
|
18
|
+
export * from './components/molecules/Menu';
|
|
19
|
+
export * from './components/molecules/Metric';
|
|
20
|
+
export * from './components/molecules/NavMobile';
|
|
21
|
+
export * from './components/molecules/Question';
|
|
22
|
+
export * from './components/molecules/Screenshot';
|
|
23
|
+
export * from './components/molecules/Section';
|
|
24
|
+
export * from './components/molecules/SectionHeader';
|
|
25
|
+
export * from './components/molecules/Stack';
|
|
26
|
+
export * from './components/molecules/TeamMember';
|
|
27
|
+
export * from './components/organisms/Bars';
|
|
28
|
+
export * from './components/organisms/Blobs';
|
|
29
|
+
export * from './components/organisms/BlockTitle';
|
|
30
|
+
export * from './components/organisms/CardList';
|
|
31
|
+
export * from './components/organisms/Closing';
|
|
32
|
+
export * from './components/organisms/Cover';
|
|
33
|
+
export * from './components/organisms/Cycle';
|
|
34
|
+
export * from './components/organisms/Deck';
|
|
35
|
+
export * from './components/organisms/DeckFooter';
|
|
36
|
+
export * from './components/organisms/Flow';
|
|
37
|
+
export * from './components/organisms/Form';
|
|
38
|
+
export * from './components/organisms/Heartbeat';
|
|
39
|
+
export * from './components/organisms/LogoCarousel';
|
|
40
|
+
export * from './components/organisms/Marquee';
|
|
41
|
+
export * from './components/organisms/ProgressBar';
|
|
42
|
+
export * from './components/organisms/Punchline';
|
|
43
|
+
export * from './components/organisms/Quote';
|
|
44
|
+
export * from './components/organisms/Schema';
|
|
45
|
+
export * from './components/organisms/Share';
|
|
46
|
+
export * from './components/organisms/Sheet';
|
|
47
|
+
export * from './components/organisms/Slide';
|
|
48
|
+
export * from './components/organisms/Spotlight';
|
|
49
|
+
export * from './components/organisms/Statements';
|
|
50
|
+
export * from './components/organisms/Steps';
|
|
51
|
+
export * from './components/organisms/Story';
|
|
52
|
+
export * from './components/organisms/Timeline';
|
|
53
|
+
export * from './components/organisms/Tools';
|
|
54
|
+
export * from './templates/TalkTemplate';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { BULLETS_DEFAULTS, BULLETS_ORIENTATIONS } from "./components/atoms/Bullets/types.js";
|
|
2
|
+
import { Bullets } from "./components/atoms/Bullets/Bullets.js";
|
|
3
|
+
import { BUTTON_DEFAULTS, BUTTON_SIZES, BUTTON_VARIANTS } from "./components/atoms/Button/types.js";
|
|
4
|
+
import { Button } from "./components/atoms/Button/Button.js";
|
|
5
|
+
import { useStepOn, useSteps } from "./components/organisms/Steps/StepsContext.js";
|
|
6
|
+
import { COUNT_DEFAULTS } from "./components/atoms/Count/types.js";
|
|
7
|
+
import { Count } from "./components/atoms/Count/Count.js";
|
|
8
|
+
import { IMAGE_DEFAULTS, IMAGE_RATIOS } from "./components/atoms/Image/types.js";
|
|
9
|
+
import { Image } from "./components/atoms/Image/Image.js";
|
|
10
|
+
import { LOGO_DEFAULTS, LOGO_SIZES } from "./components/atoms/Logo/types.js";
|
|
11
|
+
import { Logo } from "./components/atoms/Logo/Logo.js";
|
|
12
|
+
import { MENU_ITEM_DEFAULTS, MENU_ITEM_SIZES } from "./components/atoms/MenuItem/types.js";
|
|
13
|
+
import { MenuItem } from "./components/atoms/MenuItem/MenuItem.js";
|
|
14
|
+
import { SOCIAL_ICON_DEFAULTS, SOCIAL_ICON_SIZES, SOCIAL_NETWORKS } from "./components/atoms/SocialIcon/types.js";
|
|
15
|
+
import { SocialIcon } from "./components/atoms/SocialIcon/SocialIcon.js";
|
|
16
|
+
import { TEXT_ALIGNS, TEXT_DEFAULTS, TEXT_ELEMENTS, TEXT_MEASURES, TEXT_TONES, TEXT_VARIANTS, TEXT_WRAPS } from "./components/atoms/Text/types.js";
|
|
17
|
+
import { Text } from "./components/atoms/Text/Text.js";
|
|
18
|
+
import { THEME_TOGGLE_DEFAULTS } from "./components/atoms/ThemeToggle/types.js";
|
|
19
|
+
import { ThemeToggle } from "./components/atoms/ThemeToggle/ThemeToggle.js";
|
|
20
|
+
import { CARD_ALIGNS, CARD_DEFAULTS, CARD_STATES, CARD_VARIANTS } from "./components/molecules/Card/types.js";
|
|
21
|
+
import { Card } from "./components/molecules/Card/Card.js";
|
|
22
|
+
import { CAROUSEL_CONTROLS, CAROUSEL_DEFAULTS } from "./components/molecules/Carousel/types.js";
|
|
23
|
+
import { Carousel } from "./components/molecules/Carousel/Carousel.js";
|
|
24
|
+
import { CASE_ITEM_DEFAULTS } from "./components/molecules/CaseItem/types.js";
|
|
25
|
+
import { CaseItem } from "./components/molecules/CaseItem/CaseItem.js";
|
|
26
|
+
import { Dialog } from "./components/molecules/Dialog/Dialog.js";
|
|
27
|
+
import { FIELD_DEFAULTS, FIELD_SIZES } from "./components/molecules/Field/types.js";
|
|
28
|
+
import { Field } from "./components/molecules/Field/Field.js";
|
|
29
|
+
import { FOOTER_DEFAULTS } from "./components/molecules/Footer/types.js";
|
|
30
|
+
import { Footer } from "./components/molecules/Footer/Footer.js";
|
|
31
|
+
import { GRID_ALIGNS, GRID_DEFAULTS, GRID_LAYOUTS } from "./components/molecules/Grid/types.js";
|
|
32
|
+
import { Grid, GridItem } from "./components/molecules/Grid/Grid.js";
|
|
33
|
+
import { ArrowList, ProblemList, SimpleList } from "./components/molecules/Lists/Lists.js";
|
|
34
|
+
import { MENU_DEFAULTS } from "./components/molecules/Menu/types.js";
|
|
35
|
+
import { Menu } from "./components/molecules/Menu/Menu.js";
|
|
36
|
+
import { Metric, MetricNote } from "./components/molecules/Metric/Metric.js";
|
|
37
|
+
import { NAV_MOBILE_DEFAULTS } from "./components/molecules/NavMobile/types.js";
|
|
38
|
+
import { NavMobile } from "./components/molecules/NavMobile/NavMobile.js";
|
|
39
|
+
import { Question } from "./components/molecules/Question/Question.js";
|
|
40
|
+
import { Screenshot } from "./components/molecules/Screenshot/Screenshot.js";
|
|
41
|
+
import { SECTION_DEFAULTS, SECTION_TONES } from "./components/molecules/Section/types.js";
|
|
42
|
+
import { Section } from "./components/molecules/Section/Section.js";
|
|
43
|
+
import { SECTION_HEADER_ALIGNS, SECTION_HEADER_DEFAULTS, SECTION_HEADER_LEVELS } from "./components/molecules/SectionHeader/types.js";
|
|
44
|
+
import { SectionHeader } from "./components/molecules/SectionHeader/SectionHeader.js";
|
|
45
|
+
import { STACK_DEFAULTS, STACK_GAPS, STACK_MEASURES } from "./components/molecules/Stack/types.js";
|
|
46
|
+
import { Stack } from "./components/molecules/Stack/Stack.js";
|
|
47
|
+
import { TEAM_MEMBER_ALIGNS, TEAM_MEMBER_DEFAULTS } from "./components/molecules/TeamMember/types.js";
|
|
48
|
+
import { TeamMember } from "./components/molecules/TeamMember/TeamMember.js";
|
|
49
|
+
import { BARS_DEFAULTS, BAR_TONES } from "./components/organisms/Bars/types.js";
|
|
50
|
+
import { Bars } from "./components/organisms/Bars/Bars.js";
|
|
51
|
+
import { Blobs } from "./components/organisms/Blobs/Blobs.js";
|
|
52
|
+
import { SLIDE_DEFAULTS, SLIDE_TONES } from "./components/organisms/Slide/types.js";
|
|
53
|
+
import { Slide } from "./components/organisms/Slide/Slide.js";
|
|
54
|
+
import { BlockTitle } from "./components/organisms/BlockTitle/BlockTitle.js";
|
|
55
|
+
import { CardList } from "./components/organisms/CardList/CardList.js";
|
|
56
|
+
import { CLOSING_DEFAULTS } from "./components/organisms/Closing/types.js";
|
|
57
|
+
import { Closing } from "./components/organisms/Closing/Closing.js";
|
|
58
|
+
import { COVER_DEFAULTS } from "./components/organisms/Cover/types.js";
|
|
59
|
+
import { Cover } from "./components/organisms/Cover/Cover.js";
|
|
60
|
+
import { Cycle } from "./components/organisms/Cycle/Cycle.js";
|
|
61
|
+
import { CYCLE_DEFAULTS, CYCLE_MARKS } from "./components/organisms/Cycle/types.js";
|
|
62
|
+
import { DECK_FOOTER_DEFAULTS } from "./components/organisms/DeckFooter/types.js";
|
|
63
|
+
import { DeckFooter } from "./components/organisms/DeckFooter/DeckFooter.js";
|
|
64
|
+
import { DECK_DEFAULTS, DECK_THEMES } from "./components/organisms/Deck/types.js";
|
|
65
|
+
import { useDeckNavigation } from "./components/organisms/Deck/useDeckNavigation.js";
|
|
66
|
+
import { Deck } from "./components/organisms/Deck/Deck.js";
|
|
67
|
+
import { FLOW_DEFAULTS } from "./components/organisms/Flow/types.js";
|
|
68
|
+
import { Flow } from "./components/organisms/Flow/Flow.js";
|
|
69
|
+
import { FORM_ALIGNS, FORM_DEFAULTS } from "./components/organisms/Form/types.js";
|
|
70
|
+
import { Form } from "./components/organisms/Form/Form.js";
|
|
71
|
+
import { Heartbeat } from "./components/organisms/Heartbeat/Heartbeat.js";
|
|
72
|
+
import { LOGO_CAROUSEL_DEFAULTS } from "./components/organisms/LogoCarousel/types.js";
|
|
73
|
+
import { LogoCarousel } from "./components/organisms/LogoCarousel/LogoCarousel.js";
|
|
74
|
+
import { MARQUEE_DEFAULTS } from "./components/organisms/Marquee/types.js";
|
|
75
|
+
import { Marquee } from "./components/organisms/Marquee/Marquee.js";
|
|
76
|
+
import { PROGRESS_BAR_DEFAULTS } from "./components/organisms/ProgressBar/types.js";
|
|
77
|
+
import { ProgressBar } from "./components/organisms/ProgressBar/ProgressBar.js";
|
|
78
|
+
import { PUNCHLINE_DEFAULTS } from "./components/organisms/Punchline/types.js";
|
|
79
|
+
import { Punchline } from "./components/organisms/Punchline/Punchline.js";
|
|
80
|
+
import { QUOTE_DEFAULTS } from "./components/organisms/Quote/types.js";
|
|
81
|
+
import { Quote } from "./components/organisms/Quote/Quote.js";
|
|
82
|
+
import { Schema, SchemaFrame, SchemaLayer, SchemaVoice, schema } from "./components/organisms/Schema/Schema.js";
|
|
83
|
+
import { SHARE_DEFAULTS } from "./components/organisms/Share/types.js";
|
|
84
|
+
import { Share } from "./components/organisms/Share/Share.js";
|
|
85
|
+
import { Sheet } from "./components/organisms/Sheet/Sheet.js";
|
|
86
|
+
import { SHEET_DEFAULTS } from "./components/organisms/Sheet/types.js";
|
|
87
|
+
import { Spotlight } from "./components/organisms/Spotlight/Spotlight.js";
|
|
88
|
+
import { STATEMENTS_DEFAULTS } from "./components/organisms/Statements/types.js";
|
|
89
|
+
import { Statements } from "./components/organisms/Statements/Statements.js";
|
|
90
|
+
import { PanelStack, Step, Steps } from "./components/organisms/Steps/Steps.js";
|
|
91
|
+
import { STORY_DEFAULTS } from "./components/organisms/Story/types.js";
|
|
92
|
+
import { Story } from "./components/organisms/Story/Story.js";
|
|
93
|
+
import { Timeline } from "./components/organisms/Timeline/Timeline.js";
|
|
94
|
+
import { TIMELINE_DEFAULTS } from "./components/organisms/Timeline/types.js";
|
|
95
|
+
import { TOOLS_DEFAULTS } from "./components/organisms/Tools/types.js";
|
|
96
|
+
import { Tools } from "./components/organisms/Tools/Tools.js";
|
|
97
|
+
import { TalkTemplate } from "./templates/TalkTemplate/TalkTemplate.js";
|
|
98
|
+
export { ArrowList, BARS_DEFAULTS, BAR_TONES, BULLETS_DEFAULTS, BULLETS_ORIENTATIONS, BUTTON_DEFAULTS, BUTTON_SIZES, BUTTON_VARIANTS, Bars, Blobs, BlockTitle, Bullets, Button, CARD_ALIGNS, CARD_DEFAULTS, CARD_STATES, CARD_VARIANTS, CAROUSEL_CONTROLS, CAROUSEL_DEFAULTS, CASE_ITEM_DEFAULTS, CLOSING_DEFAULTS, COUNT_DEFAULTS, COVER_DEFAULTS, CYCLE_DEFAULTS, CYCLE_MARKS, Card, CardList, Carousel, CaseItem, Closing, Count, Cover, Cycle, DECK_DEFAULTS, DECK_FOOTER_DEFAULTS, DECK_THEMES, Deck, DeckFooter, Dialog, FIELD_DEFAULTS, FIELD_SIZES, FLOW_DEFAULTS, FOOTER_DEFAULTS, FORM_ALIGNS, FORM_DEFAULTS, Field, Flow, Footer, Form, GRID_ALIGNS, GRID_DEFAULTS, GRID_LAYOUTS, Grid, GridItem, Heartbeat, IMAGE_DEFAULTS, IMAGE_RATIOS, Image, LOGO_CAROUSEL_DEFAULTS, LOGO_DEFAULTS, LOGO_SIZES, Logo, LogoCarousel, MARQUEE_DEFAULTS, MENU_DEFAULTS, MENU_ITEM_DEFAULTS, MENU_ITEM_SIZES, Marquee, Menu, MenuItem, Metric, MetricNote, NAV_MOBILE_DEFAULTS, NavMobile, PROGRESS_BAR_DEFAULTS, PUNCHLINE_DEFAULTS, PanelStack, ProblemList, ProgressBar, Punchline, QUOTE_DEFAULTS, Question, Quote, SECTION_DEFAULTS, SECTION_HEADER_ALIGNS, SECTION_HEADER_DEFAULTS, SECTION_HEADER_LEVELS, SECTION_TONES, SHARE_DEFAULTS, SHEET_DEFAULTS, SLIDE_DEFAULTS, SLIDE_TONES, SOCIAL_ICON_DEFAULTS, SOCIAL_ICON_SIZES, SOCIAL_NETWORKS, STACK_DEFAULTS, STACK_GAPS, STACK_MEASURES, STATEMENTS_DEFAULTS, STORY_DEFAULTS, Schema, SchemaFrame, SchemaLayer, SchemaVoice, Screenshot, Section, SectionHeader, Share, Sheet, SimpleList, Slide, SocialIcon, Spotlight, Stack, Statements, Step, Steps, Story, TEAM_MEMBER_ALIGNS, TEAM_MEMBER_DEFAULTS, TEXT_ALIGNS, TEXT_DEFAULTS, TEXT_ELEMENTS, TEXT_MEASURES, TEXT_TONES, TEXT_VARIANTS, TEXT_WRAPS, THEME_TOGGLE_DEFAULTS, TIMELINE_DEFAULTS, TOOLS_DEFAULTS, TalkTemplate, TeamMember, Text, ThemeToggle, Timeline, Tools, schema, useDeckNavigation, useStepOn, useSteps };
|