@scm-manager/ui-components 2.46.2-20230911-085218 → 2.46.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/package.json +9 -9
- package/src/Icon.tsx +2 -5
- package/src/Notification.tsx +1 -1
- package/src/Tooltip.tsx +2 -5
- package/src/__snapshots__/storyshots.test.ts.snap +1264 -1194
- package/src/buttons/AddButton.tsx +0 -3
- package/src/buttons/Button.tsx +0 -3
- package/src/buttons/ButtonAddons.tsx +0 -3
- package/src/buttons/ButtonGroup.tsx +0 -3
- package/src/buttons/CreateButton.tsx +0 -3
- package/src/buttons/DeleteButton.tsx +0 -3
- package/src/buttons/DownloadButton.tsx +0 -3
- package/src/buttons/EditButton.tsx +0 -3
- package/src/buttons/LinkStyleButton.tsx +0 -3
- package/src/buttons/NoStyleButton.tsx +0 -3
- package/src/buttons/OpenInFullscreenButton.tsx +0 -3
- package/src/buttons/RemoveEntryOfTableButton.tsx +0 -3
- package/src/buttons/SubmitButton.tsx +0 -3
- package/src/forms/AddEntryToTableField.tsx +0 -4
- package/src/forms/AddKeyValueEntryToTableField.tsx +1 -4
- package/src/forms/AutocompleteAddEntryToTableField.tsx +0 -3
- package/src/forms/Checkbox.tsx +4 -18
- package/src/forms/FileInput.tsx +0 -3
- package/src/forms/FileUpload.tsx +0 -3
- package/src/forms/FilterInput.tsx +1 -4
- package/src/forms/FormFieldTypes.tsx +0 -30
- package/src/forms/LabelWithHelpIcon.tsx +0 -3
- package/src/forms/MemberNameTagGroup.tsx +0 -6
- package/src/forms/PasswordConfirmation.tsx +0 -3
- package/src/forms/Radio.tsx +0 -3
- package/src/forms/Select.tsx +2 -8
- package/src/forms/TagGroup.tsx +0 -3
- package/src/forms/Textarea.tsx +0 -6
- package/src/forms/TriStateCheckbox.tsx +0 -3
- package/src/forms/useAutofocus.ts +0 -3
- package/src/forms/useInnerRef.ts +0 -3
- package/src/layout/GroupEntries.tsx +24 -8
- package/src/layout/GroupEntry.stories.tsx +75 -0
- package/src/layout/GroupEntry.tsx +122 -0
- package/src/layout/index.ts +0 -1
- package/src/markdown/markdownExtensions.ts +2 -3
- package/src/popover/Popover.tsx +6 -9
- package/src/popover/usePopover.ts +0 -3
- package/src/repos/RepositoryEntry.tsx +110 -83
- package/src/repos/RepositoryFlag.tsx +5 -6
- package/src/repos/RepositoryFlags.tsx +15 -11
- package/src/table/Column.tsx +0 -3
- package/src/table/InfoTable.tsx +0 -3
- package/src/table/SortIcon.tsx +0 -3
- package/src/table/Table.tsx +5 -11
- package/src/table/TextColumn.tsx +0 -3
- package/src/layout/NamespaceEntries.tsx +0 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scm-manager/ui-components",
|
|
3
|
-
"version": "2.46.
|
|
3
|
+
"version": "2.46.3",
|
|
4
4
|
"description": "UI Components for SCM-Manager and its plugins",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@scm-manager/jest-preset": "^2.13.0",
|
|
25
25
|
"@scm-manager/prettier-config": "^2.10.1",
|
|
26
26
|
"@scm-manager/tsconfig": "^2.13.0",
|
|
27
|
-
"@scm-manager/ui-shortcuts": "2.46.
|
|
28
|
-
"@scm-manager/ui-syntaxhighlighting": "2.46.
|
|
29
|
-
"@scm-manager/ui-tests": "2.46.
|
|
30
|
-
"@scm-manager/ui-text": "2.46.
|
|
27
|
+
"@scm-manager/ui-shortcuts": "2.46.3",
|
|
28
|
+
"@scm-manager/ui-syntaxhighlighting": "2.46.3",
|
|
29
|
+
"@scm-manager/ui-tests": "2.46.3",
|
|
30
|
+
"@scm-manager/ui-text": "2.46.3",
|
|
31
31
|
"@storybook/addon-actions": "^6.4.20",
|
|
32
32
|
"@storybook/addon-essentials": "^6.4.20",
|
|
33
33
|
"@storybook/addon-interactions": "^6.4.20",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@storybook/manager-webpack5": "^6.4.20",
|
|
37
37
|
"@storybook/react": "^6.4.20",
|
|
38
38
|
"@types/classnames": "^2.2.9",
|
|
39
|
-
"@types/css": "^0.0.
|
|
39
|
+
"@types/css": "^0.0.31",
|
|
40
40
|
"@types/enzyme": "^3.10.3",
|
|
41
41
|
"@types/fetch-mock": "^7.3.1",
|
|
42
42
|
"@types/jest": "^24.0.19",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@headlessui/react": "^1.4.3",
|
|
68
|
-
"@scm-manager/ui-api": "2.46.
|
|
69
|
-
"@scm-manager/ui-extensions": "2.46.
|
|
70
|
-
"@scm-manager/ui-types": "2.46.
|
|
68
|
+
"@scm-manager/ui-api": "2.46.3",
|
|
69
|
+
"@scm-manager/ui-extensions": "2.46.3",
|
|
70
|
+
"@scm-manager/ui-types": "2.46.3",
|
|
71
71
|
"classnames": "^2.2.6",
|
|
72
72
|
"date-fns": "^2.4.1",
|
|
73
73
|
"deepmerge": "^4.2.2",
|
package/src/Icon.tsx
CHANGED
|
@@ -38,9 +38,6 @@ type Props = {
|
|
|
38
38
|
alt?: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
*/
|
|
44
41
|
const Icon: FC<Props> = ({
|
|
45
42
|
iconStyle = "fas",
|
|
46
43
|
color = "secondary",
|
|
@@ -51,12 +48,12 @@ const Icon: FC<Props> = ({
|
|
|
51
48
|
testId,
|
|
52
49
|
tabIndex,
|
|
53
50
|
onEnter,
|
|
54
|
-
alt = title
|
|
51
|
+
alt = title
|
|
55
52
|
}) => {
|
|
56
53
|
return (
|
|
57
54
|
<i
|
|
58
55
|
onClick={onClick}
|
|
59
|
-
onKeyPress={
|
|
56
|
+
onKeyPress={event => event.key === "Enter" && onEnter && onEnter(event)}
|
|
60
57
|
title={title}
|
|
61
58
|
className={classNames(iconStyle, "fa-fw", "fa-" + name, `has-text-${color}`, className)}
|
|
62
59
|
tabIndex={tabIndex}
|
package/src/Notification.tsx
CHANGED
|
@@ -27,7 +27,7 @@ import classNames from "classnames";
|
|
|
27
27
|
type NotificationType = "primary" | "info" | "success" | "warning" | "danger" | "inherit";
|
|
28
28
|
|
|
29
29
|
type Props = {
|
|
30
|
-
type
|
|
30
|
+
type: NotificationType;
|
|
31
31
|
onClose?: () => void;
|
|
32
32
|
className?: string;
|
|
33
33
|
children?: ReactNode;
|
package/src/Tooltip.tsx
CHANGED
|
@@ -92,7 +92,7 @@ const Arrow = {
|
|
|
92
92
|
bottom: ArrowBottom,
|
|
93
93
|
left: ArrowLeft,
|
|
94
94
|
right: ArrowRight,
|
|
95
|
-
top: ArrowTop
|
|
95
|
+
top: ArrowTop
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const TooltipContainerBase = styled.div<{ multiline?: boolean }>`
|
|
@@ -136,7 +136,7 @@ const Container = {
|
|
|
136
136
|
bottom: TooltipContainerBottom,
|
|
137
137
|
left: TooltipContainerLeft,
|
|
138
138
|
right: TooltipContainerRight,
|
|
139
|
-
top: TooltipContainerTop
|
|
139
|
+
top: TooltipContainerTop
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
type Props = {
|
|
@@ -150,9 +150,6 @@ type Props = {
|
|
|
150
150
|
|
|
151
151
|
export type TooltipLocation = "bottom" | "right" | "top" | "left";
|
|
152
152
|
|
|
153
|
-
/**
|
|
154
|
-
* @deprecated use {@link ui-overlays/Tooltip} instead
|
|
155
|
-
*/
|
|
156
153
|
const Tooltip: FC<Props> = ({ className, message, location = "right", multiline, children, id }) => {
|
|
157
154
|
const [open, setOpen] = useState(false);
|
|
158
155
|
|