@webiny/ui 6.0.0-rc.1 → 6.0.0-rc.3
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/Button/Button.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ interface ButtonProps {
|
|
|
18
18
|
* Label and optionally an icon (using Button.Icon component).
|
|
19
19
|
*/
|
|
20
20
|
children?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Icon to display inside the button.
|
|
23
|
+
*/
|
|
24
|
+
icon?: React.ReactNode;
|
|
21
25
|
/**
|
|
22
26
|
* Show ripple effect on button click.
|
|
23
27
|
*/
|
package/Button/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","AdminUiButton","useMappedButtonProps","props","mappedProps","createElement","displayName"],"sources":["Button.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui/Button/index.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\n\ninterface ButtonProps {\n /**\n * Make button flat (only applicable to Primary button).\n */\n flat?: boolean;\n\n /**\n * Make button smaller.\n */\n small?: boolean;\n\n /**\n * Returning `any` allows us to pass callbacks to the button without worrying about their\n * specific return types. Buttons don't use return values from callbacks, so we don't have to worry\n * about their return types at all.\n */\n onClick?: (event: React.MouseEvent<any, MouseEvent>) => any;\n\n /**\n * Label and optionally an icon (using Button.Icon component).\n */\n children?: React.ReactNode;\n\n /**\n * Show ripple effect on button click.\n */\n ripple?: boolean;\n\n /**\n * Additional button class name.\n */\n className?: string;\n\n /**\n * Is button disabled?\n */\n disabled?: boolean;\n\n /**\n * Additional inline styles.\n */\n style?: { [key: string]: any };\n\n /**\n * ID of the element for testing purposes.\n */\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nconst Button = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} />;\n};\n\nButton.displayName = \"Button\";\n\nexport { Button, ButtonProps };\n\n// Needed for backward compatibility.\nexport default Button;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAQ,kCAAkC;AAC1E,SAASC,oBAAoB;
|
|
1
|
+
{"version":3,"names":["React","Button","AdminUiButton","useMappedButtonProps","props","mappedProps","createElement","displayName"],"sources":["Button.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui/Button/index.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\n\ninterface ButtonProps {\n /**\n * Make button flat (only applicable to Primary button).\n */\n flat?: boolean;\n\n /**\n * Make button smaller.\n */\n small?: boolean;\n\n /**\n * Returning `any` allows us to pass callbacks to the button without worrying about their\n * specific return types. Buttons don't use return values from callbacks, so we don't have to worry\n * about their return types at all.\n */\n onClick?: (event: React.MouseEvent<any, MouseEvent>) => any;\n\n /**\n * Label and optionally an icon (using Button.Icon component).\n */\n children?: React.ReactNode;\n\n /**\n * Icon to display inside the button.\n */\n icon?: React.ReactNode;\n\n /**\n * Show ripple effect on button click.\n */\n ripple?: boolean;\n\n /**\n * Additional button class name.\n */\n className?: string;\n\n /**\n * Is button disabled?\n */\n disabled?: boolean;\n\n /**\n * Additional inline styles.\n */\n style?: { [key: string]: any };\n\n /**\n * ID of the element for testing purposes.\n */\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nconst Button = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} />;\n};\n\nButton.displayName = \"Button\";\n\nexport { Button, ButtonProps };\n\n// Needed for backward compatibility.\nexport default Button;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAQ,kCAAkC;AAC1E,SAASC,oBAAoB;AAwD7B;AACA;AACA;AACA;AACA,MAAMF,MAAM,GAAIG,KAAkB,IAAK;EACnC,MAAMC,WAAW,GAAGF,oBAAoB,CAACC,KAAK,CAAC;EAC/C,oBAAOJ,KAAA,CAAAM,aAAA,CAACJ,aAAa,EAAKG,WAAc,CAAC;AAC7C,CAAC;AAEDJ,MAAM,CAACM,WAAW,GAAG,QAAQ;AAE7B,SAASN,MAAM;;AAEf;AACA,eAAeA,MAAM","ignoreList":[]}
|
|
@@ -9,5 +9,6 @@ export declare const useMappedButtonProps: (props: ButtonProps) => {
|
|
|
9
9
|
} | undefined;
|
|
10
10
|
onClick?: ((event: React.MouseEvent<any, MouseEvent>) => any) | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
|
+
icon?: import("react").ReactNode;
|
|
12
13
|
"data-testid"?: string | undefined;
|
|
13
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/ui",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@svgr/webpack": "6.5.1",
|
|
19
|
-
"@webiny/admin-ui": "6.0.0-rc.
|
|
20
|
-
"@webiny/utils": "6.0.0-rc.
|
|
19
|
+
"@webiny/admin-ui": "6.0.0-rc.3",
|
|
20
|
+
"@webiny/utils": "6.0.0-rc.3",
|
|
21
21
|
"classnames": "2.5.1",
|
|
22
22
|
"lodash": "4.17.23"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@emotion/babel-plugin": "11.13.5",
|
|
26
26
|
"@testing-library/react": "15.0.7",
|
|
27
|
-
"@webiny/build-tools": "6.0.0-rc.
|
|
28
|
-
"@webiny/validation": "6.0.0-rc.
|
|
27
|
+
"@webiny/build-tools": "6.0.0-rc.3",
|
|
28
|
+
"@webiny/validation": "6.0.0-rc.3",
|
|
29
29
|
"babel-loader": "10.0.0",
|
|
30
30
|
"execa": "5.1.1",
|
|
31
31
|
"ncp": "2.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": "5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"minimatch": "10.2.
|
|
37
|
+
"minimatch": "10.2.4",
|
|
38
38
|
"react": "18.2.0",
|
|
39
39
|
"react-dom": "18.2.0"
|
|
40
40
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "228fe25e1a17f248d566bce1c33d11c291955513"
|
|
53
53
|
}
|