@fibery/ui-kit 1.33.4 → 1.33.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "1.33.4",
3
+ "version": "1.33.5",
4
4
  "private": false,
5
5
  "files": [
6
6
  "src/antd/styles.ts",
@@ -41,6 +41,7 @@
41
41
  "@radix-ui/react-collapsible": "1.1.0",
42
42
  "@radix-ui/react-context-menu": "2.2.1",
43
43
  "@radix-ui/react-dropdown-menu": "2.1.1",
44
+ "@radix-ui/react-navigation-menu": "1.2.0",
44
45
  "@radix-ui/react-toast": "1.2.1",
45
46
  "@radix-ui/react-tooltip": "1.1.2",
46
47
  "@types/d3-shape": "^3.1.3",
@@ -73,8 +74,8 @@
73
74
  "screenfull": "6.0.1",
74
75
  "ua-parser-js": "0.7.24",
75
76
  "@fibery/helpers": "1.3.0",
76
- "@fibery/react": "1.4.0",
77
- "@fibery/emoji-data": "2.6.0"
77
+ "@fibery/emoji-data": "2.6.0",
78
+ "@fibery/react": "1.4.0"
78
79
  },
79
80
  "peerDependencies": {
80
81
  "react": "^18.2.0",
@@ -108,8 +109,8 @@
108
109
  "svgo": "2.8.0",
109
110
  "typescript": "5.4.3",
110
111
  "unist-util-reduce": "0.2.2",
111
- "@fibery/babel-preset": "7.4.0",
112
- "@fibery/eslint-config": "8.6.0"
112
+ "@fibery/eslint-config": "8.6.0",
113
+ "@fibery/babel-preset": "7.4.0"
113
114
  },
