@helvetia-design/react 0.0.5 → 0.1.0-snapshot.332-ce68326
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/README.md +74 -0
- package/dist/generated/components.d.ts +78 -82
- package/dist/generated/components.js +186 -161
- package/dist/generated/components.server.d.ts +78 -78
- package/dist/generated/components.server.js +104 -88
- package/dist/hooks/use-modal.js +6 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<a href="https://helvetia-design.vercel.app" target="blank">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/helvetia-design/system/main/apps/storybook/src/assets/images/banner.svg?sanitize=true" alt="Helvetia Design System" />
|
|
3
|
+
</a>
|
|
4
|
+
|
|
5
|
+
Built with accessibility and simplicity in mind, the Helvetia Design System provides UI components and a clearly defined visual style for building web applications.
|
|
6
|
+
|
|
7
|
+
## Core Principles
|
|
8
|
+
|
|
9
|
+
- **Accessibility** — WCAG 2.2 AA compliant, keyboard navigation, screen reader support
|
|
10
|
+
- **Simplicity** — HTML → CSS → JavaScript approach, minimal complexity
|
|
11
|
+
- **Responsiveness** — Works seamlessly from 320px to 2560px viewports
|
|
12
|
+
- **Standards Compliance** — W3C best practices, modern web standards
|
|
13
|
+
- **Compatibility** — Browser support verified via webstatus.dev and caniuse.com
|
|
14
|
+
- **Inclusion** — Designed for diverse abilities and technologies
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
Install the core design system package via npm:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @helvetia-design/core
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then import the CSS and component loader in your application:
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<link rel="stylesheet" href="node_modules/@helvetia-design/styles/dist/css/design-system.css" />
|
|
28
|
+
<script type="module" src="node_modules/@helvetia-design/core/dist/design-system/design-system.esm.js"></script>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
For framework-specific integrations, see the [Quick Start guide](https://helvetia-design.vercel.app/?path=/docs/development-getting-started--documentation).
|
|
32
|
+
|
|
33
|
+
## Quick Start
|
|
34
|
+
|
|
35
|
+
Use any design system component in your HTML:
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<ds-button>Click me</ds-button>
|
|
39
|
+
<ds-card>
|
|
40
|
+
<ds-heading level="2">Welcome</ds-heading>
|
|
41
|
+
<p>Start building with the Helvetia Design System</p>
|
|
42
|
+
</ds-card>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Explore all available components, design tokens, and examples in the [component library](https://helvetia-design.vercel.app).
|
|
46
|
+
|
|
47
|
+
## Contributing
|
|
48
|
+
|
|
49
|
+
We welcome contributions! Please read our [CONTRIBUTING.md](https://github.com/helvetia-design/system/blob/main/CONTRIBUTING.md) guide to learn about:
|
|
50
|
+
|
|
51
|
+
- Reporting bugs and requesting features
|
|
52
|
+
- Development setup and workflow
|
|
53
|
+
- Creating new components
|
|
54
|
+
- Testing and code quality standards
|
|
55
|
+
- Semantic versioning and changesets
|
|
56
|
+
|
|
57
|
+
Follow our [Code of Conduct](https://github.com/helvetia-design/system/blob/main/CODE_OF_CONDUCT.md) for all interactions.
|
|
58
|
+
|
|
59
|
+
## Learn More
|
|
60
|
+
|
|
61
|
+
- **[Documentation](https://helvetia-design.vercel.app)** — Component library, design tokens, and interactive examples in Storybook
|
|
62
|
+
- **[Quick Start](https://helvetia-design.vercel.app/?path=/docs/development-getting-started--documentation)** — Get started with the design system in your project
|
|
63
|
+
- **[llms.txt](https://helvetia-design.vercel.app/llms.txt)** / **[llms-full.txt](https://helvetia-design.vercel.app/llms-full.txt)** — Machine-readable component API and usage docs for AI coding tools ([llmstxt.org](https://llmstxt.org))
|
|
64
|
+
- **[CHANGELOG.md](https://github.com/helvetia-design/system/blob/main/CHANGELOG.md)** — Release notes, version history, and changes for each version
|
|
65
|
+
- **[ARCHITECTURE.md](https://github.com/helvetia-design/system/blob/main/docs/ARCHITECTURE.md)** — System design, workspace structure, component lifecycle, web components patterns, CSS variables, testing strategy
|
|
66
|
+
- **[DEVELOPMENT.md](https://github.com/helvetia-design/system/blob/main/docs/DEVELOPMENT.md)** — Local setup, dev servers, building, testing, troubleshooting
|
|
67
|
+
- **[CONTRIBUTING.md](https://github.com/helvetia-design/system/blob/main/CONTRIBUTING.md)** — Contribution workflow, PR process, component checklist, accessibility requirements
|
|
68
|
+
- **[STYLE_GUIDE.md](https://github.com/helvetia-design/system/blob/main/docs/STYLE_GUIDE.md)** — Code standards, naming conventions, best practices
|
|
69
|
+
- **[SECURITY.md](https://github.com/helvetia-design/system/blob/main/SECURITY.md)** — Security policy, vulnerability reporting, and compliance guidelines
|
|
70
|
+
- **[CODE_OF_CONDUCT.md](https://github.com/helvetia-design/system/blob/main/CODE_OF_CONDUCT.md)** — Community standards and expectations
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
This project is licensed under the Apache License 2.0. See [LICENSE](https://github.com/helvetia-design/system/blob/main/LICENSE) for details.
|
|
@@ -1,85 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import { DsTextarea as DsTextareaElement } from "@helvetia-design/core/components/ds-textarea.js";
|
|
80
|
-
import { DsToast as DsToastElement } from "@helvetia-design/core/components/ds-toast.js";
|
|
81
|
-
import { DsToggle as DsToggleElement } from "@helvetia-design/core/components/ds-toggle.js";
|
|
82
|
-
import { DsTooltip as DsTooltipElement } from "@helvetia-design/core/components/ds-tooltip.js";
|
|
1
|
+
import type { Components } from '@helvetia-design/core/components';
|
|
2
|
+
import { DsAccordion as DsAccordionElement } from '@helvetia-design/core/components/ds-accordion.js';
|
|
3
|
+
import { DsAlertContainer as DsAlertContainerElement } from '@helvetia-design/core/components/ds-alert-container.js';
|
|
4
|
+
import { DsAppFooter as DsAppFooterElement } from '@helvetia-design/core/components/ds-app-footer.js';
|
|
5
|
+
import { DsAppNavbar as DsAppNavbarElement } from '@helvetia-design/core/components/ds-app-navbar.js';
|
|
6
|
+
import { DsBadge as DsBadgeElement } from '@helvetia-design/core/components/ds-badge.js';
|
|
7
|
+
import { DsBrandIcon as DsBrandIconElement } from '@helvetia-design/core/components/ds-brand-icon.js';
|
|
8
|
+
import { DsButton as DsButtonElement } from '@helvetia-design/core/components/ds-button.js';
|
|
9
|
+
import { DsButtonGroup as DsButtonGroupElement } from '@helvetia-design/core/components/ds-button-group.js';
|
|
10
|
+
import { DsCard as DsCardElement } from '@helvetia-design/core/components/ds-card.js';
|
|
11
|
+
import { DsCardActions as DsCardActionsElement } from '@helvetia-design/core/components/ds-card-actions.js';
|
|
12
|
+
import { DsCardContent as DsCardContentElement } from '@helvetia-design/core/components/ds-card-content.js';
|
|
13
|
+
import { DsCardHeader as DsCardHeaderElement } from '@helvetia-design/core/components/ds-card-header.js';
|
|
14
|
+
import { DsCardSubtitle as DsCardSubtitleElement } from '@helvetia-design/core/components/ds-card-subtitle.js';
|
|
15
|
+
import { DsCardTitle as DsCardTitleElement } from '@helvetia-design/core/components/ds-card-title.js';
|
|
16
|
+
import { DsCarousel as DsCarouselElement } from '@helvetia-design/core/components/ds-carousel.js';
|
|
17
|
+
import { DsCarouselItem as DsCarouselItemElement } from '@helvetia-design/core/components/ds-carousel-item.js';
|
|
18
|
+
import { DsCheckbox as DsCheckboxElement } from '@helvetia-design/core/components/ds-checkbox.js';
|
|
19
|
+
import { DsCheckboxGroup as DsCheckboxGroupElement } from '@helvetia-design/core/components/ds-checkbox-group.js';
|
|
20
|
+
import { DsClose as DsCloseElement } from '@helvetia-design/core/components/ds-close.js';
|
|
21
|
+
import { DsContent as DsContentElement } from '@helvetia-design/core/components/ds-content.js';
|
|
22
|
+
import { DsCounter as DsCounterElement } from '@helvetia-design/core/components/ds-counter.js';
|
|
23
|
+
import { DsData as DsDataElement } from '@helvetia-design/core/components/ds-data.js';
|
|
24
|
+
import { DsDataItem as DsDataItemElement } from '@helvetia-design/core/components/ds-data-item.js';
|
|
25
|
+
import { DsDataLabel as DsDataLabelElement } from '@helvetia-design/core/components/ds-data-label.js';
|
|
26
|
+
import { DsDataValue as DsDataValueElement } from '@helvetia-design/core/components/ds-data-value.js';
|
|
27
|
+
import { DsDatepicker as DsDatepickerElement } from '@helvetia-design/core/components/ds-datepicker.js';
|
|
28
|
+
import { DsDivider as DsDividerElement } from '@helvetia-design/core/components/ds-divider.js';
|
|
29
|
+
import { DsDrawer as DsDrawerElement } from '@helvetia-design/core/components/ds-drawer.js';
|
|
30
|
+
import { DsFileUpload as DsFileUploadElement } from '@helvetia-design/core/components/ds-file-upload.js';
|
|
31
|
+
import { DsHeading as DsHeadingElement } from '@helvetia-design/core/components/ds-heading.js';
|
|
32
|
+
import { DsHint as DsHintElement } from '@helvetia-design/core/components/ds-hint.js';
|
|
33
|
+
import { DsHintText as DsHintTextElement } from '@helvetia-design/core/components/ds-hint-text.js';
|
|
34
|
+
import { DsHintTitle as DsHintTitleElement } from '@helvetia-design/core/components/ds-hint-title.js';
|
|
35
|
+
import { DsIcon as DsIconElement } from '@helvetia-design/core/components/ds-icon.js';
|
|
36
|
+
import { DsInput as DsInputElement } from '@helvetia-design/core/components/ds-input.js';
|
|
37
|
+
import { DsItem as DsItemElement } from '@helvetia-design/core/components/ds-item.js';
|
|
38
|
+
import { DsLabel as DsLabelElement } from '@helvetia-design/core/components/ds-label.js';
|
|
39
|
+
import { DsList as DsListElement } from '@helvetia-design/core/components/ds-list.js';
|
|
40
|
+
import { DsLogo as DsLogoElement } from '@helvetia-design/core/components/ds-logo.js';
|
|
41
|
+
import { DsModal as DsModalElement } from '@helvetia-design/core/components/ds-modal.js';
|
|
42
|
+
import { DsModalBody as DsModalBodyElement } from '@helvetia-design/core/components/ds-modal-body.js';
|
|
43
|
+
import { DsModalHeader as DsModalHeaderElement } from '@helvetia-design/core/components/ds-modal-header.js';
|
|
44
|
+
import { DsNotification as DsNotificationElement } from '@helvetia-design/core/components/ds-notification.js';
|
|
45
|
+
import { DsNumberInput as DsNumberInputElement } from '@helvetia-design/core/components/ds-number-input.js';
|
|
46
|
+
import { DsPagination as DsPaginationElement } from '@helvetia-design/core/components/ds-pagination.js';
|
|
47
|
+
import { DsPhoneInput as DsPhoneInputElement } from '@helvetia-design/core/components/ds-phone-input.js';
|
|
48
|
+
import { DsPopup as DsPopupElement } from '@helvetia-design/core/components/ds-popup.js';
|
|
49
|
+
import { DsProgressBar as DsProgressBarElement } from '@helvetia-design/core/components/ds-progress-bar.js';
|
|
50
|
+
import { DsRadio as DsRadioElement } from '@helvetia-design/core/components/ds-radio.js';
|
|
51
|
+
import { DsRadioGroup as DsRadioGroupElement } from '@helvetia-design/core/components/ds-radio-group.js';
|
|
52
|
+
import { DsRoot as DsRootElement } from '@helvetia-design/core/components/ds-root.js';
|
|
53
|
+
import { DsSegment as DsSegmentElement } from '@helvetia-design/core/components/ds-segment.js';
|
|
54
|
+
import { DsSegmentItem as DsSegmentItemElement } from '@helvetia-design/core/components/ds-segment-item.js';
|
|
55
|
+
import { DsSelect as DsSelectElement } from '@helvetia-design/core/components/ds-select.js';
|
|
56
|
+
import { DsSelectOptgroup as DsSelectOptgroupElement } from '@helvetia-design/core/components/ds-select-optgroup.js';
|
|
57
|
+
import { DsSelectOption as DsSelectOptionElement } from '@helvetia-design/core/components/ds-select-option.js';
|
|
58
|
+
import { DsShape as DsShapeElement } from '@helvetia-design/core/components/ds-shape.js';
|
|
59
|
+
import { DsSheet as DsSheetElement } from '@helvetia-design/core/components/ds-sheet.js';
|
|
60
|
+
import { DsSlider as DsSliderElement } from '@helvetia-design/core/components/ds-slider.js';
|
|
61
|
+
import { DsSnackbar as DsSnackbarElement } from '@helvetia-design/core/components/ds-snackbar.js';
|
|
62
|
+
import { DsSpinner as DsSpinnerElement } from '@helvetia-design/core/components/ds-spinner.js';
|
|
63
|
+
import { DsStack as DsStackElement } from '@helvetia-design/core/components/ds-stack.js';
|
|
64
|
+
import { DsStep as DsStepElement } from '@helvetia-design/core/components/ds-step.js';
|
|
65
|
+
import { DsStepPanel as DsStepPanelElement } from '@helvetia-design/core/components/ds-step-panel.js';
|
|
66
|
+
import { DsSteps as DsStepsElement } from '@helvetia-design/core/components/ds-steps.js';
|
|
67
|
+
import { DsTab as DsTabElement } from '@helvetia-design/core/components/ds-tab.js';
|
|
68
|
+
import { DsTabPanel as DsTabPanelElement } from '@helvetia-design/core/components/ds-tab-panel.js';
|
|
69
|
+
import { DsTabs as DsTabsElement } from '@helvetia-design/core/components/ds-tabs.js';
|
|
70
|
+
import { DsTag as DsTagElement } from '@helvetia-design/core/components/ds-tag.js';
|
|
71
|
+
import { DsTagGroup as DsTagGroupElement } from '@helvetia-design/core/components/ds-tag-group.js';
|
|
72
|
+
import { DsText as DsTextElement } from '@helvetia-design/core/components/ds-text.js';
|
|
73
|
+
import { DsTextarea as DsTextareaElement } from '@helvetia-design/core/components/ds-textarea.js';
|
|
74
|
+
import { DsToast as DsToastElement } from '@helvetia-design/core/components/ds-toast.js';
|
|
75
|
+
import { DsToggle as DsToggleElement } from '@helvetia-design/core/components/ds-toggle.js';
|
|
76
|
+
import { DsTooltip as DsTooltipElement } from '@helvetia-design/core/components/ds-tooltip.js';
|
|
77
|
+
import type { AccordionToggleDetail, DsAccordionCustomEvent, AppFooterLanguageChangeDetail, DsAppFooterCustomEvent, DsAppNavbarCustomEvent, ButtonClickDetail, ButtonNavigateDetail, ButtonFocusDetail, ButtonBlurDetail, ButtonDidRenderDetail, DsButtonCustomEvent, CarouselChangeDetail, DsCarouselCustomEvent, DsCarouselItemCustomEvent, CheckboxFocusDetail, CheckboxBlurDetail, CheckboxChangeDetail, DsCheckboxCustomEvent, CheckboxGroupBlurDetail, CheckboxGroupChangeDetail, CheckboxGroupFocusDetail, DsCheckboxGroupCustomEvent, CounterInputDetail, CounterChangeDetail, CounterIncreaseDetail, CounterDecreaseDetail, CounterFocusDetail, CounterBlurDetail, DsCounterCustomEvent, DatepickerBlurDetail, DatepickerKeyPressDetail, DatepickerFocusDetail, DatepickerClickDetail, DatepickerInputDetail, DatepickerChangeDetail, DsDatepickerCustomEvent, DrawerPresentDetail, DrawerDismissDetail, DsDrawerCustomEvent, FileUploadChangeDetail, FileUploadFilesAddedDetail, FileUploadFilesRemovedDetail, FileUploadRejectedFileDetail, FileUploadInputClickDetail, FileUploadBlurDetail, FileUploadFocusDetail, DsFileUploadCustomEvent, InputBlurDetail, InputKeyPressDetail, InputFocusDetail, InputClickDetail, InputInputDetail, InputChangeDetail, DsInputCustomEvent, DsItemCustomEvent, ModalPresentDetail, ModalDismissDetail, DsModalCustomEvent, NotificationCloseClickDetail, DsNotificationCustomEvent, NumberInputInputDetail, NumberInputChangeDetail, NumberInputBlurDetail, NumberInputFocusDetail, NumberInputClickDetail, NumberInputKeyPressDetail, DsNumberInputCustomEvent, PaginationChangeDetail, DsPaginationCustomEvent, PhoneInputDetail, PhoneChangeDetail, PhoneCountryChangeDetail, DsPhoneInputCustomEvent, PopupPresentDetail, PopupDismissDetail, DsPopupCustomEvent, RadioBlurDetail, RadioChangeDetail, RadioFocusDetail, DsRadioCustomEvent, RadioGroupBlurDetail, RadioGroupChangeDetail, RadioGroupFocusDetail, DsRadioGroupCustomEvent, DsBrand, DsRegion, DsLanguage, DsIcons, DsLegalLinks, DsLegalText, DsSocialLinks, DsRootCustomEvent, SegmentBlurDetail, SegmentChangeDetail, SegmentFocusDetail, DsSegmentCustomEvent, DsSegmentItemCustomEvent, SelectChangeDetail, SelectFocusDetail, SelectBlurDetail, SelectClickDetail, DsSelectCustomEvent, SliderInputDetail, SliderFocusDetail, SliderBlurDetail, SliderClickDetail, SliderChangeDetail, DsSliderCustomEvent, SnackbarCloseClickDetail, SnackbarActionClickDetail, DsSnackbarCustomEvent, DsStepCustomEvent, StepsChangeDetail, DsStepsCustomEvent, DsTabCustomEvent, TabsChangeDetail, DsTabsCustomEvent, TagCloseClickDetail, DsTagCustomEvent, TextareaBlurDetail, TextareaChangeDetail, TextareaClickDetail, TextareaFocusDetail, TextareaInputDetail, TextareaKeyPressDetail, DsTextareaCustomEvent, ToastCloseClickDetail, ToastActionClickDetail, DsToastCustomEvent, ToggleBlurDetail, ToggleChangeDetail, ToggleFocusDetail, DsToggleCustomEvent, TooltipWillAnimateDetail, TooltipDidAnimateDetail, DsTooltipCustomEvent } from '@helvetia-design/core';
|
|
78
|
+
import type { StencilReactComponent, EventName } from '@stencil/react-output-target/runtime';
|
|
83
79
|
export type DsAccordionEvents = {
|
|
84
80
|
onDsToggle: EventName<DsAccordionCustomEvent<AccordionToggleDetail>>;
|
|
85
81
|
onDsOpened: EventName<DsAccordionCustomEvent<AccordionToggleDetail>>;
|