@itcenteratunihelsinki/huds-lib-react 0.8.44

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.
Files changed (29) hide show
  1. package/README.md +29 -0
  2. package/dist/index.js +190 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/react-component-lib/createComponent.js +65 -0
  5. package/dist/react-component-lib/createComponent.js.map +1 -0
  6. package/dist/react-component-lib/createOverlayComponent.js +103 -0
  7. package/dist/react-component-lib/createOverlayComponent.js.map +1 -0
  8. package/dist/react-component-lib/index.js +3 -0
  9. package/dist/react-component-lib/index.js.map +1 -0
  10. package/dist/react-component-lib/interfaces.js +2 -0
  11. package/dist/react-component-lib/interfaces.js.map +1 -0
  12. package/dist/react-component-lib/utils/attachProps.js +85 -0
  13. package/dist/react-component-lib/utils/attachProps.js.map +1 -0
  14. package/dist/react-component-lib/utils/case.js +7 -0
  15. package/dist/react-component-lib/utils/case.js.map +1 -0
  16. package/dist/react-component-lib/utils/dev.js +13 -0
  17. package/dist/react-component-lib/utils/dev.js.map +1 -0
  18. package/dist/react-component-lib/utils/index.js +33 -0
  19. package/dist/react-component-lib/utils/index.js.map +1 -0
  20. package/dist/types/index.d.ts +96 -0
  21. package/dist/types/react-component-lib/createComponent.d.ts +10 -0
  22. package/dist/types/react-component-lib/createOverlayComponent.d.ts +21 -0
  23. package/dist/types/react-component-lib/index.d.ts +2 -0
  24. package/dist/types/react-component-lib/interfaces.d.ts +29 -0
  25. package/dist/types/react-component-lib/utils/attachProps.d.ts +8 -0
  26. package/dist/types/react-component-lib/utils/case.d.ts +2 -0
  27. package/dist/types/react-component-lib/utils/dev.d.ts +2 -0
  28. package/dist/types/react-component-lib/utils/index.d.ts +10 -0
  29. package/package.json +47 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # HUDS react wrapper
