@webiny/ui 5.29.0 → 5.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/AutoComplete/MultiAutoComplete.js +2 -0
  2. package/AutoComplete/MultiAutoComplete.js.map +1 -1
  3. package/AutoComplete/utils.d.ts +1 -1
  4. package/Button/Button.js +3 -1
  5. package/Button/Button.js.map +1 -1
  6. package/Button/Button.styles.d.ts +6 -0
  7. package/Button/Button.styles.js +15 -0
  8. package/Button/Button.styles.js.map +1 -0
  9. package/Chips/Chips.stories.js +10 -6
  10. package/Chips/Chips.stories.js.map +1 -1
  11. package/Chips/index.d.ts +0 -1
  12. package/Chips/index.js +0 -13
  13. package/Chips/index.js.map +1 -1
  14. package/Chips/styles.js +7 -5
  15. package/Chips/styles.js.map +1 -1
  16. package/Dialog/Dialog.js +4 -2
  17. package/Dialog/Dialog.js.map +1 -1
  18. package/DynamicFieldset/Fieldset.js +4 -1
  19. package/DynamicFieldset/Fieldset.js.map +1 -1
  20. package/Grid/Grid.js +1 -1
  21. package/Grid/Grid.js.map +1 -1
  22. package/ImageEditor/ImageEditor.js +2 -0
  23. package/ImageEditor/ImageEditor.js.map +1 -1
  24. package/Input/Input.d.ts +1 -0
  25. package/Input/Input.js +13 -1
  26. package/Input/Input.js.map +1 -1
  27. package/List/DataList/DataList.js.map +1 -1
  28. package/List/DataList/DataListWithSections.d.ts +45 -0
  29. package/List/DataList/DataListWithSections.js +356 -0
  30. package/List/DataList/DataListWithSections.js.map +1 -0
  31. package/List/DataList/index.d.ts +1 -0
  32. package/List/DataList/index.js +16 -0
  33. package/List/DataList/index.js.map +1 -1
  34. package/List/List.d.ts +1 -1
  35. package/List/List.js.map +1 -1
  36. package/List/index.d.ts +1 -1
  37. package/List/index.js +14 -0
  38. package/List/index.js.map +1 -1
  39. package/Menu/Menu.d.ts +0 -2
  40. package/Menu/Menu.js +1 -4
  41. package/Menu/Menu.js.map +1 -1
  42. package/Select/Select.js +2 -1
  43. package/Select/Select.js.map +1 -1
  44. package/Tabs/Tab.js +23 -10
  45. package/Tabs/Tab.js.map +1 -1
  46. package/Tabs/Tabs.d.ts +37 -21
  47. package/Tabs/Tabs.js +115 -142
  48. package/Tabs/Tabs.js.map +1 -1
  49. package/Tooltip/Tooltip.d.ts +1 -1
  50. package/TopAppBar/TopAppBarActionItem.d.ts +1 -1
  51. package/TopAppBar/TopAppBarActionItem.js.map +1 -1
  52. package/TopAppBar/TopAppBarNavigationIcon.d.ts +1 -1
  53. package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
  54. package/package.json +32 -44
  55. package/styles.scss +1 -1
  56. package/Chips/ChipIcon.d.ts +0 -4
  57. package/Chips/ChipIcon.js +0 -22
  58. package/Chips/ChipIcon.js.map +0 -1
  59. package/rmwc/base/LICENSE +0 -21
  60. package/rmwc/base/README.md +0 -3
  61. package/rmwc/base/code/component.d.ts +0 -18
  62. package/rmwc/base/code/component.js +0 -163
  63. package/rmwc/base/code/foundation-component.d.ts +0 -79
  64. package/rmwc/base/code/foundation-component.js +0 -354
  65. package/rmwc/base/code/index.d.ts +0 -16
  66. package/rmwc/base/code/index.js +0 -25
  67. package/rmwc/base/code/test-polyfill.d.ts +0 -3
  68. package/rmwc/base/code/test-polyfill.js +0 -33
  69. package/rmwc/base/code/utils/apply-passive.d.ts +0 -13
  70. package/rmwc/base/code/utils/apply-passive.js +0 -63
  71. package/rmwc/base/code/utils/debounce.d.ts +0 -2
  72. package/rmwc/base/code/utils/debounce.js +0 -17
  73. package/rmwc/base/code/utils/deprecation.d.ts +0 -10
  74. package/rmwc/base/code/utils/deprecation.js +0 -76
  75. package/rmwc/base/code/utils/emitter.d.ts +0 -13
  76. package/rmwc/base/code/utils/emitter.js +0 -120
  77. package/rmwc/base/code/utils/events-map.d.ts +0 -87
  78. package/rmwc/base/code/utils/events-map.js +0 -90
  79. package/rmwc/base/code/utils/index.d.ts +0 -10
  80. package/rmwc/base/code/utils/index.js +0 -19
  81. package/rmwc/base/code/utils/ponyfills.d.ts +0 -3
  82. package/rmwc/base/code/utils/ponyfills.js +0 -29
  83. package/rmwc/base/code/utils/random-id.d.ts +0 -6
  84. package/rmwc/base/code/utils/random-id.js +0 -14
  85. package/rmwc/base/code/utils/strings.d.ts +0 -3
  86. package/rmwc/base/code/utils/strings.js +0 -13
  87. package/rmwc/base/code/utils/use-knob.d.ts +0 -2
  88. package/rmwc/base/code/utils/use-knob.js +0 -64
  89. package/rmwc/base/code/utils/wrap-child.d.ts +0 -3
  90. package/rmwc/base/code/utils/wrap-child.js +0 -55
  91. package/rmwc/base/code/with-theme.d.ts +0 -15
  92. package/rmwc/base/code/with-theme.js +0 -106
  93. package/rmwc/base/package.json +0 -40
  94. package/rmwc/textfield/code/index.d.ts +0 -135
  95. package/rmwc/textfield/code/index.js +0 -571
  96. package/rmwc/textfield/next/index.d.ts +0 -135
  97. package/rmwc/textfield/next/index.js +0 -560
  98. package/rmwc/textfield/package.json +0 -45
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/ui",
3
- "version": "5.29.0",
3
+ "version": "5.30.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,39 +14,31 @@
14
14
  ],
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@babel/runtime": "7.18.3",
17
+ "@babel/runtime": "7.18.6",
18
18
  "@editorjs/editorjs": "2.25.0",