114
115
  "jest": {
115
116
  "testEnvironment": "jsdom",
@@ -622,6 +622,8 @@ export const themeColors = {
622
622
  colorBgDbTabHover: [slate.slate3, slateDark.slate4],
623
623
  colorBgDbTabFocus: [slate.slate6, slateDark.slate6],
624
624
 
625
+ colorBgTabHover: [getOpacities(slate.slate11).opacity10, getOpacities(slateDark.slate11).opacity10],
626
+
625
627
  // Chat
626
628
  colorBgMessageContainer: [slate.slate3, slateDark.slate6],
627
629
  colorBgMessageContainerHover: [slate.slate2, slateDark.slate3],
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const FitToScreen: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M2.75 3.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V3.75ZM18 3a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V3.75A.75.75 0 0 1 18 3ZM7.78 8.03a.75.75 0 0 0-1.06-1.06l-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 0 0 1.06-1.06l-1.22-1.22h2.69a.747.747 0 0 0 .125-.01c.04.006.082.01.125.01h3.94l-1.22 1.22a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06l1.22 1.22H9.5a.755.755 0 0 0-.125.01.755.755 0 0 0-.125-.01H6.56l1.22-1.22Z"},"children":[]}],"metadata":""}]},"name":"fit-to-screen"};
7
+
8
+ export default FitToScreen;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const FullscreenModeOffIcon: 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":"M1.97 1.97a.75.75 0 0 1 1.06 0l3.72 3.72V4.166a.75.75 0 1 1 1.5 0V7.5a.75.75 0 0 1-.75.75H4.167a.75.75 0 1 1 0-1.5h1.522L1.97 3.03a.75.75 0 0 1 0-1.06Zm16.06 0a.75.75 0 0 1 0 1.06l-3.72 3.72h1.523a.75.75 0 0 1 0 1.5H12.5a.75.75 0 0 1-.75-.75V4.167a.75.75 0 0 1 1.5 0v1.522l3.72-3.72a.75.75 0 0 1 1.06 0ZM3.417 12.5a.75.75 0 0 1 .75-.75H7.5a.75.75 0 0 1 .75.75v3.333a.75.75 0 0 1-1.5 0v-1.522l-3.72 3.72a.75.75 0 0 1-1.06-1.061l3.72-3.72H4.166a.75.75 0 0 1-.75-.75Zm9.083-.75h3.333a.75.75 0 0 1 0 1.5h-1.522l3.72 3.72a.75.75 0 1 1-1.061 1.06l-3.72-3.72v1.523a.75.75 0 0 1-1.5 0V12.5a.75.75 0 0 1 .75-.75Z"},"children":[]}],"metadata":""}]},"name":"fullscreen-mode-off-icon"};
7
+
8
+ export default FullscreenModeOffIcon;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const FullscreenModeOn: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M16.25 3H12a.75.75 0 0 0 0 1.5h2.44l-3.47 3.47a.75.75 0 0 0 1.06 1.06l3.47-3.47V8A.75.75 0 0 0 17 8V3.75a.75.75 0 0 0-.75-.75ZM3.75 17H8a.75.75 0 0 0 0-1.5H5.56l3.47-3.47a.75.75 0 1 0-1.06-1.06L4.5 14.44V12A.75.75 0 0 0 3 12v4.25a.75.75 0 0 0 .75.75Z"},"children":[]}],"metadata":""}]},"name":"fullscreen-mode-on"};
7
+
8
+ export default FullscreenModeOn;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const FullscreenModeOnIcon: 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":"M3.333 2.583h3.334a.75.75 0 1 1 0 1.5H5.144l3.72 3.72a.75.75 0 1 1-1.061 1.06l-3.72-3.719v1.523a.75.75 0 1 1-1.5 0V3.333a.75.75 0 0 1 .75-.75Zm11.523 1.5h-1.523a.75.75 0 0 1 0-1.5h3.334a.75.75 0 0 1 .75.75v3.334a.75.75 0 0 1-1.5 0V5.144l-3.72 3.72a.75.75 0 0 1-1.06-1.061l3.719-3.72Zm-5.992 7.053a.75.75 0 0 1 0 1.061l-3.72 3.72h1.523a.75.75 0 1 1 0 1.5H3.333a.75.75 0 0 1-.75-.75v-3.334a.75.75 0 0 1 1.5 0v1.523l3.72-3.72a.75.75 0 0 1 1.06 0Zm2.272 0a.75.75 0 0 1 1.061 0l3.72 3.72v-1.523a.75.75 0 0 1 1.5 0v3.334a.75.75 0 0 1-.75.75h-3.334a.75.75 0 0 1 0-1.5h1.523l-3.72-3.72a.75.75 0 0 1 0-1.06Z"},"children":[]}],"metadata":""}]},"name":"fullscreen-mode-on-icon"};
7
+
8
+ export default FullscreenModeOnIcon;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const MapMode: 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":"M2.106 2.695a.75.75 0 0 1 .73-.032L7.5 4.995l4.665-2.332a.75.75 0 0 1 .67 0l5 2.5a.75.75 0 0 1 .415.67v10.834a.75.75 0 0 1-1.085.67L12.5 15.005l-4.665 2.332a.75.75 0 0 1-.67 0l-5-2.5a.75.75 0 0 1-.415-.67V3.333a.75.75 0 0 1 .356-.638ZM13.25 13.703l3.5 1.75V6.297l-3.5-1.75v9.156Zm-1.5-9.156v9.156l-3.5 1.75V6.297l3.5-1.75Zm-5 1.75-3.5-1.75v9.156l3.5 1.75V6.297Z"},"children":[]}],"metadata":""}]},"name":"map-mode"};
7
+
8
+ export default MapMode;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const ZoomIn: 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 4.25a.75.75 0 0 1 .75.75v4.25H15a.75.75 0 0 1 0 1.5h-4.25V15a.75.75 0 0 1-1.5 0v-4.25H5a.75.75 0 0 1 0-1.5h4.25V5a.75.75 0 0 1 .75-.75Z"},"children":[]}],"metadata":""}]},"name":"zoom-in"};
7
+
8
+ export default ZoomIn;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const ZoomOut: 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":"M4.25 10A.75.75 0 0 1 5 9.25h10a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z"},"children":[]}],"metadata":""}]},"name":"zoom-out"};
7
+
8
+ export default ZoomOut;
@@ -93,11 +93,15 @@ export { default as Fields } from './Fields';
93
93
  export { default as Figma } from './Figma';
94
94
  export { default as FileUpload } from './FileUpload';
95
95
  export { default as Filter } from './Filter';
96
+ export { default as FitToScreen } from './FitToScreen';
96
97
  export { default as FocusModeOff } from './FocusModeOff';
97
98
  export { default as FocusMode } from './FocusMode';
98
99
  export { default as Folder } from './Folder';
99
100
  export { default as FormWithCover } from './FormWithCover';
100
101
  export { default as FormWithoutCover } from './FormWithoutCover';
102
+ export { default as FullscreenModeOffIcon } from './FullscreenModeOffIcon';
103
+ export { default as FullscreenModeOnIcon } from './FullscreenModeOnIcon';
104
+ export { default as FullscreenModeOn } from './FullscreenModeOn';
101
105
  export { default as Github } from './Github';
102
106
  export { default as Gitlab } from './Gitlab';
103
107
  export { default as GlobeSimple } from './GlobeSimple';
@@ -134,6 +138,7 @@ export { default as LineDivider } from './LineDivider';
134
138
  export { default as Link } from './Link';
135
139
  export { default as Lock } from './Lock';
136
140
  export { default as Loom } from './Loom';
141
+ export { default as MapMode } from './MapMode';
137
142
  export { default as MenuCollapser } from './MenuCollapser';
138
143
  export { default as MessagePlusSquare } from './MessagePlusSquare';
139
144
  export { default as Milestones } from './Milestones';
@@ -302,3 +307,5 @@ export { default as Views } from './Views';
302
307
  export { default as WarningTriangle } from './WarningTriangle';
303
308
  export { default as Warning } from './Warning';
304
309
  export { default as Youtube } from './Youtube';
310
+ export { default as ZoomIn } from './ZoomIn';
311
+ 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 FitToScreenSvg from '../ast/FitToScreen';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const FitToScreen = forwardRef<SVGSVGElement, IconBaseProps>(function FitToScreen(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={FitToScreenSvg} />});
12
+
13
+ export default FitToScreen;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import FullscreenModeOffIconSvg from '../ast/FullscreenModeOffIcon';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const FullscreenModeOffIcon = forwardRef<SVGSVGElement, IconBaseProps>(function FullscreenModeOffIcon(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={FullscreenModeOffIconSvg} />});
12
+
13
+ export default FullscreenModeOffIcon;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import FullscreenModeOnSvg from '../ast/FullscreenModeOn';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const FullscreenModeOn = forwardRef<SVGSVGElement, IconBaseProps>(function FullscreenModeOn(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={FullscreenModeOnSvg} />});
12
+
13
+ export default FullscreenModeOn;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import FullscreenModeOnIconSvg from '../ast/FullscreenModeOnIcon';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const FullscreenModeOnIcon = forwardRef<SVGSVGElement, IconBaseProps>(function FullscreenModeOnIcon(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={FullscreenModeOnIconSvg} />});
12
+
13
+ export default FullscreenModeOnIcon;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import MapModeSvg from '../ast/MapMode';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const MapMode = forwardRef<SVGSVGElement, IconBaseProps>(function MapMode(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={MapModeSvg} />});
12
+
13
+ export default MapMode;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import ZoomInSvg from '../ast/ZoomIn';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const ZoomIn = forwardRef<SVGSVGElement, IconBaseProps>(function ZoomIn(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={ZoomInSvg} />});
12
+
13
+ export default ZoomIn;
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import ZoomOutSvg from '../ast/ZoomOut';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const ZoomOut = forwardRef<SVGSVGElement, IconBaseProps>(function ZoomOut(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={ZoomOutSvg} />});
12
+
13
+ export default ZoomOut;
@@ -93,11 +93,15 @@ export { default as Fields } from './Fields';
93
93
  export { default as Figma } from './Figma';
94
94
  export { default as FileUpload } from './FileUpload';
95
95
  export { default as Filter } from './Filter';
96
+ export { default as FitToScreen } from './FitToScreen';
96
97
  export { default as FocusModeOff } from './FocusModeOff';
97
98
  export { default as FocusMode } from './FocusMode';
98
99
  export { default as Folder } from './Folder';
99
100
  export { default as FormWithCover } from './FormWithCover';
100
101
  export { default as FormWithoutCover } from './FormWithoutCover';
102
+ export { default as FullscreenModeOffIcon } from './FullscreenModeOffIcon';
103
+ export { default as FullscreenModeOnIcon } from './FullscreenModeOnIcon';
104
+ export { default as FullscreenModeOn } from './FullscreenModeOn';
101
105
  export { default as Github } from './Github';
102
106
  export { default as Gitlab } from './Gitlab';
103
107
  export { default as GlobeSimple } from './GlobeSimple';
@@ -134,6 +138,7 @@ export { default as LineDivider } from './LineDivider';
134
138
  export { default as Link } from './Link';
135
139
  export { default as Lock } from './Lock';
136
140
  export { default as Loom } from './Loom';
141
+ export { default as MapMode } from './MapMode';
137
142
  export { default as MenuCollapser } from './MenuCollapser';
138
143
  export { default as MessagePlusSquare } from './MessagePlusSquare';
139
144
  export { default as Milestones } from './Milestones';
@@ -302,3 +307,5 @@ export { default as Views } from './Views';
302
307
  export { default as WarningTriangle } from './WarningTriangle';
303
308
  export { default as Warning } from './Warning';
304
309
  export { default as Youtube } from './Youtube';
310
+ export { default as ZoomIn } from './ZoomIn';
311
+ export { default as ZoomOut } from './ZoomOut';
@@ -10,17 +10,26 @@ import {GroupBase} from "../index";
10
10
  const expanderStyle = css`
11
11
  transition: transform ${transition};
12
12
  `;
13
- export function DropdownIndicator<
13
+
14
+ export function AlwaysVisibleDropdownIndicator<
14
15
  TOption,
15
16
  IsMulti extends boolean = boolean,
16
17
  Group extends GroupBase<TOption> = GroupBase<TOption>
17
18
  >(props: DropdownIndicatorProps<TOption, IsMulti, Group>) {
18
- if (props.selectProps.isDisabled) {
19
- return null;
20
- }
21
19
  return (
22
20
  <div className={cn(expanderStyle, props.selectProps.menuIsOpen && expanderExpandedStyle)}>
23
21
  <ArrowCollapseVertical color={themeVars.disabledTextColor} />
24
22
  </div>
25
23
  );
26
24
  }
25
+
26
+ export function DropdownIndicator<
27
+ TOption,
28
+ IsMulti extends boolean = boolean,
29
+ Group extends GroupBase<TOption> = GroupBase<TOption>
30
+ >(props: DropdownIndicatorProps<TOption, IsMulti, Group>) {
31
+ if (props.selectProps.isDisabled) {
32
+ return null;
33
+ }
34
+ return <AlwaysVisibleDropdownIndicator {...props} />;
35
+ }