@pithyjs/ui-kit 0.1.0-beta.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 +21 -0
- package/dist/animation/animate-in.d.ts +35 -0
- package/dist/animation/animate-in.d.ts.map +1 -0
- package/dist/animation/animate-in.js +71 -0
- package/dist/animation/animate-in.js.map +1 -0
- package/dist/atoms/actions/_icon-control.scss +53 -0
- package/dist/atoms/actions/button/Button.d.ts +93 -0
- package/dist/atoms/actions/button/Button.d.ts.map +1 -0
- package/dist/atoms/actions/button/Button.js +332 -0
- package/dist/atoms/actions/button/Button.js.map +1 -0
- package/dist/atoms/actions/button/button.scss +342 -0
- package/dist/atoms/actions/icon-button/IconButton.d.ts +47 -0
- package/dist/atoms/actions/icon-button/IconButton.d.ts.map +1 -0
- package/dist/atoms/actions/icon-button/IconButton.js +81 -0
- package/dist/atoms/actions/icon-button/IconButton.js.map +1 -0
- package/dist/atoms/actions/icon-button/icon-button.scss +20 -0
- package/dist/atoms/actions/icon-group/IconGroup.d.ts +60 -0
- package/dist/atoms/actions/icon-group/IconGroup.d.ts.map +1 -0
- package/dist/atoms/actions/icon-group/IconGroup.js +191 -0
- package/dist/atoms/actions/icon-group/IconGroup.js.map +1 -0
- package/dist/atoms/actions/icon-group/icon-group.scss +36 -0
- package/dist/atoms/actions/segmented-control/SegmentedControl.d.ts +49 -0
- package/dist/atoms/actions/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/atoms/actions/segmented-control/SegmentedControl.js +107 -0
- package/dist/atoms/actions/segmented-control/SegmentedControl.js.map +1 -0
- package/dist/atoms/actions/segmented-control/segmented-control.scss +90 -0
- package/dist/atoms/content/_mixins.scss +79 -0
- package/dist/atoms/content/action-tile/ActionTile.d.ts +27 -0
- package/dist/atoms/content/action-tile/ActionTile.d.ts.map +1 -0
- package/dist/atoms/content/action-tile/ActionTile.js +98 -0
- package/dist/atoms/content/action-tile/ActionTile.js.map +1 -0
- package/dist/atoms/content/action-tile/action-tile.scss +150 -0
- package/dist/atoms/content/badge/Badge.d.ts +57 -0
- package/dist/atoms/content/badge/Badge.d.ts.map +1 -0
- package/dist/atoms/content/badge/Badge.js +177 -0
- package/dist/atoms/content/badge/Badge.js.map +1 -0
- package/dist/atoms/content/badge/badge.scss +198 -0
- package/dist/atoms/content/heading/Heading.d.ts +53 -0
- package/dist/atoms/content/heading/Heading.d.ts.map +1 -0
- package/dist/atoms/content/heading/Heading.js +142 -0
- package/dist/atoms/content/heading/Heading.js.map +1 -0
- package/dist/atoms/content/heading/heading.scss +43 -0
- package/dist/atoms/content/icon/Icon.d.ts +68 -0
- package/dist/atoms/content/icon/Icon.d.ts.map +1 -0
- package/dist/atoms/content/icon/Icon.js +137 -0
- package/dist/atoms/content/icon/Icon.js.map +1 -0
- package/dist/atoms/content/icon/icon.scss +66 -0
- package/dist/atoms/content/icon/resolveIconSvg.d.ts +21 -0
- package/dist/atoms/content/icon/resolveIconSvg.d.ts.map +1 -0
- package/dist/atoms/content/icon/resolveIconSvg.js +73 -0
- package/dist/atoms/content/icon/resolveIconSvg.js.map +1 -0
- package/dist/atoms/content/image/Image.d.ts +81 -0
- package/dist/atoms/content/image/Image.d.ts.map +1 -0
- package/dist/atoms/content/image/Image.js +293 -0
- package/dist/atoms/content/image/Image.js.map +1 -0
- package/dist/atoms/content/image/image.scss +77 -0
- package/dist/atoms/content/text/Text.d.ts +58 -0
- package/dist/atoms/content/text/Text.d.ts.map +1 -0
- package/dist/atoms/content/text/Text.js +158 -0
- package/dist/atoms/content/text/Text.js.map +1 -0
- package/dist/atoms/content/text/text.scss +98 -0
- package/dist/atoms/content/tile/Tile.d.ts +66 -0
- package/dist/atoms/content/tile/Tile.d.ts.map +1 -0
- package/dist/atoms/content/tile/Tile.js +125 -0
- package/dist/atoms/content/tile/Tile.js.map +1 -0
- package/dist/atoms/content/tile/tile.scss +122 -0
- package/dist/atoms/feedback/tooltip/Tooltip.d.ts +44 -0
- package/dist/atoms/feedback/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/atoms/feedback/tooltip/Tooltip.js +121 -0
- package/dist/atoms/feedback/tooltip/Tooltip.js.map +1 -0
- package/dist/atoms/feedback/tooltip/tooltip.scss +96 -0
- package/dist/atoms/forms/checkbox/Checkbox.d.ts +49 -0
- package/dist/atoms/forms/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/atoms/forms/checkbox/Checkbox.js +269 -0
- package/dist/atoms/forms/checkbox/Checkbox.js.map +1 -0
- package/dist/atoms/forms/checkbox/CheckboxGroup.d.ts +50 -0
- package/dist/atoms/forms/checkbox/CheckboxGroup.d.ts.map +1 -0
- package/dist/atoms/forms/checkbox/CheckboxGroup.js +132 -0
- package/dist/atoms/forms/checkbox/CheckboxGroup.js.map +1 -0
- package/dist/atoms/forms/checkbox/checkbox.scss +506 -0
- package/dist/atoms/forms/file-picker/FilePicker.d.ts +23 -0
- package/dist/atoms/forms/file-picker/FilePicker.d.ts.map +1 -0
- package/dist/atoms/forms/file-picker/FilePicker.js +103 -0
- package/dist/atoms/forms/file-picker/FilePicker.js.map +1 -0
- package/dist/atoms/forms/file-picker/file-picker.scss +84 -0
- package/dist/atoms/forms/form-field/FormField.d.ts +39 -0
- package/dist/atoms/forms/form-field/FormField.d.ts.map +1 -0
- package/dist/atoms/forms/form-field/FormField.js +139 -0
- package/dist/atoms/forms/form-field/FormField.js.map +1 -0
- package/dist/atoms/forms/form-field/form-field.scss +46 -0
- package/dist/atoms/forms/input/Input.d.ts +81 -0
- package/dist/atoms/forms/input/Input.d.ts.map +1 -0
- package/dist/atoms/forms/input/Input.js +417 -0
- package/dist/atoms/forms/input/Input.js.map +1 -0
- package/dist/atoms/forms/input/input.scss +547 -0
- package/dist/atoms/forms/radio/Radio.d.ts +54 -0
- package/dist/atoms/forms/radio/Radio.d.ts.map +1 -0
- package/dist/atoms/forms/radio/Radio.js +278 -0
- package/dist/atoms/forms/radio/Radio.js.map +1 -0
- package/dist/atoms/forms/radio/RadioGroup.d.ts +54 -0
- package/dist/atoms/forms/radio/RadioGroup.d.ts.map +1 -0
- package/dist/atoms/forms/radio/RadioGroup.js +137 -0
- package/dist/atoms/forms/radio/RadioGroup.js.map +1 -0
- package/dist/atoms/forms/radio/radio.scss +459 -0
- package/dist/atoms/forms/select/Select.d.ts +57 -0
- package/dist/atoms/forms/select/Select.d.ts.map +1 -0
- package/dist/atoms/forms/select/Select.js +457 -0
- package/dist/atoms/forms/select/Select.js.map +1 -0
- package/dist/atoms/forms/select/select-dropdown.d.ts +49 -0
- package/dist/atoms/forms/select/select-dropdown.d.ts.map +1 -0
- package/dist/atoms/forms/select/select-dropdown.js +305 -0
- package/dist/atoms/forms/select/select-dropdown.js.map +1 -0
- package/dist/atoms/forms/select/select-keyboard.d.ts +14 -0
- package/dist/atoms/forms/select/select-keyboard.d.ts.map +1 -0
- package/dist/atoms/forms/select/select-keyboard.js +182 -0
- package/dist/atoms/forms/select/select-keyboard.js.map +1 -0
- package/dist/atoms/forms/select/select.scss +630 -0
- package/dist/atoms/forms/textarea/Textarea.d.ts +69 -0
- package/dist/atoms/forms/textarea/Textarea.d.ts.map +1 -0
- package/dist/atoms/forms/textarea/Textarea.js +394 -0
- package/dist/atoms/forms/textarea/Textarea.js.map +1 -0
- package/dist/atoms/forms/textarea/textarea.scss +486 -0
- package/dist/atoms/forms/toggle/Toggle.d.ts +47 -0
- package/dist/atoms/forms/toggle/Toggle.d.ts.map +1 -0
- package/dist/atoms/forms/toggle/Toggle.js +243 -0
- package/dist/atoms/forms/toggle/Toggle.js.map +1 -0
- package/dist/atoms/forms/toggle/toggle.scss +561 -0
- package/dist/compiler.d.ts +7 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +18 -0
- package/dist/compiler.js.map +1 -0
- package/dist/icons/index.d.ts +14 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +14 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/registry.d.ts +65 -0
- package/dist/icons/registry.d.ts.map +1 -0
- package/dist/icons/registry.js +126 -0
- package/dist/icons/registry.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/Grid.d.ts +78 -0
- package/dist/layout/Grid.d.ts.map +1 -0
- package/dist/layout/Grid.js +272 -0
- package/dist/layout/Grid.js.map +1 -0
- package/dist/layout/GridItem.d.ts +52 -0
- package/dist/layout/GridItem.d.ts.map +1 -0
- package/dist/layout/GridItem.js +99 -0
- package/dist/layout/GridItem.js.map +1 -0
- package/dist/layout/PageSection.d.ts +43 -0
- package/dist/layout/PageSection.d.ts.map +1 -0
- package/dist/layout/PageSection.js +75 -0
- package/dist/layout/PageSection.js.map +1 -0
- package/dist/layout/SmartContainer.d.ts +66 -0
- package/dist/layout/SmartContainer.d.ts.map +1 -0
- package/dist/layout/SmartContainer.js +194 -0
- package/dist/layout/SmartContainer.js.map +1 -0
- package/dist/layout/Stack.d.ts +65 -0
- package/dist/layout/Stack.d.ts.map +1 -0
- package/dist/layout/Stack.js +114 -0
- package/dist/layout/Stack.js.map +1 -0
- package/dist/organisms/content/Card.d.ts +93 -0
- package/dist/organisms/content/Card.d.ts.map +1 -0
- package/dist/organisms/content/Card.js +353 -0
- package/dist/organisms/content/Card.js.map +1 -0
- package/dist/organisms/content/_card-horizontal.scss +88 -0
- package/dist/organisms/content/_card-link.scss +49 -0
- package/dist/organisms/content/_card-overlay.scss +91 -0
- package/dist/organisms/content/_card-root.scss +99 -0
- package/dist/organisms/content/_card-slots.scss +143 -0
- package/dist/organisms/content/_card-states.scss +166 -0
- package/dist/organisms/content/_card-tokens.scss +22 -0
- package/dist/organisms/content/_card-variants.scss +31 -0
- package/dist/organisms/content/card.scss +15 -0
- package/dist/organisms/feedback/Modal.d.ts +39 -0
- package/dist/organisms/feedback/Modal.d.ts.map +1 -0
- package/dist/organisms/feedback/Modal.js +120 -0
- package/dist/organisms/feedback/Modal.js.map +1 -0
- package/dist/organisms/feedback/Popover.d.ts +30 -0
- package/dist/organisms/feedback/Popover.d.ts.map +1 -0
- package/dist/organisms/feedback/Popover.js +151 -0
- package/dist/organisms/feedback/Popover.js.map +1 -0
- package/dist/organisms/feedback/modal.scss +66 -0
- package/dist/organisms/feedback/popover.scss +27 -0
- package/dist/organisms/forms/DynamicForm.d.ts +118 -0
- package/dist/organisms/forms/DynamicForm.d.ts.map +1 -0
- package/dist/organisms/forms/DynamicForm.js +546 -0
- package/dist/organisms/forms/DynamicForm.js.map +1 -0
- package/dist/organisms/forms/Form.d.ts +62 -0
- package/dist/organisms/forms/Form.d.ts.map +1 -0
- package/dist/organisms/forms/Form.js +131 -0
- package/dist/organisms/forms/Form.js.map +1 -0
- package/dist/organisms/forms/dynamic-form.scss +91 -0
- package/dist/organisms/forms/form-helpers.d.ts +21 -0
- package/dist/organisms/forms/form-helpers.d.ts.map +1 -0
- package/dist/organisms/forms/form-helpers.js +57 -0
- package/dist/organisms/forms/form-helpers.js.map +1 -0
- package/dist/organisms/forms/form-state.d.ts +66 -0
- package/dist/organisms/forms/form-state.d.ts.map +1 -0
- package/dist/organisms/forms/form-state.js +156 -0
- package/dist/organisms/forms/form-state.js.map +1 -0
- package/dist/organisms/forms/form.scss +23 -0
- package/dist/organisms/forms/validation.d.ts +32 -0
- package/dist/organisms/forms/validation.d.ts.map +1 -0
- package/dist/organisms/forms/validation.js +118 -0
- package/dist/organisms/forms/validation.js.map +1 -0
- package/dist/organisms/navigation/Navbar.d.ts +66 -0
- package/dist/organisms/navigation/Navbar.d.ts.map +1 -0
- package/dist/organisms/navigation/Navbar.js +881 -0
- package/dist/organisms/navigation/Navbar.js.map +1 -0
- package/dist/organisms/navigation/_navbar-announcement.scss +62 -0
- package/dist/organisms/navigation/_navbar-brand.scss +69 -0
- package/dist/organisms/navigation/_navbar-container.scss +37 -0
- package/dist/organisms/navigation/_navbar-desktop.scss +116 -0
- package/dist/organisms/navigation/_navbar-drawer.scss +97 -0
- package/dist/organisms/navigation/_navbar-links.scss +143 -0
- package/dist/organisms/navigation/_navbar-menu.scss +193 -0
- package/dist/organisms/navigation/_navbar-root.scss +107 -0
- package/dist/organisms/navigation/_navbar-search.scss +83 -0
- package/dist/organisms/navigation/_navbar-toggle.scss +91 -0
- package/dist/organisms/navigation/_navbar-tokens.scss +15 -0
- package/dist/organisms/navigation/navbar.scss +17 -0
- package/dist/registry/categories.d.ts +6 -0
- package/dist/registry/categories.d.ts.map +1 -0
- package/dist/registry/categories.js +13 -0
- package/dist/registry/categories.js.map +1 -0
- package/dist/registry/components.d.ts +5 -0
- package/dist/registry/components.d.ts.map +1 -0
- package/dist/registry/components.js +95 -0
- package/dist/registry/components.js.map +1 -0
- package/dist/registry/index.d.ts +59 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +79 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/levels.d.ts +6 -0
- package/dist/registry/levels.d.ts.map +1 -0
- package/dist/registry/levels.js +9 -0
- package/dist/registry/levels.js.map +1 -0
- package/dist/registry/registry-meta-types.d.ts +67 -0
- package/dist/registry/registry-meta-types.d.ts.map +1 -0
- package/dist/registry/registry-meta-types.js +6 -0
- package/dist/registry/registry-meta-types.js.map +1 -0
- package/dist/registry/registry-meta.d.ts +5 -0
- package/dist/registry/registry-meta.d.ts.map +1 -0
- package/dist/registry/registry-meta.js +731 -0
- package/dist/registry/registry-meta.js.map +1 -0
- package/dist/registry/renderer.d.ts +69 -0
- package/dist/registry/renderer.d.ts.map +1 -0
- package/dist/registry/renderer.js +311 -0
- package/dist/registry/renderer.js.map +1 -0
- package/dist/sections/_section-base.scss +204 -0
- package/dist/sections/contact/ContactSection.d.ts +55 -0
- package/dist/sections/contact/ContactSection.d.ts.map +1 -0
- package/dist/sections/contact/ContactSection.js +142 -0
- package/dist/sections/contact/ContactSection.js.map +1 -0
- package/dist/sections/contact/contact-section.scss +142 -0
- package/dist/sections/cta/CTASection.d.ts +52 -0
- package/dist/sections/cta/CTASection.d.ts.map +1 -0
- package/dist/sections/cta/CTASection.js +130 -0
- package/dist/sections/cta/CTASection.js.map +1 -0
- package/dist/sections/cta/cta-section.scss +131 -0
- package/dist/sections/entrance.d.ts +29 -0
- package/dist/sections/entrance.d.ts.map +1 -0
- package/dist/sections/entrance.js +69 -0
- package/dist/sections/entrance.js.map +1 -0
- package/dist/sections/features/FeaturesSection.d.ts +54 -0
- package/dist/sections/features/FeaturesSection.d.ts.map +1 -0
- package/dist/sections/features/FeaturesSection.js +139 -0
- package/dist/sections/features/FeaturesSection.js.map +1 -0
- package/dist/sections/features/features-section.scss +140 -0
- package/dist/sections/footer/FooterSection.d.ts +53 -0
- package/dist/sections/footer/FooterSection.d.ts.map +1 -0
- package/dist/sections/footer/FooterSection.js +147 -0
- package/dist/sections/footer/FooterSection.js.map +1 -0
- package/dist/sections/footer/footer-section.scss +131 -0
- package/dist/sections/hero/HeroSection.d.ts +66 -0
- package/dist/sections/hero/HeroSection.d.ts.map +1 -0
- package/dist/sections/hero/HeroSection.js +156 -0
- package/dist/sections/hero/HeroSection.js.map +1 -0
- package/dist/sections/hero/hero-section.scss +211 -0
- package/dist/shared/_form-animations.scss +283 -0
- package/dist/shared/_media-fit.scss +63 -0
- package/dist/shared/_mixins.scss +69 -0
- package/dist/shared/_tokens.scss +116 -0
- package/dist/shared/badge.d.ts +15 -0
- package/dist/shared/badge.d.ts.map +1 -0
- package/dist/shared/badge.js +15 -0
- package/dist/shared/badge.js.map +1 -0
- package/dist/shared/button.d.ts +22 -0
- package/dist/shared/button.d.ts.map +1 -0
- package/dist/shared/button.js +22 -0
- package/dist/shared/button.js.map +1 -0
- package/dist/shared/card.d.ts +21 -0
- package/dist/shared/card.d.ts.map +1 -0
- package/dist/shared/card.js +38 -0
- package/dist/shared/card.js.map +1 -0
- package/dist/shared/checkbox.d.ts +10 -0
- package/dist/shared/checkbox.d.ts.map +1 -0
- package/dist/shared/checkbox.js +28 -0
- package/dist/shared/checkbox.js.map +1 -0
- package/dist/shared/clickable.d.ts +34 -0
- package/dist/shared/clickable.d.ts.map +1 -0
- package/dist/shared/clickable.js +54 -0
- package/dist/shared/clickable.js.map +1 -0
- package/dist/shared/common.d.ts +31 -0
- package/dist/shared/common.d.ts.map +1 -0
- package/dist/shared/common.js +92 -0
- package/dist/shared/common.js.map +1 -0
- package/dist/shared/entrance-config.d.ts +46 -0
- package/dist/shared/entrance-config.d.ts.map +1 -0
- package/dist/shared/entrance-config.js +54 -0
- package/dist/shared/entrance-config.js.map +1 -0
- package/dist/shared/focusable.d.ts +8 -0
- package/dist/shared/focusable.d.ts.map +1 -0
- package/dist/shared/focusable.js +17 -0
- package/dist/shared/focusable.js.map +1 -0
- package/dist/shared/form-elements.d.ts +57 -0
- package/dist/shared/form-elements.d.ts.map +1 -0
- package/dist/shared/form-elements.js +95 -0
- package/dist/shared/form-elements.js.map +1 -0
- package/dist/shared/form-state.d.ts +52 -0
- package/dist/shared/form-state.d.ts.map +1 -0
- package/dist/shared/form-state.js +151 -0
- package/dist/shared/form-state.js.map +1 -0
- package/dist/shared/grid.d.ts +21 -0
- package/dist/shared/grid.d.ts.map +1 -0
- package/dist/shared/grid.js +187 -0
- package/dist/shared/grid.js.map +1 -0
- package/dist/shared/icon-slot.d.ts +22 -0
- package/dist/shared/icon-slot.d.ts.map +1 -0
- package/dist/shared/icon-slot.js +38 -0
- package/dist/shared/icon-slot.js.map +1 -0
- package/dist/shared/icon.d.ts +17 -0
- package/dist/shared/icon.d.ts.map +1 -0
- package/dist/shared/icon.js +18 -0
- package/dist/shared/icon.js.map +1 -0
- package/dist/shared/icons.d.ts +19 -0
- package/dist/shared/icons.d.ts.map +1 -0
- package/dist/shared/icons.js +22 -0
- package/dist/shared/icons.js.map +1 -0
- package/dist/shared/image.d.ts +35 -0
- package/dist/shared/image.d.ts.map +1 -0
- package/dist/shared/image.js +46 -0
- package/dist/shared/image.js.map +1 -0
- package/dist/shared/input.d.ts +12 -0
- package/dist/shared/input.d.ts.map +1 -0
- package/dist/shared/input.js +29 -0
- package/dist/shared/input.js.map +1 -0
- package/dist/shared/radio.d.ts +10 -0
- package/dist/shared/radio.d.ts.map +1 -0
- package/dist/shared/radio.js +29 -0
- package/dist/shared/radio.js.map +1 -0
- package/dist/shared/reconcile-list.d.ts +37 -0
- package/dist/shared/reconcile-list.d.ts.map +1 -0
- package/dist/shared/reconcile-list.js +95 -0
- package/dist/shared/reconcile-list.js.map +1 -0
- package/dist/shared/section.d.ts +23 -0
- package/dist/shared/section.d.ts.map +1 -0
- package/dist/shared/section.js +65 -0
- package/dist/shared/section.js.map +1 -0
- package/dist/shared/segmented.d.ts +17 -0
- package/dist/shared/segmented.d.ts.map +1 -0
- package/dist/shared/segmented.js +53 -0
- package/dist/shared/segmented.js.map +1 -0
- package/dist/shared/select.d.ts +18 -0
- package/dist/shared/select.d.ts.map +1 -0
- package/dist/shared/select.js +14 -0
- package/dist/shared/select.js.map +1 -0
- package/dist/shared/slots.d.ts +11 -0
- package/dist/shared/slots.d.ts.map +1 -0
- package/dist/shared/slots.js +33 -0
- package/dist/shared/slots.js.map +1 -0
- package/dist/shared/smart-container.d.ts +19 -0
- package/dist/shared/smart-container.d.ts.map +1 -0
- package/dist/shared/smart-container.js +29 -0
- package/dist/shared/smart-container.js.map +1 -0
- package/dist/shared/text.d.ts +29 -0
- package/dist/shared/text.d.ts.map +1 -0
- package/dist/shared/text.js +72 -0
- package/dist/shared/text.js.map +1 -0
- package/dist/shared/textarea.d.ts +6 -0
- package/dist/shared/textarea.d.ts.map +1 -0
- package/dist/shared/textarea.js +18 -0
- package/dist/shared/textarea.js.map +1 -0
- package/dist/shared/toggle.d.ts +6 -0
- package/dist/shared/toggle.d.ts.map +1 -0
- package/dist/shared/toggle.js +19 -0
- package/dist/shared/toggle.js.map +1 -0
- package/dist/shared/types.d.ts +41 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +20 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/structural/ErrorBoundary.d.ts +18 -0
- package/dist/structural/ErrorBoundary.d.ts.map +1 -0
- package/dist/structural/ErrorBoundary.js +119 -0
- package/dist/structural/ErrorBoundary.js.map +1 -0
- package/dist/structural/For.d.ts +37 -0
- package/dist/structural/For.d.ts.map +1 -0
- package/dist/structural/For.js +129 -0
- package/dist/structural/For.js.map +1 -0
- package/dist/structural/Lazy.d.ts +43 -0
- package/dist/structural/Lazy.d.ts.map +1 -0
- package/dist/structural/Lazy.js +47 -0
- package/dist/structural/Lazy.js.map +1 -0
- package/dist/structural/NavLink.d.ts +45 -0
- package/dist/structural/NavLink.d.ts.map +1 -0
- package/dist/structural/NavLink.js +37 -0
- package/dist/structural/NavLink.js.map +1 -0
- package/dist/structural/Show.d.ts +35 -0
- package/dist/structural/Show.d.ts.map +1 -0
- package/dist/structural/Show.js +34 -0
- package/dist/structural/Show.js.map +1 -0
- package/dist/structural/nav-link.scss +54 -0
- package/dist/styles/index.scss +58 -0
- package/package.json +64 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/// Shared section base styles
|
|
2
|
+
/// Contains the containment container, eyebrow, entrance animations, and common resets.
|
|
3
|
+
///
|
|
4
|
+
/// @group sections
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
@use '@pithyjs/design-system/a11y/styles/mixins' as a11y;
|
|
8
|
+
@use '@pithyjs/design-system/layout/_generated/tokens' as layout;
|
|
9
|
+
@use '@pithyjs/design-system/typography/_generated/tokens' as typo;
|
|
10
|
+
|
|
11
|
+
// ============================================
|
|
12
|
+
// Selection color (primary-tinted text selection)
|
|
13
|
+
// ============================================
|
|
14
|
+
|
|
15
|
+
// All section roots share .ui-section for base styles.
|
|
16
|
+
// Individual section classes (.ui-hero, .ui-cta, etc.) layer on top.
|
|
17
|
+
.ui-section {
|
|
18
|
+
container-type: inline-size;
|
|
19
|
+
contain: paint;
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22
|
+
|
|
23
|
+
@include a11y.primary-selection;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
%content-band {
|
|
27
|
+
max-inline-size: map.get(layout.$container-breakpoints, 'xl');
|
|
28
|
+
margin-inline: auto;
|
|
29
|
+
padding-inline: var(--space-md);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui-section-container {
|
|
33
|
+
@extend %content-band;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ui-page > :not([data-full-bleed]) {
|
|
37
|
+
@extend %content-band;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ============================================
|
|
41
|
+
// Eyebrow label
|
|
42
|
+
// ============================================
|
|
43
|
+
|
|
44
|
+
.ui-section-eyebrow {
|
|
45
|
+
font-size: var(--font-size-xs);
|
|
46
|
+
font-weight: var(--font-weight-semibold);
|
|
47
|
+
letter-spacing: map.get(typo.$letter-spacings, 'widest');
|
|
48
|
+
text-transform: uppercase;
|
|
49
|
+
color: var(--color-primary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// CTA inherits its section color
|
|
53
|
+
.ui-cta .ui-section-eyebrow {
|
|
54
|
+
color: var(--_cta-color, var(--color-primary));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// ============================================
|
|
58
|
+
// Entrance animations (scroll-triggered via JS)
|
|
59
|
+
// ============================================
|
|
60
|
+
// Three presets controlled by CSS classes:
|
|
61
|
+
// .ui-section-enter-subtle → fade only
|
|
62
|
+
// .ui-section-enter → fade + slide up (standard)
|
|
63
|
+
// .ui-section-enter-expressive → fade + slide up + scale
|
|
64
|
+
|
|
65
|
+
// -- Subtle: fade only (no translate) ----------------------------------------
|
|
66
|
+
|
|
67
|
+
.ui-section-enter-subtle {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ui-section-enter-subtle.ui-section-visible {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include a11y.motion-safe {
|
|
76
|
+
.ui-section-enter-subtle {
|
|
77
|
+
transition: opacity var(--motion-duration-normal)
|
|
78
|
+
var(--motion-easing-standard);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include a11y.motion-reduced {
|
|
83
|
+
.ui-section-enter-subtle {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// -- Standard: fade + slide up -----------------------------------------------
|
|
89
|
+
|
|
90
|
+
.ui-section-enter {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
translate: 0 var(--motion-distance-medium);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ui-section-enter.ui-section-visible {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
translate: 0 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include a11y.motion-safe {
|
|
101
|
+
.ui-section-enter {
|
|
102
|
+
transition:
|
|
103
|
+
opacity var(--motion-duration-slow) var(--motion-easing-entrance),
|
|
104
|
+
translate var(--motion-duration-slow) var(--motion-easing-entrance);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include a11y.motion-reduced {
|
|
109
|
+
.ui-section-enter {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
translate: 0 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// -- Expressive: fade + slide up + scale (premium) ---------------------------
|
|
116
|
+
|
|
117
|
+
.ui-section-enter-expressive {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
translate: 0 var(--motion-distance-medium);
|
|
120
|
+
scale: var(--motion-scale-subtle);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ui-section-enter-expressive.ui-section-visible {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
translate: 0 0;
|
|
126
|
+
scale: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include a11y.motion-safe {
|
|
130
|
+
.ui-section-enter-expressive {
|
|
131
|
+
transition:
|
|
132
|
+
opacity var(--motion-duration-deliberate) var(--motion-easing-entrance),
|
|
133
|
+
translate var(--motion-duration-deliberate) var(--motion-easing-entrance),
|
|
134
|
+
scale var(--motion-duration-deliberate) var(--motion-easing-emphasized);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include a11y.motion-reduced {
|
|
139
|
+
.ui-section-enter-expressive {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
translate: 0 0;
|
|
142
|
+
scale: 1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// ============================================
|
|
147
|
+
// Stagger children (cards, list items)
|
|
148
|
+
// ============================================
|
|
149
|
+
// Applied in standard and expressive presets.
|
|
150
|
+
// Each child delays slightly for a cascade effect.
|
|
151
|
+
|
|
152
|
+
.ui-section-stagger > * {
|
|
153
|
+
opacity: 0;
|
|
154
|
+
translate: 0 var(--motion-distance-subtle);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ui-section-stagger.ui-section-visible > * {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
translate: 0 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@include a11y.motion-safe {
|
|
163
|
+
.ui-section-stagger > * {
|
|
164
|
+
transition:
|
|
165
|
+
opacity var(--motion-duration-normal) var(--motion-easing-entrance),
|
|
166
|
+
translate var(--motion-duration-normal) var(--motion-easing-entrance);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Standard preset: 100ms stagger delay per child (up to 6)
|
|
170
|
+
@for $i from 1 through 6 {
|
|
171
|
+
.ui-section-stagger.ui-section-visible > *:nth-child(#{$i}) {
|
|
172
|
+
transition-delay: #{($i - 1) * 100}ms;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Expressive preset: 120ms stagger + scale per child
|
|
177
|
+
[data-entrance='expressive'] .ui-section-stagger > * {
|
|
178
|
+
scale: var(--motion-scale-subtle);
|
|
179
|
+
transition:
|
|
180
|
+
opacity var(--motion-duration-slow) var(--motion-easing-entrance),
|
|
181
|
+
translate var(--motion-duration-slow) var(--motion-easing-entrance),
|
|
182
|
+
scale var(--motion-duration-slow) var(--motion-easing-emphasized);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[data-entrance='expressive'] .ui-section-stagger.ui-section-visible > * {
|
|
186
|
+
scale: 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@for $i from 1 through 6 {
|
|
190
|
+
[data-entrance='expressive']
|
|
191
|
+
.ui-section-stagger.ui-section-visible
|
|
192
|
+
> *:nth-child(#{$i}) {
|
|
193
|
+
transition-delay: #{($i - 1) * 120}ms;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@include a11y.motion-reduced {
|
|
199
|
+
.ui-section-stagger > * {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
translate: 0 0;
|
|
202
|
+
scale: 1;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** @codex
|
|
2
|
+
{
|
|
3
|
+
"id": "pithy.ui-kit.contact-section",
|
|
4
|
+
"title": "<ContactSection> Section Template",
|
|
5
|
+
"category": "feature"
|
|
6
|
+
}
|
|
7
|
+
*/
|
|
8
|
+
import type { SpacingSize } from '@pithyjs/design-system';
|
|
9
|
+
import type { Reactive, ReactiveText } from '../../shared/clickable';
|
|
10
|
+
/** @codexApi {"parent":"pithy.ui-kit.contact-section","name":"ContactInfo","stability":"stable","signature":"interface ContactInfo"} */
|
|
11
|
+
export interface ContactInfo {
|
|
12
|
+
/** Contact method label (e.g., "Email", "Phone", "Address") */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Contact value (e.g., "hello@example.com", "+1 555-0100") */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Optional icon name */
|
|
17
|
+
icon?: string;
|
|
18
|
+
/** Optional link href (e.g., "mailto:", "tel:") */
|
|
19
|
+
href?: string;
|
|
20
|
+
}
|
|
21
|
+
/** @codexApi {"parent":"pithy.ui-kit.contact-section","name":"ContactSectionProps","stability":"stable","signature":"interface ContactSectionProps"} */
|
|
22
|
+
export interface ContactSectionProps {
|
|
23
|
+
/** Section heading (default: "Contact Us") */
|
|
24
|
+
heading?: ReactiveText;
|
|
25
|
+
/** Heading level (default: 2) */
|
|
26
|
+
headingLevel?: number;
|
|
27
|
+
/** Section description */
|
|
28
|
+
description?: ReactiveText;
|
|
29
|
+
/** Contact information items */
|
|
30
|
+
contacts?: Reactive<ContactInfo[]>;
|
|
31
|
+
/** Vertical padding (default: "xl") */
|
|
32
|
+
spacing?: SpacingSize;
|
|
33
|
+
/** Optional anchor id */
|
|
34
|
+
id?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Contact information section with details and form placeholder.
|
|
38
|
+
*
|
|
39
|
+
* Displays contact info (email, phone, address) in a semantic
|
|
40
|
+
* `<address>` element. Children projected into the form area
|
|
41
|
+
* (for V0.2 forms or external form embed).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```html
|
|
45
|
+
* <ContactSection heading="'Get in Touch'" contacts="contactItems">
|
|
46
|
+
* <p>Form coming soon</p>
|
|
47
|
+
* </ContactSection>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
/** @codexApi {"parent":"pithy.ui-kit.contact-section","name":"ContactSection","stability":"stable","signature":"(props?: ContactSectionProps) => { el: HTMLElement; destroy: () => void }"} */
|
|
51
|
+
export declare function ContactSection({ heading, headingLevel: rawLevel, description, contacts, spacing: rawSpacing, id, }?: ContactSectionProps): {
|
|
52
|
+
el: HTMLElement;
|
|
53
|
+
destroy: () => void;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ContactSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactSection.d.ts","sourceRoot":"","sources":["../../../src/sections/contact/ContactSection.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAGF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAY1D,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKrE,wIAAwI;AACxI,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wJAAwJ;AACxJ,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IACnC,uCAAuC;IACvC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;GAaG;AACH,+LAA+L;AAC/L,wBAAgB,cAAc,CAAC,EAC7B,OAAsB,EACtB,YAAY,EAAE,QAAY,EAC1B,WAAW,EACX,QAAQ,EACR,OAAO,EAAE,UAAiB,EAC1B,EAAE,GACH,GAAE,mBAAwB,GAAG;IAAE,EAAE,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAwHrE"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/** @codex
|
|
2
|
+
{
|
|
3
|
+
"id": "pithy.ui-kit.contact-section",
|
|
4
|
+
"title": "<ContactSection> Section Template",
|
|
5
|
+
"category": "feature"
|
|
6
|
+
}
|
|
7
|
+
*/
|
|
8
|
+
import { captureChildren } from '@pithyjs/core';
|
|
9
|
+
import { Heading } from '../../atoms/content/heading/Heading';
|
|
10
|
+
import { Text } from '../../atoms/content/text/Text';
|
|
11
|
+
import { PY_CLASS } from '../../shared/common';
|
|
12
|
+
import { captureSlot } from '../../shared/slots';
|
|
13
|
+
import { isSafeHref } from '@pithyjs/shared';
|
|
14
|
+
import { clampHeadingLevel, validateSpacing, applyContainment, generateSectionHeadingId, } from '../../shared/section';
|
|
15
|
+
import { reconcileList } from '../../shared/reconcile-list';
|
|
16
|
+
import { createIconSlot } from '../../shared/icon-slot';
|
|
17
|
+
import { observeEntrance } from '../entrance';
|
|
18
|
+
/**
|
|
19
|
+
* Contact information section with details and form placeholder.
|
|
20
|
+
*
|
|
21
|
+
* Displays contact info (email, phone, address) in a semantic
|
|
22
|
+
* `<address>` element. Children projected into the form area
|
|
23
|
+
* (for V0.2 forms or external form embed).
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```html
|
|
27
|
+
* <ContactSection heading="'Get in Touch'" contacts="contactItems">
|
|
28
|
+
* <p>Form coming soon</p>
|
|
29
|
+
* </ContactSection>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
/** @codexApi {"parent":"pithy.ui-kit.contact-section","name":"ContactSection","stability":"stable","signature":"(props?: ContactSectionProps) => { el: HTMLElement; destroy: () => void }"} */
|
|
33
|
+
export function ContactSection({ heading = 'Contact Us', headingLevel: rawLevel = 2, description, contacts, spacing: rawSpacing = 'xl', id, } = {}) {
|
|
34
|
+
const spacing = validateSpacing('ContactSection', rawSpacing, 'xl');
|
|
35
|
+
const level = clampHeadingLevel(rawLevel);
|
|
36
|
+
const disposers = [];
|
|
37
|
+
// Capture projected children FIRST and clear context.
|
|
38
|
+
const { el: childFragment, destroy: destroyChildren } = captureChildren();
|
|
39
|
+
disposers.push(destroyChildren);
|
|
40
|
+
// Root section
|
|
41
|
+
const section = document.createElement('section');
|
|
42
|
+
section.classList.add('ui-section', 'ui-contact', PY_CLASS[spacing]);
|
|
43
|
+
if (id)
|
|
44
|
+
section.id = id;
|
|
45
|
+
// Contained wrapper — stack-to-row layout
|
|
46
|
+
const container = document.createElement('div');
|
|
47
|
+
applyContainment(container);
|
|
48
|
+
container.classList.add('ui-contact-layout');
|
|
49
|
+
section.appendChild(container);
|
|
50
|
+
// Contact info side
|
|
51
|
+
const infoSide = document.createElement('div');
|
|
52
|
+
infoSide.classList.add('ui-contact-info');
|
|
53
|
+
// Heading — link to section via aria-labelledby
|
|
54
|
+
const headingId = generateSectionHeadingId('contact', id);
|
|
55
|
+
const headingComp = Heading({ level, text: heading });
|
|
56
|
+
const headingEl = headingComp.el;
|
|
57
|
+
headingEl.id = headingId;
|
|
58
|
+
section.setAttribute('aria-labelledby', headingId);
|
|
59
|
+
disposers.push(headingComp.destroy);
|
|
60
|
+
infoSide.appendChild(headingEl);
|
|
61
|
+
// Description
|
|
62
|
+
if (description) {
|
|
63
|
+
const descComp = Text({ color: 'text-muted', text: description });
|
|
64
|
+
disposers.push(descComp.destroy);
|
|
65
|
+
infoSide.appendChild(descComp.el);
|
|
66
|
+
}
|
|
67
|
+
const address = document.createElement('address');
|
|
68
|
+
const list = document.createElement('ul');
|
|
69
|
+
list.classList.add('u-list-reset', 'u-flex', 'u-vstack', 'u-gap-sm');
|
|
70
|
+
address.appendChild(list);
|
|
71
|
+
infoSide.appendChild(address);
|
|
72
|
+
disposers.push(reconcileList({
|
|
73
|
+
parent: list,
|
|
74
|
+
list: contacts ?? [],
|
|
75
|
+
renderRow: contact => {
|
|
76
|
+
const li = document.createElement('li');
|
|
77
|
+
li.classList.add('ui-contact-item');
|
|
78
|
+
const iconSlot = createIconSlot(li, 'md', () => li.firstChild);
|
|
79
|
+
let valueEl;
|
|
80
|
+
let currentIsLink;
|
|
81
|
+
function renderValue(c) {
|
|
82
|
+
const isLink = typeof c.href === 'string' && isSafeHref(c.href);
|
|
83
|
+
if (valueEl && currentIsLink === isLink) {
|
|
84
|
+
if (isLink)
|
|
85
|
+
valueEl.href = c.href;
|
|
86
|
+
valueEl.textContent = c.value;
|
|
87
|
+
if (c.label)
|
|
88
|
+
valueEl.setAttribute('aria-label', `${c.label}: ${c.value}`);
|
|
89
|
+
else
|
|
90
|
+
valueEl.removeAttribute('aria-label');
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const next = isLink
|
|
94
|
+
? document.createElement('a')
|
|
95
|
+
: document.createElement('span');
|
|
96
|
+
if (isLink) {
|
|
97
|
+
next.classList.add('ui-nav-link');
|
|
98
|
+
next.href = c.href;
|
|
99
|
+
}
|
|
100
|
+
next.textContent = c.value;
|
|
101
|
+
if (c.label)
|
|
102
|
+
next.setAttribute('aria-label', `${c.label}: ${c.value}`);
|
|
103
|
+
if (valueEl)
|
|
104
|
+
li.replaceChild(next, valueEl);
|
|
105
|
+
else
|
|
106
|
+
li.appendChild(next);
|
|
107
|
+
valueEl = next;
|
|
108
|
+
currentIsLink = isLink;
|
|
109
|
+
}
|
|
110
|
+
iconSlot.set(contact.icon);
|
|
111
|
+
renderValue(contact);
|
|
112
|
+
return {
|
|
113
|
+
el: li,
|
|
114
|
+
update: next => {
|
|
115
|
+
iconSlot.set(next.icon);
|
|
116
|
+
renderValue(next);
|
|
117
|
+
},
|
|
118
|
+
destroy: () => {
|
|
119
|
+
iconSlot.destroy();
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
}));
|
|
124
|
+
container.appendChild(infoSide);
|
|
125
|
+
// Form placeholder side — projected children
|
|
126
|
+
const formSide = document.createElement('div');
|
|
127
|
+
formSide.classList.add('ui-contact-form');
|
|
128
|
+
captureSlot(formSide, 'form');
|
|
129
|
+
formSide.appendChild(childFragment);
|
|
130
|
+
container.appendChild(formSide);
|
|
131
|
+
// Entrance animation
|
|
132
|
+
disposers.push(observeEntrance(section));
|
|
133
|
+
return {
|
|
134
|
+
el: section,
|
|
135
|
+
destroy: () => {
|
|
136
|
+
for (const dispose of disposers)
|
|
137
|
+
dispose();
|
|
138
|
+
section.replaceChildren();
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=ContactSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactSection.js","sourceRoot":"","sources":["../../../src/sections/contact/ContactSection.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA8B9C;;;;;;;;;;;;;GAaG;AACH,+LAA+L;AAC/L,MAAM,UAAU,cAAc,CAAC,EAC7B,OAAO,GAAG,YAAY,EACtB,YAAY,EAAE,QAAQ,GAAG,CAAC,EAC1B,WAAW,EACX,QAAQ,EACR,OAAO,EAAE,UAAU,GAAG,IAAI,EAC1B,EAAE,MACqB,EAAE;IACzB,MAAM,OAAO,GAAG,eAAe,CAAC,gBAAgB,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,KAAK,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;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AAE;gBACN,MAAM,EAAE,IAAI,CAAC,EAAE;oBACb,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;gBACD,OAAO,EAAE,GAAG,EAAE;oBACZ,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACrB,CAAC;aACF,CAAC;QACJ,CAAC;KACF,CAAC,CACH,CAAC;IAEF,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEhC,6CAA6C;IAC7C,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC/C,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC1C,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACpC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEhC,qBAAqB;IACrB,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzC,OAAO;QACL,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,GAAG,EAAE;YACZ,KAAK,MAAM,OAAO,IAAI,SAAS;gBAAE,OAAO,EAAE,CAAC;YAC3C,OAAO,CAAC,eAAe,EAAE,CAAC;QAC5B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/// ContactSection styles
|
|
2
|
+
/// Two-column layout with contact info and form/content area.
|
|
3
|
+
/// Friendship: heading↔description = Close Friends (sm),
|
|
4
|
+
/// contact items = Close Friends (sm), icon↔value = Lovers (xs).
|
|
5
|
+
///
|
|
6
|
+
/// @group sections
|
|
7
|
+
|
|
8
|
+
@use '@pithyjs/design-system/a11y/styles/mixins' as a11y;
|
|
9
|
+
@use '../../shared/tokens' as shared;
|
|
10
|
+
@use '../../shared/mixins' as shared-mix;
|
|
11
|
+
|
|
12
|
+
// ============================================
|
|
13
|
+
// Layout
|
|
14
|
+
// ============================================
|
|
15
|
+
|
|
16
|
+
.ui-contact-layout {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
gap: var(--space-xl); // Info ↔ form: Strangers (side-by-side)
|
|
20
|
+
align-items: start;
|
|
21
|
+
|
|
22
|
+
// Centre wrapped children whose width is capped by fluid-center-child
|
|
23
|
+
@include shared-mix.fluid-center-parent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// ============================================
|
|
27
|
+
// Info side
|
|
28
|
+
// ============================================
|
|
29
|
+
|
|
30
|
+
.ui-contact-info {
|
|
31
|
+
flex: 1 1 shared.$min-column;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: var(--space-sm); // Heading ↔ description: Close Friends
|
|
35
|
+
|
|
36
|
+
// Cap width so parent's justify-content: center kicks in when wrapped
|
|
37
|
+
@include shared-mix.fluid-center-child;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Heading/description → contact list: Friends (same info column, divider provides visual break)
|
|
41
|
+
// margin creates space above divider, padding creates space below it
|
|
42
|
+
// Collapse the address when there are no contacts — avoids an empty landmark, the divider, and dead space.
|
|
43
|
+
.ui-contact-info address:has(> ul:empty) {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ui-contact-info address {
|
|
48
|
+
margin-block-start: var(--space-md);
|
|
49
|
+
padding-block-start: var(--space-md);
|
|
50
|
+
font-style: normal; // Reset <address> default italic
|
|
51
|
+
position: relative;
|
|
52
|
+
|
|
53
|
+
// Gradient divider — same pattern as footer
|
|
54
|
+
// NOTE: `to right` is physical; CSS logical gradient directions are not yet supported.
|
|
55
|
+
// The gradient is symmetric so RTL rendering is visually identical.
|
|
56
|
+
&::before {
|
|
57
|
+
content: '';
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset-block-start: 0;
|
|
60
|
+
inset-inline: 0;
|
|
61
|
+
block-size: var(--border-width-hairline);
|
|
62
|
+
background: linear-gradient(
|
|
63
|
+
to right,
|
|
64
|
+
transparent,
|
|
65
|
+
var(--color-border) 20%,
|
|
66
|
+
var(--color-border) 80%,
|
|
67
|
+
transparent
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Contact item row
|
|
73
|
+
.ui-contact-item {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: row;
|
|
76
|
+
gap: var(--space-xs); // Icon ↔ value: Lovers
|
|
77
|
+
align-items: center;
|
|
78
|
+
|
|
79
|
+
// Centre icon+text only when parent stacks (inherits container from fluid-center-parent)
|
|
80
|
+
@container (max-width: #{shared.$min-column * 2 + 4rem}) {
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Icon transitions with link color on hover — only when item has a link
|
|
85
|
+
&:has(a):hover .ui-icon {
|
|
86
|
+
color: var(--color-primary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include a11y.motion-safe {
|
|
90
|
+
.ui-icon {
|
|
91
|
+
transition: var(--motion-transition-color);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Contact links — use .ui-nav-link class (added in ContactSection.ts).
|
|
97
|
+
// Override base color to text (was the default before consolidation);
|
|
98
|
+
// hover/active remain primary via .ui-nav-link defaults.
|
|
99
|
+
.ui-contact-info .ui-nav-link {
|
|
100
|
+
--_nav-color: var(--color-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// ============================================
|
|
104
|
+
// Form/content side
|
|
105
|
+
// ============================================
|
|
106
|
+
|
|
107
|
+
.ui-contact-form {
|
|
108
|
+
flex: 1 1 shared.$min-column-wide;
|
|
109
|
+
background-color: var(--color-surface-variant, var(--color-surface));
|
|
110
|
+
border-radius: var(--radius-lg);
|
|
111
|
+
padding-block: var(--space-lg);
|
|
112
|
+
padding-inline: var(--space-lg);
|
|
113
|
+
border: var(--border-width-hairline) solid var(--color-border);
|
|
114
|
+
box-shadow: var(--shadow-xs);
|
|
115
|
+
|
|
116
|
+
@include a11y.motion-safe {
|
|
117
|
+
transition:
|
|
118
|
+
var(--motion-transition-shadow), var(--motion-transition-border);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:hover,
|
|
122
|
+
&:focus-within {
|
|
123
|
+
box-shadow: var(--shadow-md);
|
|
124
|
+
border-color: color-mix(
|
|
125
|
+
in oklch,
|
|
126
|
+
var(--color-primary) 20%,
|
|
127
|
+
var(--color-border)
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// ============================================
|
|
133
|
+
// Forced colors
|
|
134
|
+
// ============================================
|
|
135
|
+
|
|
136
|
+
// Forced colors — link styling handled by .ui-nav-link's own forced-colors block.
|
|
137
|
+
// Icon color override for high contrast:
|
|
138
|
+
@include a11y.forced-colors {
|
|
139
|
+
.ui-contact-item:has(a):hover .ui-icon {
|
|
140
|
+
color: LinkText; // stylelint-disable-line scale-unlimited/declaration-strict-value -- CSS system color required
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** @codex
|
|
2
|
+
{
|
|
3
|
+
"id": "pithy.ui-kit.cta-section",
|
|
4
|
+
"title": "<CTASection> Section Template",
|
|
5
|
+
"category": "feature"
|
|
6
|
+
}
|
|
7
|
+
*/
|
|
8
|
+
import type { SpacingSize } from '@pithyjs/design-system';
|
|
9
|
+
import { type SemanticColor } from '../../shared/types';
|
|
10
|
+
import { type ReactiveText } from '../../shared/clickable';
|
|
11
|
+
declare const CTA_VARIANTS: readonly ["centered", "inline"];
|
|
12
|
+
type CTAVariant = (typeof CTA_VARIANTS)[number];
|
|
13
|
+
/** @codexApi {"parent":"pithy.ui-kit.cta-section","name":"CTASectionProps","stability":"stable","signature":"interface CTASectionProps"} */
|
|
14
|
+
export interface CTASectionProps {
|
|
15
|
+
/** Small label above heading (e.g. "LIMITED TIME", "NEW") */
|
|
16
|
+
eyebrow?: ReactiveText;
|
|
17
|
+
/** CTA heading text */
|
|
18
|
+
heading: ReactiveText;
|
|
19
|
+
/** Heading level (default: 2) */
|
|
20
|
+
headingLevel?: number;
|
|
21
|
+
/** Supporting description */
|
|
22
|
+
description?: ReactiveText;
|
|
23
|
+
/** Color scheme for theming (default: "primary") */
|
|
24
|
+
color?: SemanticColor;
|
|
25
|
+
/** Layout variant (default: "centered") */
|
|
26
|
+
variant?: CTAVariant;
|
|
27
|
+
/** Vertical padding (default: "lg") */
|
|
28
|
+
spacing?: SpacingSize;
|
|
29
|
+
/** Optional anchor id */
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Call-to-action banner section with heading, description, and action buttons.
|
|
34
|
+
*
|
|
35
|
+
* Two variants: "centered" (stacked, text-centered) and "inline"
|
|
36
|
+
* (text and buttons side by side). Color prop sets a `data-color`
|
|
37
|
+
* attribute for theming. Children projected as CTA buttons.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```html
|
|
41
|
+
* <CTASection heading="'Ready to start?'" description="'Join thousands of developers'">
|
|
42
|
+
* <Button color="'primary'">Sign Up Free</Button>
|
|
43
|
+
* </CTASection>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
/** @codexApi {"parent":"pithy.ui-kit.cta-section","name":"CTASection","stability":"stable","signature":"(props: CTASectionProps) => { el: HTMLElement; destroy: () => void }"} */
|
|
47
|
+
export declare function CTASection({ eyebrow, heading, headingLevel: rawLevel, description, color: rawColor, variant: rawVariant, spacing: rawSpacing, id, }: CTASectionProps): {
|
|
48
|
+
el: HTMLElement;
|
|
49
|
+
destroy: () => void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=CTASection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CTASection.d.ts","sourceRoot":"","sources":["../../../src/sections/cta/CTASection.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAGF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAOzE,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAGhC,QAAA,MAAM,YAAY,iCAAkC,CAAC;AACrD,KAAK,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhD,4IAA4I;AAC5I,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,uBAAuB;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,oDAAoD;IACpD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,uCAAuC;IACvC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;GAaG;AACH,kLAAkL;AAClL,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,YAAY,EAAE,QAAY,EAC1B,WAAW,EACX,KAAK,EAAE,QAAoB,EAC3B,OAAO,EAAE,UAAuB,EAChC,OAAO,EAAE,UAAiB,EAC1B,EAAE,GACH,EAAE,eAAe,GAAG;IAAE,EAAE,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAkH5D"}
|