@fibery/ui-kit 1.28.4 → 1.29.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": "@fibery/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"src/antd/styles.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"src/select",
|
|
21
21
|
"src/error-alert",
|
|
22
22
|
"src/actions-menu",
|
|
23
|
-
"src/
|
|
23
|
+
"src/palette.ts",
|
|
24
24
|
"src/tooltip.tsx",
|
|
25
25
|
"src/tooltip-if-overflown.tsx",
|
|
26
26
|
"src/back-button.tsx",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"react-virtuoso": "4.6.0",
|
|
76
76
|
"screenfull": "6.0.1",
|
|
77
77
|
"ua-parser-js": "0.7.24",
|
|
78
|
-
"@fibery/emoji-data": "2.
|
|
79
|
-
"@fibery/helpers": "1.
|
|
80
|
-
"@fibery/react": "1.
|
|
78
|
+
"@fibery/emoji-data": "2.6.0",
|
|
79
|
+
"@fibery/helpers": "1.3.0",
|
|
80
|
+
"@fibery/react": "1.4.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": "^18.2.0",
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
"react-dom": "18.2.0",
|
|
109
109
|
"svg-parser": "2.0.4",
|
|
110
110
|
"svgo": "2.8.0",
|
|
111
|
-
"typescript": "5.
|
|
111
|
+
"typescript": "5.4.3",
|
|
112
112
|
"unist-util-reduce": "0.2.2",
|
|
113
113
|
"@fibery/babel-preset": "7.4.0",
|
|
114
|
-
"@fibery/eslint-config": "8.
|
|
114
|
+
"@fibery/eslint-config": "8.6.0"
|
|
115
115
|
},
|
|
116
116
|
"jest": {
|
|
117
117
|
"testEnvironment": "jsdom",
|
|
@@ -117,10 +117,11 @@ export type ActionsMenuItemProps = {
|
|
|
117
117
|
loading?: boolean;
|
|
118
118
|
checked?: boolean;
|
|
119
119
|
children: ReactNode;
|
|
120
|
+
className?: string;
|
|
120
121
|
};
|
|
121
122
|
|
|
122
123
|
const ActionsMenuItemComponent: React.FC<
|
|
123
|
-
ActionsMenuItemProps & {id?: string; showWarning?: boolean; onSelect: (e: Event) => void}
|
|
124
|
+
ActionsMenuItemProps & {id?: string; showWarning?: boolean; onSelect: (e: Event) => void; className?: string}
|
|
124
125
|
> = memo(function ActionsMenuItemComponent({
|
|
125
126
|
id,
|
|
126
127
|
testId,
|
|
@@ -135,6 +136,7 @@ const ActionsMenuItemComponent: React.FC<
|
|
|
135
136
|
loading,
|
|
136
137
|
checked,
|
|
137
138
|
children,
|
|
139
|
+
className,
|
|
138
140
|
}) {
|
|
139
141
|
const {MenuPrimitive} = useActionsMenuContext();
|
|
140
142
|
const setActiveDangerousRow = useSetActiveDangerousRow();
|
|
@@ -167,7 +169,8 @@ const ActionsMenuItemComponent: React.FC<
|
|
|
167
169
|
rowCss,
|
|
168
170
|
dangerous && dangerousItemCss,
|
|
169
171
|
showWarning && dangerousConfirmationCss,
|
|
170
|
-
description && rowWithDescriptionCss
|
|
172
|
+
description && rowWithDescriptionCss,
|
|
173
|
+
className
|
|
171
174
|
)}
|
|
172
175
|
disabled={disabled}
|
|
173
176
|
>
|
|
@@ -191,11 +194,19 @@ const ActionsMenuItemComponent: React.FC<
|
|
|
191
194
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
192
195
|
const noop = () => {};
|
|
193
196
|
|
|
194
|
-
export const ActionsMenuItem: React.FC<ActionsMenuItemProps> = (props) => {
|
|
197
|
+
export const ActionsMenuItem: React.FC<ActionsMenuItemProps> = ({className, ...props}) => {
|
|
195
198
|
const id = useId();
|
|
196
199
|
const activeDangerousRow = useActiveDangerousRow();
|
|
197
200
|
|
|
198
201
|
const onSelect = useCallbackRef(props.onSelect || noop);
|
|
199
202
|
|
|
200
|
-
return
|
|
203
|
+
return (
|
|
204
|
+
<ActionsMenuItemComponent
|
|
205
|
+
{...props}
|
|
206
|
+
className={className}
|
|
207
|
+
id={id}
|
|
208
|
+
showWarning={activeDangerousRow === id}
|
|
209
|
+
onSelect={onSelect}
|
|
210
|
+
/>
|
|
211
|
+
);
|
|
201
212
|
};
|
package/src/design-system.ts
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
whiteA,
|
|
18
18
|
yellow,
|
|
19
19
|
yellowDark,
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./palette";
|
|
21
21
|
import {a11yColor} from "./a11y-color";
|
|
22
22
|
import {createInlineTheme as createInlineStyles, varPrefix} from "./create-inline-theme";
|
|
23
23
|
import {ThemeMode} from "./theme-settings";
|
|
@@ -448,6 +448,7 @@ export const themeColors = {
|
|
|
448
448
|
colorBgNotificationSelected: [indigo.indigo3, indigoDark.indigo4],
|
|
449
449
|
colorBgNotificationSelectedHover: [indigo.indigo4, indigoDark.indigo6],
|
|
450
450
|
disabledInversedTextColor: [shades.opacity25, lights.opacity25],
|
|
451
|
+
success: [teal.teal9, tealDark.teal9],
|
|
451
452
|
danger: [red.red9, redDark.red10],
|
|
452
453
|
active: [red.red9, redDark.red10],
|
|
453
454
|
warning: ["#FFD41E", "#FFD41E"],
|
|
@@ -691,7 +692,7 @@ export const getIconColor = _.memoize(
|
|
|
691
692
|
export const cardTypeColors = [
|
|
692
693
|
"#4A4A4A",
|
|
693
694
|
"#6A849B",
|
|
694
|
-
"#
|
|
695
|
+
"#99A2AB",
|
|
695
696
|
"#D40915",
|
|
696
697
|
"#E72065",
|
|
697
698
|
"#9C2BAF",
|
|
@@ -778,6 +779,7 @@ export const layout = {
|
|
|
778
779
|
viewSetupWidth: "30vw",
|
|
779
780
|
viewSetupMinWidth: 380,
|
|
780
781
|
inputHeight: 36, //TODO: merge input and item height?
|
|
782
|
+
timelineToolbarHeight: 60,
|
|
781
783
|
timelineLineHeight: 48,
|
|
782
784
|
timelineGroupPadding: 0,
|
|
783
785
|
timelineItemHeightRatio: 36 / 48,
|
package/src/loaders.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import {getShiftStyle} from "./icons/get-shift-style";
|
|
|
7
7
|
import {LoadingSausage} from "./loading-sausage";
|
|
8
8
|
import {useTheme} from "./theme-provider";
|
|
9
9
|
|
|
10
|
-
export const LoadingView = styled.div<{absolute
|
|
10
|
+
export const LoadingView = styled.div<{absolute?: boolean; backgroundColor?: string}>`
|
|
11
11
|
position: ${(props) => (props.absolute ? "absolute" : "static")};
|
|
12
12
|
height: ${(props) => (props.absolute ? "auto" : "100%")};
|
|
13
13
|
background: ${(props) => props.backgroundColor || themeVars.mainBg};
|
|
File without changes
|