@six-group/ui-library-react 0.0.0-insider.faf050a → 0.0.0-insider.fea784d
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/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/stencil-generated/components.js +563 -0
- package/dist/lib/stencil-generated/components.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/stencil-generated/components.d.ts +286 -0
- package/package.json +24 -38
- package/LICENSE +0 -201
- package/dist/index.d.ts +0 -2
- package/dist/lib/components/stencil-generated/index.d.ts +0 -54
- package/dist/lib/components/stencil-generated/index.js +0 -60
- package/dist/lib/components/stencil-generated/index.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/createComponent.d.ts +0 -10
- package/dist/lib/components/stencil-generated/react-component-lib/createComponent.js +0 -75
- package/dist/lib/components/stencil-generated/react-component-lib/createComponent.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/lib/components/stencil-generated/react-component-lib/createOverlayComponent.js +0 -96
- package/dist/lib/components/stencil-generated/react-component-lib/createOverlayComponent.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/index.d.ts +0 -2
- package/dist/lib/components/stencil-generated/react-component-lib/index.js +0 -3
- package/dist/lib/components/stencil-generated/react-component-lib/index.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/interfaces.d.ts +0 -29
- package/dist/lib/components/stencil-generated/react-component-lib/interfaces.js +0 -2
- package/dist/lib/components/stencil-generated/react-component-lib/interfaces.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/lib/components/stencil-generated/react-component-lib/utils/attachProps.js +0 -108
- package/dist/lib/components/stencil-generated/react-component-lib/utils/attachProps.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/utils/case.d.ts +0 -2
- package/dist/lib/components/stencil-generated/react-component-lib/utils/case.js +0 -7
- package/dist/lib/components/stencil-generated/react-component-lib/utils/case.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/lib/components/stencil-generated/react-component-lib/utils/dev.js +0 -13
- package/dist/lib/components/stencil-generated/react-component-lib/utils/dev.js.map +0 -1
- package/dist/lib/components/stencil-generated/react-component-lib/utils/index.d.ts +0 -10
- package/dist/lib/components/stencil-generated/react-component-lib/utils/index.js +0 -32
- package/dist/lib/components/stencil-generated/react-component-lib/utils/index.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { JSX } from '@six-group/ui-library';
|
|
2
|
-
export declare const SetAttributes: import("react").ForwardRefExoticComponent<JSX.SetAttributes & Omit<import("react").HTMLAttributes<HTMLSetAttributesElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSetAttributesElement>>;
|
|
3
|
-
export declare const SixAlert: import("react").ForwardRefExoticComponent<JSX.SixAlert & Omit<import("react").HTMLAttributes<HTMLSixAlertElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixAlertElement>>;
|
|
4
|
-
export declare const SixAvatar: import("react").ForwardRefExoticComponent<JSX.SixAvatar & Omit<import("react").HTMLAttributes<HTMLSixAvatarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixAvatarElement>>;
|
|
5
|
-
export declare const SixBadge: import("react").ForwardRefExoticComponent<JSX.SixBadge & Omit<import("react").HTMLAttributes<HTMLSixBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixBadgeElement>>;
|
|
6
|
-
export declare const SixButton: import("react").ForwardRefExoticComponent<JSX.SixButton & Omit<import("react").HTMLAttributes<HTMLSixButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixButtonElement>>;
|
|
7
|
-
export declare const SixCard: import("react").ForwardRefExoticComponent<JSX.SixCard & Omit<import("react").HTMLAttributes<HTMLSixCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixCardElement>>;
|
|
8
|
-
export declare const SixCheckbox: import("react").ForwardRefExoticComponent<JSX.SixCheckbox & Omit<import("react").HTMLAttributes<HTMLSixCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixCheckboxElement>>;
|
|
9
|
-
export declare const SixDatepicker: import("react").ForwardRefExoticComponent<JSX.SixDatepicker & Omit<import("react").HTMLAttributes<HTMLSixDatepickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixDatepickerElement>>;
|
|
10
|
-
export declare const SixDetails: import("react").ForwardRefExoticComponent<JSX.SixDetails & Omit<import("react").HTMLAttributes<HTMLSixDetailsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixDetailsElement>>;
|
|
11
|
-
export declare const SixDialog: import("react").ForwardRefExoticComponent<JSX.SixDialog & Omit<import("react").HTMLAttributes<HTMLSixDialogElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixDialogElement>>;
|
|
12
|
-
export declare const SixDrawer: import("react").ForwardRefExoticComponent<JSX.SixDrawer & Omit<import("react").HTMLAttributes<HTMLSixDrawerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixDrawerElement>>;
|
|
13
|
-
export declare const SixDropdown: import("react").ForwardRefExoticComponent<JSX.SixDropdown & Omit<import("react").HTMLAttributes<HTMLSixDropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixDropdownElement>>;
|
|
14
|
-
export declare const SixError: import("react").ForwardRefExoticComponent<JSX.SixError & Omit<import("react").HTMLAttributes<HTMLSixErrorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixErrorElement>>;
|
|
15
|
-
export declare const SixErrorPage: import("react").ForwardRefExoticComponent<JSX.SixErrorPage & Omit<import("react").HTMLAttributes<HTMLSixErrorPageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixErrorPageElement>>;
|
|
16
|
-
export declare const SixFileList: import("react").ForwardRefExoticComponent<JSX.SixFileList & Omit<import("react").HTMLAttributes<HTMLSixFileListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixFileListElement>>;
|
|
17
|
-
export declare const SixFileListItem: import("react").ForwardRefExoticComponent<JSX.SixFileListItem & Omit<import("react").HTMLAttributes<HTMLSixFileListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixFileListItemElement>>;
|
|
18
|
-
export declare const SixFileUpload: import("react").ForwardRefExoticComponent<JSX.SixFileUpload & Omit<import("react").HTMLAttributes<HTMLSixFileUploadElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixFileUploadElement>>;
|
|
19
|
-
export declare const SixFooter: import("react").ForwardRefExoticComponent<JSX.SixFooter & Omit<import("react").HTMLAttributes<HTMLSixFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixFooterElement>>;
|
|
20
|
-
export declare const SixGroupLabel: import("react").ForwardRefExoticComponent<JSX.SixGroupLabel & Omit<import("react").HTMLAttributes<HTMLSixGroupLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixGroupLabelElement>>;
|
|
21
|
-
export declare const SixHeader: import("react").ForwardRefExoticComponent<JSX.SixHeader & Omit<import("react").HTMLAttributes<HTMLSixHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixHeaderElement>>;
|
|
22
|
-
export declare const SixIcon: import("react").ForwardRefExoticComponent<JSX.SixIcon & Omit<import("react").HTMLAttributes<HTMLSixIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixIconElement>>;
|
|
23
|
-
export declare const SixIconButton: import("react").ForwardRefExoticComponent<JSX.SixIconButton & Omit<import("react").HTMLAttributes<HTMLSixIconButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixIconButtonElement>>;
|
|
24
|
-
export declare const SixInput: import("react").ForwardRefExoticComponent<JSX.SixInput & Omit<import("react").HTMLAttributes<HTMLSixInputElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixInputElement>>;
|
|
25
|
-
export declare const SixItemPicker: import("react").ForwardRefExoticComponent<JSX.SixItemPicker & Omit<import("react").HTMLAttributes<HTMLSixItemPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixItemPickerElement>>;
|
|
26
|
-
export declare const SixLanguageSwitcher: import("react").ForwardRefExoticComponent<JSX.SixLanguageSwitcher & Omit<import("react").HTMLAttributes<HTMLSixLanguageSwitcherElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixLanguageSwitcherElement>>;
|
|
27
|
-
export declare const SixLayoutGrid: import("react").ForwardRefExoticComponent<JSX.SixLayoutGrid & Omit<import("react").HTMLAttributes<HTMLSixLayoutGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixLayoutGridElement>>;
|
|
28
|
-
export declare const SixMainContainer: import("react").ForwardRefExoticComponent<JSX.SixMainContainer & Omit<import("react").HTMLAttributes<HTMLSixMainContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixMainContainerElement>>;
|
|
29
|
-
export declare const SixMenu: import("react").ForwardRefExoticComponent<JSX.SixMenu & Omit<import("react").HTMLAttributes<HTMLSixMenuElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixMenuElement>>;
|
|
30
|
-
export declare const SixMenuDivider: import("react").ForwardRefExoticComponent<JSX.SixMenuDivider & Omit<import("react").HTMLAttributes<HTMLSixMenuDividerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixMenuDividerElement>>;
|
|
31
|
-
export declare const SixMenuItem: import("react").ForwardRefExoticComponent<JSX.SixMenuItem & Omit<import("react").HTMLAttributes<HTMLSixMenuItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixMenuItemElement>>;
|
|
32
|
-
export declare const SixMenuLabel: import("react").ForwardRefExoticComponent<JSX.SixMenuLabel & Omit<import("react").HTMLAttributes<HTMLSixMenuLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixMenuLabelElement>>;
|
|
33
|
-
export declare const SixPicto: import("react").ForwardRefExoticComponent<JSX.SixPicto & Omit<import("react").HTMLAttributes<HTMLSixPictoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixPictoElement>>;
|
|
34
|
-
export declare const SixProgressBar: import("react").ForwardRefExoticComponent<JSX.SixProgressBar & Omit<import("react").HTMLAttributes<HTMLSixProgressBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixProgressBarElement>>;
|
|
35
|
-
export declare const SixProgressRing: import("react").ForwardRefExoticComponent<JSX.SixProgressRing & Omit<import("react").HTMLAttributes<HTMLSixProgressRingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixProgressRingElement>>;
|
|
36
|
-
export declare const SixRadio: import("react").ForwardRefExoticComponent<JSX.SixRadio & Omit<import("react").HTMLAttributes<HTMLSixRadioElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixRadioElement>>;
|
|
37
|
-
export declare const SixRange: import("react").ForwardRefExoticComponent<JSX.SixRange & Omit<import("react").HTMLAttributes<HTMLSixRangeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixRangeElement>>;
|
|
38
|
-
export declare const SixRoot: import("react").ForwardRefExoticComponent<JSX.SixRoot & Omit<import("react").HTMLAttributes<HTMLSixRootElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixRootElement>>;
|
|
39
|
-
export declare const SixSearchField: import("react").ForwardRefExoticComponent<JSX.SixSearchField & Omit<import("react").HTMLAttributes<HTMLSixSearchFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSearchFieldElement>>;
|
|
40
|
-
export declare const SixSelect: import("react").ForwardRefExoticComponent<JSX.SixSelect & Omit<import("react").HTMLAttributes<HTMLSixSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSelectElement>>;
|
|
41
|
-
export declare const SixSidebar: import("react").ForwardRefExoticComponent<JSX.SixSidebar & Omit<import("react").HTMLAttributes<HTMLSixSidebarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSidebarElement>>;
|
|
42
|
-
export declare const SixSidebarItem: import("react").ForwardRefExoticComponent<JSX.SixSidebarItem & Omit<import("react").HTMLAttributes<HTMLSixSidebarItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSidebarItemElement>>;
|
|
43
|
-
export declare const SixSidebarItemGroup: import("react").ForwardRefExoticComponent<JSX.SixSidebarItemGroup & Omit<import("react").HTMLAttributes<HTMLSixSidebarItemGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSidebarItemGroupElement>>;
|
|
44
|
-
export declare const SixSpinner: import("react").ForwardRefExoticComponent<JSX.SixSpinner & Omit<import("react").HTMLAttributes<HTMLSixSpinnerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSpinnerElement>>;
|
|
45
|
-
export declare const SixStageIndicator: import("react").ForwardRefExoticComponent<JSX.SixStageIndicator & Omit<import("react").HTMLAttributes<HTMLSixStageIndicatorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixStageIndicatorElement>>;
|
|
46
|
-
export declare const SixSwitch: import("react").ForwardRefExoticComponent<JSX.SixSwitch & Omit<import("react").HTMLAttributes<HTMLSixSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixSwitchElement>>;
|
|
47
|
-
export declare const SixTab: import("react").ForwardRefExoticComponent<JSX.SixTab & Omit<import("react").HTMLAttributes<HTMLSixTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTabElement>>;
|
|
48
|
-
export declare const SixTabGroup: import("react").ForwardRefExoticComponent<JSX.SixTabGroup & Omit<import("react").HTMLAttributes<HTMLSixTabGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTabGroupElement>>;
|
|
49
|
-
export declare const SixTabPanel: import("react").ForwardRefExoticComponent<JSX.SixTabPanel & Omit<import("react").HTMLAttributes<HTMLSixTabPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTabPanelElement>>;
|
|
50
|
-
export declare const SixTag: import("react").ForwardRefExoticComponent<JSX.SixTag & Omit<import("react").HTMLAttributes<HTMLSixTagElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTagElement>>;
|
|
51
|
-
export declare const SixTextarea: import("react").ForwardRefExoticComponent<JSX.SixTextarea & Omit<import("react").HTMLAttributes<HTMLSixTextareaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTextareaElement>>;
|
|
52
|
-
export declare const SixTile: import("react").ForwardRefExoticComponent<JSX.SixTile & Omit<import("react").HTMLAttributes<HTMLSixTileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTileElement>>;
|
|
53
|
-
export declare const SixTimepicker: import("react").ForwardRefExoticComponent<JSX.SixTimepicker & Omit<import("react").HTMLAttributes<HTMLSixTimepickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTimepickerElement>>;
|
|
54
|
-
export declare const SixTooltip: import("react").ForwardRefExoticComponent<JSX.SixTooltip & Omit<import("react").HTMLAttributes<HTMLSixTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSixTooltipElement>>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* auto-generated react proxies */
|
|
4
|
-
import { createReactComponent } from './react-component-lib';
|
|
5
|
-
import { defineCustomElements } from '@six-group/ui-library/loader';
|
|
6
|
-
defineCustomElements();
|
|
7
|
-
export const SetAttributes = /*@__PURE__*/ createReactComponent('set-attributes');
|
|
8
|
-
export const SixAlert = /*@__PURE__*/ createReactComponent('six-alert');
|
|
9
|
-
export const SixAvatar = /*@__PURE__*/ createReactComponent('six-avatar');
|
|
10
|
-
export const SixBadge = /*@__PURE__*/ createReactComponent('six-badge');
|
|
11
|
-
export const SixButton = /*@__PURE__*/ createReactComponent('six-button');
|
|
12
|
-
export const SixCard = /*@__PURE__*/ createReactComponent('six-card');
|
|
13
|
-
export const SixCheckbox = /*@__PURE__*/ createReactComponent('six-checkbox');
|
|
14
|
-
export const SixDatepicker = /*@__PURE__*/ createReactComponent('six-datepicker');
|
|
15
|
-
export const SixDetails = /*@__PURE__*/ createReactComponent('six-details');
|
|
16
|
-
export const SixDialog = /*@__PURE__*/ createReactComponent('six-dialog');
|
|
17
|
-
export const SixDrawer = /*@__PURE__*/ createReactComponent('six-drawer');
|
|
18
|
-
export const SixDropdown = /*@__PURE__*/ createReactComponent('six-dropdown');
|
|
19
|
-
export const SixError = /*@__PURE__*/ createReactComponent('six-error');
|
|
20
|
-
export const SixErrorPage = /*@__PURE__*/ createReactComponent('six-error-page');
|
|
21
|
-
export const SixFileList = /*@__PURE__*/ createReactComponent('six-file-list');
|
|
22
|
-
export const SixFileListItem = /*@__PURE__*/ createReactComponent('six-file-list-item');
|
|
23
|
-
export const SixFileUpload = /*@__PURE__*/ createReactComponent('six-file-upload');
|
|
24
|
-
export const SixFooter = /*@__PURE__*/ createReactComponent('six-footer');
|
|
25
|
-
export const SixGroupLabel = /*@__PURE__*/ createReactComponent('six-group-label');
|
|
26
|
-
export const SixHeader = /*@__PURE__*/ createReactComponent('six-header');
|
|
27
|
-
export const SixIcon = /*@__PURE__*/ createReactComponent('six-icon');
|
|
28
|
-
export const SixIconButton = /*@__PURE__*/ createReactComponent('six-icon-button');
|
|
29
|
-
export const SixInput = /*@__PURE__*/ createReactComponent('six-input');
|
|
30
|
-
export const SixItemPicker = /*@__PURE__*/ createReactComponent('six-item-picker');
|
|
31
|
-
export const SixLanguageSwitcher = /*@__PURE__*/ createReactComponent('six-language-switcher');
|
|
32
|
-
export const SixLayoutGrid = /*@__PURE__*/ createReactComponent('six-layout-grid');
|
|
33
|
-
export const SixMainContainer = /*@__PURE__*/ createReactComponent('six-main-container');
|
|
34
|
-
export const SixMenu = /*@__PURE__*/ createReactComponent('six-menu');
|
|
35
|
-
export const SixMenuDivider = /*@__PURE__*/ createReactComponent('six-menu-divider');
|
|
36
|
-
export const SixMenuItem = /*@__PURE__*/ createReactComponent('six-menu-item');
|
|
37
|
-
export const SixMenuLabel = /*@__PURE__*/ createReactComponent('six-menu-label');
|
|
38
|
-
export const SixPicto = /*@__PURE__*/ createReactComponent('six-picto');
|
|
39
|
-
export const SixProgressBar = /*@__PURE__*/ createReactComponent('six-progress-bar');
|
|
40
|
-
export const SixProgressRing = /*@__PURE__*/ createReactComponent('six-progress-ring');
|
|
41
|
-
export const SixRadio = /*@__PURE__*/ createReactComponent('six-radio');
|
|
42
|
-
export const SixRange = /*@__PURE__*/ createReactComponent('six-range');
|
|
43
|
-
export const SixRoot = /*@__PURE__*/ createReactComponent('six-root');
|
|
44
|
-
export const SixSearchField = /*@__PURE__*/ createReactComponent('six-search-field');
|
|
45
|
-
export const SixSelect = /*@__PURE__*/ createReactComponent('six-select');
|
|
46
|
-
export const SixSidebar = /*@__PURE__*/ createReactComponent('six-sidebar');
|
|
47
|
-
export const SixSidebarItem = /*@__PURE__*/ createReactComponent('six-sidebar-item');
|
|
48
|
-
export const SixSidebarItemGroup = /*@__PURE__*/ createReactComponent('six-sidebar-item-group');
|
|
49
|
-
export const SixSpinner = /*@__PURE__*/ createReactComponent('six-spinner');
|
|
50
|
-
export const SixStageIndicator = /*@__PURE__*/ createReactComponent('six-stage-indicator');
|
|
51
|
-
export const SixSwitch = /*@__PURE__*/ createReactComponent('six-switch');
|
|
52
|
-
export const SixTab = /*@__PURE__*/ createReactComponent('six-tab');
|
|
53
|
-
export const SixTabGroup = /*@__PURE__*/ createReactComponent('six-tab-group');
|
|
54
|
-
export const SixTabPanel = /*@__PURE__*/ createReactComponent('six-tab-panel');
|
|
55
|
-
export const SixTag = /*@__PURE__*/ createReactComponent('six-tag');
|
|
56
|
-
export const SixTextarea = /*@__PURE__*/ createReactComponent('six-textarea');
|
|
57
|
-
export const SixTile = /*@__PURE__*/ createReactComponent('six-tile');
|
|
58
|
-
export const SixTimepicker = /*@__PURE__*/ createReactComponent('six-timepicker');
|
|
59
|
-
export const SixTooltip = /*@__PURE__*/ createReactComponent('six-tooltip');
|
|
60
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/components/stencil-generated/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAA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AAC,CAAC;AAClH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAA,oBAAoB,CAAsD,qBAAqB,CAAC,CAAC;AAC/I,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,cAAc,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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<import("./utils").StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
10
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
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
|
-
// we should only render strings, booleans, and numbers as attrs in html.
|
|
44
|
-
// objects, functions, arrays etc get synced via properties on mount.
|
|
45
|
-
const type = typeof value;
|
|
46
|
-
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
47
|
-
acc[camelToDashCase(name)] = value;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return acc;
|
|
51
|
-
}, {});
|
|
52
|
-
if (manipulatePropsFunction) {
|
|
53
|
-
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
54
|
-
}
|
|
55
|
-
const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });
|
|
56
|
-
/**
|
|
57
|
-
* We use createElement here instead of
|
|
58
|
-
* React.createElement to work around a
|
|
59
|
-
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
|
|
60
|
-
* React.createElement causes all elements to be rendered
|
|
61
|
-
* as <tagname> instead of the actual Web Component.
|
|
62
|
-
*/
|
|
63
|
-
return createElement(tagName, newProps, children);
|
|
64
|
-
}
|
|
65
|
-
static get displayName() {
|
|
66
|
-
return displayName;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
70
|
-
if (ReactComponentContext) {
|
|
71
|
-
ReactComponent.contextType = ReactComponentContext;
|
|
72
|
-
}
|
|
73
|
-
return createForwardRef(ReactComponent, displayName);
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=createComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../../../../src/lib/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;QACrC,mBAAmB,EAAE,CAAC;KACvB;IAED,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,KAAM,SAAQ,KAAK,CAAC,SAAiD;QAO1F,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,CAAC;QAED,iBAAiB;YACf,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;QAED,kBAAkB,CAAC,SAAiD;YAClE,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACvD,CAAC;QAED,MAAM;YACJ,MAAM,KAA+D,IAAI,CAAC,KAAK,EAAzE,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,OAA0B,EAArB,MAAM,cAA1D,yDAA4D,CAAa,CAAC;YAEhF,IAAI,WAAW,G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;IAEF,iGAAiG;IACjG,IAAI,qBAAqB,EAAE;QACzB,cAAc,CAAC,WAAW,GAAG,qBAAqB,CAAC;KACpD;IAED,OAAO,gBAAgB,CAAwB,cAAc,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC,CAAC"}
|
package/dist/lib/components/stencil-generated/react-component-lib/createOverlayComponent.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,96 +0,0 @@
|
|
|
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 from 'react';
|
|
13
|
-
import ReactDOM from 'react-dom';
|
|
14
|
-
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
|
15
|
-
export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
16
|
-
defineCustomElement(tagName, customElement);
|
|
17
|
-
const displayName = dashToPascalCase(tagName);
|
|
18
|
-
const didDismissEventName = `on${displayName}DidDismiss`;
|
|
19
|
-
const didPresentEventName = `on${displayName}DidPresent`;
|
|
20
|
-
const willDismissEventName = `on${displayName}WillDismiss`;
|
|
21
|
-
const willPresentEventName = `on${displayName}WillPresent`;
|
|
22
|
-
let isDismissing = false;
|
|
23
|
-
class Overlay extends React.Component {
|
|
24
|
-
constructor(props) {
|
|
25
|
-
super(props);
|
|
26
|
-
if (typeof document !== 'undefined') {
|
|
27
|
-
this.el = document.createElement('div');
|
|
28
|
-
}
|
|
29
|
-
this.handleDismiss = this.handleDismiss.bind(this);
|
|
30
|
-
}
|
|
31
|
-
static get displayName() {
|
|
32
|
-
return displayName;
|
|
33
|
-
}
|
|
34
|
-
componentDidMount() {
|
|
35
|
-
if (this.props.isOpen) {
|
|
36
|
-
this.present();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
componentWillUnmount() {
|
|
40
|
-
if (this.overlay) {
|
|
41
|
-
this.overlay.dismiss();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
handleDismiss(event) {
|
|
45
|
-
if (this.props.onDidDismiss) {
|
|
46
|
-
this.props.onDidDismiss(event);
|
|
47
|
-
}
|
|
48
|
-
setRef(this.props.forwardedRef, null);
|
|
49
|
-
}
|
|
50
|
-
shouldComponentUpdate(nextProps) {
|
|
51
|
-
// Check if the overlay component is about to dismiss
|
|
52
|
-
if (this.overlay && nextProps.isOpen !== this.props.isOpen && nextProps.isOpen === false) {
|
|
53
|
-
isDismissing = true;
|
|
54
|
-
}
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
async componentDidUpdate(prevProps) {
|
|
58
|
-
if (this.overlay) {
|
|
59
|
-
attachProps(this.overlay, this.props, prevProps);
|
|
60
|
-
}
|
|
61
|
-
if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
|
|
62
|
-
this.present(prevProps);
|
|
63
|
-
}
|
|
64
|
-
if (this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false) {
|
|
65
|
-
await this.overlay.dismiss();
|
|
66
|
-
isDismissing = false;
|
|
67
|
-
/**
|
|
68
|
-
* Now that the overlay is dismissed
|
|
69
|
-
* we need to render again so that any
|
|
70
|
-
* inner components will be unmounted
|
|
71
|
-
*/
|
|
72
|
-
this.forceUpdate();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
async present(prevProps) {
|
|
76
|
-
const _a = this.props, { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent } = _a, cProps = __rest(_a, ["children", "isOpen", "onDidDismiss", "onDidPresent", "onWillDismiss", "onWillPresent"]);
|
|
77
|
-
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) });
|
|
78
|
-
this.overlay = await controller.create(Object.assign(Object.assign({}, elementProps), { component: this.el, componentProps: {} }));
|
|
79
|
-
setRef(this.props.forwardedRef, this.overlay);
|
|
80
|
-
attachProps(this.overlay, elementProps, prevProps);
|
|
81
|
-
await this.overlay.present();
|
|
82
|
-
}
|
|
83
|
-
render() {
|
|
84
|
-
/**
|
|
85
|
-
* Continue to render the component even when
|
|
86
|
-
* overlay is dismissing otherwise component
|
|
87
|
-
* will be hidden before animation is done.
|
|
88
|
-
*/
|
|
89
|
-
return ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return React.forwardRef((props, ref) => {
|
|
93
|
-
return React.createElement(Overlay, Object.assign({}, props, { forwardedRef: ref }));
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=createOverlayComponent.js.map
|
package/dist/lib/components/stencil-generated/react-component-lib/createOverlayComponent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../../../../src/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,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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AAC,aAAa,CAAC,CAAC,CAAC,GACpG,CAAC;YAEF,IAAI,CAAC,OAAO,GAAG,MAAM,UAAU,CAAC,MAAM,iCACjC,YAAY,KACf,SAAS,EAAE,IAAI,CAAC,EAAE,EAClB,cAAc,EAAE,EAAE,IAClB,CAAC;YAEH,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,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/lib/components/stencil-generated/react-component-lib/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
/**
|
|
4
|
-
* Transforms a React event name to a browser event name.
|
|
5
|
-
*/
|
|
6
|
-
export declare const transformReactEventName: (eventNameSuffix: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Checks if an event is supported in the current execution environment.
|
|
9
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
10
|
-
*/
|
|
11
|
-
export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
|
|
12
|
-
export declare const syncEvent: (node: Element & {
|
|
13
|
-
__events?: {
|
|
14
|
-
[key: string]: (e: Event) => any;
|
|
15
|
-
};
|
|
16
|
-
}, eventName: string, newEventHandler?: (e: Event) => any) => void;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { camelToDashCase } from './case';
|
|
2
|
-
export const attachProps = (node, newProps, oldProps = {}) => {
|
|
3
|
-
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
4
|
-
if (node instanceof Element) {
|
|
5
|
-
// add any classes in className to the class list
|
|
6
|
-
const className = getClassName(node.classList, newProps, oldProps);
|
|
7
|
-
if (className !== '') {
|
|
8
|
-
node.className = className;
|
|
9
|
-
}
|
|
10
|
-
Object.keys(newProps).forEach((name) => {
|
|
11
|
-
if (name === 'children' ||
|
|
12
|
-
name === 'style' ||
|
|
13
|
-
name === 'ref' ||
|
|
14
|
-
name === 'class' ||
|
|
15
|
-
name === 'className' ||
|
|
16
|
-
name === 'forwardedRef') {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
20
|
-
const eventName = name.substring(2);
|
|
21
|
-
const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
|
|
22
|
-
if (!isCoveredByReact(eventNameLc)) {
|
|
23
|
-
syncEvent(node, eventNameLc, newProps[name]);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
node[name] = newProps[name];
|
|
28
|
-
const propType = typeof newProps[name];
|
|
29
|
-
if (propType === 'string') {
|
|
30
|
-
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
export const getClassName = (classList, newProps, oldProps) => {
|
|
37
|
-
const newClassProp = newProps.className || newProps.class;
|
|
38
|
-
const oldClassProp = oldProps.className || oldProps.class;
|
|
39
|
-
// map the classes to Maps for performance
|
|
40
|
-
const currentClasses = arrayToMap(classList);
|
|
41
|
-
const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
42
|
-
const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
43
|
-
const finalClassNames = [];
|
|
44
|
-
// loop through each of the current classes on the component
|
|
45
|
-
// to see if it should be a part of the classNames added
|
|
46
|
-
currentClasses.forEach((currentClass) => {
|
|
47
|
-
if (incomingPropClasses.has(currentClass)) {
|
|
48
|
-
// add it as its already included in classnames coming in from newProps
|
|
49
|
-
finalClassNames.push(currentClass);
|
|
50
|
-
incomingPropClasses.delete(currentClass);
|
|
51
|
-
}
|
|
52
|
-
else if (!oldPropClasses.has(currentClass)) {
|
|
53
|
-
// add it as it has NOT been removed by user
|
|
54
|
-
finalClassNames.push(currentClass);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
incomingPropClasses.forEach((s) => finalClassNames.push(s));
|
|
58
|
-
return finalClassNames.join(' ');
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Transforms a React event name to a browser event name.
|
|
62
|
-
*/
|
|
63
|
-
export const transformReactEventName = (eventNameSuffix) => {
|
|
64
|
-
switch (eventNameSuffix) {
|
|
65
|
-
case 'doubleclick':
|
|
66
|
-
return 'dblclick';
|
|
67
|
-
}
|
|
68
|
-
return eventNameSuffix;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Checks if an event is supported in the current execution environment.
|
|
72
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
73
|
-
*/
|
|
74
|
-
export const isCoveredByReact = (eventNameSuffix) => {
|
|
75
|
-
if (typeof document === 'undefined') {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
const eventName = 'on' + transformReactEventName(eventNameSuffix);
|
|
80
|
-
let isSupported = eventName in document;
|
|
81
|
-
if (!isSupported) {
|
|
82
|
-
const element = document.createElement('div');
|
|
83
|
-
element.setAttribute(eventName, 'return;');
|
|
84
|
-
isSupported = typeof element[eventName] === 'function';
|
|
85
|
-
}
|
|
86
|
-
return isSupported;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
export const syncEvent = (node, eventName, newEventHandler) => {
|
|
90
|
-
const eventStore = node.__events || (node.__events = {});
|
|
91
|
-
const oldEventHandler = eventStore[eventName];
|
|
92
|
-
// Remove old listener so they don't double up.
|
|
93
|
-
if (oldEventHandler) {
|
|
94
|
-
node.removeEventListener(eventName, oldEventHandler);
|
|
95
|
-
}
|
|
96
|
-
// Bind new listener.
|
|
97
|
-
node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
|
|
98
|
-
if (newEventHandler) {
|
|
99
|
-
newEventHandler.call(this, e);
|
|
100
|
-
}
|
|
101
|
-
}));
|
|
102
|
-
};
|
|
103
|
-
const arrayToMap = (arr) => {
|
|
104
|
-
const map = new Map();
|
|
105
|
-
arr.forEach((s) => map.set(s, s));
|
|
106
|
-
return map;
|
|
107
|
-
};
|
|
108
|
-
//# sourceMappingURL=attachProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachProps.js","sourceRoot":"","sources":["../../../../../../src/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,CAAC,IAAiB,EAAE,QAAa,EAAE,WAAgB,EAAE,EAAE,EAAE;IAClF,6GAA6G;IAC7G,IAAI,IAAI,YAAY,OAAO,EAAE;QAC3B,iDAAiD;QACjD,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,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrC,IACE,IAAI,KAAK,UAAU;gBACnB,IAAI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AAC,CAAC,CAAC,CAAC;IACxD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case.js","sourceRoot":"","sources":["../../../../../../src/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,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../../../src/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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
8
|
-
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
9
|
-
export * from './attachProps';
|
|
10
|
-
export * from './case';
|