@fibery/ui-kit 1.34.3 → 1.34.5
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 +10 -8
- package/src/actions-menu/actions-menu-sub-menu.tsx +1 -1
- package/src/design-system.ts +43 -30
- package/src/icons/ast/AppearanceAuto.ts +8 -0
- package/src/icons/ast/AppearanceDark.ts +8 -0
- package/src/icons/ast/AppearanceLight.ts +8 -0
- package/src/icons/ast/ArrowsRightLeft.ts +8 -0
- package/src/icons/ast/Logout.ts +8 -0
- package/src/icons/ast/PrivateItems.ts +8 -0
- package/src/icons/ast/UnitsDate.ts +8 -0
- package/src/icons/ast/WorkspaceMap.ts +8 -0
- package/src/icons/ast/index.tsx +8 -1
- package/src/icons/react/AppearanceAuto.tsx +13 -0
- package/src/icons/react/AppearanceDark.tsx +13 -0
- package/src/icons/react/AppearanceLight.tsx +13 -0
- package/src/icons/react/ArrowsRightLeft.tsx +13 -0
- package/src/icons/react/{MySpace.tsx → Logout.tsx} +4 -4
- package/src/icons/react/PrivateItems.tsx +13 -0
- package/src/icons/react/UnitsDate.tsx +13 -0
- package/src/icons/react/WorkspaceMap.tsx +13 -0
- package/src/icons/react/index.tsx +8 -1
- package/src/select/index.tsx +2 -1
- package/src/select/select-control-settings-context.tsx +2 -2
- package/src/shortcut-badge.tsx +28 -0
- package/src/tsfixme.ts +2 -0
- package/src/use-is-phone.ts +5 -0
- package/src/use-is-support-hardware-keyboard.ts +6 -0
- package/src/icons/ast/MySpace.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"src/antd/styles.ts",
|
|
@@ -28,10 +28,12 @@
|
|
|
28
28
|
"src/a11y-color.ts",
|
|
29
29
|
"src/integration-compact-info-button.tsx",
|
|
30
30
|
"src/dropdown-menu",
|
|
31
|
-
"src/shortcut-badge",
|
|
32
|
-
"src/tsfixme",
|
|
31
|
+
"src/shortcut-badge.tsx",
|
|
32
|
+
"src/tsfixme.ts",
|
|
33
33
|
"src/toggle.tsx",
|
|
34
|
-
"src/toggle-on-off.tsx"
|
|
34
|
+
"src/toggle-on-off.tsx",
|
|
35
|
+
"src/use-is-support-hardware-keyboard.ts",
|
|
36
|
+
"src/use-is-phone.ts"
|
|
35
37
|
],
|
|
36
38
|
"license": "UNLICENSED",
|
|
37
39
|
"dependencies": {
|
|
@@ -74,9 +76,9 @@
|
|
|
74
76
|
"screenfull": "6.0.1",
|
|
75
77
|
"tabbable": "5.2.1",
|
|
76
78
|
"ua-parser-js": "1.0.39",
|
|
77
|
-
"@fibery/helpers": "1.3.0",
|
|
78
79
|
"@fibery/react": "1.4.0",
|
|
79
|
-
"@fibery/emoji-data": "2.6.0"
|
|
80
|
+
"@fibery/emoji-data": "2.6.0",
|
|
81
|
+
"@fibery/helpers": "1.3.0"
|
|
80
82
|
},
|
|
81
83
|
"peerDependencies": {
|
|
82
84
|
"react": "^18.2.0",
|
|
@@ -110,8 +112,8 @@
|
|
|
110
112
|
"svgo": "2.8.0",
|
|
111
113
|
"typescript": "5.4.3",
|
|
112
114
|
"unist-util-reduce": "0.2.2",
|
|
113
|
-
"@fibery/
|
|
114
|
-
"@fibery/
|
|
115
|
+
"@fibery/babel-preset": "7.4.0",
|
|
116
|
+
"@fibery/eslint-config": "8.6.0"
|
|
115
117
|
},
|
|
116
118
|
"jest": {
|
|
117
119
|
"testEnvironment": "jsdom",
|
package/src/design-system.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./palette";
|
|
23
23
|
import {ThemeMode} from "./theme-settings";
|
|
24
24
|
|
|
25
|
-
export const typeSizes = [
|
|
25
|
+
export const typeSizes = [28, 24, 18, 16, 14, 12, 10, 8] as const;
|
|
26
26
|
|
|
27
27
|
export const fontWeight = {
|
|
28
28
|
light: 300,
|
|
@@ -58,6 +58,31 @@ export const opacity = {
|
|
|
58
58
|
opacity0: 0,
|
|
59
59
|
} as const;
|
|
60
60
|
|
|
61
|
+
export const cardTypeColors = [
|
|
62
|
+
"#4A4A4A",
|
|
63
|
+
"#6A849B",
|
|
64
|
+
"#99A2AB",
|
|
65
|
+
"#D40915",
|
|
66
|
+
"#E72065",
|
|
67
|
+
"#9C2BAF",
|
|
68
|
+
"#673DB6",
|
|
69
|
+
"#3E53B4",
|
|
70
|
+
"#2978FB",
|
|
71
|
+
"#199EE3",
|
|
72
|
+
"#1FBED3",
|
|
73
|
+
"#159789",
|
|
74
|
+
"#4FAF54",
|
|
75
|
+
"#8EC351",
|
|
76
|
+
"#FBA32F",
|
|
77
|
+
"#FC551F",
|
|
78
|
+
"#B04E31",
|
|
79
|
+
] as const;
|
|
80
|
+
|
|
81
|
+
const swatches = {
|
|
82
|
+
"gray-light": cardTypeColors[1],
|
|
83
|
+
yellow: cardTypeColors[14],
|
|
84
|
+
};
|
|
85
|
+
|
|
61
86
|
// switch to chroma.valid once we start using 2.0.1
|
|
62
87
|
const makeChromaColor = (color: string) => {
|
|
63
88
|
try {
|
|
@@ -268,7 +293,8 @@ export const themeColors = {
|
|
|
268
293
|
buttonPrimaryColor: [indigo.indigo9, indigoDark.indigo9],
|
|
269
294
|
buttonColor: [slate.slate10, slateDark.slate10],
|
|
270
295
|
buttonPrimaryTextColor: [slate.slate2, slate.slate6],
|
|
271
|
-
checkboxColor: [slate.
|
|
296
|
+
checkboxColor: [slate.slate11, slateDark.slate11],
|
|
297
|
+
colorBorderBlockQuote: [slate.slate11, slateDark.slate11],
|
|
272
298
|
|
|
273
299
|
// Actions menu
|
|
274
300
|
colorBgActionsMenu: [getOpacities(whiteA.whiteA0).opacity85, getOpacities(slateDark.slate4).opacity85],
|
|
@@ -428,10 +454,10 @@ export const themeColors = {
|
|
|
428
454
|
allowedDropColor: [getOpacities(slate.slate3).opacity80, getOpacities(slateDark.slate3).opacity80],
|
|
429
455
|
relationViewBgColor: [slate.slate2, slateDark.slate3],
|
|
430
456
|
|
|
431
|
-
mySpaceIconColor: [
|
|
432
|
-
mySpaceIconBg: [getOpacities(
|
|
433
|
-
favoritesIconColor: [yellow
|
|
434
|
-
favoritesIconBg: [getOpacities(yellow
|
|
457
|
+
mySpaceIconColor: [swatches["gray-light"], swatches["gray-light"]],
|
|
458
|
+
mySpaceIconBg: [getOpacities(swatches["gray-light"]).opacity20, getOpacities(swatches["gray-light"]).opacity20],
|
|
459
|
+
favoritesIconColor: [swatches.yellow, swatches.yellow],
|
|
460
|
+
favoritesIconBg: [getOpacities(swatches.yellow).opacity20, getOpacities(swatches.yellow).opacity20],
|
|
435
461
|
|
|
436
462
|
// Unit
|
|
437
463
|
unitBg: [slate.slate3, slateDark.slate6],
|
|
@@ -634,6 +660,12 @@ export const themeColors = {
|
|
|
634
660
|
}`,
|
|
635
661
|
],
|
|
636
662
|
commentBubbleBg: [whiteA.whiteA0, slateDark.slate6],
|
|
663
|
+
|
|
664
|
+
// SegmentedControl
|
|
665
|
+
colorBgSegmentedControlDefault: [slate.slate3, slateDark.slate1],
|
|
666
|
+
colorBgSegmentedControlActive: [slate.slate1, slateDark.slate6],
|
|
667
|
+
colorBgSegmentedControlHover: [slate.slate5, slateDark.slate4],
|
|
668
|
+
colorBorderSegmentedControlDefault: [slate.slate6, slateDark.slate7],
|
|
637
669
|
} as const;
|
|
638
670
|
|
|
639
671
|
type ThemeDefs = typeof themeColors;
|
|
@@ -829,26 +861,6 @@ export const getIconColor = _.memoize(
|
|
|
829
861
|
(themeMode, color) => `${themeMode}-${color}`
|
|
830
862
|
);
|
|
831
863
|
|
|
832
|
-
export const cardTypeColors = [
|
|
833
|
-
"#4A4A4A",
|
|
834
|
-
"#6A849B",
|
|
835
|
-
"#99A2AB",
|
|
836
|
-
"#D40915",
|
|
837
|
-
"#E72065",
|
|
838
|
-
"#9C2BAF",
|
|
839
|
-
"#673DB6",
|
|
840
|
-
"#3E53B4",
|
|
841
|
-
"#2978FB",
|
|
842
|
-
"#199EE3",
|
|
843
|
-
"#1FBED3",
|
|
844
|
-
"#159789",
|
|
845
|
-
"#4FAF54",
|
|
846
|
-
"#8EC351",
|
|
847
|
-
"#FBA32F",
|
|
848
|
-
"#FC551F",
|
|
849
|
-
"#B04E31",
|
|
850
|
-
] as const;
|
|
851
|
-
|
|
852
864
|
export const dropCursorColor = chroma(brandColors.blue).alpha(0.7).css();
|
|
853
865
|
export const colors = {
|
|
854
866
|
...getTypeColors(brandColors.green, "light"),
|
|
@@ -866,6 +878,7 @@ export const space = {
|
|
|
866
878
|
s0: 0,
|
|
867
879
|
s1: 1,
|
|
868
880
|
s2: 2,
|
|
881
|
+
s3: 3,
|
|
869
882
|
s4: 4,
|
|
870
883
|
s6: 6,
|
|
871
884
|
s8: 8,
|
|
@@ -929,7 +942,7 @@ export const layout = {
|
|
|
929
942
|
calendarEventHeight: 30,
|
|
930
943
|
calendarHeaderHeight: 30,
|
|
931
944
|
calendarToolbarHeight: 48,
|
|
932
|
-
checkboxSize:
|
|
945
|
+
checkboxSize: 15,
|
|
933
946
|
fakeBoardWidth: 260,
|
|
934
947
|
fakeBoardHeight: 160,
|
|
935
948
|
inlineInputHeight: 32,
|
|
@@ -956,7 +969,7 @@ export const lineHeight = {
|
|
|
956
969
|
text: 1.6,
|
|
957
970
|
regular: 1.5,
|
|
958
971
|
narrow: 1.4,
|
|
959
|
-
heading: 1.
|
|
972
|
+
heading: 1.3,
|
|
960
973
|
nowrap: 1,
|
|
961
974
|
} as const;
|
|
962
975
|
|
|
@@ -1063,9 +1076,9 @@ export const textStyles = {
|
|
|
1063
1076
|
heading1: {
|
|
1064
1077
|
fontFamily,
|
|
1065
1078
|
fontSize: typeSizes[0],
|
|
1066
|
-
letterSpacing: "-0.
|
|
1079
|
+
letterSpacing: "-0.01em",
|
|
1067
1080
|
lineHeight: lineHeight.heading,
|
|
1068
|
-
fontWeight: fontWeight.
|
|
1081
|
+
fontWeight: fontWeight.bold,
|
|
1069
1082
|
color: themeVars.textColor,
|
|
1070
1083
|
},
|
|
1071
1084
|
heading2: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const AppearanceAuto: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M10.66 2.66a.66.66 0 1 0-1.32 0v1.468a.66.66 0 0 0 1.32 0V2.661ZM5.278 4.344a.66.66 0 0 0-.934.934l1.038 1.038a.66.66 0 0 0 .934-.934L5.277 4.343Zm10.38.934a.66.66 0 0 0-.934-.934l-1.038 1.038a.66.66 0 0 0 .934.934l1.038-1.038Zm-4.26 1.358A3.597 3.597 0 0 0 6.495 9.34H2.661a.66.66 0 1 0 0 1.322h14.467a.66.66 0 0 0 0-1.322h-3.55a3.593 3.593 0 0 0-2.18-2.704Zm.827 2.704a2.26 2.26 0 0 0-.58-.984 2.276 2.276 0 0 0-3.796.984h4.376ZM4 13a.66.66 0 0 1 .66-.66h10.468a.66.66 0 1 1 0 1.32H4.661A.66.66 0 0 1 4 13Zm2 3a.66.66 0 0 1 .66-.66h6.468a.66.66 0 1 1 0 1.32H6.661A.66.66 0 0 1 6 16Z"},"children":[]}],"metadata":""}]},"name":"appearance-auto"};
|
|
7
|
+
|
|
8
|
+
export default AppearanceAuto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const AppearanceDark: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M8.677 3.59a6.545 6.545 0 1 0 6.57 10.323A6.788 6.788 0 0 1 8.677 3.59Zm1.418-1.584A.728.728 0 0 0 9.998 2a8 8 0 1 0 7.39 11.07.727.727 0 0 0-.945-.953 5.334 5.334 0 0 1-5.632-8.85.727.727 0 0 0-.495-1.26h-.221Z"},"children":[]}],"metadata":""}]},"name":"appearance-dark"};
|
|
7
|
+
|
|
8
|
+
export default AppearanceDark;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const AppearanceLight: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M10 2a.66.66 0 0 1 .66.66v1.468a.66.66 0 1 1-1.32 0V2.661A.66.66 0 0 1 10 2ZM4.343 4.343a.66.66 0 0 1 .934 0l1.038 1.038a.66.66 0 1 1-.934.934L4.343 5.277a.66.66 0 0 1 0-.934Zm11.314 0a.66.66 0 0 1 0 .934l-1.038 1.038a.66.66 0 0 1-.934-.934l1.038-1.038a.66.66 0 0 1 .934 0Zm-5.652 2.025a3.596 3.596 0 1 1 .062 7.191 3.596 3.596 0 0 1-.062-7.191Zm.893 1.49a2.275 2.275 0 1 0-1.723 4.212 2.275 2.275 0 0 0 1.723-4.212ZM2 10a.66.66 0 0 1 .66-.66h1.468a.66.66 0 0 1 0 1.32H2.661A.66.66 0 0 1 2 10Zm13.211 0a.66.66 0 0 1 .66-.66h1.468a.66.66 0 0 1 0 1.32h-1.467a.66.66 0 0 1-.661-.66Zm-8.896 3.685a.66.66 0 0 1 0 .934l-1.038 1.038a.66.66 0 1 1-.934-.934l1.038-1.038a.66.66 0 0 1 .934 0Zm7.37 0a.66.66 0 0 1 .934 0l1.038 1.038a.66.66 0 0 1-.934.934l-1.038-1.038a.66.66 0 0 1 0-.934ZM10 15.21a.66.66 0 0 1 .66.66v1.468a.66.66 0 1 1-1.32 0v-1.467a.66.66 0 0 1 .66-.661Z"},"children":[]}],"metadata":""}]},"name":"appearance-light"};
|
|
7
|
+
|
|
8
|
+
export default AppearanceLight;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const ArrowsRightLeft: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20","fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"clipRule":"evenodd","d":"M3.223 13.386a.75.75 0 0 0 0 1.061l2.833 2.833a.75.75 0 0 0 1.061-1.06l-1.553-1.553H16.25a.75.75 0 0 0 0-1.5H5.564l1.553-1.553a.75.75 0 0 0-1.06-1.061l-2.834 2.833ZM3 6.083c0 .415.336.75.75.75h10.686l-1.553 1.553a.75.75 0 1 0 1.06 1.061l2.834-2.833a.75.75 0 0 0 0-1.061L13.944 2.72a.75.75 0 0 0-1.061 1.06l1.553 1.553H3.75a.75.75 0 0 0-.75.75Z"},"children":[]}],"metadata":""}]},"name":"arrows-right-left"};
|
|
7
|
+
|
|
8
|
+
export default ArrowsRightLeft;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const Logout: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M18.78 9.47a.75.75 0 0 1 0 1.06l-2.5 2.499a.75.75 0 0 1-1.06-1.06l1.22-1.22H8.75a.75.75 0 1 1 0-1.499h7.69l-1.22-1.219a.75.75 0 1 1 1.06-1.06l2.5 2.499Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M11.75 3.5a.75.75 0 0 1 .75.75V6A.75.75 0 0 0 14 6V4.25A2.25 2.25 0 0 0 11.75 2h-6.5A2.25 2.25 0 0 0 3 4.25v11.5A2.25 2.25 0 0 0 5.25 18h6.5A2.25 2.25 0 0 0 14 15.75V14a.75.75 0 0 0-1.5 0v1.75a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75V4.25a.75.75 0 0 1 .75-.75h6.5Z"},"children":[]}],"metadata":""}]},"name":"logout"};
|
|
7
|
+
|
|
8
|
+
export default Logout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const PrivateItems: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M9.506 2a3.65 3.65 0 1 1 0 7.3 3.65 3.65 0 0 1 0-7.3Zm0 1.5a2.15 2.15 0 1 1 0 4.3 2.15 2.15 0 0 1 0-4.3ZM4.518 16.23c.008.126.123.27.338.27h3.9a.75.75 0 0 1 0 1.5h-3.9c-.915 0-1.77-.67-1.835-1.672-.036-.556-.045-1.33.136-1.961.41-1.431 1.392-2.363 2.566-2.92.931-.442 1.994-.657 3.035-.723a.714.714 0 0 1 .75.726c0 .414-.336.747-.75.777-.87.065-1.7.247-2.392.575-.87.413-1.5 1.043-1.767 1.978-.105.367-.116.921-.081 1.45ZM12 13.417a2.417 2.417 0 1 1 3.167 2.298v1.535a.75.75 0 0 1-1.5 0v-1.535A2.418 2.418 0 0 1 12 13.417Zm2.417-.917a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833Z","fill":"currentColor"},"children":[]}],"metadata":""}]},"name":"private-items"};
|
|
7
|
+
|
|
8
|
+
export default PrivateItems;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const UnitsDate: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M14 3.6h1.6A2.4 2.4 0 0 1 18 6v9.6a2.4 2.4 0 0 1-2.4 2.4H4.4A2.4 2.4 0 0 1 2 15.6V6a2.4 2.4 0 0 1 2.4-2.4H6v-.8a.8.8 0 0 1 1.6 0v.8h4.8v-.8a.8.8 0 0 1 1.6 0v.8Zm2.166 12.566a.8.8 0 0 0 .234-.566V10H3.6v5.6a.8.8 0 0 0 .8.8h11.2a.8.8 0 0 0 .566-.234ZM3.6 8.4h12.8V6a.8.8 0 0 0-.8-.8H14V6a.8.8 0 0 1-1.6 0v-.8H7.6V6A.8.8 0 0 1 6 6v-.8H4.4a.8.8 0 0 0-.8.8v2.4ZM5.5 12a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-9Z","fill":"currentColor"},"children":[]}],"metadata":""}]},"name":"units-date"};
|
|
7
|
+
|
|
8
|
+
export default UnitsDate;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const WorkspaceMap: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M8.103 10.903 4.4 14.613V13.5a.7.7 0 1 0-1.4 0v2.8a.7.7 0 0 0 .7.7h2.8a.7.7 0 1 0 0-1.4H5.387l3.71-3.703a.703.703 0 0 0-.994-.994ZM5.387 4.4H6.5a.7.7 0 1 0 0-1.4H3.7a.7.7 0 0 0-.7.7v2.8a.7.7 0 1 0 1.4 0V5.387l3.703 3.71a.7.7 0 0 0 .994 0 .7.7 0 0 0 0-.994L5.387 4.4ZM16.3 12.8a.7.7 0 0 0-.7.7v1.113l-3.703-3.71a.703.703 0 1 0-.994.994l3.71 3.703H13.5a.7.7 0 1 0 0 1.4h2.8a.7.7 0 0 0 .7-.7v-2.8a.7.7 0 0 0-.7-.7Zm.644-9.366A.7.7 0 0 0 16.3 3h-2.8a.7.7 0 1 0 0 1.4h1.113l-3.71 3.703a.7.7 0 0 0 0 .994.7.7 0 0 0 .994 0l3.703-3.71V6.5a.7.7 0 1 0 1.4 0V3.7a.7.7 0 0 0-.056-.266Z"},"children":[]}],"metadata":""}]},"name":"workspace-map"};
|
|
7
|
+
|
|
8
|
+
export default WorkspaceMap;
|
package/src/icons/ast/index.tsx
CHANGED
|
@@ -18,6 +18,9 @@ export { default as AppTemplates } from './AppTemplates';
|
|
|
18
18
|
export { default as AppWebhooks } from './AppWebhooks';
|
|
19
19
|
export { default as AppWiki } from './AppWiki';
|
|
20
20
|
export { default as App } from './App';
|
|
21
|
+
export { default as AppearanceAuto } from './AppearanceAuto';
|
|
22
|
+
export { default as AppearanceDark } from './AppearanceDark';
|
|
23
|
+
export { default as AppearanceLight } from './AppearanceLight';
|
|
21
24
|
export { default as ArrowBarLeft } from './ArrowBarLeft';
|
|
22
25
|
export { default as ArrowBarRight } from './ArrowBarRight';
|
|
23
26
|
export { default as ArrowBottom } from './ArrowBottom';
|
|
@@ -28,6 +31,7 @@ export { default as ArrowLeft } from './ArrowLeft';
|
|
|
28
31
|
export { default as ArrowRight } from './ArrowRight';
|
|
29
32
|
export { default as ArrowTop } from './ArrowTop';
|
|
30
33
|
export { default as ArrowUpCircle } from './ArrowUpCircle';
|
|
34
|
+
export { default as ArrowsRightLeft } from './ArrowsRightLeft';
|
|
31
35
|
export { default as AskForInput } from './AskForInput';
|
|
32
36
|
export { default as Atom } from './Atom';
|
|
33
37
|
export { default as AutomationsCancelled } from './AutomationsCancelled';
|
|
@@ -146,6 +150,7 @@ export { default as LineDivider } from './LineDivider';
|
|
|
146
150
|
export { default as Link } from './Link';
|
|
147
151
|
export { default as LockOutline } from './LockOutline';
|
|
148
152
|
export { default as Lock } from './Lock';
|
|
153
|
+
export { default as Logout } from './Logout';
|
|
149
154
|
export { default as Loom } from './Loom';
|
|
150
155
|
export { default as LoupeZoomIn } from './LoupeZoomIn';
|
|
151
156
|
export { default as LoupeZoomOut } from './LoupeZoomOut';
|
|
@@ -167,7 +172,6 @@ export { default as MoveLeft } from './MoveLeft';
|
|
|
167
172
|
export { default as MoveRight } from './MoveRight';
|
|
168
173
|
export { default as MoveSpace } from './MoveSpace';
|
|
169
174
|
export { default as MoveTop } from './MoveTop';
|
|
170
|
-
export { default as MySpace } from './MySpace';
|
|
171
175
|
export { default as NetworkAdd } from './NetworkAdd';
|
|
172
176
|
export { default as Network } from './Network';
|
|
173
177
|
export { default as Notifications } from './Notifications';
|
|
@@ -188,6 +192,7 @@ export { default as PinFilled } from './PinFilled';
|
|
|
188
192
|
export { default as Pin } from './Pin';
|
|
189
193
|
export { default as Popup } from './Popup';
|
|
190
194
|
export { default as Posts } from './Posts';
|
|
195
|
+
export { default as PrivateItems } from './PrivateItems';
|
|
191
196
|
export { default as Question } from './Question';
|
|
192
197
|
export { default as Refresh } from './Refresh';
|
|
193
198
|
export { default as RemovePeople } from './RemovePeople';
|
|
@@ -297,6 +302,7 @@ export { default as TypeUrl } from './TypeUrl';
|
|
|
297
302
|
export { default as UnitsAvatar } from './UnitsAvatar';
|
|
298
303
|
export { default as UnitsCollection } from './UnitsCollection';
|
|
299
304
|
export { default as UnitsCounter } from './UnitsCounter';
|
|
305
|
+
export { default as UnitsDate } from './UnitsDate';
|
|
300
306
|
export { default as UnitsDbBadgeAbbr } from './UnitsDbBadgeAbbr';
|
|
301
307
|
export { default as UnitsDbBadgeFull } from './UnitsDbBadgeFull';
|
|
302
308
|
export { default as UnitsDbIcon } from './UnitsDbIcon';
|
|
@@ -328,6 +334,7 @@ export { default as ViewTimeline } from './ViewTimeline';
|
|
|
328
334
|
export { default as Views } from './Views';
|
|
329
335
|
export { default as WarningTriangle } from './WarningTriangle';
|
|
330
336
|
export { default as Warning } from './Warning';
|
|
337
|
+
export { default as WorkspaceMap } from './WorkspaceMap';
|
|
331
338
|
export { default as Youtube } from './Youtube';
|
|
332
339
|
export { default as ZoomIn } from './ZoomIn';
|
|
333
340
|
export { default as ZoomOut } from './ZoomOut';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import AppearanceAutoSvg from '../ast/AppearanceAuto';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const AppearanceAuto = forwardRef<SVGSVGElement, IconBaseProps>(function AppearanceAuto(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AppearanceAutoSvg} />});
|
|
12
|
+
|
|
13
|
+
export default AppearanceAuto;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import AppearanceDarkSvg from '../ast/AppearanceDark';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const AppearanceDark = forwardRef<SVGSVGElement, IconBaseProps>(function AppearanceDark(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AppearanceDarkSvg} />});
|
|
12
|
+
|
|
13
|
+
export default AppearanceDark;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import AppearanceLightSvg from '../ast/AppearanceLight';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const AppearanceLight = forwardRef<SVGSVGElement, IconBaseProps>(function AppearanceLight(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AppearanceLightSvg} />});
|
|
12
|
+
|
|
13
|
+
export default AppearanceLight;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import ArrowsRightLeftSvg from '../ast/ArrowsRightLeft';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const ArrowsRightLeft = forwardRef<SVGSVGElement, IconBaseProps>(function ArrowsRightLeft(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={ArrowsRightLeftSvg} />});
|
|
12
|
+
|
|
13
|
+
export default ArrowsRightLeft;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
3
|
import {forwardRef} from 'react';
|
|
4
|
-
import
|
|
4
|
+
import LogoutSvg from '../ast/Logout';
|
|
5
5
|
import { Icon } from '../Icon';
|
|
6
6
|
import { IconBaseProps } from '../types';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const Logout = forwardRef<SVGSVGElement, IconBaseProps>(function Logout(
|
|
9
9
|
props: IconBaseProps,
|
|
10
10
|
ref: React.Ref<SVGSVGElement>
|
|
11
|
-
) {return <Icon {...props} className={props.className} ref={ref} icon={
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={LogoutSvg} />});
|
|
12
12
|
|
|
13
|
-
export default
|
|
13
|
+
export default Logout;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import PrivateItemsSvg from '../ast/PrivateItems';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const PrivateItems = forwardRef<SVGSVGElement, IconBaseProps>(function PrivateItems(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={PrivateItemsSvg} />});
|
|
12
|
+
|
|
13
|
+
export default PrivateItems;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import UnitsDateSvg from '../ast/UnitsDate';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const UnitsDate = forwardRef<SVGSVGElement, IconBaseProps>(function UnitsDate(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={UnitsDateSvg} />});
|
|
12
|
+
|
|
13
|
+
export default UnitsDate;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import WorkspaceMapSvg from '../ast/WorkspaceMap';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const WorkspaceMap = forwardRef<SVGSVGElement, IconBaseProps>(function WorkspaceMap(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={WorkspaceMapSvg} />});
|
|
12
|
+
|
|
13
|
+
export default WorkspaceMap;
|
|
@@ -18,6 +18,9 @@ export { default as AppTemplates } from './AppTemplates';
|
|
|
18
18
|
export { default as AppWebhooks } from './AppWebhooks';
|
|
19
19
|
export { default as AppWiki } from './AppWiki';
|
|
20
20
|
export { default as App } from './App';
|
|
21
|
+
export { default as AppearanceAuto } from './AppearanceAuto';
|
|
22
|
+
export { default as AppearanceDark } from './AppearanceDark';
|
|
23
|
+
export { default as AppearanceLight } from './AppearanceLight';
|
|
21
24
|
export { default as ArrowBarLeft } from './ArrowBarLeft';
|
|
22
25
|
export { default as ArrowBarRight } from './ArrowBarRight';
|
|
23
26
|
export { default as ArrowBottom } from './ArrowBottom';
|
|
@@ -28,6 +31,7 @@ export { default as ArrowLeft } from './ArrowLeft';
|
|
|
28
31
|
export { default as ArrowRight } from './ArrowRight';
|
|
29
32
|
export { default as ArrowTop } from './ArrowTop';
|
|
30
33
|
export { default as ArrowUpCircle } from './ArrowUpCircle';
|
|
34
|
+
export { default as ArrowsRightLeft } from './ArrowsRightLeft';
|
|
31
35
|
export { default as AskForInput } from './AskForInput';
|
|
32
36
|
export { default as Atom } from './Atom';
|
|
33
37
|
export { default as AutomationsCancelled } from './AutomationsCancelled';
|
|
@@ -146,6 +150,7 @@ export { default as LineDivider } from './LineDivider';
|
|
|
146
150
|
export { default as Link } from './Link';
|
|
147
151
|
export { default as LockOutline } from './LockOutline';
|
|
148
152
|
export { default as Lock } from './Lock';
|
|
153
|
+
export { default as Logout } from './Logout';
|
|
149
154
|
export { default as Loom } from './Loom';
|
|
150
155
|
export { default as LoupeZoomIn } from './LoupeZoomIn';
|
|
151
156
|
export { default as LoupeZoomOut } from './LoupeZoomOut';
|
|
@@ -167,7 +172,6 @@ export { default as MoveLeft } from './MoveLeft';
|
|
|
167
172
|
export { default as MoveRight } from './MoveRight';
|
|
168
173
|
export { default as MoveSpace } from './MoveSpace';
|
|
169
174
|
export { default as MoveTop } from './MoveTop';
|
|
170
|
-
export { default as MySpace } from './MySpace';
|
|
171
175
|
export { default as NetworkAdd } from './NetworkAdd';
|
|
172
176
|
export { default as Network } from './Network';
|
|
173
177
|
export { default as Notifications } from './Notifications';
|
|
@@ -188,6 +192,7 @@ export { default as PinFilled } from './PinFilled';
|
|
|
188
192
|
export { default as Pin } from './Pin';
|
|
189
193
|
export { default as Popup } from './Popup';
|
|
190
194
|
export { default as Posts } from './Posts';
|
|
195
|
+
export { default as PrivateItems } from './PrivateItems';
|
|
191
196
|
export { default as Question } from './Question';
|
|
192
197
|
export { default as Refresh } from './Refresh';
|
|
193
198
|
export { default as RemovePeople } from './RemovePeople';
|
|
@@ -297,6 +302,7 @@ export { default as TypeUrl } from './TypeUrl';
|
|
|
297
302
|
export { default as UnitsAvatar } from './UnitsAvatar';
|
|
298
303
|
export { default as UnitsCollection } from './UnitsCollection';
|
|
299
304
|
export { default as UnitsCounter } from './UnitsCounter';
|
|
305
|
+
export { default as UnitsDate } from './UnitsDate';
|
|
300
306
|
export { default as UnitsDbBadgeAbbr } from './UnitsDbBadgeAbbr';
|
|
301
307
|
export { default as UnitsDbBadgeFull } from './UnitsDbBadgeFull';
|
|
302
308
|
export { default as UnitsDbIcon } from './UnitsDbIcon';
|
|
@@ -328,6 +334,7 @@ export { default as ViewTimeline } from './ViewTimeline';
|
|
|
328
334
|
export { default as Views } from './Views';
|
|
329
335
|
export { default as WarningTriangle } from './WarningTriangle';
|
|
330
336
|
export { default as Warning } from './Warning';
|
|
337
|
+
export { default as WorkspaceMap } from './WorkspaceMap';
|
|
331
338
|
export { default as Youtube } from './Youtube';
|
|
332
339
|
export { default as ZoomIn } from './ZoomIn';
|
|
333
340
|
export { default as ZoomOut } from './ZoomOut';
|
package/src/select/index.tsx
CHANGED
|
@@ -172,13 +172,14 @@ export const Select = forwardRef(function Select<
|
|
|
172
172
|
}, [styles, virtualized, zIndex]);
|
|
173
173
|
const contextRef = useRef<SelectInstance<Option, IsMulti, Group> | null>(null);
|
|
174
174
|
const combined = useComposedRefs(forwardedRef, contextRef);
|
|
175
|
+
|
|
175
176
|
return (
|
|
176
177
|
<ReactSelectRefContext.Provider value={contextRef as RefObject<SelectInstance>}>
|
|
177
178
|
<BaseSelect<Option, IsMulti, Group>
|
|
178
179
|
ref={combined}
|
|
179
180
|
// There are places, where it is useful to override menuPortalTarget globally for all selects.
|
|
180
181
|
// When you are already in some popup. e.g. user input in buttons, relation filter popover.
|
|
181
|
-
menuPortalTarget={
|
|
182
|
+
menuPortalTarget={getPopupContainerElement ? getPopupContainerElement() : menuPortalTarget}
|
|
182
183
|
menuPlacement={"auto"}
|
|
183
184
|
styles={combinedStyles}
|
|
184
185
|
isMulti={isCollectionMode}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {createContext, ReactNode, useContext, useMemo} from "react";
|
|
2
2
|
|
|
3
|
-
const SelectControlSettings = createContext<{getPopupContainerElement?: () => HTMLElement; zIndex?: number}>({});
|
|
3
|
+
const SelectControlSettings = createContext<{getPopupContainerElement?: () => HTMLElement | null; zIndex?: number}>({});
|
|
4
4
|
|
|
5
5
|
// Overrides zIndex and getPopupContainerElement for all selects, except select-in-popover.
|
|
6
6
|
// It has more priority than "menuPortalTarget" prop. Use at your own risk!
|
|
@@ -10,7 +10,7 @@ export function SelectControlSettingsProvider({
|
|
|
10
10
|
zIndex,
|
|
11
11
|
}: {
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
getPopupContainerElement?: () => HTMLElement;
|
|
13
|
+
getPopupContainerElement?: () => HTMLElement | null;
|
|
14
14
|
zIndex?: number;
|
|
15
15
|
}) {
|
|
16
16
|
const settings = useMemo(() => ({getPopupContainerElement, zIndex}), [getPopupContainerElement, zIndex]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {css, cx} from "@linaria/core";
|
|
2
|
+
import {textStyles, border, space, lineHeight, themeVars} from "./design-system";
|
|
3
|
+
import {useIsSupportHardwareKeyboard} from "./use-is-support-hardware-keyboard";
|
|
4
|
+
|
|
5
|
+
export const shortcutCss = css`
|
|
6
|
+
${{
|
|
7
|
+
...textStyles.small,
|
|
8
|
+
borderRadius: border.radius4,
|
|
9
|
+
border: themeVars.shortcutBorderColor,
|
|
10
|
+
color: themeVars.shortcutTextColor,
|
|
11
|
+
paddingTop: space.s2,
|
|
12
|
+
paddingBottom: space.s2,
|
|
13
|
+
paddingLeft: space.s4,
|
|
14
|
+
paddingRight: space.s4,
|
|
15
|
+
lineHeight: lineHeight.nowrap,
|
|
16
|
+
whiteSpace: "nowrap",
|
|
17
|
+
display: "inline-block",
|
|
18
|
+
userSelect: "none",
|
|
19
|
+
}}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export const ShortcutBadge = ({className, shortcut}: {className?: string; shortcut: string}): JSX.Element | null => {
|
|
23
|
+
const isSupportHardwareKeyboard = useIsSupportHardwareKeyboard();
|
|
24
|
+
if (!isSupportHardwareKeyboard) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return <div className={cx(shortcutCss, className)}>{shortcut}</div>;
|
|
28
|
+
};
|
package/src/tsfixme.ts
ADDED
package/src/icons/ast/MySpace.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// This icon file is generated automatically.
|
|
3
|
-
|
|
4
|
-
import { IconDefinition } from '../types';
|
|
5
|
-
|
|
6
|
-
const MySpace: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M6.912 2.94C7.594 1.988 8.647 1.5 10 1.5s2.406.487 3.088 1.44c.647.908.882 2.135.882 3.477v.913h.28c.707 0 1.408.2 1.939.692.54.5.811 1.216.811 2.058v5.67c0 .87-.54 1.56-1.041 1.986-.263.223-.55.406-.827.536-.26.122-.575.228-.882.228h-8.5C4.107 18.5 3 17.244 3 15.75v-5.67c0-.842.273-1.559.813-2.059.53-.49 1.23-.691 1.937-.691h.28v-.913c0-1.342.235-2.569.882-3.476Zm.618 4.39h4.94v-.913c0-1.21-.22-2.067-.603-2.605C11.517 3.322 10.959 3 10 3c-.96 0-1.516.321-1.867.812-.384.538-.603 1.395-.603 2.605v.913ZM4.832 9.123c-.175.161-.332.445-.332.957v5.67c0 .715.484 1.25 1.25 1.25h8.502a.979.979 0 0 0 .242-.086c.155-.072.33-.183.493-.321.35-.298.513-.608.513-.843v-5.67c0-.513-.157-.797-.33-.958-.184-.17-.484-.292-.92-.292h-8.5c-.434 0-.734.122-.918.293ZM10 11a.75.75 0 0 1 .75.75V14a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 10 11Z"},"children":[]}],"metadata":""}]},"name":"my-space"};
|
|
7
|
-
|
|
8
|
-
export default MySpace;
|