19
19
  "@emotion/core": "10.3.1",
20
20
  "@emotion/styled": "10.3.0",
21
- "@material/base": "3.1.0",
22
- "@material/textfield": "3.2.0",
23
- "@rmwc/base": "file:./rmwc/base",
24
- "@rmwc/button": "5.7.2",
25
- "@rmwc/checkbox": "5.7.2",
26
- "@rmwc/chip": "5.7.2",
27
- "@rmwc/dialog": "5.7.2",
28
- "@rmwc/drawer": "5.7.2",
29
- "@rmwc/elevation": "5.7.2",
30
- "@rmwc/fab": "5.7.2",
31
- "@rmwc/floating-label": "5.7.2",
32
- "@rmwc/grid": "5.7.2",
33
- "@rmwc/icon": "5.7.2",
34
- "@rmwc/icon-button": "5.7.2",
35
- "@rmwc/line-ripple": "5.7.2",
36
- "@rmwc/list": "5.7.2",
37
- "@rmwc/menu": "5.7.2",
38
- "@rmwc/notched-outline": "5.7.2",
39
- "@rmwc/radio": "5.7.2",
40
- "@rmwc/ripple": "5.7.2",
41
- "@rmwc/select": "5.7.2",
42
- "@rmwc/slider": "5.7.2",
43
- "@rmwc/snackbar": "5.7.2",
44
- "@rmwc/switch": "5.7.2",
45
- "@rmwc/tabs": "5.7.2",
46
- "@rmwc/textfield": "file:./rmwc/textfield",
47
- "@rmwc/top-app-bar": "5.7.2",
48
- "@rmwc/types": "5.6.0",
49
- "@rmwc/typography": "5.7.2",
21
+ "@rmwc/button": "7.0.3",
22
+ "@rmwc/checkbox": "7.0.3",
23
+ "@rmwc/chip": "7.0.3",
24
+ "@rmwc/dialog": "7.0.3",
25
+ "@rmwc/drawer": "7.0.3",
26
+ "@rmwc/elevation": "7.0.3",
27
+ "@rmwc/fab": "7.0.3",
28
+ "@rmwc/grid": "7.0.3",
29
+ "@rmwc/icon-button": "7.0.3",
30
+ "@rmwc/list": "7.0.3",
31
+ "@rmwc/menu": "7.0.3",
32
+ "@rmwc/radio": "7.0.3",
33
+ "@rmwc/ripple": "7.0.3",
34
+ "@rmwc/select": "7.0.3",
35
+ "@rmwc/slider": "7.0.3",
36
+ "@rmwc/snackbar": "7.0.3",
37
+ "@rmwc/switch": "7.0.3",
38
+ "@rmwc/tabs": "7.0.3",
39
+ "@rmwc/textfield": "7.0.3",
40
+ "@rmwc/top-app-bar": "7.0.3",
41
+ "@rmwc/typography": "7.0.3",
50
42
  "@svgr/webpack": "6.2.1",
