@migov/digital-guidelines-core-react 4.1.0 → 4.3.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/components.js +467 -0
  2. package/dist/components.js.map +1 -0
  3. package/dist/types/components.d.ts +246 -0
  4. package/package.json +7 -6
  5. package/dist/index.js +0 -53
  6. package/dist/index.js.map +0 -1
  7. package/dist/react-component-lib/createComponent.js +0 -65
  8. package/dist/react-component-lib/createComponent.js.map +0 -1
  9. package/dist/react-component-lib/createOverlayComponent.js +0 -98
  10. package/dist/react-component-lib/createOverlayComponent.js.map +0 -1
  11. package/dist/react-component-lib/index.js +0 -3
  12. package/dist/react-component-lib/index.js.map +0 -1
  13. package/dist/react-component-lib/interfaces.js +0 -2
  14. package/dist/react-component-lib/interfaces.js.map +0 -1
  15. package/dist/react-component-lib/utils/attachProps.js +0 -92
  16. package/dist/react-component-lib/utils/attachProps.js.map +0 -1
  17. package/dist/react-component-lib/utils/case.js +0 -7
  18. package/dist/react-component-lib/utils/case.js.map +0 -1
  19. package/dist/react-component-lib/utils/dev.js +0 -13
  20. package/dist/react-component-lib/utils/dev.js.map +0 -1
  21. package/dist/react-component-lib/utils/index.js +0 -31
  22. package/dist/react-component-lib/utils/index.js.map +0 -1
  23. package/dist/types/index.d.ts +0 -50
  24. package/dist/types/react-component-lib/createComponent.d.ts +0 -10
  25. package/dist/types/react-component-lib/createOverlayComponent.d.ts +0 -21
  26. package/dist/types/react-component-lib/index.d.ts +0 -2
  27. package/dist/types/react-component-lib/interfaces.d.ts +0 -29
  28. package/dist/types/react-component-lib/utils/attachProps.d.ts +0 -9
  29. package/dist/types/react-component-lib/utils/case.d.ts +0 -2
  30. package/dist/types/react-component-lib/utils/dev.d.ts +0 -2
  31. package/dist/types/react-component-lib/utils/index.d.ts +0 -10