2
+
3
+ This is a react package provided from [npm](https://www.npmjs.com/package/@itcenteratunihelsinki/huds-lib).
4
+
5
+ Install package with `yarn add @itcenteratunihelsinki/huds-lib-react`
6
+ After installing with `yarn install` you can easily use Huds components. See example below.
7
+
8
+ ## Example
9
+
10
+ ```js
11
+ import { HyQuote, HyHeading } from "@itcenteratunihelsinki/huds-lib-react";
12
+
13
+ export default function TestComponent() {
14
+ return (
15
+ <div>
16
+ <HyHeading>Test Component</HyHeading>
17
+ <HyQuote quote-signature="Lisa-John Down">
18
+ <p>
19
+ Lorem ipsum dolor sit <strong>amet</strong>, consectetur adipiscing
20
+ elit. Ut blandit neque nec dolor porttitor lacinia. Mauris porta mi
21
+ eget nibh rutrum gravida eu id nisl. Ut eget semper augue, sit amet
22
+ rutrum enim. Nullam finibus iaculis magna, nec vulputate tellus
23
+ accumsan non.
24
+ </p>
25
+ </HyQuote>
26
+ </div>
27
+ );
28
+ }
29
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,190 @@
1
+ import { createReactComponent } from "./react-component-lib";
2
+ import { defineCustomElement as defineColorBox } from "@itcenteratunihelsinki/huds-lib/components/color-box.js";
3
+ import { defineCustomElement as defineHyAccordionContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-accordion-container.js";
4
+ import { defineCustomElement as defineHyAccordionItem } from "@itcenteratunihelsinki/huds-lib/components/hy-accordion-item.js";
5
+ import { defineCustomElement as defineHyAdjacentImageText } from "@itcenteratunihelsinki/huds-lib/components/hy-adjacent-image-text.js";
6
+ import { defineCustomElement as defineHyAnchorLinkList } from "@itcenteratunihelsinki/huds-lib/components/hy-anchor-link-list.js";
7
+ import { defineCustomElement as defineHyBadge } from "@itcenteratunihelsinki/huds-lib/components/hy-badge.js";
8
+ import { defineCustomElement as defineHyBanner } from "@itcenteratunihelsinki/huds-lib/components/hy-banner.js";
9
+ import { defineCustomElement as defineHyBaseline } from "@itcenteratunihelsinki/huds-lib/components/hy-baseline.js";
10
+ import { defineCustomElement as defineHyBox } from "@itcenteratunihelsinki/huds-lib/components/hy-box.js";
11
+ import { defineCustomElement as defineHyBoxContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-box-container.js";
12
+ import { defineCustomElement as defineHyBreadcrumbs } from "@itcenteratunihelsinki/huds-lib/components/hy-breadcrumbs.js";
13
+ import { defineCustomElement as defineHyButton } from "@itcenteratunihelsinki/huds-lib/components/hy-button.js";
14
+ import { defineCustomElement as defineHyCheckbox } from "@itcenteratunihelsinki/huds-lib/components/hy-checkbox.js";
15
+ import { defineCustomElement as defineHyCollaboration } from "@itcenteratunihelsinki/huds-lib/components/hy-collaboration.js";
16
+ import { defineCustomElement as defineHyContentList } from "@itcenteratunihelsinki/huds-lib/components/hy-content-list.js";
17
+ import { defineCustomElement as defineHyContentListItem } from "@itcenteratunihelsinki/huds-lib/components/hy-content-list-item.js";
18
+ import { defineCustomElement as defineHyCrisisBanner } from "@itcenteratunihelsinki/huds-lib/components/hy-crisis-banner.js";
19
+ import { defineCustomElement as defineHyCtaButton } from "@itcenteratunihelsinki/huds-lib/components/hy-cta-button.js";
20
+ import { defineCustomElement as defineHyCtaLink } from "@itcenteratunihelsinki/huds-lib/components/hy-cta-link.js";
21
+ import { defineCustomElement as defineHyDocsContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-docs-container.js";
22
+ import { defineCustomElement as defineHyDropdown } from "@itcenteratunihelsinki/huds-lib/components/hy-dropdown.js";
23
+ import { defineCustomElement as defineHyDropdownPanel } from "@itcenteratunihelsinki/huds-lib/components/hy-dropdown-panel.js";
24
+ import { defineCustomElement as defineHyDropdownPanelItem } from "@itcenteratunihelsinki/huds-lib/components/hy-dropdown-panel-item.js";
25
+ import { defineCustomElement as defineHyEventItem } from "@itcenteratunihelsinki/huds-lib/components/hy-event-item.js";
26
+ import { defineCustomElement as defineHyEvents } from "@itcenteratunihelsinki/huds-lib/components/hy-events.js";
27
+ import { defineCustomElement as defineHyFilterGroup } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-group.js";
28
+ import { defineCustomElement as defineHyFilterGroupItem } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-group-item.js";
29
+ import { defineCustomElement as defineHyFilterListType } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-list-type.js";
30
+ import { defineCustomElement as defineHyFilterVisibilityTool } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-visibility-tool.js";
31
+ import { defineCustomElement as defineHyFilterVisibilityToolReset } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-visibility-tool-reset.js";
32
+ import { defineCustomElement as defineHyFilterVisibilityToolToggle } from "@itcenteratunihelsinki/huds-lib/components/hy-filter-visibility-tool-toggle.js";
33
+ import { defineCustomElement as defineHyFooter } from "@itcenteratunihelsinki/huds-lib/components/hy-footer.js";
34
+ import { defineCustomElement as defineHyFooterAction } from "@itcenteratunihelsinki/huds-lib/components/hy-footer-action.js";
35
+ import { defineCustomElement as defineHyFooterBase } from "@itcenteratunihelsinki/huds-lib/components/hy-footer-base.js";
36
+ import { defineCustomElement as defineHyFooterInfo } from "@itcenteratunihelsinki/huds-lib/components/hy-footer-info.js";
37
+ import { defineCustomElement as defineHyFooterLinkItem } from "@itcenteratunihelsinki/huds-lib/components/hy-footer-link-item.js";
38
+ import { defineCustomElement as defineHyGeneralList } from "@itcenteratunihelsinki/huds-lib/components/hy-general-list.js";
39
+ import { defineCustomElement as defineHyGeneralListItem } from "@itcenteratunihelsinki/huds-lib/components/hy-general-list-item.js";
40
+ import { defineCustomElement as defineHyGridContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-grid-container.js";
41
+ import { defineCustomElement as defineHyGridItem } from "@itcenteratunihelsinki/huds-lib/components/hy-grid-item.js";
42
+ import { defineCustomElement as defineHyGridRow } from "@itcenteratunihelsinki/huds-lib/components/hy-grid-row.js";
43
+ import { defineCustomElement as defineHyHeading } from "@itcenteratunihelsinki/huds-lib/components/hy-heading.js";
44
+ import { defineCustomElement as defineHyHero } from "@itcenteratunihelsinki/huds-lib/components/hy-hero.js";
45
+ import { defineCustomElement as defineHyHeroCarousel } from "@itcenteratunihelsinki/huds-lib/components/hy-hero-carousel.js";
46
+ import { defineCustomElement as defineHyIcon } from "@itcenteratunihelsinki/huds-lib/components/hy-icon.js";
47
+ import { defineCustomElement as defineHyImage } from "@itcenteratunihelsinki/huds-lib/components/hy-image.js";
48
+ import { defineCustomElement as defineHyIngress } from "@itcenteratunihelsinki/huds-lib/components/hy-ingress.js";
49
+ import { defineCustomElement as defineHyIntroduction } from "@itcenteratunihelsinki/huds-lib/components/hy-introduction.js";
50
+ import { defineCustomElement as defineHyKeyFigure } from "@itcenteratunihelsinki/huds-lib/components/hy-key-figure.js";
51
+ import { defineCustomElement as defineHyKeyFigureGroup } from "@itcenteratunihelsinki/huds-lib/components/hy-key-figure-group.js";
52
+ import { defineCustomElement as defineHyKeyHighlight } from "@itcenteratunihelsinki/huds-lib/components/hy-key-highlight.js";
53
+ import { defineCustomElement as defineHyKeyHighlightGroup } from "@itcenteratunihelsinki/huds-lib/components/hy-key-highlight-group.js";
54
+ import { defineCustomElement as defineHyLargeProcessFlow } from "@itcenteratunihelsinki/huds-lib/components/hy-large-process-flow.js";
55
+ import { defineCustomElement as defineHyLargeProcessFlowPhase } from "@itcenteratunihelsinki/huds-lib/components/hy-large-process-flow-phase.js";
56
+ import { defineCustomElement as defineHyLink } from "@itcenteratunihelsinki/huds-lib/components/hy-link.js";
57
+ import { defineCustomElement as defineHyLinkBox } from "@itcenteratunihelsinki/huds-lib/components/hy-link-box.js";
58
+ import { defineCustomElement as defineHyLinkBoxList } from "@itcenteratunihelsinki/huds-lib/components/hy-link-box-list.js";
59
+ import { defineCustomElement as defineHyLinkList } from "@itcenteratunihelsinki/huds-lib/components/hy-link-list.js";
60
+ import { defineCustomElement as defineHyListItem } from "@itcenteratunihelsinki/huds-lib/components/hy-list-item.js";
61
+ import { defineCustomElement as defineHyLogoGrid } from "@itcenteratunihelsinki/huds-lib/components/hy-logo-grid.js";
62
+ import { defineCustomElement as defineHyLogoGridItem } from "@itcenteratunihelsinki/huds-lib/components/hy-logo-grid-item.js";
63
+ import { defineCustomElement as defineHyMain } from "@itcenteratunihelsinki/huds-lib/components/hy-main.js";
64
+ import { defineCustomElement as defineHyMainContentWrapper } from "@itcenteratunihelsinki/huds-lib/components/hy-main-content-wrapper.js";
65
+ import { defineCustomElement as defineHyMenuLanguage } from "@itcenteratunihelsinki/huds-lib/components/hy-menu-language.js";
66
+ import { defineCustomElement as defineHyMenuLanguageItem } from "@itcenteratunihelsinki/huds-lib/components/hy-menu-language-item.js";
67
+ import { defineCustomElement as defineHyMenuMainGroup } from "@itcenteratunihelsinki/huds-lib/components/hy-menu-main-group.js";
68
+ import { defineCustomElement as defineHyOpeningHours } from "@itcenteratunihelsinki/huds-lib/components/hy-opening-hours.js";
69
+ import { defineCustomElement as defineHyOpeningHoursContent } from "@itcenteratunihelsinki/huds-lib/components/hy-opening-hours-content.js";
70
+ import { defineCustomElement as defineHyPager } from "@itcenteratunihelsinki/huds-lib/components/hy-pager.js";
71
+ import { defineCustomElement as defineHyPagerItem } from "@itcenteratunihelsinki/huds-lib/components/hy-pager-item.js";
72
+ import { defineCustomElement as defineHyParagraphText } from "@itcenteratunihelsinki/huds-lib/components/hy-paragraph-text.js";
73
+ import { defineCustomElement as defineHyPersonCard } from "@itcenteratunihelsinki/huds-lib/components/hy-person-card.js";
74
+ import { defineCustomElement as defineHyPersonProfile } from "@itcenteratunihelsinki/huds-lib/components/hy-person-profile.js";
75
+ import { defineCustomElement as defineHyPersonProfileListing } from "@itcenteratunihelsinki/huds-lib/components/hy-person-profile-listing.js";
76
+ import { defineCustomElement as defineHyProcess } from "@itcenteratunihelsinki/huds-lib/components/hy-process.js";
77
+ import { defineCustomElement as defineHyProcessFlowBox } from "@itcenteratunihelsinki/huds-lib/components/hy-process-flow-box.js";
78
+ import { defineCustomElement as defineHyProminentImage } from "@itcenteratunihelsinki/huds-lib/components/hy-prominent-image.js";
79
+ import { defineCustomElement as defineHyQuote } from "@itcenteratunihelsinki/huds-lib/components/hy-quote.js";
80
+ import { defineCustomElement as defineHyRow } from "@itcenteratunihelsinki/huds-lib/components/hy-row.js";
81
+ import { defineCustomElement as defineHySearchField } from "@itcenteratunihelsinki/huds-lib/components/hy-search-field.js";
82
+ import { defineCustomElement as defineHySectionContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-section-container.js";
83
+ import { defineCustomElement as defineHyShortcuts } from "@itcenteratunihelsinki/huds-lib/components/hy-shortcuts.js";
84
+ import { defineCustomElement as defineHySiteHeader } from "@itcenteratunihelsinki/huds-lib/components/hy-site-header.js";
85
+ import { defineCustomElement as defineHySiteLogo } from "@itcenteratunihelsinki/huds-lib/components/hy-site-logo.js";
86
+ import { defineCustomElement as defineHySiteSearch } from "@itcenteratunihelsinki/huds-lib/components/hy-site-search.js";
87
+ import { defineCustomElement as defineHyTableContainer } from "@itcenteratunihelsinki/huds-lib/components/hy-table-container.js";
88
+ import { defineCustomElement as defineHyTabs } from "@itcenteratunihelsinki/huds-lib/components/hy-tabs.js";
89
+ import { defineCustomElement as defineHyTabsItem } from "@itcenteratunihelsinki/huds-lib/components/hy-tabs-item.js";
90
+ import { defineCustomElement as defineHyTag } from "@itcenteratunihelsinki/huds-lib/components/hy-tag.js";
91
+ import { defineCustomElement as defineHyTinyText } from "@itcenteratunihelsinki/huds-lib/components/hy-tiny-text.js";
92
+ import { defineCustomElement as defineHyTwitterFeed } from "@itcenteratunihelsinki/huds-lib/components/hy-twitter-feed.js";
93
+ import { defineCustomElement as defineHyTwoColumns } from "@itcenteratunihelsinki/huds-lib/components/hy-two-columns.js";
94
+ import { defineCustomElement as defineHyUserLoginForm } from "@itcenteratunihelsinki/huds-lib/components/hy-user-login-form.js";
95
+ import { defineCustomElement as defineHyVideo } from "@itcenteratunihelsinki/huds-lib/components/hy-video.js";
96
+ export const ColorBox = createReactComponent("color-box", undefined, undefined, defineColorBox);
97
+ export const HyAccordionContainer = createReactComponent("hy-accordion-container", undefined, undefined, defineHyAccordionContainer);
98
+ export const HyAccordionItem = createReactComponent("hy-accordion-item", undefined, undefined, defineHyAccordionItem);
99
+ export const HyAdjacentImageText = createReactComponent("hy-adjacent-image-text", undefined, undefined, defineHyAdjacentImageText);
100
+ export const HyAnchorLinkList = createReactComponent("hy-anchor-link-list", undefined, undefined, defineHyAnchorLinkList);
101
+ export const HyBadge = createReactComponent("hy-badge", undefined, undefined, defineHyBadge);
102
+ export const HyBanner = createReactComponent("hy-banner", undefined, undefined, defineHyBanner);
103
+ export const HyBaseline = createReactComponent("hy-baseline", undefined, undefined, defineHyBaseline);
104
+ export const HyBox = createReactComponent("hy-box", undefined, undefined, defineHyBox);
105
+ export const HyBoxContainer = createReactComponent("hy-box-container", undefined, undefined, defineHyBoxContainer);
106
+ export const HyBreadcrumbs = createReactComponent("hy-breadcrumbs", undefined, undefined, defineHyBreadcrumbs);
107
+ export const HyButton = createReactComponent("hy-button", undefined, undefined, defineHyButton);
108
+ export const HyCheckbox = createReactComponent("hy-checkbox", undefined, undefined, defineHyCheckbox);
109
+ export const HyCollaboration = createReactComponent("hy-collaboration", undefined, undefined, defineHyCollaboration);
110
+ export const HyContentList = createReactComponent("hy-content-list", undefined, undefined, defineHyContentList);
111
+ export const HyContentListItem = createReactComponent("hy-content-list-item", undefined, undefined, defineHyContentListItem);
112
+ export const HyCrisisBanner = createReactComponent("hy-crisis-banner", undefined, undefined, defineHyCrisisBanner);
113
+ export const HyCtaButton = createReactComponent("hy-cta-button", undefined, undefined, defineHyCtaButton);
114
+ export const HyCtaLink = createReactComponent("hy-cta-link", undefined, undefined, defineHyCtaLink);
115
+ export const HyDocsContainer = createReactComponent("hy-docs-container", undefined, undefined, defineHyDocsContainer);
116
+ export const HyDropdown = createReactComponent("hy-dropdown", undefined, undefined, defineHyDropdown);
117
+ export const HyDropdownPanel = createReactComponent("hy-dropdown-panel", undefined, undefined, defineHyDropdownPanel);
118
+ export const HyDropdownPanelItem = createReactComponent("hy-dropdown-panel-item", undefined, undefined, defineHyDropdownPanelItem);
119
+ export const HyEventItem = createReactComponent("hy-event-item", undefined, undefined, defineHyEventItem);
120
+ export const HyEvents = createReactComponent("hy-events", undefined, undefined, defineHyEvents);
121
+ export const HyFilterGroup = createReactComponent("hy-filter-group", undefined, undefined, defineHyFilterGroup);
122
+ export const HyFilterGroupItem = createReactComponent("hy-filter-group-item", undefined, undefined, defineHyFilterGroupItem);
123
+ export const HyFilterListType = createReactComponent("hy-filter-list-type", undefined, undefined, defineHyFilterListType);
124
+ export const HyFilterVisibilityTool = createReactComponent("hy-filter-visibility-tool", undefined, undefined, defineHyFilterVisibilityTool);
125
+ export const HyFilterVisibilityToolReset = createReactComponent("hy-filter-visibility-tool-reset", undefined, undefined, defineHyFilterVisibilityToolReset);
126
+ export const HyFilterVisibilityToolToggle = createReactComponent("hy-filter-visibility-tool-toggle", undefined, undefined, defineHyFilterVisibilityToolToggle);
127
+ export const HyFooter = createReactComponent("hy-footer", undefined, undefined, defineHyFooter);
128
+ export const HyFooterAction = createReactComponent("hy-footer-action", undefined, undefined, defineHyFooterAction);
129
+ export const HyFooterBase = createReactComponent("hy-footer-base", undefined, undefined, defineHyFooterBase);
130
+ export const HyFooterInfo = createReactComponent("hy-footer-info", undefined, undefined, defineHyFooterInfo);
131
+ export const HyFooterLinkItem = createReactComponent("hy-footer-link-item", undefined, undefined, defineHyFooterLinkItem);
132
+ export const HyGeneralList = createReactComponent("hy-general-list", undefined, undefined, defineHyGeneralList);
133
+ export const HyGeneralListItem = createReactComponent("hy-general-list-item", undefined, undefined, defineHyGeneralListItem);
134
+ export const HyGridContainer = createReactComponent("hy-grid-container", undefined, undefined, defineHyGridContainer);
135
+ export const HyGridItem = createReactComponent("hy-grid-item", undefined, undefined, defineHyGridItem);
136
+ export const HyGridRow = createReactComponent("hy-grid-row", undefined, undefined, defineHyGridRow);
137
+ export const HyHeading = createReactComponent("hy-heading", undefined, undefined, defineHyHeading);
138
+ export const HyHero = createReactComponent("hy-hero", undefined, undefined, defineHyHero);
139
+ export const HyHeroCarousel = createReactComponent("hy-hero-carousel", undefined, undefined, defineHyHeroCarousel);
140
+ export const HyIcon = createReactComponent("hy-icon", undefined, undefined, defineHyIcon);
141
+ export const HyImage = createReactComponent("hy-image", undefined, undefined, defineHyImage);
142
+ export const HyIngress = createReactComponent("hy-ingress", undefined, undefined, defineHyIngress);
143
+ export const HyIntroduction = createReactComponent("hy-introduction", undefined, undefined, defineHyIntroduction);
144
+ export const HyKeyFigure = createReactComponent("hy-key-figure", undefined, undefined, defineHyKeyFigure);
145
+ export const HyKeyFigureGroup = createReactComponent("hy-key-figure-group", undefined, undefined, defineHyKeyFigureGroup);
146
+ export const HyKeyHighlight = createReactComponent("hy-key-highlight", undefined, undefined, defineHyKeyHighlight);
147
+ export const HyKeyHighlightGroup = createReactComponent("hy-key-highlight-group", undefined, undefined, defineHyKeyHighlightGroup);
148
+ export const HyLargeProcessFlow = createReactComponent("hy-large-process-flow", undefined, undefined, defineHyLargeProcessFlow);
149
+ export const HyLargeProcessFlowPhase = createReactComponent("hy-large-process-flow-phase", undefined, undefined, defineHyLargeProcessFlowPhase);
150
+ export const HyLink = createReactComponent("hy-link", undefined, undefined, defineHyLink);
151
+ export const HyLinkBox = createReactComponent("hy-link-box", undefined, undefined, defineHyLinkBox);
152
+ export const HyLinkBoxList = createReactComponent("hy-link-box-list", undefined, undefined, defineHyLinkBoxList);
153
+ export const HyLinkList = createReactComponent("hy-link-list", undefined, undefined, defineHyLinkList);
154
+ export const HyListItem = createReactComponent("hy-list-item", undefined, undefined, defineHyListItem);
155
+ export const HyLogoGrid = createReactComponent("hy-logo-grid", undefined, undefined, defineHyLogoGrid);
156
+ export const HyLogoGridItem = createReactComponent("hy-logo-grid-item", undefined, undefined, defineHyLogoGridItem);
157
+ export const HyMain = createReactComponent("hy-main", undefined, undefined, defineHyMain);
158
+ export const HyMainContentWrapper = createReactComponent("hy-main-content-wrapper", undefined, undefined, defineHyMainContentWrapper);
159
+ export const HyMenuLanguage = createReactComponent("hy-menu-language", undefined, undefined, defineHyMenuLanguage);
160
+ export const HyMenuLanguageItem = createReactComponent("hy-menu-language-item", undefined, undefined, defineHyMenuLanguageItem);
161
+ export const HyMenuMainGroup = createReactComponent("hy-menu-main-group", undefined, undefined, defineHyMenuMainGroup);
162
+ export const HyOpeningHours = createReactComponent("hy-opening-hours", undefined, undefined, defineHyOpeningHours);
163
+ export const HyOpeningHoursContent = createReactComponent("hy-opening-hours-content", undefined, undefined, defineHyOpeningHoursContent);
164
+ export const HyPager = createReactComponent("hy-pager", undefined, undefined, defineHyPager);
165
+ export const HyPagerItem = createReactComponent("hy-pager-item", undefined, undefined, defineHyPagerItem);
166
+ export const HyParagraphText = createReactComponent("hy-paragraph-text", undefined, undefined, defineHyParagraphText);
167
+ export const HyPersonCard = createReactComponent("hy-person-card", undefined, undefined, defineHyPersonCard);
168
+ export const HyPersonProfile = createReactComponent("hy-person-profile", undefined, undefined, defineHyPersonProfile);
169
+ export const HyPersonProfileListing = createReactComponent("hy-person-profile-listing", undefined, undefined, defineHyPersonProfileListing);
170
+ export const HyProcess = createReactComponent("hy-process", undefined, undefined, defineHyProcess);
171
+ export const HyProcessFlowBox = createReactComponent("hy-process-flow-box", undefined, undefined, defineHyProcessFlowBox);
172
+ export const HyProminentImage = createReactComponent("hy-prominent-image", undefined, undefined, defineHyProminentImage);
173
+ export const HyQuote = createReactComponent("hy-quote", undefined, undefined, defineHyQuote);
174
+ export const HyRow = createReactComponent("hy-row", undefined, undefined, defineHyRow);
175
+ export const HySearchField = createReactComponent("hy-search-field", undefined, undefined, defineHySearchField);
176
+ export const HySectionContainer = createReactComponent("hy-section-container", undefined, undefined, defineHySectionContainer);
177
+ export const HyShortcuts = createReactComponent("hy-shortcuts", undefined, undefined, defineHyShortcuts);
178
+ export const HySiteHeader = createReactComponent("hy-site-header", undefined, undefined, defineHySiteHeader);
179
+ export const HySiteLogo = createReactComponent("hy-site-logo", undefined, undefined, defineHySiteLogo);
180
+ export const HySiteSearch = createReactComponent("hy-site-search", undefined, undefined, defineHySiteSearch);
181
+ export const HyTableContainer = createReactComponent("hy-table-container", undefined, undefined, defineHyTableContainer);
182
+ export const HyTabs = createReactComponent("hy-tabs", undefined, undefined, defineHyTabs);
183
+ export const HyTabsItem = createReactComponent("hy-tabs-item", undefined, undefined, defineHyTabsItem);
184
+ export const HyTag = createReactComponent("hy-tag", undefined, undefined, defineHyTag);
185
+ export const HyTinyText = createReactComponent("hy-tiny-text", undefined, undefined, defineHyTinyText);
186
+ export const HyTwitterFeed = createReactComponent("hy-twitter-feed", undefined, undefined, defineHyTwitterFeed);
187
+ export const HyTwoColumns = createReactComponent("hy-two-columns", undefined, undefined, defineHyTwoColumns);
188
+ export const HyUserLoginForm = createReactComponent("hy-user-login-form", undefined, undefined, defineHyUserLoginForm);
189
+ export const HyVideo = createReactComponent("hy-video", undefined, undefined, defineHyVideo);
190
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/components/stencil-generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,mBAAmB,IAAI,cAAc,EAAE,MAAM,yDAAyD,CAAC;AAChH,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AACzI,OAAO,EAAE,mBAAmB,IAAI,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAC/H,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,sEAAsE,CAAC;AACxI,OAAO,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAClI,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAE,MAAM,wDAAwD,CAAC;AAC9G,OAAO,EAAE,mBAAmB,IAAI,cAAc,EAAE,MAAM,yDAAyD,CAAC;AAChH,OAAO,EAAE,mBAAmB,IAAI,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AACpH,OAAO,EAAE,mBAAmB,IAAI,WAAW,EAAE,MAAM,sD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AAoB,CAG/D,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,OAAO,GAAiB,oBAAoB,CAGvD,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC"}
@@ -0,0 +1,65 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { createElement } from "react";
13
+ import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs, } from "./utils";
14
+ export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
15
+ if (defineCustomElement !== undefined) {
16
+ defineCustomElement();
17
+ }
18
+ const displayName = dashToPascalCase(tagName);
19
+ const ReactComponent = class extends React.Component {
20
+ constructor(props) {
21
+ super(props);
22
+ this.setComponentElRef = (element) => {
23
+ this.componentEl = element;
24
+ };
25
+ }
26
+ componentDidMount() {
27
+ this.componentDidUpdate(this.props);
28
+ }
29
+ componentDidUpdate(prevProps) {
30
+ attachProps(this.componentEl, this.props, prevProps);
31
+ }
32
+ render() {
33
+ const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
34
+ let propsToPass = Object.keys(cProps).reduce((acc, name) => {
35
+ const value = cProps[name];
36
+ if (name.indexOf("on") === 0 && name[2] === name[2].toUpperCase()) {
37
+ const eventName = name.substring(2).toLowerCase();
38
+ if (typeof document !== "undefined" && isCoveredByReact(eventName)) {
39
+ acc[name] = value;
40
+ }
41
+ }
42
+ else {
43
+ const type = typeof value;
44
+ if (type === "string" || type === "boolean" || type === "number") {
45
+ acc[camelToDashCase(name)] = value;
46
+ }
47
+ }
48
+ return acc;
49
+ }, {});
50
+ if (manipulatePropsFunction) {
51
+ propsToPass = manipulatePropsFunction(this.props, propsToPass);
52
+ }
53
+ const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });
54
+ return createElement(tagName, newProps, children);
55
+ }
56
+ static get displayName() {
57
+ return displayName;
58
+ }
59
+ };
60
+ if (ReactComponentContext) {
61
+ ReactComponent.contextType = ReactComponentContext;
62
+ }
63
+ return createForwardRef(ReactComponent, displayName);
64
+ };
65
+ //# sourceMappingURL=createComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/createComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAYjB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAMlC,OAAe,EACf,qBAAuD,EACvD,uBAGuB,EACvB,mBAAgC,EAChC,EAAE;IACF,IAAI,mBAAmB,KAAK,SAAS,EAAE;QACrC,mBAAmB,EAAE,CAAC;KACvB;IAED,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,KAAM,SAAQ,KAAK,CAAC,SAE1C;QAOC,YAAY,KAA6C;YACvD,KAAK,CAAC,KAAK,CAAC,CAAC;YALf,sBAAiB,GAAG,CAAC,OAAoB,EAAE,EAAE;gBAC3C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;YAC7B,CAAC,CAAC;QAIF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,GAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;aAChE;YAED,MAAM,QAAQ,mCAIT,WAAW,KACd,GAAG,EAAE,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,EACpD,KAAK,GACN,CAAC;YASF,OAAO,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,KAAK,WAAW;YACpB,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAGF,IAAI,qBAAqB,EAAE;QACzB,cAAc,CAAC,WAAW,GAAG,qBAAqB,CAAC;KACpD;IAED,OAAO,gBAAgB,CAAwB,cAAc,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC,CAAC"}
@@ -0,0 +1,103 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __rest = (this && this.__rest) || function (s, e) {
11
+ var t = {};
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
+ t[p] = s[p];
14
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
+ t[p[i]] = s[p[i]];
18
+ }
19
+ return t;
20
+ };
21
+ import React from "react";
22
+ import ReactDOM from "react-dom";
23
+ import { attachProps, dashToPascalCase, defineCustomElement, setRef, } from "./utils";
24
+ export const createOverlayComponent = (tagName, controller, customElement) => {
25
+ defineCustomElement(tagName, customElement);
26
+ const displayName = dashToPascalCase(tagName);
27
+ const didDismissEventName = `on${displayName}DidDismiss`;
28
+ const didPresentEventName = `on${displayName}DidPresent`;
29
+ const willDismissEventName = `on${displayName}WillDismiss`;
30
+ const willPresentEventName = `on${displayName}WillPresent`;
31
+ let isDismissing = false;
32
+ class Overlay extends React.Component {
33
+ constructor(props) {
34
+ super(props);
35
+ if (typeof document !== "undefined") {
36
+ this.el = document.createElement("div");
37
+ }
38
+ this.handleDismiss = this.handleDismiss.bind(this);
39
+ }
40
+ static get displayName() {
41
+ return displayName;
42
+ }
43
+ componentDidMount() {
44
+ if (this.props.isOpen) {
45
+ this.present();
46
+ }
47
+ }
48
+ componentWillUnmount() {
49
+ if (this.overlay) {
50
+ this.overlay.dismiss();
51
+ }
52
+ }
53
+ handleDismiss(event) {
54
+ if (this.props.onDidDismiss) {
55
+ this.props.onDidDismiss(event);
56
+ }
57
+ setRef(this.props.forwardedRef, null);
58
+ }
59
+ shouldComponentUpdate(nextProps) {
60
+ if (this.overlay &&
61
+ nextProps.isOpen !== this.props.isOpen &&
62
+ nextProps.isOpen === false) {
63
+ isDismissing = true;
64
+ }
65
+ return true;
66
+ }
67
+ componentDidUpdate(prevProps) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ if (this.overlay) {
70
+ attachProps(this.overlay, this.props, prevProps);
71
+ }
72
+ if (prevProps.isOpen !== this.props.isOpen &&
73
+ this.props.isOpen === true) {
74
+ this.present(prevProps);
75
+ }
76
+ if (this.overlay &&
77
+ prevProps.isOpen !== this.props.isOpen &&
78
+ this.props.isOpen === false) {
79
+ yield this.overlay.dismiss();
80
+ isDismissing = false;
81
+ this.forceUpdate();
82
+ }
83
+ });
84
+ }
85
+ present(prevProps) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const _a = this.props, { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent } = _a, cProps = __rest(_a, ["children", "isOpen", "onDidDismiss", "onDidPresent", "onWillDismiss", "onWillPresent"]);
88
+ const elementProps = Object.assign(Object.assign({}, cProps), { ref: this.props.forwardedRef, [didDismissEventName]: this.handleDismiss, [didPresentEventName]: (e) => this.props.onDidPresent && this.props.onDidPresent(e), [willDismissEventName]: (e) => this.props.onWillDismiss && this.props.onWillDismiss(e), [willPresentEventName]: (e) => this.props.onWillPresent && this.props.onWillPresent(e) });
89
+ this.overlay = yield controller.create(Object.assign(Object.assign({}, elementProps), { component: this.el, componentProps: {} }));
90
+ setRef(this.props.forwardedRef, this.overlay);
91
+ attachProps(this.overlay, elementProps, prevProps);
92
+ yield this.overlay.present();
93
+ });
94
+ }
95
+ render() {
96
+ return ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
97
+ }
98
+ }
99
+ return React.forwardRef((props, ref) => {
100
+ return React.createElement(Overlay, Object.assign({}, props, { forwardedRef: ref }));
101
+ });
102
+ };
103
+ //# sourceMappingURL=createOverlayComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AAGjC,OAAO,EAEL,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,GACP,MAAM,SAAS,CAAC;AAgBjB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAIpC,OAAe,EACf,UAA8D,EAC9D,aAAmB,EACnB,EAAE;IACF,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,mBAAmB,GAAG,KAAK,WAAW,YAAY,CAAC;IACzD,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,CAAC,CAAC,CAAC,EACzD,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAc,EAAE,EAAE,CACzC,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAC1D,CAAC;gBAEF,IAAI,CAAC,OAAO,GAAG,MAAM,UAAU,CAAC,MAAM,iCACjC,YAAY,KACf,SAAS,EAAE,IAAI,CAAC,EAAE,EAClB,cAAc,EAAE,EAAE,IAClB,CAAC;gBAEH,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC9C,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;gBAEnD,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YAC/B,CAAC;SAAA;QAED,MAAM;YAMJ,OAAO,QAAQ,CAAC,YAAY,CAC1B,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC9D,IAAI,CAAC,EAAE,CACR,CAAC;QACJ,CAAC;KACF;IAED,OAAO,KAAK,CAAC,UAAU,CAAqB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACzD,OAAO,oBAAC,OAAO,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createReactComponent } from "./createComponent";
2
+ export { createOverlayComponent } from "./createOverlayComponent";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,85 @@
1
+ import { camelToDashCase } from "./case";
2
+ export const attachProps = (node, newProps, oldProps = {}) => {
3
+ if (node instanceof Element) {
4
+ const className = getClassName(node.classList, newProps, oldProps);
5
+ if (className !== "") {
6
+ node.className = className;
7
+ }
8
+ Object.keys(newProps).forEach((name) => {
9
+ if (name === "children" ||
10
+ name === "style" ||
11
+ name === "ref" ||
12
+ name === "class" ||
13
+ name === "className" ||
14
+ name === "forwardedRef") {
15
+ return;
16
+ }
17
+ if (name.indexOf("on") === 0 && name[2] === name[2].toUpperCase()) {
18
+ const eventName = name.substring(2);
19
+ const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
20
+ if (!isCoveredByReact(eventNameLc)) {
21
+ syncEvent(node, eventNameLc, newProps[name]);
22
+ }
23
+ }
24
+ else {
25
+ node[name] = newProps[name];
26
+ const propType = typeof newProps[name];
27
+ if (propType === "string") {
28
+ node.setAttribute(camelToDashCase(name), newProps[name]);
29
+ }
30
+ }
31
+ });
32
+ }
33
+ };
34
+ export const getClassName = (classList, newProps, oldProps) => {
35
+ const newClassProp = newProps.className || newProps.class;
36
+ const oldClassProp = oldProps.className || oldProps.class;
37
+ const currentClasses = arrayToMap(classList);
38
+ const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(" ") : []);
39
+ const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(" ") : []);
40
+ const finalClassNames = [];
41
+ currentClasses.forEach((currentClass) => {
42
+ if (incomingPropClasses.has(currentClass)) {
43
+ finalClassNames.push(currentClass);
44
+ incomingPropClasses.delete(currentClass);
45
+ }
46
+ else if (!oldPropClasses.has(currentClass)) {
47
+ finalClassNames.push(currentClass);
48
+ }
49
+ });
50
+ incomingPropClasses.forEach((s) => finalClassNames.push(s));
51
+ return finalClassNames.join(" ");
52
+ };
53
+ export const isCoveredByReact = (eventNameSuffix) => {
54
+ if (typeof document === "undefined") {
55
+ return true;
56
+ }
57
+ else {
58
+ const eventName = "on" + eventNameSuffix;
59
+ let isSupported = eventName in document;
60
+ if (!isSupported) {
61
+ const element = document.createElement("div");
62
+ element.setAttribute(eventName, "return;");
63
+ isSupported = typeof element[eventName] === "function";
64
+ }
65
+ return isSupported;
66
+ }
67
+ };
68
+ export const syncEvent = (node, eventName, newEventHandler) => {
69
+ const eventStore = node.__events || (node.__events = {});
70
+ const oldEventHandler = eventStore[eventName];
71
+ if (oldEventHandler) {
72
+ node.removeEventListener(eventName, oldEventHandler);
73
+ }
74
+ node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
75
+ if (newEventHandler) {
76
+ newEventHandler.call(this, e);
77
+ }
78
+ }));
79
+ };
80
+ const arrayToMap = (arr) => {
81
+ const map = new Map();
82
+ arr.forEach((s) => map.set(s, s));
83
+ return map;
84
+ };
85
+ //# sourceMappingURL=attachProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachProps.js","sourceRoot":"","sources":["../../../lib/components/stencil-generated/react-component-lib/utils/attachProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,IAAiB,EACjB,QAAa,EACb,WAAgB,EAAE,EAClB,EAAE;IAEF,IAAI,IAAI,YAAY,OAAO,EAAE;QAE3B,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnE,IAAI,SAAS,KAAK,EAAE,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;QAED,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,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C,aAAa,CAAC,KAAK,CAAC,CAAC;YAC9C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YAC3C,WAAW,GAAG,OAAQ,OAAe,CAAC,SAAS,CAAC,KAAK,UAAU,CAAC;SACjE;QAED,OAAO,WAAW,CAAC;KACpB;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAEC,EACD,SAAiB,EACjB,eAAmC,EACnC,EAAE;IACF,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IACzD,MAAM,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IAG9C,IAAI,eAAe,EAAE;QACnB,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;KACtD;IAGD,IAAI,CAAC,gBAAgB,CACnB,SAAS,EACT,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,SAAS,OAAO,CAAC,CAAQ;QAChD,IAAI,eAAe,EAAE;YACnB,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SAC/B;IACH,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,GAA4B,EAAE,EAAE;IAClD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IACrC,GAAgB,CAAC,OAAO,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const dashToPascalCase = (str) => str
2
+ .toLowerCase()
3
+ .split("-")
4
+ .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
5
+ .join("");
6
+ export const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
7
+ //# sourceMappingURL=case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case.js","sourceRoot":"","sources":["../../../lib/components/stencil-generated/react-component-lib/utils/case.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC9C,GAAG;KACA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAC7C,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const isDevMode = () => {
2
+ return process && process.env && process.env.NODE_ENV === "development";
3
+ };
4
+ const warnings = {};
5
+ export const deprecationWarning = (key, message) => {
6
+ if (isDevMode()) {
7
+ if (!warnings[key]) {
8
+ console.warn(message);
9
+ warnings[key] = true;
10
+ }
11
+ }
12
+ };
13
+ //# sourceMappingURL=dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../lib/components/stencil-generated/react-component-lib/utils/dev.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,OAAO,OAAO,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,QAAQ,GAA+B,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,OAAe,EAAE,EAAE;IACjE,IAAI,SAAS,EAAE,EAAE;QACf,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAClB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SACtB;KACF;AACH,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ export const setRef = (ref, value) => {
3
+ if (typeof ref === "function") {
4
+ ref(value);
5
+ }
6
+ else if (ref != null) {
7
+ ref.current = value;
8
+ }
9
+ };
10
+ export const mergeRefs = (...refs) => {
11
+ return (value) => {
12
+ refs.forEach((ref) => {
13
+ setRef(ref, value);
14
+ });
15
+ };
16
+ };
17
+ export const createForwardRef = (ReactComponent, displayName) => {
18
+ const forwardRef = (props, ref) => {
19
+ return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));
20
+ };
21
+ forwardRef.displayName = displayName;
22
+ return React.forwardRef(forwardRef);
23
+ };
24
+ export const defineCustomElement = (tagName, customElement) => {
25
+ if (customElement !== undefined &&
26
+ typeof customElements !== "undefined" &&
27
+ !customElements.get(tagName)) {
28
+ customElements.define(tagName, customElement);
29
+ }
30
+ };
31
+ export * from "./attachProps";
32
+ export * from "./case";
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/components/stencil-generated/react-component-lib/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,GAA+D,EAC/D,KAAU,EACV,EAAE;IACF,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,GAAG,CAAC,KAAK,CAAC,CAAC;KACZ;SAAM,IAAI,GAAG,IAAI,IAAI,EAAE;QAErB,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;KACtD;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,GAAG,IAAoE,EAC/C,EAAE;IAC1B,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,cAAmB,EACnB,WAAmB,EACnB,EAAE;IACF,MAAM,UAAU,GAAG,CACjB,KAAuD,EACvD,GAA0C,EAC1C,EAAE;QACF,OAAO,oBAAC,cAAc,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC1D,CAAC,CAAC;IACF,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;IAErC,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,aAAkB,EAAE,EAAE;IACzE,IACE,aAAa,KAAK,SAAS;QAC3B,OAAO,cAAc,KAAK,WAAW;QACrC,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAC5B;QACA,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;KAC/C;AACH,CAAC,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,96 @@
1
+ /// <reference types="react" />
2
+ import type { JSX } from "@itcenteratunihelsinki/huds-lib/components";
3
+ export declare const ColorBox: import("react").ForwardRefExoticComponent<JSX.ColorBox & Omit<import("react").HTMLAttributes<HTMLColorBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLColorBoxElement>>;
4
+ export declare const HyAccordionContainer: import("react").ForwardRefExoticComponent<JSX.HyAccordionContainer & Omit<import("react").HTMLAttributes<HTMLHyAccordionContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyAccordionContainerElement>>;
5
+ export declare const HyAccordionItem: import("react").ForwardRefExoticComponent<JSX.HyAccordionItem & Omit<import("react").HTMLAttributes<HTMLHyAccordionItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyAccordionItemElement>>;
6
+ export declare const HyAdjacentImageText: import("react").ForwardRefExoticComponent<JSX.HyAdjacentImageText & Omit<import("react").HTMLAttributes<HTMLHyAdjacentImageTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyAdjacentImageTextElement>>;
7
+ export declare const HyAnchorLinkList: import("react").ForwardRefExoticComponent<JSX.HyAnchorLinkList & Omit<import("react").HTMLAttributes<HTMLHyAnchorLinkListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyAnchorLinkListElement>>;
8
+ export declare const HyBadge: import("react").ForwardRefExoticComponent<JSX.HyBadge & Omit<import("react").HTMLAttributes<HTMLHyBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBadgeElement>>;
9
+ export declare const HyBanner: import("react").ForwardRefExoticComponent<JSX.HyBanner & Omit<import("react").HTMLAttributes<HTMLHyBannerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBannerElement>>;
10
+ export declare const HyBaseline: import("react").ForwardRefExoticComponent<JSX.HyBaseline & Omit<import("react").HTMLAttributes<HTMLHyBaselineElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBaselineElement>>;
11
+ export declare const HyBox: import("react").ForwardRefExoticComponent<JSX.HyBox & Omit<import("react").HTMLAttributes<HTMLHyBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBoxElement>>;
12
+ export declare const HyBoxContainer: import("react").ForwardRefExoticComponent<JSX.HyBoxContainer & Omit<import("react").HTMLAttributes<HTMLHyBoxContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBoxContainerElement>>;
13
+ export declare const HyBreadcrumbs: import("react").ForwardRefExoticComponent<JSX.HyBreadcrumbs & Omit<import("react").HTMLAttributes<HTMLHyBreadcrumbsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyBreadcrumbsElement>>;
14
+ export declare const HyButton: import("react").ForwardRefExoticComponent<JSX.HyButton & Omit<import("react").HTMLAttributes<HTMLHyButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyButtonElement>>;
15
+ export declare const HyCheckbox: import("react").ForwardRefExoticComponent<JSX.HyCheckbox & Omit<import("react").HTMLAttributes<HTMLHyCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyCheckboxElement>>;
16
+ export declare const HyCollaboration: import("react").ForwardRefExoticComponent<JSX.HyCollaboration & Omit<import("react").HTMLAttributes<HTMLHyCollaborationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyCollaborationElement>>;
17
+ export declare const HyContentList: import("react").ForwardRefExoticComponent<JSX.HyContentList & Omit<import("react").HTMLAttributes<HTMLHyContentListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyContentListElement>>;
18
+ export declare const HyContentListItem: import("react").ForwardRefExoticComponent<JSX.HyContentListItem & Omit<import("react").HTMLAttributes<HTMLHyContentListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyContentListItemElement>>;
19
+ export declare const HyCrisisBanner: import("react").ForwardRefExoticComponent<JSX.HyCrisisBanner & Omit<import("react").HTMLAttributes<HTMLHyCrisisBannerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyCrisisBannerElement>>;
20
+ export declare const HyCtaButton: import("react").ForwardRefExoticComponent<JSX.HyCtaButton & Omit<import("react").HTMLAttributes<HTMLHyCtaButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyCtaButtonElement>>;
21
+ export declare const HyCtaLink: import("react").ForwardRefExoticComponent<JSX.HyCtaLink & Omit<import("react").HTMLAttributes<HTMLHyCtaLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyCtaLinkElement>>;
22
+ export declare const HyDocsContainer: import("react").ForwardRefExoticComponent<JSX.HyDocsContainer & Omit<import("react").HTMLAttributes<HTMLHyDocsContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyDocsContainerElement>>;
23
+ export declare const HyDropdown: import("react").ForwardRefExoticComponent<JSX.HyDropdown & Omit<import("react").HTMLAttributes<HTMLHyDropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyDropdownElement>>;
24
+ export declare const HyDropdownPanel: import("react").ForwardRefExoticComponent<JSX.HyDropdownPanel & Omit<import("react").HTMLAttributes<HTMLHyDropdownPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyDropdownPanelElement>>;
25
+ export declare const HyDropdownPanelItem: import("react").ForwardRefExoticComponent<JSX.HyDropdownPanelItem & Omit<import("react").HTMLAttributes<HTMLHyDropdownPanelItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyDropdownPanelItemElement>>;
26
+ export declare const HyEventItem: import("react").ForwardRefExoticComponent<JSX.HyEventItem & Omit<import("react").HTMLAttributes<HTMLHyEventItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyEventItemElement>>;
27
+ export declare const HyEvents: import("react").ForwardRefExoticComponent<JSX.HyEvents & Omit<import("react").HTMLAttributes<HTMLHyEventsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyEventsElement>>;
28
+ export declare const HyFilterGroup: import("react").ForwardRefExoticComponent<JSX.HyFilterGroup & Omit<import("react").HTMLAttributes<HTMLHyFilterGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterGroupElement>>;
29
+ export declare const HyFilterGroupItem: import("react").ForwardRefExoticComponent<JSX.HyFilterGroupItem & Omit<import("react").HTMLAttributes<HTMLHyFilterGroupItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterGroupItemElement>>;
30
+ export declare const HyFilterListType: import("react").ForwardRefExoticComponent<JSX.HyFilterListType & Omit<import("react").HTMLAttributes<HTMLHyFilterListTypeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterListTypeElement>>;
31
+ export declare const HyFilterVisibilityTool: import("react").ForwardRefExoticComponent<JSX.HyFilterVisibilityTool & Omit<import("react").HTMLAttributes<HTMLHyFilterVisibilityToolElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterVisibilityToolElement>>;
32
+ export declare const HyFilterVisibilityToolReset: import("react").ForwardRefExoticComponent<JSX.HyFilterVisibilityToolReset & Omit<import("react").HTMLAttributes<HTMLHyFilterVisibilityToolResetElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterVisibilityToolResetElement>>;
33
+ export declare const HyFilterVisibilityToolToggle: import("react").ForwardRefExoticComponent<JSX.HyFilterVisibilityToolToggle & Omit<import("react").HTMLAttributes<HTMLHyFilterVisibilityToolToggleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFilterVisibilityToolToggleElement>>;
34
+ export declare const HyFooter: import("react").ForwardRefExoticComponent<JSX.HyFooter & Omit<import("react").HTMLAttributes<HTMLHyFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFooterElement>>;
35
+ export declare const HyFooterAction: import("react").ForwardRefExoticComponent<JSX.HyFooterAction & Omit<import("react").HTMLAttributes<HTMLHyFooterActionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFooterActionElement>>;
36
+ export declare const HyFooterBase: import("react").ForwardRefExoticComponent<JSX.HyFooterBase & Omit<import("react").HTMLAttributes<HTMLHyFooterBaseElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFooterBaseElement>>;
37
+ export declare const HyFooterInfo: import("react").ForwardRefExoticComponent<JSX.HyFooterInfo & Omit<import("react").HTMLAttributes<HTMLHyFooterInfoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFooterInfoElement>>;
38
+ export declare const HyFooterLinkItem: import("react").ForwardRefExoticComponent<JSX.HyFooterLinkItem & Omit<import("react").HTMLAttributes<HTMLHyFooterLinkItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyFooterLinkItemElement>>;
39
+ export declare const HyGeneralList: import("react").ForwardRefExoticComponent<JSX.HyGeneralList & Omit<import("react").HTMLAttributes<HTMLHyGeneralListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyGeneralListElement>>;
40
+ export declare const HyGeneralListItem: import("react").ForwardRefExoticComponent<JSX.HyGeneralListItem & Omit<import("react").HTMLAttributes<HTMLHyGeneralListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyGeneralListItemElement>>;
41
+ export declare const HyGridContainer: import("react").ForwardRefExoticComponent<JSX.HyGridContainer & Omit<import("react").HTMLAttributes<HTMLHyGridContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyGridContainerElement>>;
42
+ export declare const HyGridItem: import("react").ForwardRefExoticComponent<JSX.HyGridItem & Omit<import("react").HTMLAttributes<HTMLHyGridItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyGridItemElement>>;
43
+ export declare const HyGridRow: import("react").ForwardRefExoticComponent<JSX.HyGridRow & Omit<import("react").HTMLAttributes<HTMLHyGridRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyGridRowElement>>;
44
+ export declare const HyHeading: import("react").ForwardRefExoticComponent<JSX.HyHeading & Omit<import("react").HTMLAttributes<HTMLHyHeadingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyHeadingElement>>;
45
+ export declare const HyHero: import("react").ForwardRefExoticComponent<JSX.HyHero & Omit<import("react").HTMLAttributes<HTMLHyHeroElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyHeroElement>>;
46
+ export declare const HyHeroCarousel: import("react").ForwardRefExoticComponent<JSX.HyHeroCarousel & Omit<import("react").HTMLAttributes<HTMLHyHeroCarouselElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyHeroCarouselElement>>;
47
+ export declare const HyIcon: import("react").ForwardRefExoticComponent<JSX.HyIcon & Omit<import("react").HTMLAttributes<HTMLHyIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyIconElement>>;
48
+ export declare const HyImage: import("react").ForwardRefExoticComponent<JSX.HyImage & Omit<import("react").HTMLAttributes<HTMLHyImageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyImageElement>>;
49
+ export declare const HyIngress: import("react").ForwardRefExoticComponent<JSX.HyIngress & Omit<import("react").HTMLAttributes<HTMLHyIngressElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyIngressElement>>;
50
+ export declare const HyIntroduction: import("react").ForwardRefExoticComponent<JSX.HyIntroduction & Omit<import("react").HTMLAttributes<HTMLHyIntroductionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyIntroductionElement>>;
51
+ export declare const HyKeyFigure: import("react").ForwardRefExoticComponent<JSX.HyKeyFigure & Omit<import("react").HTMLAttributes<HTMLHyKeyFigureElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyKeyFigureElement>>;
52
+ export declare const HyKeyFigureGroup: import("react").ForwardRefExoticComponent<JSX.HyKeyFigureGroup & Omit<import("react").HTMLAttributes<HTMLHyKeyFigureGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyKeyFigureGroupElement>>;
53
+ export declare const HyKeyHighlight: import("react").ForwardRefExoticComponent<JSX.HyKeyHighlight & Omit<import("react").HTMLAttributes<HTMLHyKeyHighlightElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyKeyHighlightElement>>;
54
+ export declare const HyKeyHighlightGroup: import("react").ForwardRefExoticComponent<JSX.HyKeyHighlightGroup & Omit<import("react").HTMLAttributes<HTMLHyKeyHighlightGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyKeyHighlightGroupElement>>;
55
+ export declare const HyLargeProcessFlow: import("react").ForwardRefExoticComponent<JSX.HyLargeProcessFlow & Omit<import("react").HTMLAttributes<HTMLHyLargeProcessFlowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLargeProcessFlowElement>>;
56
+ export declare const HyLargeProcessFlowPhase: import("react").ForwardRefExoticComponent<JSX.HyLargeProcessFlowPhase & Omit<import("react").HTMLAttributes<HTMLHyLargeProcessFlowPhaseElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLargeProcessFlowPhaseElement>>;
57
+ export declare const HyLink: import("react").ForwardRefExoticComponent<JSX.HyLink & Omit<import("react").HTMLAttributes<HTMLHyLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLinkElement>>;
58
+ export declare const HyLinkBox: import("react").ForwardRefExoticComponent<JSX.HyLinkBox & Omit<import("react").HTMLAttributes<HTMLHyLinkBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLinkBoxElement>>;
59
+ export declare const HyLinkBoxList: import("react").ForwardRefExoticComponent<JSX.HyLinkBoxList & Omit<import("react").HTMLAttributes<HTMLHyLinkBoxListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLinkBoxListElement>>;
60
+ export declare const HyLinkList: import("react").ForwardRefExoticComponent<JSX.HyLinkList & Omit<import("react").HTMLAttributes<HTMLHyLinkListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLinkListElement>>;
61
+ export declare const HyListItem: import("react").ForwardRefExoticComponent<JSX.HyListItem & Omit<import("react").HTMLAttributes<HTMLHyListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyListItemElement>>;
62
+ export declare const HyLogoGrid: import("react").ForwardRefExoticComponent<JSX.HyLogoGrid & Omit<import("react").HTMLAttributes<HTMLHyLogoGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLogoGridElement>>;
63
+ export declare const HyLogoGridItem: import("react").ForwardRefExoticComponent<JSX.HyLogoGridItem & Omit<import("react").HTMLAttributes<HTMLHyLogoGridItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyLogoGridItemElement>>;
64
+ export declare const HyMain: import("react").ForwardRefExoticComponent<JSX.HyMain & Omit<import("react").HTMLAttributes<HTMLHyMainElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyMainElement>>;
65
+ export declare const HyMainContentWrapper: import("react").ForwardRefExoticComponent<JSX.HyMainContentWrapper & Omit<import("react").HTMLAttributes<HTMLHyMainContentWrapperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyMainContentWrapperElement>>;
66
+ export declare const HyMenuLanguage: import("react").ForwardRefExoticComponent<JSX.HyMenuLanguage & Omit<import("react").HTMLAttributes<HTMLHyMenuLanguageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyMenuLanguageElement>>;
67
+ export declare const HyMenuLanguageItem: import("react").ForwardRefExoticComponent<JSX.HyMenuLanguageItem & Omit<import("react").HTMLAttributes<HTMLHyMenuLanguageItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyMenuLanguageItemElement>>;
68
+ export declare const HyMenuMainGroup: import("react").ForwardRefExoticComponent<JSX.HyMenuMainGroup & Omit<import("react").HTMLAttributes<HTMLHyMenuMainGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyMenuMainGroupElement>>;
69
+ export declare const HyOpeningHours: import("react").ForwardRefExoticComponent<JSX.HyOpeningHours & Omit<import("react").HTMLAttributes<HTMLHyOpeningHoursElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyOpeningHoursElement>>;
70
+ export declare const HyOpeningHoursContent: import("react").ForwardRefExoticComponent<JSX.HyOpeningHoursContent & Omit<import("react").HTMLAttributes<HTMLHyOpeningHoursContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyOpeningHoursContentElement>>;
71
+ export declare const HyPager: import("react").ForwardRefExoticComponent<JSX.HyPager & Omit<import("react").HTMLAttributes<HTMLHyPagerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyPagerElement>>;
72
+ export declare const HyPagerItem: import("react").ForwardRefExoticComponent<JSX.HyPagerItem & Omit<import("react").HTMLAttributes<HTMLHyPagerItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyPagerItemElement>>;
73
+ export declare const HyParagraphText: import("react").ForwardRefExoticComponent<JSX.HyParagraphText & Omit<import("react").HTMLAttributes<HTMLHyParagraphTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyParagraphTextElement>>;
74
+ export declare const HyPersonCard: import("react").ForwardRefExoticComponent<JSX.HyPersonCard & Omit<import("react").HTMLAttributes<HTMLHyPersonCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyPersonCardElement>>;
75
+ export declare const HyPersonProfile: import("react").ForwardRefExoticComponent<JSX.HyPersonProfile & Omit<import("react").HTMLAttributes<HTMLHyPersonProfileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyPersonProfileElement>>;
76
+ export declare const HyPersonProfileListing: import("react").ForwardRefExoticComponent<JSX.HyPersonProfileListing & Omit<import("react").HTMLAttributes<HTMLHyPersonProfileListingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyPersonProfileListingElement>>;
77
+ export declare const HyProcess: import("react").ForwardRefExoticComponent<JSX.HyProcess & Omit<import("react").HTMLAttributes<HTMLHyProcessElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyProcessElement>>;
78
+ export declare const HyProcessFlowBox: import("react").ForwardRefExoticComponent<JSX.HyProcessFlowBox & Omit<import("react").HTMLAttributes<HTMLHyProcessFlowBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyProcessFlowBoxElement>>;
79
+ export declare const HyProminentImage: import("react").ForwardRefExoticComponent<JSX.HyProminentImage & Omit<import("react").HTMLAttributes<HTMLHyProminentImageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyProminentImageElement>>;
80
+ export declare const HyQuote: import("react").ForwardRefExoticComponent<JSX.HyQuote & Omit<import("react").HTMLAttributes<HTMLHyQuoteElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyQuoteElement>>;
81
+ export declare const HyRow: import("react").ForwardRefExoticComponent<JSX.HyRow & Omit<import("react").HTMLAttributes<HTMLHyRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyRowElement>>;
82
+ export declare const HySearchField: import("react").ForwardRefExoticComponent<JSX.HySearchField & Omit<import("react").HTMLAttributes<HTMLHySearchFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHySearchFieldElement>>;
83
+ export declare const HySectionContainer: import("react").ForwardRefExoticComponent<JSX.HySectionContainer & Omit<import("react").HTMLAttributes<HTMLHySectionContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHySectionContainerElement>>;
84
+ export declare const HyShortcuts: import("react").ForwardRefExoticComponent<JSX.HyShortcuts & Omit<import("react").HTMLAttributes<HTMLHyShortcutsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyShortcutsElement>>;
85
+ export declare const HySiteHeader: import("react").ForwardRefExoticComponent<JSX.HySiteHeader & Omit<import("react").HTMLAttributes<HTMLHySiteHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHySiteHeaderElement>>;
86
+ export declare const HySiteLogo: import("react").ForwardRefExoticComponent<JSX.HySiteLogo & Omit<import("react").HTMLAttributes<HTMLHySiteLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHySiteLogoElement>>;
87
+ export declare const HySiteSearch: import("react").ForwardRefExoticComponent<JSX.HySiteSearch & Omit<import("react").HTMLAttributes<HTMLHySiteSearchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHySiteSearchElement>>;
88
+ export declare const HyTableContainer: import("react").ForwardRefExoticComponent<JSX.HyTableContainer & Omit<import("react").HTMLAttributes<HTMLHyTableContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTableContainerElement>>;
89
+ export declare const HyTabs: import("react").ForwardRefExoticComponent<JSX.HyTabs & Omit<import("react").HTMLAttributes<HTMLHyTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTabsElement>>;
90
+ export declare const HyTabsItem: import("react").ForwardRefExoticComponent<JSX.HyTabsItem & Omit<import("react").HTMLAttributes<HTMLHyTabsItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTabsItemElement>>;
91
+ export declare const HyTag: import("react").ForwardRefExoticComponent<JSX.HyTag & Omit<import("react").HTMLAttributes<HTMLHyTagElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTagElement>>;
92
+ export declare const HyTinyText: import("react").ForwardRefExoticComponent<JSX.HyTinyText & Omit<import("react").HTMLAttributes<HTMLHyTinyTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTinyTextElement>>;
93
+ export declare const HyTwitterFeed: import("react").ForwardRefExoticComponent<JSX.HyTwitterFeed & Omit<import("react").HTMLAttributes<HTMLHyTwitterFeedElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTwitterFeedElement>>;
94
+ export declare const HyTwoColumns: import("react").ForwardRefExoticComponent<JSX.HyTwoColumns & Omit<import("react").HTMLAttributes<HTMLHyTwoColumnsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyTwoColumnsElement>>;
95
+ export declare const HyUserLoginForm: import("react").ForwardRefExoticComponent<JSX.HyUserLoginForm & Omit<import("react").HTMLAttributes<HTMLHyUserLoginFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyUserLoginFormElement>>;
96
+ export declare const HyVideo: import("react").ForwardRefExoticComponent<JSX.HyVideo & Omit<import("react").HTMLAttributes<HTMLHyVideoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLHyVideoElement>>;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface HTMLStencilElement extends HTMLElement {
3
+ componentOnReady(): Promise<this>;
4
+ }
5
+ interface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {
6
+ forwardedRef: React.RefObject<ElementType>;
7
+ ref?: React.Ref<any>;
8
+ }
9
+ export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType>, manipulatePropsFunction?: (originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & import("./interfaces").StyleReactProps> & React.RefAttributes<ElementType>>;
10
+ export {};
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { OverlayEventDetail } from "./interfaces";
3
+ import { StencilReactForwardedRef } from "./utils";
4
+ interface OverlayElement extends HTMLElement {
5
+ present: () => Promise<void>;
6
+ dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
7
+ }
8
+ export interface ReactOverlayProps {
9
+ children?: React.ReactNode;
10
+ isOpen: boolean;
11
+ onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
12
+ onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
13
+ onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
14
+ onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
15
+ }
16
+ export declare const createOverlayComponent: <OverlayComponent extends object, OverlayType extends OverlayElement>(tagName: string, controller: {
17
+ create: (options: any) => Promise<OverlayType>;
18
+ }, customElement?: any) => React.ForwardRefExoticComponent<React.PropsWithoutRef<OverlayComponent & ReactOverlayProps & {
19
+ forwardedRef?: StencilReactForwardedRef<OverlayType>;
20
+ }> & React.RefAttributes<OverlayType>>;
21
+ export {};
@@ -0,0 +1,2 @@
1
+ export { createReactComponent } from "./createComponent";
2
+ export { createOverlayComponent } from "./createOverlayComponent";
@@ -0,0 +1,29 @@
1
+ export interface EventEmitter<T = any> {
2
+ emit: (data?: T) => CustomEvent<T>;
3
+ }
4
+ export interface StyleReactProps {
5
+ class?: string;
6
+ className?: string;
7
+ style?: {
8
+ [key: string]: any;
9
+ };
10
+ }
11
+ export interface OverlayEventDetail<T = any> {
12
+ data?: T;
13
+ role?: string;
14
+ }
15
+ export interface OverlayInterface {
16
+ el: HTMLElement;
17
+ animated: boolean;
18
+ keyboardClose: boolean;
19
+ overlayIndex: number;
20
+ presented: boolean;
21
+ enterAnimation?: any;
22
+ leaveAnimation?: any;
23
+ didPresent: EventEmitter<void>;
24
+ willPresent: EventEmitter<void>;
25
+ willDismiss: EventEmitter<OverlayEventDetail>;
26
+ didDismiss: EventEmitter<OverlayEventDetail>;
27
+ present(): Promise<void>;
28
+ dismiss(data?: any, role?: string): Promise<boolean>;
29
+ }
@@ -0,0 +1,8 @@
1
+ export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
2
+ export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
3
+ export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
4
+ export declare const syncEvent: (node: Element & {
5
+ __events?: {
6
+ [key: string]: (e: Event) => any;
7
+ };
8
+ }, eventName: string, newEventHandler?: (e: Event) => any) => void;
@@ -0,0 +1,2 @@
1
+ export declare const dashToPascalCase: (str: string) => string;
2
+ export declare const camelToDashCase: (str: string) => string;
@@ -0,0 +1,2 @@
1
+ export declare const isDevMode: () => boolean;
2
+ export declare const deprecationWarning: (key: string, message: string) => void;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import type { StyleReactProps } from "../interfaces";
3
+ export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & StyleReactProps;
4
+ export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
5
+ export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
6
+ export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
7
+ export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & StyleReactProps> & React.RefAttributes<ElementType>>;
8
+ export declare const defineCustomElement: (tagName: string, customElement: any) => void;
9
+ export * from "./attachProps";
10
+ export * from "./case";
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@itcenteratunihelsinki/huds-lib-react",
3
+ "version": "0.8.44",
4
+ "description": "HUDS React wrapper",
5
+ "keywords": [
6
+ "huds"
7
+ ],
8
+ "author": "Tuukka Turu <tuukka.turu@druid.fi>",
9
+ "homepage": "",
10
+ "license": "MIT",
11
+ "main": "dist/index.js",
12
+ "module": "dist/index.js",
13
+ "types": "dist/types/index.d.ts",
14
+ "files": [
15
+ "dist/"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git@version.helsinki.fi:julkiset-sivut/design-system-lib.git"
23
+ },
24
+ "dependencies": {
25
+ "@itcenteratunihelsinki/huds-lib": "^0.8.44",
26
+ "tslib": "*"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^14.0.14",
30
+ "@types/react": "16.14.0",
31
+ "@types/react-dom": "^16.9.0",
32
+ "eslint": "^7.32.0",
33
+ "react": "^16.9.0",
34
+ "react-dom": "^16.9.0",
35
+ "typescript": "^4.0.5"
36
+ },
37
+ "peerDependencies": {
38
+ "react": ">=16.8.6",
39
+ "react-dom": ">=16.8.6"
40
+ },
41
+ "scripts": {
42
+ "test": "node ./__tests__/huds-react.test.js",
43
+ "build": "npm run tsc",
44
+ "tsc": "tsc"
45
+ },
46
+ "gitHead": "a372fdd8446aa3a490a28a4c80a24a78be76e811"
47
+ }