51
43
  "brace": "0.11.1",
52
44
  "classnames": "2.3.1",
@@ -54,13 +46,10 @@
54
46
  "dot-prop-immutable": "2.1.1",
55
47
  "downshift": "2.2.3",
56
48
  "emotion": "10.0.17",
57
- "focus-trap": "5.1.0",
58
- "hyperform": "0.9.23",
59
49
  "keycode": "2.2.1",
60
50
  "load-script": "1.0.0",
61
51
  "lodash": "4.17.21",
62
- "material-components-web": "3.2.0",
63
- "mutation-observer": "1.0.3",
52
+ "material-components-web": "5.1.0",
64
53
  "nprogress": "0.2.0",
65
54
  "nuka-carousel": "4.7.1",
66
55
  "rc-tooltip": "3.7.3",
@@ -91,11 +80,11 @@
91
80
  "@types/react-custom-scrollbars": "^4.0.10",
92
81
  "@types/react-transition-group": "^4.4.4",
93
82
  "@types/shortid": "^0.0.29",
94
- "@webiny/cli": "^5.29.0",
95
- "@webiny/form": "^5.29.0",
96
- "@webiny/project-utils": "^5.29.0",
97
- "@webiny/storybook-utils": "^5.29.0",
98
- "@webiny/validation": "^5.29.0",
83
+ "@webiny/cli": "^5.30.0",
84
+ "@webiny/form": "^5.30.0",
85
+ "@webiny/project-utils": "^5.30.0",
86
+ "@webiny/storybook-utils": "^5.30.0",
87
+ "@webiny/validation": "^5.30.0",
99
88
  "babel-loader": "^8.0.0-beta.6",
100
89
  "babel-plugin-emotion": "^9.2.8",
101
90
  "execa": "^5.0.0",
@@ -109,7 +98,7 @@
109
98
  "sass": "^1.38.0",
110
99
  "sass-loader": "^12.1.0",
111
100
  "ttypescript": "^1.5.13",
112
- "typescript": "4.5.5",
101
+ "typescript": "4.7.4",
113
102
  "webpack": "^4.46.0"
114
103
  },
115
104
  "peerDependencies": {
@@ -137,10 +126,9 @@
137
126
  "dependencies": [
138
127
  "@svgr/webpack",
139
128
  "material-components-web",
140
- "@emotion/core",
141
- "@rmwc/base"
129
+ "@emotion/core"
142
130
  ]
143
131
  }
144
132
  },
145
- "gitHead": "8cf3d623d56105ad5a4bacbcb4140959e11477e6"
133
+ "gitHead": "3cadc5d26e565586b28772afbc18ae554ce7b782"
146
134
  }
