@swisspost/design-system-components-react 9.0.0-next.3 → 9.0.0-next.31
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/dist/components/stencil-generated/index.d.ts +18 -1
- package/dist/components/stencil-generated/index.js +18 -1
- package/dist/components/stencil-generated/index.js.map +1 -1
- package/dist/components/stencil-generated/react-component-lib/createComponent.js +10 -16
- package/dist/components/stencil-generated/react-component-lib/createComponent.js.map +1 -1
- package/dist/components/stencil-generated/react-component-lib/createOverlayComponent.js +37 -48
- package/dist/components/stencil-generated/react-component-lib/createOverlayComponent.js.map +1 -1
- package/dist/components/stencil-generated/react-component-lib/utils/index.js +1 -1
- package/dist/components/stencil-generated/react-component-lib/utils/index.js.map +1 -1
- package/package.json +14 -17
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import type { JSX } from '@swisspost/design-system-components';
|
|
2
2
|
export declare const PostAccordion: import("react").ForwardRefExoticComponent<JSX.PostAccordion & Omit<import("react").HTMLAttributes<HTMLPostAccordionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostAccordionElement>>;
|
|
3
3
|
export declare const PostAccordionItem: import("react").ForwardRefExoticComponent<JSX.PostAccordionItem & Omit<import("react").HTMLAttributes<HTMLPostAccordionItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostAccordionItemElement>>;
|
|
4
|
-
export declare const PostAlert: import("react").ForwardRefExoticComponent<JSX.PostAlert & Omit<import("react").HTMLAttributes<HTMLPostAlertElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostAlertElement>>;
|
|
5
4
|
export declare const PostAvatar: import("react").ForwardRefExoticComponent<JSX.PostAvatar & Omit<import("react").HTMLAttributes<HTMLPostAvatarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostAvatarElement>>;
|
|
5
|
+
export declare const PostBackToTop: import("react").ForwardRefExoticComponent<JSX.PostBackToTop & Omit<import("react").HTMLAttributes<HTMLPostBackToTopElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostBackToTopElement>>;
|
|
6
|
+
export declare const PostBanner: import("react").ForwardRefExoticComponent<JSX.PostBanner & Omit<import("react").HTMLAttributes<HTMLPostBannerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostBannerElement>>;
|
|
7
|
+
export declare const PostBreadcrumb: import("react").ForwardRefExoticComponent<JSX.PostBreadcrumb & Omit<import("react").HTMLAttributes<HTMLPostBreadcrumbElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostBreadcrumbElement>>;
|
|
8
|
+
export declare const PostBreadcrumbItem: import("react").ForwardRefExoticComponent<JSX.PostBreadcrumbItem & Omit<import("react").HTMLAttributes<HTMLPostBreadcrumbItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostBreadcrumbItemElement>>;
|
|
6
9
|
export declare const PostCardControl: import("react").ForwardRefExoticComponent<JSX.PostCardControl & Omit<import("react").HTMLAttributes<HTMLPostCardControlElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostCardControlElement>>;
|
|
10
|
+
export declare const PostClosebutton: import("react").ForwardRefExoticComponent<JSX.PostClosebutton & Omit<import("react").HTMLAttributes<HTMLPostClosebuttonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostClosebuttonElement>>;
|
|
7
11
|
export declare const PostCollapsible: import("react").ForwardRefExoticComponent<JSX.PostCollapsible & Omit<import("react").HTMLAttributes<HTMLPostCollapsibleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostCollapsibleElement>>;
|
|
8
12
|
export declare const PostCollapsibleTrigger: import("react").ForwardRefExoticComponent<JSX.PostCollapsibleTrigger & Omit<import("react").HTMLAttributes<HTMLPostCollapsibleTriggerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostCollapsibleTriggerElement>>;
|
|
13
|
+
export declare const PostFooter: import("react").ForwardRefExoticComponent<JSX.PostFooter & Omit<import("react").HTMLAttributes<HTMLPostFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostFooterElement>>;
|
|
14
|
+
export declare const PostHeader: import("react").ForwardRefExoticComponent<JSX.PostHeader & Omit<import("react").HTMLAttributes<HTMLPostHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostHeaderElement>>;
|
|
9
15
|
export declare const PostIcon: import("react").ForwardRefExoticComponent<JSX.PostIcon & Omit<import("react").HTMLAttributes<HTMLPostIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostIconElement>>;
|
|
10
16
|
export declare const PostLanguageOption: import("react").ForwardRefExoticComponent<JSX.PostLanguageOption & Omit<import("react").HTMLAttributes<HTMLPostLanguageOptionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostLanguageOptionElement>>;
|
|
17
|
+
export declare const PostLanguageSwitch: import("react").ForwardRefExoticComponent<JSX.PostLanguageSwitch & Omit<import("react").HTMLAttributes<HTMLPostLanguageSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostLanguageSwitchElement>>;
|
|
18
|
+
export declare const PostLinkarea: import("react").ForwardRefExoticComponent<JSX.PostLinkarea & Omit<import("react").HTMLAttributes<HTMLPostLinkareaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostLinkareaElement>>;
|
|
19
|
+
export declare const PostList: import("react").ForwardRefExoticComponent<JSX.PostList & Omit<import("react").HTMLAttributes<HTMLPostListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostListElement>>;
|
|
20
|
+
export declare const PostListItem: import("react").ForwardRefExoticComponent<JSX.PostListItem & Omit<import("react").HTMLAttributes<HTMLPostListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostListItemElement>>;
|
|
11
21
|
export declare const PostLogo: import("react").ForwardRefExoticComponent<JSX.PostLogo & Omit<import("react").HTMLAttributes<HTMLPostLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostLogoElement>>;
|
|
22
|
+
export declare const PostMainnavigation: import("react").ForwardRefExoticComponent<JSX.PostMainnavigation & Omit<import("react").HTMLAttributes<HTMLPostMainnavigationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMainnavigationElement>>;
|
|
23
|
+
export declare const PostMegadropdown: import("react").ForwardRefExoticComponent<JSX.PostMegadropdown & Omit<import("react").HTMLAttributes<HTMLPostMegadropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMegadropdownElement>>;
|
|
24
|
+
export declare const PostMegadropdownTrigger: import("react").ForwardRefExoticComponent<JSX.PostMegadropdownTrigger & Omit<import("react").HTMLAttributes<HTMLPostMegadropdownTriggerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMegadropdownTriggerElement>>;
|
|
25
|
+
export declare const PostMenu: import("react").ForwardRefExoticComponent<JSX.PostMenu & Omit<import("react").HTMLAttributes<HTMLPostMenuElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMenuElement>>;
|
|
26
|
+
export declare const PostMenuItem: import("react").ForwardRefExoticComponent<JSX.PostMenuItem & Omit<import("react").HTMLAttributes<HTMLPostMenuItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMenuItemElement>>;
|
|
27
|
+
export declare const PostMenuTrigger: import("react").ForwardRefExoticComponent<JSX.PostMenuTrigger & Omit<import("react").HTMLAttributes<HTMLPostMenuTriggerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostMenuTriggerElement>>;
|
|
12
28
|
export declare const PostPopover: import("react").ForwardRefExoticComponent<JSX.PostPopover & Omit<import("react").HTMLAttributes<HTMLPostPopoverElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostPopoverElement>>;
|
|
13
29
|
export declare const PostPopovercontainer: import("react").ForwardRefExoticComponent<JSX.PostPopovercontainer & Omit<import("react").HTMLAttributes<HTMLPostPopovercontainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostPopovercontainerElement>>;
|
|
14
30
|
export declare const PostRating: import("react").ForwardRefExoticComponent<JSX.PostRating & Omit<import("react").HTMLAttributes<HTMLPostRatingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostRatingElement>>;
|
|
@@ -16,4 +32,5 @@ export declare const PostTabHeader: import("react").ForwardRefExoticComponent<JS
|
|
|
16
32
|
export declare const PostTabPanel: import("react").ForwardRefExoticComponent<JSX.PostTabPanel & Omit<import("react").HTMLAttributes<HTMLPostTabPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostTabPanelElement>>;
|
|
17
33
|
export declare const PostTabs: import("react").ForwardRefExoticComponent<JSX.PostTabs & Omit<import("react").HTMLAttributes<HTMLPostTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostTabsElement>>;
|
|
18
34
|
export declare const PostTag: import("react").ForwardRefExoticComponent<JSX.PostTag & Omit<import("react").HTMLAttributes<HTMLPostTagElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostTagElement>>;
|
|
35
|
+
export declare const PostTogglebutton: import("react").ForwardRefExoticComponent<JSX.PostTogglebutton & Omit<import("react").HTMLAttributes<HTMLPostTogglebuttonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostTogglebuttonElement>>;
|
|
19
36
|
export declare const PostTooltip: import("react").ForwardRefExoticComponent<JSX.PostTooltip & Omit<import("react").HTMLAttributes<HTMLPostTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPostTooltipElement>>;
|
|
@@ -6,14 +6,30 @@ import { defineCustomElements } from '@swisspost/design-system-components/loader
|
|
|
6
6
|
defineCustomElements();
|
|
7
7
|
export const PostAccordion = /*@__PURE__*/ createReactComponent('post-accordion');
|
|
8
8
|
export const PostAccordionItem = /*@__PURE__*/ createReactComponent('post-accordion-item');
|
|
9
|
-
export const PostAlert = /*@__PURE__*/ createReactComponent('post-alert');
|
|
10
9
|
export const PostAvatar = /*@__PURE__*/ createReactComponent('post-avatar');
|
|
10
|
+
export const PostBackToTop = /*@__PURE__*/ createReactComponent('post-back-to-top');
|
|
11
|
+
export const PostBanner = /*@__PURE__*/ createReactComponent('post-banner');
|
|
12
|
+
export const PostBreadcrumb = /*@__PURE__*/ createReactComponent('post-breadcrumb');
|
|
13
|
+
export const PostBreadcrumbItem = /*@__PURE__*/ createReactComponent('post-breadcrumb-item');
|
|
11
14
|
export const PostCardControl = /*@__PURE__*/ createReactComponent('post-card-control');
|
|
15
|
+
export const PostClosebutton = /*@__PURE__*/ createReactComponent('post-closebutton');
|
|
12
16
|
export const PostCollapsible = /*@__PURE__*/ createReactComponent('post-collapsible');
|
|
13
17
|
export const PostCollapsibleTrigger = /*@__PURE__*/ createReactComponent('post-collapsible-trigger');
|
|
18
|
+
export const PostFooter = /*@__PURE__*/ createReactComponent('post-footer');
|
|
19
|
+
export const PostHeader = /*@__PURE__*/ createReactComponent('post-header');
|
|
14
20
|
export const PostIcon = /*@__PURE__*/ createReactComponent('post-icon');
|
|
15
21
|
export const PostLanguageOption = /*@__PURE__*/ createReactComponent('post-language-option');
|
|
22
|
+
export const PostLanguageSwitch = /*@__PURE__*/ createReactComponent('post-language-switch');
|
|
23
|
+
export const PostLinkarea = /*@__PURE__*/ createReactComponent('post-linkarea');
|
|
24
|
+
export const PostList = /*@__PURE__*/ createReactComponent('post-list');
|
|
25
|
+
export const PostListItem = /*@__PURE__*/ createReactComponent('post-list-item');
|
|
16
26
|
export const PostLogo = /*@__PURE__*/ createReactComponent('post-logo');
|
|
27
|
+
export const PostMainnavigation = /*@__PURE__*/ createReactComponent('post-mainnavigation');
|
|
28
|
+
export const PostMegadropdown = /*@__PURE__*/ createReactComponent('post-megadropdown');
|
|
29
|
+
export const PostMegadropdownTrigger = /*@__PURE__*/ createReactComponent('post-megadropdown-trigger');
|
|
30
|
+
export const PostMenu = /*@__PURE__*/ createReactComponent('post-menu');
|
|
31
|
+
export const PostMenuItem = /*@__PURE__*/ createReactComponent('post-menu-item');
|
|
32
|
+
export const PostMenuTrigger = /*@__PURE__*/ createReactComponent('post-menu-trigger');
|
|
17
33
|
export const PostPopover = /*@__PURE__*/ createReactComponent('post-popover');
|
|
18
34
|
export const PostPopovercontainer = /*@__PURE__*/ createReactComponent('post-popovercontainer');
|
|
19
35
|
export const PostRating = /*@__PURE__*/ createReactComponent('post-rating');
|
|
@@ -21,5 +37,6 @@ export const PostTabHeader = /*@__PURE__*/ createReactComponent('post-tab-header
|
|
|
21
37
|
export const PostTabPanel = /*@__PURE__*/ createReactComponent('post-tab-panel');
|
|
22
38
|
export const PostTabs = /*@__PURE__*/ createReactComponent('post-tabs');
|
|
23
39
|
export const PostTag = /*@__PURE__*/ createReactComponent('post-tag');
|
|
40
|
+
export const PostTogglebutton = /*@__PURE__*/ createReactComponent('post-togglebutton');
|
|
24
41
|
export const PostTooltip = /*@__PURE__*/ createReactComponent('post-tooltip');
|
|
25
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,oBAAoB,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAA,oBAAoB,CAAsD,qBAAqB,CAAC,CAAC;AAC/I,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,oBAAoB,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAA,oBAAoB,CAAsD,qBAAqB,CAAC,CAAC;AAC/I,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,kBAAkB,CAAC,CAAC;AAChI,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAA,oBAAoB,CAAgD,iBAAiB,CAAC,CAAC;AAClI,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa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= (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
1
|
import React, { createElement } from 'react';
|
|
13
2
|
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
|
|
14
3
|
export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
@@ -17,11 +6,12 @@ export const createReactComponent = (tagName, ReactComponentContext, manipulateP
|
|
|
17
6
|
}
|
|
18
7
|
const displayName = dashToPascalCase(tagName);
|
|
19
8
|
const ReactComponent = class extends React.Component {
|
|
9
|
+
componentEl;
|
|
10
|
+
setComponentElRef = (element) => {
|
|
11
|
+
this.componentEl = element;
|
|
12
|
+
};
|
|
20
13
|
constructor(props) {
|
|
21
14
|
super(props);
|
|
22
|
-
this.setComponentElRef = (element) => {
|
|
23
|
-
this.componentEl = element;
|
|
24
|
-
};
|
|
25
15
|
}
|
|
26
16
|
componentDidMount() {
|
|
27
17
|
this.componentDidUpdate(this.props);
|
|
@@ -30,7 +20,7 @@ export const createReactComponent = (tagName, ReactComponentContext, manipulateP
|
|
|
30
20
|
attachProps(this.componentEl, this.props, prevProps);
|
|
31
21
|
}
|
|
32
22
|
render() {
|
|
33
|
-
const
|
|
23
|
+
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
34
24
|
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
35
25
|
const value = cProps[name];
|
|
36
26
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
@@ -52,7 +42,11 @@ export const createReactComponent = (tagName, ReactComponentContext, manipulateP
|
|
|
52
42
|
if (manipulatePropsFunction) {
|
|
53
43
|
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
54
44
|
}
|
|
55
|
-
const newProps =
|
|
45
|
+
const newProps = {
|
|
46
|
+
...propsToPass,
|
|
47
|
+
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
48
|
+
style,
|
|
49
|
+
};
|
|
56
50
|
/**
|
|
57
51
|
* We use createElement here instead of
|
|
58
52
|
* React.createElement to work around a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil-generated/react-component-lib/createComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil-generated/react-component-lib/createComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAWxH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAMlC,OAAe,EACf,qBAAuD,EACvD,uBAGuB,EACvB,mBAAgC,EAChC,EAAE;IACF,IAAI,mBAAmB,KAAK,SAAS,EAAE,CAAC;QACtC,mBAAmB,EAAE,CAAC;IACxB,CAAC;IAED,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,KAAM,SAAQ,KAAK,CAAC,SAAiD;QAC1F,WAAW,CAAe;QAE1B,iBAAiB,GAAG,CAAC,OAAoB,EAAE,EAAE;YAC3C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC7B,CAAC,CAAC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;oBACrC,CAAC;gBACH,CAAC;gBACD,OAAO,GAAG,CAAC;YACb,CAAC,EAAE,EAAwB,CAAC,CAAC;YAE7B,IAAI,uBAAuB,EAAE,CAAC;gBAC5B,WAAW,GAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YACjE,CAAC;YAED,MAAM,QAAQ,GAAiE;gBAC7E,GAAG,WAAW;gBACd,GAAG,EAAE,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC;gBACpD,KAAK;aACN,CAAC;YAEF;;;;;;eAMG;YACH,OAAO,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,KAAK,WAAW;YACpB,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,iGAAiG;IACjG,IAAI,qBAAqB,EAAE,CAAC;QAC1B,cAAc,CAAC,WAAW,GAAG,qBAAqB,CAAC;IACrD,CAAC;IAED,OAAO,gBAAgB,CAAwB,cAAc,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC,CAAC"}
|
|
@@ -1,23 +1,3 @@
|
|
|
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
1
|
import React from 'react';
|
|
22
2
|
import ReactDOM from 'react-dom';
|
|
23
3
|
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
|
@@ -30,6 +10,8 @@ export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
|
30
10
|
const willPresentEventName = `on${displayName}WillPresent`;
|
|
31
11
|
let isDismissing = false;
|
|
32
12
|
class Overlay extends React.Component {
|
|
13
|
+
overlay;
|
|
14
|
+
el;
|
|
33
15
|
constructor(props) {
|
|
34
16
|
super(props);
|
|
35
17
|
if (typeof document !== 'undefined') {
|
|
@@ -63,35 +45,42 @@ export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
|
63
45
|
}
|
|
64
46
|
return true;
|
|
65
47
|
}
|
|
66
|
-
componentDidUpdate(prevProps) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
});
|
|
48
|
+
async componentDidUpdate(prevProps) {
|
|
49
|
+
if (this.overlay) {
|
|
50
|
+
attachProps(this.overlay, this.props, prevProps);
|
|
51
|
+
}
|
|
52
|
+
if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
|
|
53
|
+
this.present(prevProps);
|
|
54
|
+
}
|
|
55
|
+
if (this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false) {
|
|
56
|
+
await this.overlay.dismiss();
|
|
57
|
+
isDismissing = false;
|
|
58
|
+
/**
|
|
59
|
+
* Now that the overlay is dismissed
|
|
60
|
+
* we need to render again so that any
|
|
61
|
+
* inner components will be unmounted
|
|
62
|
+
*/
|
|
63
|
+
this.forceUpdate();
|
|
64
|
+
}
|
|
85
65
|
}
|
|
86
|
-
present(prevProps) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
66
|
+
async present(prevProps) {
|
|
67
|
+
const { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent, ...cProps } = this.props;
|
|
68
|
+
const elementProps = {
|
|
69
|
+
...cProps,
|
|
70
|
+
ref: this.props.forwardedRef,
|
|
71
|
+
[didDismissEventName]: this.handleDismiss,
|
|
72
|
+
[didPresentEventName]: (e) => this.props.onDidPresent && this.props.onDidPresent(e),
|
|
73
|
+
[willDismissEventName]: (e) => this.props.onWillDismiss && this.props.onWillDismiss(e),
|
|
74
|
+
[willPresentEventName]: (e) => this.props.onWillPresent && this.props.onWillPresent(e),
|
|
75
|
+
};
|
|
76
|
+
this.overlay = await controller.create({
|
|
77
|
+
...elementProps,
|
|
78
|
+
component: this.el,
|
|
79
|
+
componentProps: {},
|
|
94
80
|
});
|
|
81
|
+
setRef(this.props.forwardedRef, this.overlay);
|
|
82
|
+
attachProps(this.overlay, elementProps, prevProps);
|
|
83
|
+
await this.overlay.present();
|
|
95
84
|
}
|
|
96
85
|
render() {
|
|
97
86
|
/**
|
|
@@ -103,7 +92,7 @@ export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
|
103
92
|
}
|
|
104
93
|
}
|
|
105
94
|
return React.forwardRef((props, ref) => {
|
|
106
|
-
return React.createElement(Overlay,
|
|
95
|
+
return React.createElement(Overlay, { ...props, forwardedRef: ref });
|
|
107
96
|
});
|
|
108
97
|
};
|
|
109
98
|
//# sourceMappingURL=createOverlayComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil-generated/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil-generated/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AAGjC,OAAO,EAA4B,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAgB/G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,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,MAAM,mBAAmB,GAAG,KAAK,WAAW,YAAY,CAAC;IACzD,MAAM,oBAAoB,GAAG,KAAK,WAAW,aAAa,CAAC;IAC3D,MAAM,oBAAoB,GAAG,KAAK,WAAW,aAAa,CAAC;IAO3D,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,MAAM,OAAQ,SAAQ,KAAK,CAAC,SAAgB;QAC1C,OAAO,CAAe;QACtB,EAAE,CAAkB;QAEpB,YAAY,KAAY;YACtB,KAAK,CAAC,KAAK,CAAC,CAAC;YACb,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,CAAC;gBACpC,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC1C,CAAC;YACD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,C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MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9C,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;YAEnD,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAC/B,CAAC;QAED,MAAM;YACJ;;;;eAIG;YACH,OAAO,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACxG,CAAC;KACF;IAED,OAAO,KAAK,CAAC,UAAU,CAAqB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACzD,OAAO,oBAAC,OAAO,OAAK,KAAK,EAAE,YAAY,EAAE,GAAG,GAAI,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -17,7 +17,7 @@ export const mergeRefs = (...refs) => {
|
|
|
17
17
|
};
|
|
18
18
|
export const createForwardRef = (ReactComponent, displayName) => {
|
|
19
19
|
const forwardRef = (props, ref) => {
|
|
20
|
-
return React.createElement(ReactComponent,
|
|
20
|
+
return React.createElement(ReactComponent, { ...props, forwardedRef: ref });
|
|
21
21
|
};
|
|
22
22
|
forwardRef.displayName = displayName;
|
|
23
23
|
return React.forwardRef(forwardRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/stencil-generated/react-component-lib/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAA+D,EAAE,KAAU,EAAE,EAAE;IACpG,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,CAAC;QAC9B,GAAG,CAAC,KAAK,CAAC,CAAC;IACb,CAAC;SAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,gDAAgD;QAC/C,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;IACvD,CAAC;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,CAAwB,cAAmB,EAAE,WAAmB,EAAE,EAAE;IAClG,MAAM,UAAU,GAAG,CACjB,KAAuD,EACvD,GAA0C,EAC1C,EAAE;QACF,OAAO,oBAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/stencil-generated/react-component-lib/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAA+D,EAAE,KAAU,EAAE,EAAE;IACpG,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,CAAC;QAC9B,GAAG,CAAC,KAAK,CAAC,CAAC;IACb,CAAC;SAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,gDAAgD;QAC/C,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;IACvD,CAAC;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,CAAwB,cAAmB,EAAE,WAAmB,EAAE,EAAE;IAClG,MAAM,UAAU,GAAG,CACjB,KAAuD,EACvD,GAA0C,EAC1C,EAAE;QACF,OAAO,oBAAC,cAAc,OAAK,KAAK,EAAE,YAAY,EAAE,GAAG,GAAI,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,IAAI,aAAa,KAAK,SAAS,IAAI,OAAO,cAAc,KAAK,WAAW,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACzG,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAChD,CAAC;AACH,CAAC,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components-react",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.31",
|
|
4
4
|
"description": "Design System React Components for easy integration with the React ecosystem",
|
|
5
5
|
"author": "Swiss Post <design-system@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,24 +22,22 @@
|
|
|
22
22
|
"linkDirectory": true
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@swisspost/design-system-components": "9.0.0-next.
|
|
25
|
+
"@swisspost/design-system-components": "9.0.0-next.31"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@
|
|
28
|
+
"@eslint/js": "9.18.0",
|
|
29
|
+
"@stencil/react-output-target": "0.5.3",
|
|
30
|
+
"@types/node": "22.10.5",
|
|
29
31
|
"@types/react": "18.3.3",
|
|
30
|
-
"@types/react-dom": "18.3.
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"eslint-config-love": "43.1.0",
|
|
35
|
-
"eslint-plugin-import": "2.29.1",
|
|
36
|
-
"eslint-plugin-n": "16.6.2",
|
|
37
|
-
"eslint-plugin-promise": "6.6.0",
|
|
38
|
-
"eslint-plugin-react": "7.35.0",
|
|
32
|
+
"@types/react-dom": "18.3.5",
|
|
33
|
+
"eslint": "9.18.0",
|
|
34
|
+
"eslint-plugin-react": "7.37.4",
|
|
35
|
+
"globals": "15.14.0",
|
|
39
36
|
"react": "18.3.1",
|
|
40
37
|
"react-dom": "18.3.1",
|
|
41
38
|
"rimraf": "6.0.1",
|
|
42
|
-
"typescript": "
|
|
39
|
+
"typescript": "5.8.2",
|
|
40
|
+
"typescript-eslint": "8.20.0"
|
|
43
41
|
},
|
|
44
42
|
"peerDependencies": {
|
|
45
43
|
"react": "18.3.1",
|
|
@@ -53,10 +51,9 @@
|
|
|
53
51
|
"frontend"
|
|
54
52
|
],
|
|
55
53
|
"scripts": {
|
|
56
|
-
"build": "pnpm run clean &&
|
|
54
|
+
"build": "pnpm run clean && tsc -p .",
|
|
57
55
|
"clean": "rimraf dist",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"lint": "eslint src/**/*.ts"
|
|
56
|
+
"lint": "eslint",
|
|
57
|
+
"lint:fix": "eslint --fix"
|
|
61
58
|
}
|
|
62
59
|
}
|