@@ -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":["../../../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":["../../../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,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
@@ -1,31 +0,0 @@
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 && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
26
- customElements.define(tagName, customElement);
27
- }
28
- };
29
- export * from './attachProps';
30
- export * from './case';
31
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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;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;QAEtB,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,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,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"}
@@ -1,50 +0,0 @@
1
- import type { JSX } from '@migov/digital-guidelines-core';
2
- export declare const SomAccordion: import("react").ForwardRefExoticComponent<JSX.SomAccordion & Omit<import("react").HTMLAttributes<HTMLSomAccordionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomAccordionElement>>;
3
- export declare const SomAccordionGroup: import("react").ForwardRefExoticComponent<JSX.SomAccordionGroup & Omit<import("react").HTMLAttributes<HTMLSomAccordionGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomAccordionGroupElement>>;
4
- export declare const SomAlert: import("react").ForwardRefExoticComponent<JSX.SomAlert & Omit<import("react").HTMLAttributes<HTMLSomAlertElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomAlertElement>>;
5
- export declare const SomBadge: import("react").ForwardRefExoticComponent<JSX.SomBadge & Omit<import("react").HTMLAttributes<HTMLSomBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomBadgeElement>>;
6
- export declare const SomButton: import("react").ForwardRefExoticComponent<JSX.SomButton & Omit<import("react").HTMLAttributes<HTMLSomButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomButtonElement>>;
7
- export declare const SomButtonDropdown: import("react").ForwardRefExoticComponent<JSX.SomButtonDropdown & Omit<import("react").HTMLAttributes<HTMLSomButtonDropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomButtonDropdownElement>>;
8
- export declare const SomCalendar: import("react").ForwardRefExoticComponent<JSX.SomCalendar & Omit<import("react").HTMLAttributes<HTMLSomCalendarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCalendarElement>>;
9
- export declare const SomCalendarVertical: import("react").ForwardRefExoticComponent<JSX.SomCalendarVertical & Omit<import("react").HTMLAttributes<HTMLSomCalendarVerticalElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCalendarVerticalElement>>;
10
- export declare const SomCard: import("react").ForwardRefExoticComponent<JSX.SomCard & Omit<import("react").HTMLAttributes<HTMLSomCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCardElement>>;
11
- export declare const SomCheckbox: import("react").ForwardRefExoticComponent<JSX.SomCheckbox & Omit<import("react").HTMLAttributes<HTMLSomCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCheckboxElement>>;
12
- export declare const SomCheckboxGroup: import("react").ForwardRefExoticComponent<JSX.SomCheckboxGroup & Omit<import("react").HTMLAttributes<HTMLSomCheckboxGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCheckboxGroupElement>>;
13
- export declare const SomCollapse: import("react").ForwardRefExoticComponent<JSX.SomCollapse & Omit<import("react").HTMLAttributes<HTMLSomCollapseElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomCollapseElement>>;
14
- export declare const SomContent: import("react").ForwardRefExoticComponent<JSX.SomContent & Omit<import("react").HTMLAttributes<HTMLSomContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomContentElement>>;
15
- export declare const SomDatePicker: import("react").ForwardRefExoticComponent<JSX.SomDatePicker & Omit<import("react").HTMLAttributes<HTMLSomDatePickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDatePickerElement>>;
16
- export declare const SomDatePickerInput: import("react").ForwardRefExoticComponent<JSX.SomDatePickerInput & Omit<import("react").HTMLAttributes<HTMLSomDatePickerInputElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDatePickerInputElement>>;
17
- export declare const SomDatePickerMobile: import("react").ForwardRefExoticComponent<JSX.SomDatePickerMobile & Omit<import("react").HTMLAttributes<HTMLSomDatePickerMobileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDatePickerMobileElement>>;
18
- export declare const SomDateRangePicker: import("react").ForwardRefExoticComponent<JSX.SomDateRangePicker & Omit<import("react").HTMLAttributes<HTMLSomDateRangePickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDateRangePickerElement>>;
19
- export declare const SomDateRangePickerButton: import("react").ForwardRefExoticComponent<JSX.SomDateRangePickerButton & Omit<import("react").HTMLAttributes<HTMLSomDateRangePickerButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDateRangePickerButtonElement>>;
20
- export declare const SomDialog: import("react").ForwardRefExoticComponent<JSX.SomDialog & Omit<import("react").HTMLAttributes<HTMLSomDialogElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomDialogElement>>;
21
- export declare const SomFooter: import("react").ForwardRefExoticComponent<JSX.SomFooter & Omit<import("react").HTMLAttributes<HTMLSomFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomFooterElement>>;
22
- export declare const SomFooterItem: import("react").ForwardRefExoticComponent<JSX.SomFooterItem & Omit<import("react").HTMLAttributes<HTMLSomFooterItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomFooterItemElement>>;
23
- export declare const SomGrid: import("react").ForwardRefExoticComponent<JSX.SomGrid & Omit<import("react").HTMLAttributes<HTMLSomGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomGridElement>>;
24
- export declare const SomGridTh: import("react").ForwardRefExoticComponent<JSX.SomGridTh & Omit<import("react").HTMLAttributes<HTMLSomGridThElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomGridThElement>>;
25
- export declare const SomHeader: import("react").ForwardRefExoticComponent<JSX.SomHeader & Omit<import("react").HTMLAttributes<HTMLSomHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomHeaderElement>>;
26
- export declare const SomIcon: import("react").ForwardRefExoticComponent<JSX.SomIcon & Omit<import("react").HTMLAttributes<HTMLSomIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomIconElement>>;
27
- export declare const SomInput: import("react").ForwardRefExoticComponent<JSX.SomInput & Omit<import("react").HTMLAttributes<HTMLSomInputElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomInputElement>>;
28
- export declare const SomList: import("react").ForwardRefExoticComponent<JSX.SomList & Omit<import("react").HTMLAttributes<HTMLSomListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomListElement>>;
29
- export declare const SomListHeader: import("react").ForwardRefExoticComponent<JSX.SomListHeader & Omit<import("react").HTMLAttributes<HTMLSomListHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomListHeaderElement>>;
30
- export declare const SomListItem: import("react").ForwardRefExoticComponent<JSX.SomListItem & Omit<import("react").HTMLAttributes<HTMLSomListItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomListItemElement>>;
31
- export declare const SomListParentItem: import("react").ForwardRefExoticComponent<JSX.SomListParentItem & Omit<import("react").HTMLAttributes<HTMLSomListParentItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomListParentItemElement>>;
32
- export declare const SomMobileSubheader: import("react").ForwardRefExoticComponent<JSX.SomMobileSubheader & Omit<import("react").HTMLAttributes<HTMLSomMobileSubheaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomMobileSubheaderElement>>;
33
- export declare const SomModal: import("react").ForwardRefExoticComponent<JSX.SomModal & Omit<import("react").HTMLAttributes<HTMLSomModalElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomModalElement>>;
34
- export declare const SomPagination: import("react").ForwardRefExoticComponent<JSX.SomPagination & Omit<import("react").HTMLAttributes<HTMLSomPaginationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomPaginationElement>>;
35
- export declare const SomPanel: import("react").ForwardRefExoticComponent<JSX.SomPanel & Omit<import("react").HTMLAttributes<HTMLSomPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomPanelElement>>;
36
- export declare const SomPopover: import("react").ForwardRefExoticComponent<JSX.SomPopover & Omit<import("react").HTMLAttributes<HTMLSomPopoverElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomPopoverElement>>;
37
- export declare const SomRadioButton: import("react").ForwardRefExoticComponent<JSX.SomRadioButton & Omit<import("react").HTMLAttributes<HTMLSomRadioButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomRadioButtonElement>>;
38
- export declare const SomRadioButtonGroup: import("react").ForwardRefExoticComponent<JSX.SomRadioButtonGroup & Omit<import("react").HTMLAttributes<HTMLSomRadioButtonGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomRadioButtonGroupElement>>;
39
- export declare const SomSelect: import("react").ForwardRefExoticComponent<JSX.SomSelect & Omit<import("react").HTMLAttributes<HTMLSomSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomSelectElement>>;
40
- export declare const SomSidebar: import("react").ForwardRefExoticComponent<JSX.SomSidebar & Omit<import("react").HTMLAttributes<HTMLSomSidebarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomSidebarElement>>;
41
- export declare const SomSpinner: import("react").ForwardRefExoticComponent<JSX.SomSpinner & Omit<import("react").HTMLAttributes<HTMLSomSpinnerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomSpinnerElement>>;
42
- export declare const SomStatusCard: import("react").ForwardRefExoticComponent<JSX.SomStatusCard & Omit<import("react").HTMLAttributes<HTMLSomStatusCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomStatusCardElement>>;
43
- export declare const SomTab: import("react").ForwardRefExoticComponent<JSX.SomTab & Omit<import("react").HTMLAttributes<HTMLSomTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTabElement>>;
44
- export declare const SomTabGroup: import("react").ForwardRefExoticComponent<JSX.SomTabGroup & Omit<import("react").HTMLAttributes<HTMLSomTabGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTabGroupElement>>;
45
- export declare const SomTabPanel: import("react").ForwardRefExoticComponent<JSX.SomTabPanel & Omit<import("react").HTMLAttributes<HTMLSomTabPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTabPanelElement>>;
46
- export declare const SomTabPanelGroup: import("react").ForwardRefExoticComponent<JSX.SomTabPanelGroup & Omit<import("react").HTMLAttributes<HTMLSomTabPanelGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTabPanelGroupElement>>;
47
- export declare const SomTabs: import("react").ForwardRefExoticComponent<JSX.SomTabs & Omit<import("react").HTMLAttributes<HTMLSomTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTabsElement>>;
48
- export declare const SomTextarea: import("react").ForwardRefExoticComponent<JSX.SomTextarea & Omit<import("react").HTMLAttributes<HTMLSomTextareaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTextareaElement>>;
49
- export declare const SomToggle: import("react").ForwardRefExoticComponent<JSX.SomToggle & Omit<import("react").HTMLAttributes<HTMLSomToggleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomToggleElement>>;
50
- export declare const SomTooltip: import("react").ForwardRefExoticComponent<JSX.SomTooltip & Omit<import("react").HTMLAttributes<HTMLSomTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSomTooltipElement>>;
@@ -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,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,2 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createOverlayComponent } from './createOverlayComponent';
@@ -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,9 +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
- export declare const transformReactEventName: (eventNameSuffix: string) => string;
4
- export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
5
- export declare const syncEvent: (node: Element & {
6
- __events?: {
7
- [key: string]: ((e: Event) => any) | undefined;
8
- };
9
- }, eventName: string, newEventHandler?: (e: Event) => any) => void;
@@ -1,2 +0,0 @@
1
- export declare const dashToPascalCase: (str: string) => string;
2
- export declare const camelToDashCase: (str: string) => string;
@@ -1,2 +0,0 @@
1
- export declare const isDevMode: () => boolean;
2
- export declare const deprecationWarning: (key: string, message: string) => void;
@@ -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';