package/styles.scss CHANGED
@@ -28,7 +28,7 @@ $mdc-theme-text-secondary-on-background: $webiny-theme-light-text-secondary-on-b
28
28
  $mdc-theme-text-hint-on-dark: $webiny-theme-light-text-hint-on-dark;
29
29
  $mdc-typography-font-family: $webiny-theme-typography-font-family;
30
30
 
31
- @import "~material-components-web/material-components-web.scss";
31
+ @import "material-components-web/material-components-web.scss";
32
32
  @import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700");
33
33
 
34
34
  /*
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ChipIconProps as RmwcChipIconProps } from "@rmwc/chip";
3
- export declare type ChipIconProps = RmwcChipIconProps;
4
- export declare const ChipIcon: React.FC<ChipIconProps>;
package/Chips/ChipIcon.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.ChipIcon = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _chip = require("@rmwc/chip");
13
-
14
- var _styles = require("./styles");
15
-
16
- var ChipIcon = function ChipIcon(props) {
17
- return /*#__PURE__*/_react.default.createElement(_chip.ChipIcon, Object.assign({
18
- className: _styles.chipIconWrapper
19
- }, props));
20
- };
21
-
22
- exports.ChipIcon = ChipIcon;
@@ -1 +0,0 @@
1
- {"version":3,"names":["ChipIcon","props","chipIconWrapper"],"sources":["ChipIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ChipIcon as RmwcChipIcon, ChipIconProps as RmwcChipIconProps } from \"@rmwc/chip\";\nimport { chipIconWrapper } from \"./styles\";\n\nexport type ChipIconProps = RmwcChipIconProps;\n\nexport const ChipIcon: React.FC<ChipIconProps> = props => {\n return <RmwcChipIcon className={chipIconWrapper} {...props} />;\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAIO,IAAMA,QAAiC,GAAG,SAApCA,QAAoC,CAAAC,KAAK,EAAI;EACtD,oBAAO,6BAAC,cAAD;IAAc,SAAS,EAAEC;EAAzB,GAA8CD,KAA9C,EAAP;AACH,CAFM"}
package/rmwc/base/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 James Friedman
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,3 +0,0 @@
1
- # RMWC Base module
2
-
3
- This module contains core functionality shared between all RMWC components.
@@ -1,18 +0,0 @@
1
- /* eslint-disable */
2
- import * as RMWC from '@rmwc/types';
3
- import * as React from 'react';
4
- import { DeprecateT } from './utils/deprecation';
5
- declare type ClassNamesInputT = ((props: any) => Array<string | undefined | null | {
6
- [className: string]: boolean | undefined | string | number;
7
- }>) | string[];
8
- interface ComponentFactoryOpts<Props> {
9
- displayName: string;
10
- classNames?: ClassNamesInputT;
11
- tag?: RMWC.TagT;
12
- deprecate?: DeprecateT;
13
- consumeProps?: string[];
14
- defaultProps?: any & Partial<RMWC.ComponentProps & Props>;
15
- render?: (props: any, ref: React.Ref<any>, tag: RMWC.TagT) => React.ReactElement<any>;
16
- }
17
- export declare const componentFactory: <P extends {}>({ displayName, classNames, tag: defaultTag, deprecate, defaultProps, consumeProps, render }: ComponentFactoryOpts<P>) => React.ComponentType<RMWC.MergeInterfacesT<P, RMWC.ComponentProps>>;
18
- export {};
@@ -1,163 +0,0 @@
1
- /* eslint-disable */
2
- "use strict";
3
- var __assign =
4
- (this && this.__assign) ||
5
- function () {
6
- __assign =
7
- Object.assign ||
8
- function (t) {
9
- for (var s, i = 1, n = arguments.length; i < n; i++) {
10
- s = arguments[i];
11
- for (var p in s) {
12
- if (Object.prototype.hasOwnProperty.call(s, p)) {
13
- t[p] = s[p];
14
- }
15
- }
16
- }
17
- return t;
18
- };
19
- return __assign.apply(this, arguments);
20
- };
21
- var __rest =
22
- (this && this.__rest) ||
23
- function (s, e) {
24
- var t = {};
25
- for (var p in s) {
26
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) {
27
- t[p] = s[p];
28
- }
29
- }
30
- if (s != null && typeof Object.getOwnPropertySymbols === "function") {
31
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
32
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) {
33
- t[p[i]] = s[p[i]];
34
- }
35
- }
36
- }
37
- return t;
38
- };
39
- var __read =
40
- (this && this.__read) ||
41
- function (o, n) {
42
- var m = typeof Symbol === "function" && o[Symbol.iterator];
43
- if (!m) {
44
- return o;
45
- }
46
- var i = m.call(o),
47
- r,
48
- ar = [],
49
- e;
50
- try {
51
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
52
- ar.push(r.value);
53
- }
54
- } catch (error) {
55
- e = { error: error };
56
- } finally {
57
- try {
58
- if (r && !r.done && (m = i["return"])) {
59
- m.call(i);
60
- }
61
- } finally {
62
- if (e) {
63
- throw e.error;
64
- }
65
- }
66
- }
67
- return ar;
68
- };
69
- var __spread =
70
- (this && this.__spread) ||
71
- function () {
72
- for (var ar = [], i = 0; i < arguments.length; i++) {
73
- ar = ar.concat(__read(arguments[i]));
74
- }
75
- return ar;
76
- };
77
- var __importStar =
78
- (this && this.__importStar) ||
79
- function (mod) {
80
- if (mod && mod.__esModule) {
81
- return mod;
82
- }
83
- var result = {};
84
- if (mod != null) {
85
- for (var k in mod) {
86
- if (Object.hasOwnProperty.call(mod, k)) {
87
- result[k] = mod[k];
88
- }
89
- }
90
- }
91
- result["default"] = mod;
92
- return result;
93
- };
94
- var __importDefault =
95
- (this && this.__importDefault) ||
96
- function (mod) {
97
- return mod && mod.__esModule ? mod : { default: mod };
98
- };
99
- Object.defineProperty(exports, "__esModule", { value: true });
100
- var React = __importStar(require("react"));
101
- var classnames_1 = __importDefault(require("classnames"));
102
- var with_theme_1 = require("./with-theme");
103
- var deprecation_1 = require("./utils/deprecation");
104
- // ALL OF THESE FUNCTIONS MUTATE THE COPY OF PROPS
105
- // this is intentional and done for speed and memory
106
- var handleClassNames = function (props, classNames, className, theme) {
107
- var finalClassNames = classnames_1.default.apply(
108
- void 0,
109
- __spread(
110
- [className],
111
- !!theme ? with_theme_1.parseThemeOptions(theme) : [],
112
- typeof classNames === "function" ? classNames(props) : classNames
113
- )
114
- );
115
- props.className = finalClassNames;
116
- };
117
- var handleTag = function (props, defaultTag, tag) {
118
- // Handle the case where we are extending a component but passing
119
- // a string as a tag. For instance, extending an Icon but rendering a span
120
- if (typeof defaultTag !== "string") {
121
- props.tag = tag;
122
- return defaultTag;
123
- }
124
- return tag || defaultTag;
125
- };
126
- var handleConsumeProps = function (props, consumeProps) {
127
- consumeProps.forEach(function (p) {
128
- delete props[p];
129
- });
130
- };
131
- exports.componentFactory = function (_a) {
132
- var displayName = _a.displayName,
133
- _b = _a.classNames,
134
- classNames = _b === void 0 ? [] : _b,
135
- _c = _a.tag,
136
- defaultTag = _c === void 0 ? "div" : _c,
137
- deprecate = _a.deprecate,
138
- defaultProps = _a.defaultProps,
139
- _d = _a.consumeProps,
140
- consumeProps = _d === void 0 ? [] : _d,
141
- render = _a.render;
142
- var Component = React.forwardRef(function (props, ref) {
143
- var className = props.className,
144
- theme = props.theme,
145
- tag = props.tag,
146
- rest = __rest(props, ["className", "theme", "tag"]);
147
- var newProps = rest;
148
- handleClassNames(newProps, classNames, className, theme);
149
- var Tag = handleTag(newProps, defaultTag, tag);
150
- if (deprecate) {
151
- newProps = deprecation_1.handleDeprecations(newProps, deprecate, displayName);
152
- }
153
- handleConsumeProps(newProps, consumeProps);
154
- var finalProps = newProps;
155
- // @ts-ignore
156
- return render
157
- ? render(finalProps, ref, Tag)
158
- : React.createElement(Tag, __assign({}, finalProps, { ref: ref }));
159
- });
160
- Component.displayName = displayName;
161
- Component.defaultProps = defaultProps;
162
- return Component;
163
- };
@@ -1,79 +0,0 @@
1
- /* eslint-disable */
2
- import * as RMWC from "@rmwc/types";
3
- import { SpecificEventListener } from "@material/base/types";
4
- import * as React from "react";
5
- export declare class FoundationElement<Props, ElementType = HTMLElement> {
6
- private _classes;
7
- private _events;
8
- private _style;
9
- private _props;
10
- private _ref;
11
- _onChange: (() => void) | null;
12
- constructor(onChange: () => void);
13
- onChange(): void;
14
- destroy(): void;
15
- /**************************************************
16
- * Classes
17
- **************************************************/
18
- addClass(className: string): void;
19
- removeClass(className: string): void;
20
- hasClass(className: string): boolean;
21
- /**************************************************
22
- * Props
23
- **************************************************/
24
- setProp(propName: keyof Props, value: any): void;
25
- getProp(propName: keyof Props): Partial<Props>[keyof Props];
26
- removeProp(propName: keyof Props): void;
27
- props(propsToMerge: { [key: string]: any }): any;
28
- /**************************************************
29
- * Styles
30
- **************************************************/
31
- setStyle(propertyName: string, value: number | string | null): void;
32
- /**************************************************
33
- * Events
34
- **************************************************/
35
- addEventListener(evtName: string, callback: SpecificEventListener<any>): void;
36
- removeEventListener(evtName: string, callback: SpecificEventListener<any>): void;
37
- /**************************************************
38
- * Refs
39
- **************************************************/
40
- setRef(el: any): void;
41
- readonly ref: ElementType | null;
42
- }
43
- declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends React.Component<
44
- infer TProps,
45
- any
46
- >
47
- ? TProps
48
- : TComponentOrTProps;
49
- export interface FoundationProps extends RMWC.ComponentProps {}
50
- interface FoundationState {}
51
- declare type FoundationPropsT<P> = RMWC.MergeInterfacesT<P, FoundationProps>;
52
- declare type FoundationStateT<S> = S & FoundationState;
53
- export declare class FoundationComponent<
54
- Foundation extends any,
55
- P,
56
- S extends any = {}
57
- > extends React.Component<FoundationPropsT<P>, FoundationStateT<S>> {
58
- static shouldDebounce: boolean;
59
- foundation: Foundation;
60
- elements: {
61
- [key: string]: FoundationElement<any, any>;
62
- };
63
- constructor(props: any);
64
- public override componentDidMount(): void;
65
- componentDidUpdate(prevProps: FoundationPropsT<P>): void;
66
- componentWillUnmount(): void;
67
- createElement<ElementType extends HTMLElement = HTMLElement>(
68
- elementName: string
69
- ): FoundationElement<ExtractProps<ElementType>, ElementType>;
70
- update(): void;
71
- sync(props: any, prevProps?: any): void;
72
- syncProp(prop: any, prevProp: any, callback: () => void): void;
73
- getDefaultFoundation(): Foundation;
74
- /**
75
- * Fires a cross-browser-compatible custom event from the component root of the given type,
76
- */
77
- emit(evtType: string, evtData: any, shouldBubble?: boolean): CustomEvent<any>;
78
- }
79
- export {};