@scm-manager/ui-components 2.35.0-20220431-140410 → 2.35.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scm-manager/ui-components",
|
|
3
|
-
"version": "2.35.0
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"description": "UI Components for SCM-Manager and its plugins",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@scm-manager/jest-preset": "^2.13.0",
|
|
26
26
|
"@scm-manager/prettier-config": "^2.10.1",
|
|
27
27
|
"@scm-manager/tsconfig": "^2.13.0",
|
|
28
|
-
"@scm-manager/ui-tests": "^2.35.0
|
|
28
|
+
"@scm-manager/ui-tests": "^2.35.0",
|
|
29
29
|
"@storybook/addon-actions": "^6.4.20",
|
|
30
30
|
"@storybook/addon-essentials": "^6.4.20",
|
|
31
31
|
"@storybook/addon-interactions": "^6.4.20",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@headlessui/react": "^1.4.3",
|
|
67
|
-
"@scm-manager/ui-api": "^2.35.0
|
|
68
|
-
"@scm-manager/ui-extensions": "^2.35.0
|
|
69
|
-
"@scm-manager/ui-types": "^2.35.0
|
|
67
|
+
"@scm-manager/ui-api": "^2.35.0",
|
|
68
|
+
"@scm-manager/ui-extensions": "^2.35.0",
|
|
69
|
+
"@scm-manager/ui-types": "^2.35.0",
|
|
70
70
|
"classnames": "^2.2.6",
|
|
71
71
|
"date-fns": "^2.4.1",
|
|
72
72
|
"deepmerge": "^4.2.2",
|
|
@@ -16885,7 +16885,7 @@ exports[`Storyshots Modal/ConfirmAlert Autofocus 1`] = `
|
|
|
16885
16885
|
className="control"
|
|
16886
16886
|
>
|
|
16887
16887
|
<button
|
|
16888
|
-
className="button
|
|
16888
|
+
className="button"
|
|
16889
16889
|
onClick={[Function]}
|
|
16890
16890
|
onKeyDown={[Function]}
|
|
16891
16891
|
tabIndex={0}
|
|
@@ -16963,7 +16963,7 @@ exports[`Storyshots Modal/ConfirmAlert Default 1`] = `
|
|
|
16963
16963
|
className="control"
|
|
16964
16964
|
>
|
|
16965
16965
|
<button
|
|
16966
|
-
className="button is-
|
|
16966
|
+
className="button is-outlined"
|
|
16967
16967
|
onClick={[Function]}
|
|
16968
16968
|
onKeyDown={[Function]}
|
|
16969
16969
|
tabIndex={0}
|
|
@@ -16975,7 +16975,7 @@ exports[`Storyshots Modal/ConfirmAlert Default 1`] = `
|
|
|
16975
16975
|
className="control"
|
|
16976
16976
|
>
|
|
16977
16977
|
<button
|
|
16978
|
-
className="button
|
|
16978
|
+
className="button"
|
|
16979
16979
|
onClick={[Function]}
|
|
16980
16980
|
onKeyDown={[Function]}
|
|
16981
16981
|
tabIndex={0}
|
|
@@ -68,7 +68,7 @@ export const ConfirmAlert: FC<Props> = ({ title, message, buttons, close }) => {
|
|
|
68
68
|
{buttons.map((button, index) => (
|
|
69
69
|
<p className="control" key={index}>
|
|
70
70
|
<button
|
|
71
|
-
className={classNames("button",
|
|
71
|
+
className={classNames("button", button.className, button.isLoading ? "is-loading" : "")}
|
|
72
72
|
key={index}
|
|
73
73
|
onClick={() => handleClickButton(button)}
|
|
74
74
|
onKeyDown={e => e.key === "Enter" && handleClickButton(button)}
|