@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
@@ -1,40 +0,0 @@
1
- {
2
- "name": "@rmwc/base",
3
- "version": "5.7.2",
4
- "description": "RMWC base module",
5
- "main": "code/index.js",
6
- "types": "code/index.d.ts",
7
- "sideEffects": false,
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/jamesmfriedman/rmwc.git"
14
- },
15
- "keywords": [
16
- "rmwc"
17
- ],
18
- "author": "James Friedman",
19
- "private": false,
20
- "license": "MIT",
21
- "bugs": {
22
- "url": "https://github.com/jamesmfriedman/rmwc/issues"
23
- },
24
- "homepage": "https://github.com/jamesmfriedman/rmwc/tree/master/src/base#readme",
25
- "peerDependencies": {
26
- "react": "^16.3.x",
27
- "react-dom": "^16.3.x"
28
- },
29
- "dependencies": {
30
- "@rmwc/types": "^5.6.0",
31
- "classnames": "^2.2.6",
32
- "focus-trap": "^5.0.0",
33
- "hyperform": "^0.9.9",
34
- "mutation-observer": "^1.0.3"
35
- },
36
- "devDependencies": {
37
- "@types/classnames": "^2.2.7"
38
- },
39
- "gitHead": "885a9aa61c9ea684801873f17cfd4581c2b5e9f4"
40
- }
@@ -1,135 +0,0 @@
1
- /* eslint-disable */
2
- import * as RMWC from '@rmwc/types';
3
- import * as React from 'react';
4
- import { IconProps } from '@rmwc/icon';
5
- import { SpecificEventListener } from '@material/base/types';
6
- import { MDCTextFieldFoundation, MDCTextFieldIconFoundation, MDCTextFieldCharacterCounterFoundation } from '@material/textfield';
7
- import { FoundationComponent } from '@rmwc/base';
8
- /*********************************************************************
9
- * TextField
10
- *********************************************************************/
11
- /** A TextField component for accepting text input from a user. */
12
- export interface TextFieldProps {
13
- /** Sets the value for controlled TextFields. */
14
- value?: string | number;
15
- /** Adds help text to the field */
16
- helpText?: React.ReactNode | TextFieldHelperTextProps;
17
- /** Shows the character count, must be used in conjunction with maxLength. */
18
- characterCount?: boolean;
19
- /** Makes the TextField visually invalid. This is sometimes automatically applied in cases where required or pattern is used. */
20
- invalid?: boolean;
21
- /** Makes the Textfield disabled. */
22
- disabled?: boolean;
23
- /** Makes the Textfield required. */
24
- required?: boolean;
25
- /** Outline the TextField */
26
- outlined?: boolean;
27
- /** A label for the input. */
28
- label?: React.ReactNode;
29
- /** Makes a multiline TextField. */
30
- textarea?: boolean;
31
- /** Makes the TextField fullwidth. */
32
- fullwidth?: boolean;
33
- /** Add a leading icon. */
34
- icon?: RMWC.IconPropT;
35
- /** Add a trailing icon. */
36
- trailingIcon?: RMWC.IconPropT;
37
- /** By default, props spread to the input. These props are for the component's root container. */
38
- rootProps?: Object;
39
- /** A reference to the native input or textarea. */
40
- inputRef?: React.MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
41
- /** The type of input field to render, search, number, etc */
42
- type?: string;
43
- }
44
- export interface DeprecatedTextfieldProps {
45
- /** DEPRECATED: Is being removed from MCW. */
46
- dense?: boolean;
47
- /** DEPRECATED: Use icon. */
48
- withLeadingIcon?: RMWC.IconPropT;
49
- /** DEPRECATED: Use trailingIcon. */
50
- withTrailingIcon?: RMWC.IconPropT;
51
- }
52
- /** A TextField component for accepting text input from a user. */
53
- export declare class TextField extends FoundationComponent<MDCTextFieldFoundation, TextFieldProps & DeprecatedTextfieldProps> {
54
- static displayName: string;
55
- generatedId: string;
56
- private root;
57
- private input;
58
- private label;
59
- private lineRipple;
60
- characterCounter?: null | TextFieldCharacterCount;
61
- leadingIcon: null | TextFieldIcon;
62
- trailingIcon: null | TextFieldIcon;
63
- outline: null | any;
64
- valueNeedsUpdate: boolean;
65
- constructor(props: any);
66
- getDefaultFoundation(): MDCTextFieldFoundation;
67
- getLabelAdapterMethods(): {
68
- shakeLabel: (shouldShake: boolean) => void;
69
- floatLabel: (shouldFloat: boolean) => void;
70
- hasLabel: () => boolean;
71
- getLabelWidth: () => number;
72
- };
73
- getLineRippleAdapterMethods(): {
74
- activateLineRipple: () => void;
75
- deactivateLineRipple: () => void;
76
- setLineRippleTransformOrigin: (normalizedX: number) => void;
77
- };
78
- getOutlineAdapterMethods(): {
79
- notchOutline: (labelWidth: number) => void;
80
- closeOutline: () => any;
81
- hasOutline: () => boolean;
82
- };
83
- getInputAdapterMethods(): {
84
- registerInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
85
- deregisterInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
86
- getNativeInput: () => (HTMLInputElement & HTMLTextAreaElement) | null;
87
- };
88
- getFoundationMap(): {
89
- characterCounter: MDCTextFieldCharacterCounterFoundation | undefined;
90
- helperText: undefined;
91
- leadingIcon: MDCTextFieldIconFoundation | undefined;
92
- trailingIcon: MDCTextFieldIconFoundation | undefined;
93
- };
94
- renderIcon(icon: RMWC.IconPropT, leadOrTrail: 'leadingIcon' | 'trailingIcon'): JSX.Element;
95
- sync(props: TextFieldProps): void;
96
- handleOnChange(evt: React.ChangeEvent<HTMLInputElement>): void;
97
- renderHelpText(renderedCharacterCounter?: React.ReactNode): JSX.Element | null;
98
- render(): JSX.Element;
99
- }
100
- /*********************************************************************
101
- * Helper Text
102
- *********************************************************************/
103
- interface TextFieldHelperCharacterCount {
104
- }
105
- declare class TextFieldCharacterCount extends FoundationComponent<MDCTextFieldCharacterCounterFoundation, TextFieldHelperCharacterCount> {
106
- static displayName: string;
107
- state: {
108
- content: string;
109
- };
110
- getDefaultFoundation(): MDCTextFieldCharacterCounterFoundation;
111
- render(): JSX.Element;
112
- }
113
- export interface TextFieldHelperTextProps {
114
- /** Make the help text always visible */
115
- persistent?: boolean;
116
- /** Make the help a validation message style */
117
- validationMsg?: boolean;
118
- /** Content for the help text */
119
- children: React.ReactNode;
120
- }
121
- /** A help text component */
122
- export declare const TextFieldHelperText: React.ComponentType<RMWC.MergeInterfacesT<TextFieldHelperTextProps, RMWC.ComponentProps>>;
123
- /*********************************************************************
124
- * Icon
125
- *********************************************************************/
126
- /**
127
- * An Icon in a TextField
128
- */
129
- export declare class TextFieldIcon extends FoundationComponent<MDCTextFieldIconFoundation, IconProps> {
130
- static displayName: string;
131
- private root;
132
- getDefaultFoundation(): MDCTextFieldIconFoundation;
133
- render(): JSX.Element;
134
- }
135
- export {};