@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,6 @@
|
|
|
1
|
+
import type { SocialIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* SocialIcon is the logotype of a social network, filled and in its original canvas.
|
|
4
|
+
* It is always hidden from screen readers: the name belongs to the link that wraps it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function SocialIcon({ network, size, className, ...rest }: SocialIconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import SocialIcon_module_default from "./SocialIcon.module.js";
|
|
2
|
+
import { SOCIAL_PATHS, SOCIAL_VIEWBOX } from "./paths.js";
|
|
3
|
+
import { SOCIAL_ICON_DEFAULTS } from "./types.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/atoms/SocialIcon/SocialIcon.tsx
|
|
6
|
+
/**
|
|
7
|
+
* SocialIcon is the logotype of a social network, filled and in its original canvas.
|
|
8
|
+
* It is always hidden from screen readers: the name belongs to the link that wraps it.
|
|
9
|
+
*/
|
|
10
|
+
function SocialIcon({ network, size = SOCIAL_ICON_DEFAULTS.size, className, ...rest }) {
|
|
11
|
+
const classes = [
|
|
12
|
+
SocialIcon_module_default.icon,
|
|
13
|
+
SocialIcon_module_default[`size-${size}`],
|
|
14
|
+
className ?? ""
|
|
15
|
+
].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
17
|
+
className: classes,
|
|
18
|
+
viewBox: SOCIAL_VIEWBOX,
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
focusable: "false",
|
|
21
|
+
...rest,
|
|
22
|
+
children: SOCIAL_PATHS[network].map((d, i) => /* @__PURE__ */ jsx("path", { d }, i))
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { SocialIcon };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/components/atoms/SocialIcon/SocialIcon.module.css
|
|
2
|
+
var icon = "_icon_4tj8z_3";
|
|
3
|
+
var SocialIcon_module_default = {
|
|
4
|
+
icon,
|
|
5
|
+
"size-md": "_size-md_4tj8z_9",
|
|
6
|
+
"size-sm": "_size-sm_4tj8z_14"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SocialIcon_module_default as default, icon };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const SOCIAL_VIEWBOX = "0 0 18 18";
|
|
2
|
+
export declare const SOCIAL_PATHS: {
|
|
3
|
+
readonly linkedin: readonly ["M15.3353 15.339H12.6698V11.1623C12.6698 10.1663 12.6495 8.8845 11.2808 8.8845C9.891 8.8845 9.67875 9.96825 9.67875 11.0887V15.339H7.01325V6.75H9.57375V7.92075H9.60825C9.966 7.24575 10.836 6.53325 12.1357 6.53325C14.8365 6.53325 15.336 8.31075 15.336 10.6245L15.3353 15.339ZM4.00275 5.57475C3.14475 5.57475 2.4555 4.88025 2.4555 4.026C2.4555 3.1725 3.1455 2.47875 4.00275 2.47875C4.85775 2.47875 5.55075 3.1725 5.55075 4.026C5.55075 4.88025 4.857 5.57475 4.00275 5.57475ZM5.33925 15.339H2.66625V6.75H5.33925V15.339ZM16.6688 0H1.32825C0.594 0 0 0.5805 0 1.29675V16.7033C0 17.4202 0.594 18 1.32825 18H16.6665C17.4 18 18 17.4202 18 16.7033V1.29675C18 0.5805 17.4 0 16.6665 0H16.6688Z"];
|
|
4
|
+
readonly x: readonly ["M10.6755 7.6215L17.2327 0H15.6788L9.9855 6.618L5.43825 0H0.1935L7.0695 10.0072L0.1935 18H1.7475L7.7595 11.0115L12.5618 18H17.8065L10.6755 7.6215ZM8.54775 10.0958L7.851 9.099L2.307 1.17H4.6935L9.16725 7.569L9.864 8.56575L15.6795 16.8832H13.293L8.54775 10.0958Z"];
|
|
5
|
+
readonly youtube: readonly ["M17.6235 4.6395C17.5218 4.25646 17.3213 3.90685 17.042 3.6257C16.7626 3.34454 16.4144 3.14171 16.032 3.0375C14.6287 2.65875 9 2.65875 9 2.65875C9 2.65875 3.37125 2.65875 1.96725 3.0375C1.58506 3.14189 1.23697 3.3448 0.957808 3.62594C0.678646 3.90707 0.478194 4.25658 0.3765 4.6395C0 6.0525 0 9 0 9C0 9 0 11.9475 0.3765 13.3605C0.478189 13.7435 0.678732 14.0931 0.958043 14.3743C1.23736 14.6555 1.58563 14.8583 1.968 14.9625C3.37125 15.3413 9 15.3412 9 15.3412C9 15.3412 14.6288 15.3413 16.0328 14.9625C16.4152 14.8584 16.7635 14.6555 17.0428 14.3744C17.3221 14.0932 17.5226 13.7436 17.6243 13.3605C18 11.9475 18 9 18 9C18 9 18 6.0525 17.6235 4.6395ZM7.15875 11.676V6.324L11.8635 9L7.15875 11.676Z"];
|
|
6
|
+
readonly instagram: readonly ["M5.27256 0.0630126C4.31496 0.108163 3.66104 0.261013 3.08931 0.485563C2.49771 0.716188 1.99619 1.02556 1.49721 1.52634C0.998311 2.02711 0.690961 2.52894 0.462061 3.12159C0.240511 3.69444 0.0903612 4.34896 0.0480612 5.30709C0.00576119 6.26521 -0.00361381 6.57324 0.00111119 9.01734C0.00576119 11.4613 0.0165612 11.7677 0.0629862 12.7278C0.108736 13.6852 0.260986 14.339 0.485611 14.9108C0.716611 15.5025 1.02561 16.0038 1.52661 16.5029C2.02754 17.0021 2.52899 17.3087 3.12299 17.5379C3.69539 17.7592 4.35006 17.91 5.30804 17.9519C6.26601 17.9939 6.57434 18.0037 9.01769 17.999C11.461 17.9943 11.7687 17.9834 12.7285 17.9379C13.6885 17.8924 14.3388 17.739 14.9109 17.5154C15.5026 17.284 16.0042 16.9754 16.503 16.4744C17.0017 15.9732 17.3089 15.471 17.5376 14.8781C17.7594 14.3057 17.9101 13.6511 17.9516 12.6938C17.9936 11.7331 18.0035 11.4264 17.9989 8.98276C17.9941 6.53904 17.9831 6.23266 17.9376 5.27289C17.8921 4.31311 17.7396 3.66136 17.5151 3.08911C17.2838 2.49744 16.9751 1.99651 16.4744 1.49701C15.9736 0.997513 15.471 0.690613 14.8783 0.462388C14.3055 0.240763 13.6513 0.0897876 12.6933 0.0483876C11.7353 0.00698759 11.427 -0.00373741 8.98274 0.00106259C6.53849 0.00571259 6.23249 0.0161376 5.27256 0.0630126ZM5.37771 16.3329C4.50021 16.2947 4.02374 16.1489 3.70619 16.0269C3.28574 15.8649 2.98619 15.6691 2.66976 15.3557C2.35326 15.0423 2.15894 14.7417 1.99476 14.3222C1.87146 14.0046 1.72296 13.5287 1.68194 12.6512C1.63731 11.7028 1.62794 11.418 1.62269 9.01516C1.61744 6.61239 1.62666 6.32791 1.66821 5.37916C1.70571 4.50241 1.85241 4.02541 1.97421 3.70801C2.13621 3.28704 2.33136 2.98801 2.64546 2.67181C2.95956 2.35554 3.25926 2.16076 3.67919 1.99659C3.99644 1.87276 4.47231 1.72554 5.34944 1.68376C6.29856 1.63876 6.58296 1.62976 8.98544 1.62451C11.3879 1.61926 11.6731 1.62826 12.6226 1.67011C13.4993 1.70821 13.9765 1.85349 14.2936 1.97611C14.7142 2.13811 15.0136 2.33266 15.3298 2.64736C15.646 2.96191 15.841 3.26056 16.0051 3.68139C16.1291 3.99766 16.2764 4.47339 16.3178 5.35111C16.363 6.30024 16.3732 6.58486 16.3775 8.98711C16.3819 11.3894 16.3734 11.6747 16.3318 12.6231C16.2935 13.5006 16.148 13.9772 16.0258 14.2952C15.8638 14.7155 15.6685 15.0152 15.3542 15.3312C15.04 15.6473 14.7406 15.842 14.3205 16.0062C14.0037 16.1299 13.5272 16.2775 12.6508 16.3193C11.7016 16.3639 11.4172 16.3733 9.01386 16.3785C6.61049 16.3838 6.32684 16.374 5.37771 16.3329ZM12.7147 4.18981C12.7151 4.40344 12.7788 4.61215 12.8978 4.78957C13.0168 4.96699 13.1857 5.10513 13.3832 5.18653C13.5807 5.26793 13.7979 5.28893 14.0074 5.24687C14.2168 5.20481 14.4091 5.10159 14.5598 4.95025C14.7106 4.79891 14.8131 4.60626 14.8544 4.39667C14.8957 4.18707 14.8738 3.96994 14.7917 3.77274C14.7096 3.57554 14.5708 3.40713 14.3929 3.28881C14.2151 3.17049 14.0061 3.10757 13.7925 3.10801C13.5061 3.10861 13.2317 3.2229 13.0296 3.42577C12.8275 3.62863 12.7143 3.90346 12.7147 4.18981ZM4.37886 9.00901C4.38389 11.5614 6.45681 13.6258 9.00861 13.621C11.5606 13.6161 13.6264 11.5434 13.6216 8.99101C13.6167 6.43861 11.5433 4.37364 8.99106 4.37866C6.43881 4.38369 4.37406 6.45691 4.37886 9.00901ZM5.99999 9.00579C5.99882 8.41245 6.17362 7.83209 6.50228 7.33809C6.83095 6.8441 7.29872 6.45866 7.84644 6.23051C8.39417 6.00236 8.99724 5.94176 9.57941 6.05636C10.1616 6.17096 10.6967 6.45562 11.1171 6.87434C11.5375 7.29306 11.8243 7.82703 11.9412 8.40874C12.0581 8.99045 11.9999 9.59376 11.7739 10.1424C11.5479 10.691 11.1644 11.1603 10.6717 11.4909C10.179 11.8216 9.59933 11.9987 9.00599 11.9999C8.612 12.0007 8.22172 11.9239 7.85741 11.7739C7.49311 11.6238 7.16193 11.4035 6.88279 11.1255C6.60365 10.8475 6.38201 10.5172 6.23054 10.1535C6.07907 9.78975 6.00072 9.39977 5.99999 9.00579Z"];
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/components/atoms/SocialIcon/paths.ts
|
|
2
|
+
var SOCIAL_VIEWBOX = "0 0 18 18";
|
|
3
|
+
var SOCIAL_PATHS = {
|
|
4
|
+
linkedin: ["M15.3353 15.339H12.6698V11.1623C12.6698 10.1663 12.6495 8.8845 11.2808 8.8845C9.891 8.8845 9.67875 9.96825 9.67875 11.0887V15.339H7.01325V6.75H9.57375V7.92075H9.60825C9.966 7.24575 10.836 6.53325 12.1357 6.53325C14.8365 6.53325 15.336 8.31075 15.336 10.6245L15.3353 15.339ZM4.00275 5.57475C3.14475 5.57475 2.4555 4.88025 2.4555 4.026C2.4555 3.1725 3.1455 2.47875 4.00275 2.47875C4.85775 2.47875 5.55075 3.1725 5.55075 4.026C5.55075 4.88025 4.857 5.57475 4.00275 5.57475ZM5.33925 15.339H2.66625V6.75H5.33925V15.339ZM16.6688 0H1.32825C0.594 0 0 0.5805 0 1.29675V16.7033C0 17.4202 0.594 18 1.32825 18H16.6665C17.4 18 18 17.4202 18 16.7033V1.29675C18 0.5805 17.4 0 16.6665 0H16.6688Z"],
|
|
5
|
+
x: ["M10.6755 7.6215L17.2327 0H15.6788L9.9855 6.618L5.43825 0H0.1935L7.0695 10.0072L0.1935 18H1.7475L7.7595 11.0115L12.5618 18H17.8065L10.6755 7.6215ZM8.54775 10.0958L7.851 9.099L2.307 1.17H4.6935L9.16725 7.569L9.864 8.56575L15.6795 16.8832H13.293L8.54775 10.0958Z"],
|
|
6
|
+
youtube: ["M17.6235 4.6395C17.5218 4.25646 17.3213 3.90685 17.042 3.6257C16.7626 3.34454 16.4144 3.14171 16.032 3.0375C14.6287 2.65875 9 2.65875 9 2.65875C9 2.65875 3.37125 2.65875 1.96725 3.0375C1.58506 3.14189 1.23697 3.3448 0.957808 3.62594C0.678646 3.90707 0.478194 4.25658 0.3765 4.6395C0 6.0525 0 9 0 9C0 9 0 11.9475 0.3765 13.3605C0.478189 13.7435 0.678732 14.0931 0.958043 14.3743C1.23736 14.6555 1.58563 14.8583 1.968 14.9625C3.37125 15.3413 9 15.3412 9 15.3412C9 15.3412 14.6288 15.3413 16.0328 14.9625C16.4152 14.8584 16.7635 14.6555 17.0428 14.3744C17.3221 14.0932 17.5226 13.7436 17.6243 13.3605C18 11.9475 18 9 18 9C18 9 18 6.0525 17.6235 4.6395ZM7.15875 11.676V6.324L11.8635 9L7.15875 11.676Z"],
|
|
7
|
+
instagram: ["M5.27256 0.0630126C4.31496 0.108163 3.66104 0.261013 3.08931 0.485563C2.49771 0.716188 1.99619 1.02556 1.49721 1.52634C0.998311 2.02711 0.690961 2.52894 0.462061 3.12159C0.240511 3.69444 0.0903612 4.34896 0.0480612 5.30709C0.00576119 6.26521 -0.00361381 6.57324 0.00111119 9.01734C0.00576119 11.4613 0.0165612 11.7677 0.0629862 12.7278C0.108736 13.6852 0.260986 14.339 0.485611 14.9108C0.716611 15.5025 1.02561 16.0038 1.52661 16.5029C2.02754 17.0021 2.52899 17.3087 3.12299 17.5379C3.69539 17.7592 4.35006 17.91 5.30804 17.9519C6.26601 17.9939 6.57434 18.0037 9.01769 17.999C11.461 17.9943 11.7687 17.9834 12.7285 17.9379C13.6885 17.8924 14.3388 17.739 14.9109 17.5154C15.5026 17.284 16.0042 16.9754 16.503 16.4744C17.0017 15.9732 17.3089 15.471 17.5376 14.8781C17.7594 14.3057 17.9101 13.6511 17.9516 12.6938C17.9936 11.7331 18.0035 11.4264 17.9989 8.98276C17.9941 6.53904 17.9831 6.23266 17.9376 5.27289C17.8921 4.31311 17.7396 3.66136 17.5151 3.08911C17.2838 2.49744 16.9751 1.99651 16.4744 1.49701C15.9736 0.997513 15.471 0.690613 14.8783 0.462388C14.3055 0.240763 13.6513 0.0897876 12.6933 0.0483876C11.7353 0.00698759 11.427 -0.00373741 8.98274 0.00106259C6.53849 0.00571259 6.23249 0.0161376 5.27256 0.0630126ZM5.37771 16.3329C4.50021 16.2947 4.02374 16.1489 3.70619 16.0269C3.28574 15.8649 2.98619 15.6691 2.66976 15.3557C2.35326 15.0423 2.15894 14.7417 1.99476 14.3222C1.87146 14.0046 1.72296 13.5287 1.68194 12.6512C1.63731 11.7028 1.62794 11.418 1.62269 9.01516C1.61744 6.61239 1.62666 6.32791 1.66821 5.37916C1.70571 4.50241 1.85241 4.02541 1.97421 3.70801C2.13621 3.28704 2.33136 2.98801 2.64546 2.67181C2.95956 2.35554 3.25926 2.16076 3.67919 1.99659C3.99644 1.87276 4.47231 1.72554 5.34944 1.68376C6.29856 1.63876 6.58296 1.62976 8.98544 1.62451C11.3879 1.61926 11.6731 1.62826 12.6226 1.67011C13.4993 1.70821 13.9765 1.85349 14.2936 1.97611C14.7142 2.13811 15.0136 2.33266 15.3298 2.64736C15.646 2.96191 15.841 3.26056 16.0051 3.68139C16.1291 3.99766 16.2764 4.47339 16.3178 5.35111C16.363 6.30024 16.3732 6.58486 16.3775 8.98711C16.3819 11.3894 16.3734 11.6747 16.3318 12.6231C16.2935 13.5006 16.148 13.9772 16.0258 14.2952C15.8638 14.7155 15.6685 15.0152 15.3542 15.3312C15.04 15.6473 14.7406 15.842 14.3205 16.0062C14.0037 16.1299 13.5272 16.2775 12.6508 16.3193C11.7016 16.3639 11.4172 16.3733 9.01386 16.3785C6.61049 16.3838 6.32684 16.374 5.37771 16.3329ZM12.7147 4.18981C12.7151 4.40344 12.7788 4.61215 12.8978 4.78957C13.0168 4.96699 13.1857 5.10513 13.3832 5.18653C13.5807 5.26793 13.7979 5.28893 14.0074 5.24687C14.2168 5.20481 14.4091 5.10159 14.5598 4.95025C14.7106 4.79891 14.8131 4.60626 14.8544 4.39667C14.8957 4.18707 14.8738 3.96994 14.7917 3.77274C14.7096 3.57554 14.5708 3.40713 14.3929 3.28881C14.2151 3.17049 14.0061 3.10757 13.7925 3.10801C13.5061 3.10861 13.2317 3.2229 13.0296 3.42577C12.8275 3.62863 12.7143 3.90346 12.7147 4.18981ZM4.37886 9.00901C4.38389 11.5614 6.45681 13.6258 9.00861 13.621C11.5606 13.6161 13.6264 11.5434 13.6216 8.99101C13.6167 6.43861 11.5433 4.37364 8.99106 4.37866C6.43881 4.38369 4.37406 6.45691 4.37886 9.00901ZM5.99999 9.00579C5.99882 8.41245 6.17362 7.83209 6.50228 7.33809C6.83095 6.8441 7.29872 6.45866 7.84644 6.23051C8.39417 6.00236 8.99724 5.94176 9.57941 6.05636C10.1616 6.17096 10.6967 6.45562 11.1171 6.87434C11.5375 7.29306 11.8243 7.82703 11.9412 8.40874C12.0581 8.99045 11.9999 9.59376 11.7739 10.1424C11.5479 10.691 11.1644 11.1603 10.6717 11.4909C10.179 11.8216 9.59933 11.9987 9.00599 11.9999C8.612 12.0007 8.22172 11.9239 7.85741 11.7739C7.49311 11.6238 7.16193 11.4035 6.88279 11.1255C6.60365 10.8475 6.38201 10.5172 6.23054 10.1535C6.07907 9.78975 6.00072 9.39977 5.99999 9.00579Z"]
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SOCIAL_PATHS, SOCIAL_VIEWBOX };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export declare const SOCIAL_NETWORKS: readonly ["linkedin", "x", "youtube", "instagram"];
|
|
3
|
+
export declare const SOCIAL_ICON_SIZES: readonly ["md", "sm"];
|
|
4
|
+
export type SocialNetwork = (typeof SOCIAL_NETWORKS)[number];
|
|
5
|
+
export type SocialIconSize = (typeof SOCIAL_ICON_SIZES)[number];
|
|
6
|
+
export type SocialIconProps = {
|
|
7
|
+
/** One of the four networks the system keeps. The path is never passed from outside. */
|
|
8
|
+
network: SocialNetwork;
|
|
9
|
+
/** md 18 px (the default control icon), sm 16 px (a compact control). */
|
|
10
|
+
size?: SocialIconSize;
|
|
11
|
+
className?: string;
|
|
12
|
+
} & Omit<ComponentPropsWithoutRef<'svg'>, 'className' | 'children' | 'viewBox' | 'aria-hidden' | 'role'>;
|
|
13
|
+
export declare const SOCIAL_ICON_DEFAULTS: {
|
|
14
|
+
readonly size: "md";
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/atoms/SocialIcon/types.ts
|
|
2
|
+
var SOCIAL_NETWORKS = [
|
|
3
|
+
"linkedin",
|
|
4
|
+
"x",
|
|
5
|
+
"youtube",
|
|
6
|
+
"instagram"
|
|
7
|
+
];
|
|
8
|
+
var SOCIAL_ICON_SIZES = ["md", "sm"];
|
|
9
|
+
var SOCIAL_ICON_DEFAULTS = { size: "md" };
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SOCIAL_ICON_DEFAULTS, SOCIAL_ICON_SIZES, SOCIAL_NETWORKS };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TextProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Text is the type scale. There is no Heading or Label component: every piece of
|
|
4
|
+
* text in the system is a Text with a variant (the style) and an `as` (the element).
|
|
5
|
+
*/
|
|
6
|
+
export declare function Text({ variant, tone, as, align, wrap, measure, mono, className, children, ...rest }: TextProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Text_module_default from "./Text.module.js";
|
|
2
|
+
import { TEXT_DEFAULTS } from "./types.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/atoms/Text/Text.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Text is the type scale. There is no Heading or Label component: every piece of
|
|
7
|
+
* text in the system is a Text with a variant (the style) and an `as` (the element).
|
|
8
|
+
*/
|
|
9
|
+
function Text({ variant = TEXT_DEFAULTS.variant, tone = TEXT_DEFAULTS.tone, as = TEXT_DEFAULTS.as, align, wrap = TEXT_DEFAULTS.wrap, measure = TEXT_DEFAULTS.measure, mono = false, className, children, ...rest }) {
|
|
10
|
+
const Tag = as;
|
|
11
|
+
const classes = [
|
|
12
|
+
Text_module_default.text,
|
|
13
|
+
Text_module_default[`variant-${variant}`],
|
|
14
|
+
Text_module_default[`tone-${tone}`],
|
|
15
|
+
align ? Text_module_default[`align-${align}`] : "",
|
|
16
|
+
wrap !== "auto" ? Text_module_default[`wrap-${wrap}`] : "",
|
|
17
|
+
measure !== "none" ? Text_module_default[`measure-${measure}`] : "",
|
|
18
|
+
mono ? Text_module_default.mono : "",
|
|
19
|
+
className ?? ""
|
|
20
|
+
].filter(Boolean).join(" ");
|
|
21
|
+
return /* @__PURE__ */ jsx(Tag, {
|
|
22
|
+
className: classes,
|
|
23
|
+
...rest,
|
|
24
|
+
children
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Text };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/components/atoms/Text/Text.module.css
|
|
2
|
+
var text = "_text_xsdsu_3";
|
|
3
|
+
var mono = "_mono_xsdsu_18";
|
|
4
|
+
var Text_module_default = {
|
|
5
|
+
text,
|
|
6
|
+
mono,
|
|
7
|
+
"variant-statement": "_variant-statement_xsdsu_24",
|
|
8
|
+
"variant-title-l": "_variant-title-l_xsdsu_31",
|
|
9
|
+
"variant-title-m": "_variant-title-m_xsdsu_38",
|
|
10
|
+
"variant-title-s": "_variant-title-s_xsdsu_45",
|
|
11
|
+
"variant-title-xs": "_variant-title-xs_xsdsu_52",
|
|
12
|
+
"variant-body-l": "_variant-body-l_xsdsu_59",
|
|
13
|
+
"variant-body-m": "_variant-body-m_xsdsu_66",
|
|
14
|
+
"variant-body-s": "_variant-body-s_xsdsu_73",
|
|
15
|
+
"variant-body-s-light": "_variant-body-s-light_xsdsu_80",
|
|
16
|
+
"variant-body-s-bold": "_variant-body-s-bold_xsdsu_87",
|
|
17
|
+
"variant-micro": "_variant-micro_xsdsu_94",
|
|
18
|
+
"variant-micro-light": "_variant-micro-light_xsdsu_101",
|
|
19
|
+
"variant-micro-bold": "_variant-micro-bold_xsdsu_108",
|
|
20
|
+
"tone-primary": "_tone-primary_xsdsu_117",
|
|
21
|
+
"tone-secondary": "_tone-secondary_xsdsu_121",
|
|
22
|
+
"align-start": "_align-start_xsdsu_126",
|
|
23
|
+
"align-center": "_align-center_xsdsu_130",
|
|
24
|
+
"wrap-balance": "_wrap-balance_xsdsu_135",
|
|
25
|
+
"wrap-pretty": "_wrap-pretty_xsdsu_139",
|
|
26
|
+
"measure-half": "_measure-half_xsdsu_144",
|
|
27
|
+
"measure-wide": "_measure-wide_xsdsu_148",
|
|
28
|
+
"measure-prose": "_measure-prose_xsdsu_152",
|
|
29
|
+
"measure-narrow": "_measure-narrow_xsdsu_156"
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Text_module_default as default, mono, text };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export declare const TEXT_VARIANTS: readonly ["statement", "title-l", "title-m", "title-s", "title-xs", "body-l", "body-m", "body-s", "body-s-light", "body-s-bold", "micro", "micro-light", "micro-bold"];
|
|
3
|
+
export declare const TEXT_TONES: readonly ["primary", "secondary"];
|
|
4
|
+
export declare const TEXT_ALIGNS: readonly ["start", "center"];
|
|
5
|
+
export declare const TEXT_WRAPS: readonly ["auto", "balance", "pretty"];
|
|
6
|
+
export declare const TEXT_MEASURES: readonly ["none", "half", "wide", "prose", "narrow"];
|
|
7
|
+
export declare const TEXT_ELEMENTS: readonly ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6", "div", "figcaption", "blockquote", "li", "label"];
|
|
8
|
+
export type TextVariant = (typeof TEXT_VARIANTS)[number];
|
|
9
|
+
export type TextTone = (typeof TEXT_TONES)[number];
|
|
10
|
+
export type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
11
|
+
export type TextWrap = (typeof TEXT_WRAPS)[number];
|
|
12
|
+
export type TextMeasure = (typeof TEXT_MEASURES)[number];
|
|
13
|
+
export type TextElement = (typeof TEXT_ELEMENTS)[number];
|
|
14
|
+
export type TextProps = {
|
|
15
|
+
/** Which of the thirteen text styles to use. Independent from the HTML element. */
|
|
16
|
+
variant?: TextVariant;
|
|
17
|
+
/** Ink: primary (black) or secondary (gray). Text has no other colors, as in the talks. */
|
|
18
|
+
tone?: TextTone;
|
|
19
|
+
/** The HTML element to render. Choose it by document meaning, not by size. */
|
|
20
|
+
as?: TextElement;
|
|
21
|
+
/** Horizontal alignment. */
|
|
22
|
+
align?: TextAlign;
|
|
23
|
+
/** How lines are distributed: balance for titles and sentences, pretty for paragraphs. */
|
|
24
|
+
wrap?: TextWrap;
|
|
25
|
+
/** Maximum width with a name: half (half grid), wide (three quarters), prose (62ch), narrow (38ch). */
|
|
26
|
+
measure?: TextMeasure;
|
|
27
|
+
/** Monospaced, a bit smaller: a command, a file name. */
|
|
28
|
+
mono?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
/** The text. Inside, <strong> goes bold and <code> monospaced, in the same ink. */
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
} & Omit<ComponentPropsWithoutRef<'p'>, 'children' | 'className'>;
|
|
33
|
+
export declare const TEXT_DEFAULTS: {
|
|
34
|
+
readonly variant: "body-m";
|
|
35
|
+
readonly tone: "primary";
|
|
36
|
+
readonly as: "p";
|
|
37
|
+
readonly wrap: "auto";
|
|
38
|
+
readonly measure: "none";
|
|
39
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region src/components/atoms/Text/types.ts
|
|
2
|
+
var TEXT_VARIANTS = [
|
|
3
|
+
"statement",
|
|
4
|
+
"title-l",
|
|
5
|
+
"title-m",
|
|
6
|
+
"title-s",
|
|
7
|
+
"title-xs",
|
|
8
|
+
"body-l",
|
|
9
|
+
"body-m",
|
|
10
|
+
"body-s",
|
|
11
|
+
"body-s-light",
|
|
12
|
+
"body-s-bold",
|
|
13
|
+
"micro",
|
|
14
|
+
"micro-light",
|
|
15
|
+
"micro-bold"
|
|
16
|
+
];
|
|
17
|
+
var TEXT_TONES = ["primary", "secondary"];
|
|
18
|
+
var TEXT_ALIGNS = ["start", "center"];
|
|
19
|
+
var TEXT_WRAPS = [
|
|
20
|
+
"auto",
|
|
21
|
+
"balance",
|
|
22
|
+
"pretty"
|
|
23
|
+
];
|
|
24
|
+
var TEXT_MEASURES = [
|
|
25
|
+
"none",
|
|
26
|
+
"half",
|
|
27
|
+
"wide",
|
|
28
|
+
"prose",
|
|
29
|
+
"narrow"
|
|
30
|
+
];
|
|
31
|
+
var TEXT_ELEMENTS = [
|
|
32
|
+
"p",
|
|
33
|
+
"span",
|
|
34
|
+
"h1",
|
|
35
|
+
"h2",
|
|
36
|
+
"h3",
|
|
37
|
+
"h4",
|
|
38
|
+
"h5",
|
|
39
|
+
"h6",
|
|
40
|
+
"div",
|
|
41
|
+
"figcaption",
|
|
42
|
+
"blockquote",
|
|
43
|
+
"li",
|
|
44
|
+
"label"
|
|
45
|
+
];
|
|
46
|
+
var TEXT_DEFAULTS = {
|
|
47
|
+
variant: "body-m",
|
|
48
|
+
tone: "primary",
|
|
49
|
+
as: "p",
|
|
50
|
+
wrap: "auto",
|
|
51
|
+
measure: "none"
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { TEXT_ALIGNS, TEXT_DEFAULTS, TEXT_ELEMENTS, TEXT_MEASURES, TEXT_TONES, TEXT_VARIANTS, TEXT_WRAPS };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeToggleProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ThemeToggle switches the dark theme on and off. The icon is the theme you go to,
|
|
4
|
+
* not the one that is on: moon in light, sun in dark. Presentational: the state lives outside.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ThemeToggle({ dark, onToggle, label, className, title, ...rest }: ThemeToggleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ThemeToggle_module_default from "./ThemeToggle.module.js";
|
|
2
|
+
import { THEME_TOGGLE_DEFAULTS } from "./types.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Moon, Sun } from "lucide-react";
|
|
5
|
+
//#region src/components/atoms/ThemeToggle/ThemeToggle.tsx
|
|
6
|
+
/**
|
|
7
|
+
* ThemeToggle switches the dark theme on and off. The icon is the theme you go to,
|
|
8
|
+
* not the one that is on: moon in light, sun in dark. Presentational: the state lives outside.
|
|
9
|
+
*/
|
|
10
|
+
function ThemeToggle({ dark, onToggle, label = THEME_TOGGLE_DEFAULTS.label, className, title, ...rest }) {
|
|
11
|
+
const classes = [ThemeToggle_module_default.toggle, className ?? ""].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
13
|
+
type: "button",
|
|
14
|
+
className: classes,
|
|
15
|
+
"aria-pressed": dark,
|
|
16
|
+
title: title ?? (dark ? "Cambiar al tema claro" : "Cambiar al tema oscuro"),
|
|
17
|
+
onClick: () => onToggle(!dark),
|
|
18
|
+
...rest,
|
|
19
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
20
|
+
className: ThemeToggle_module_default.icon,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: dark ? /* @__PURE__ */ jsx(Sun, {}) : /* @__PURE__ */ jsx(Moon, {})
|
|
23
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
24
|
+
className: ThemeToggle_module_default.srOnly,
|
|
25
|
+
children: label
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ThemeToggle };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/atoms/ThemeToggle/ThemeToggle.module.css
|
|
2
|
+
var toggle = "_toggle_c8kwp_4";
|
|
3
|
+
var forceHover = "_forceHover_c8kwp_22";
|
|
4
|
+
var forceActive = "_forceActive_c8kwp_27";
|
|
5
|
+
var forceFocus = "_forceFocus_c8kwp_32";
|
|
6
|
+
var icon = "_icon_c8kwp_37";
|
|
7
|
+
var srOnly = "_srOnly_c8kwp_48";
|
|
8
|
+
var ThemeToggle_module_default = {
|
|
9
|
+
toggle,
|
|
10
|
+
forceHover,
|
|
11
|
+
forceActive,
|
|
12
|
+
forceFocus,
|
|
13
|
+
icon,
|
|
14
|
+
srOnly
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ThemeToggle_module_default as default, forceActive, forceFocus, forceHover, icon, srOnly, toggle };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type ThemeToggleProps = {
|
|
3
|
+
/** Whether the dark theme is on. The component is presentational: the state lives in the app. */
|
|
4
|
+
dark: boolean;
|
|
5
|
+
/** Called when the user asks to switch. */
|
|
6
|
+
onToggle: (nextDark: boolean) => void;
|
|
7
|
+
/** Screen-reader label of the control. Never changes with the state: the state is `aria-pressed`. */
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & Omit<ComponentPropsWithoutRef<'button'>, 'className' | 'children' | 'onClick' | 'onToggle' | 'type' | 'aria-pressed'>;
|
|
11
|
+
export declare const THEME_TOGGLE_DEFAULTS: {
|
|
12
|
+
readonly label: "Tema oscuro";
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CardProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Card is a title and its explanation, with an optional ordinal. The same piece in two forms:
|
|
4
|
+
* boxed (a bordered box) and row (a band edge to edge, inside a CardList).
|
|
5
|
+
*/
|
|
6
|
+
export declare function Card({ variant, align, ordinal, kicker, portrait, title, level, state, footer, after, emphasis, className, children, ...rest }: CardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Image } from "../../atoms/Image/Image.js";
|
|
2
|
+
import { Text } from "../../atoms/Text/Text.js";
|
|
3
|
+
import Card_module_default from "./Card.module.js";
|
|
4
|
+
import { CARD_DEFAULTS } from "./types.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/molecules/Card/Card.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Card is a title and its explanation, with an optional ordinal. The same piece in two forms:
|
|
9
|
+
* boxed (a bordered box) and row (a band edge to edge, inside a CardList).
|
|
10
|
+
*/
|
|
11
|
+
function Card({ variant = CARD_DEFAULTS.variant, align = CARD_DEFAULTS.align, ordinal, kicker, portrait, title, level = CARD_DEFAULTS.level, state = CARD_DEFAULTS.state, footer, after, emphasis = CARD_DEFAULTS.emphasis, className, children, ...rest }) {
|
|
12
|
+
const isRow = variant === "row";
|
|
13
|
+
const classes = [
|
|
14
|
+
Card_module_default.card,
|
|
15
|
+
isRow ? Card_module_default.row : "",
|
|
16
|
+
align === "center" ? Card_module_default.center : "",
|
|
17
|
+
isRow && state === "folded" ? Card_module_default.folded : "",
|
|
18
|
+
isRow && state === "active" ? Card_module_default.active : "",
|
|
19
|
+
emphasis === "highlighted" ? Card_module_default.highlighted : "",
|
|
20
|
+
emphasis === "dimmed" ? Card_module_default.dimmed : "",
|
|
21
|
+
className ?? ""
|
|
22
|
+
].filter(Boolean).join(" ");
|
|
23
|
+
return /* @__PURE__ */ jsxs("article", {
|
|
24
|
+
className: classes,
|
|
25
|
+
...rest,
|
|
26
|
+
children: [
|
|
27
|
+
portrait ? /* @__PURE__ */ jsx(Image, {
|
|
28
|
+
src: portrait.src,
|
|
29
|
+
alt: portrait.alt,
|
|
30
|
+
ratio: "1:1",
|
|
31
|
+
className: Card_module_default.portrait
|
|
32
|
+
}) : null,
|
|
33
|
+
/* @__PURE__ */ jsxs("div", {
|
|
34
|
+
className: Card_module_default.header,
|
|
35
|
+
children: [
|
|
36
|
+
ordinal ? /* @__PURE__ */ jsx(Text, {
|
|
37
|
+
as: "span",
|
|
38
|
+
variant: isRow ? "micro" : "body-s-bold",
|
|
39
|
+
tone: isRow ? "secondary" : "primary",
|
|
40
|
+
className: Card_module_default.ordinal,
|
|
41
|
+
"aria-hidden": "true",
|
|
42
|
+
children: ordinal
|
|
43
|
+
}) : null,
|
|
44
|
+
kicker ? /* @__PURE__ */ jsx(Text, {
|
|
45
|
+
as: "span",
|
|
46
|
+
variant: "body-s",
|
|
47
|
+
tone: "secondary",
|
|
48
|
+
children: kicker
|
|
49
|
+
}) : null,
|
|
50
|
+
/* @__PURE__ */ jsx(Text, {
|
|
51
|
+
as: level,
|
|
52
|
+
variant: isRow ? "title-m" : "body-l",
|
|
53
|
+
wrap: "balance",
|
|
54
|
+
children: title
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: Card_module_default.window,
|
|
60
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: Card_module_default.body,
|
|
62
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
63
|
+
as: "div",
|
|
64
|
+
variant: "body-s-light",
|
|
65
|
+
wrap: "pretty",
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
footer ? /* @__PURE__ */ jsx("div", {
|
|
71
|
+
className: Card_module_default.footer,
|
|
72
|
+
children: footer
|
|
73
|
+
}) : null,
|
|
74
|
+
after ? /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: Card_module_default.after,
|
|
76
|
+
children: after
|
|
77
|
+
}) : null
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { Card };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/components/molecules/Card/Card.module.css
|
|
2
|
+
var card = "_card_ii9ny_4";
|
|
3
|
+
var header = "_header_ii9ny_15";
|
|
4
|
+
var window = "_window_ii9ny_21";
|
|
5
|
+
var body = "_body_ii9ny_26";
|
|
6
|
+
var portrait = "_portrait_ii9ny_34";
|
|
7
|
+
var footer = "_footer_ii9ny_42";
|
|
8
|
+
var after = "_after_ii9ny_48";
|
|
9
|
+
var highlighted = "_highlighted_ii9ny_64";
|
|
10
|
+
var dimmed = "_dimmed_ii9ny_69";
|
|
11
|
+
var center = "_center_ii9ny_74";
|
|
12
|
+
var row = "_row_ii9ny_90";
|
|
13
|
+
var ordinal = "_ordinal_ii9ny_101";
|
|
14
|
+
var folded = "_folded_ii9ny_133";
|
|
15
|
+
var active = "_active_ii9ny_147";
|
|
16
|
+
var Card_module_default = {
|
|
17
|
+
card,
|
|
18
|
+
header,
|
|
19
|
+
window,
|
|
20
|
+
body,
|
|
21
|
+
portrait,
|
|
22
|
+
footer,
|
|
23
|
+
after,
|
|
24
|
+
highlighted,
|
|
25
|
+
dimmed,
|
|
26
|
+
center,
|
|
27
|
+
row,
|
|
28
|
+
ordinal,
|
|
29
|
+
folded,
|
|
30
|
+
active
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { active, after, body, card, center, Card_module_default as default, dimmed, folded, footer, header, highlighted, ordinal, portrait, row, window };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export declare const CARD_VARIANTS: readonly ["boxed", "row"];
|
|
3
|
+
export declare const CARD_ALIGNS: readonly ["start", "center"];
|
|
4
|
+
export declare const CARD_STATES: readonly ["open", "folded", "active"];
|
|
5
|
+
export declare const CARD_EMPHASES: readonly ["none", "highlighted", "dimmed"];
|
|
6
|
+
export type CardVariant = (typeof CARD_VARIANTS)[number];
|
|
7
|
+
export type CardAlign = (typeof CARD_ALIGNS)[number];
|
|
8
|
+
export type CardState = (typeof CARD_STATES)[number];
|
|
9
|
+
export type CardEmphasis = (typeof CARD_EMPHASES)[number];
|
|
10
|
+
export type CardProps = {
|
|
11
|
+
/** boxed: a bordered box. row: a full-width band inside a CardList. */
|
|
12
|
+
variant?: CardVariant;
|
|
13
|
+
/** Text alignment inside. */
|
|
14
|
+
align?: CardAlign;
|
|
15
|
+
/** Optional ordinal ("01"). Decorative: hidden from screen readers. */
|
|
16
|
+
ordinal?: string;
|
|
17
|
+
/** A small line above the title ("Cliente", "Lo que medimos"), in secondary. */
|
|
18
|
+
kicker?: ReactNode;
|
|
19
|
+
/** A round 160 px portrait above the header. */
|
|
20
|
+
portrait?: {
|
|
21
|
+
/** Path or URL of the portrait. */
|
|
22
|
+
src: string;
|
|
23
|
+
/** What the portrait shows, in words. */
|
|
24
|
+
alt: string;
|
|
25
|
+
};
|
|
26
|
+
/** The title (an h3 by default). */
|
|
27
|
+
title: ReactNode;
|
|
28
|
+
/** Heading level of the title. */
|
|
29
|
+
level?: 'h2' | 'h3' | 'h4';
|
|
30
|
+
/** Only for row: open shows the body, folded hides it visually, active opens it on the active-row background. */
|
|
31
|
+
state?: CardState;
|
|
32
|
+
/** The explanation: two or three sentences. */
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
/** A footer under a hairline: a source, a date. */
|
|
35
|
+
footer?: ReactNode;
|
|
36
|
+
/** An "after" block under a strong line: what changed. */
|
|
37
|
+
after?: ReactNode;
|
|
38
|
+
/** Among several cards: highlighted grows 4 % with a strong border; dimmed fades to 25 %. */
|
|
39
|
+
emphasis?: CardEmphasis;
|
|
40
|
+
className?: string;
|
|
41
|
+
} & Omit<ComponentPropsWithoutRef<'article'>, 'className' | 'children' | 'title'>;
|
|
42
|
+
export declare const CARD_DEFAULTS: {
|
|
43
|
+
readonly variant: "boxed";
|
|
44
|
+
readonly align: "start";
|
|
45
|
+
readonly level: "h3";
|
|
46
|
+
readonly state: "open";
|
|
47
|
+
readonly emphasis: "none";
|
|
48
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/molecules/Card/types.ts
|
|
2
|
+
var CARD_VARIANTS = ["boxed", "row"];
|
|
3
|
+
var CARD_ALIGNS = ["start", "center"];
|
|
4
|
+
var CARD_STATES = [
|
|
5
|
+
"open",
|
|
6
|
+
"folded",
|
|
7
|
+
"active"
|
|
8
|
+
];
|
|
9
|
+
var CARD_DEFAULTS = {
|
|
10
|
+
variant: "boxed",
|
|
11
|
+
align: "start",
|
|
12
|
+
level: "h3",
|
|
13
|
+
state: "open",
|
|
14
|
+
emphasis: "none"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CARD_ALIGNS, CARD_DEFAULTS, CARD_STATES, CARD_VARIANTS };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CarouselProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Carousel is a strip that is paged with the dots below. It can advance by itself, but not by default.
|
|
4
|
+
*/
|
|
5
|
+
export declare function Carousel({ items, label, controls, header, itemWidth, autoplay, itemLabel, className, }: CarouselProps): import("react").JSX.Element;
|