@fibery/ui-kit 1.34.5 → 1.34.7

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.34.5",
3
+ "version": "1.34.7",
4
4
  "private": false,
5
5
  "files": [
6
6
  "src/antd/styles.ts",
@@ -33,7 +33,8 @@
33
33
  "src/toggle.tsx",
34
34
  "src/toggle-on-off.tsx",
35
35
  "src/use-is-support-hardware-keyboard.ts",
36
- "src/use-is-phone.ts"
36
+ "src/use-is-phone.ts",
37
+ "src/use-is-media-query-matched.ts"
37
38
  ],
38
39
  "license": "UNLICENSED",
39
40
  "dependencies": {
@@ -76,9 +77,9 @@
76
77
  "screenfull": "6.0.1",
77
78
  "tabbable": "5.2.1",
78
79
  "ua-parser-js": "1.0.39",
79
- "@fibery/react": "1.4.0",
80
80
  "@fibery/emoji-data": "2.6.0",
81
- "@fibery/helpers": "1.3.0"
81
+ "@fibery/helpers": "1.3.0",
82
+ "@fibery/react": "1.4.1"
82
83
  },
83
84
  "peerDependencies": {
84
85
  "react": "^18.2.0",
@@ -81,6 +81,7 @@ export const cardTypeColors = [
81
81
  const swatches = {
82
82
  "gray-light": cardTypeColors[1],
83
83
  yellow: cardTypeColors[14],
84
+ green: "#69AC5E",
84
85
  };
85
86
 
86
87
  // switch to chroma.valid once we start using 2.0.1
@@ -456,6 +457,8 @@ export const themeColors = {
456
457
 
457
458
  mySpaceIconColor: [swatches["gray-light"], swatches["gray-light"]],
458
459
  mySpaceIconBg: [getOpacities(swatches["gray-light"]).opacity20, getOpacities(swatches["gray-light"]).opacity20],
460
+ privateIconColor: [swatches.green, swatches.green],
461
+ privateIconBg: [getOpacities(swatches.green).opacity20, getOpacities(swatches.green).opacity20],
459
462
  favoritesIconColor: [swatches.yellow, swatches.yellow],
460
463
  favoritesIconBg: [getOpacities(swatches.yellow).opacity20, getOpacities(swatches.yellow).opacity20],
461
464
 
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const UserGroup: 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.5 2A2.5 2.5 0 0 0 2 4.5v11A2.5 2.5 0 0 0 4.5 18h11a2.5 2.5 0 0 0 2.5-2.5v-11A2.5 2.5 0 0 0 15.5 2h-11Zm0 1.5c-.552 0-1 .557-1 1.11V15.5a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11Zm3.917 4.083a1.583 1.583 0 1 1 3.167 0 1.583 1.583 0 0 1-3.167 0ZM10 11.667c-.982 0-1.64.563-1.772 1.097a.75.75 0 1 1-1.456-.362c.34-1.367 1.742-2.235 3.228-2.235 1.486 0 2.888.868 3.228 2.235a.75.75 0 1 1-1.456.362c-.133-.534-.79-1.097-1.772-1.097Z"},"children":[]}],"metadata":""}]},"name":"user-group"};
7
+
8
+ export default UserGroup;
@@ -317,6 +317,7 @@ export { default as UnlockFilled } from './UnlockFilled';
317
317
  export { default as UnlockOutline } from './UnlockOutline';
318
318
  export { default as Upgrade } from './Upgrade';
319
319
  export { default as UsbFlashDrive } from './UsbFlashDrive';
320
+ export { default as UserGroup } from './UserGroup';
320
321
  export { default as UserRole } from './UserRole';
321
322
  export { default as ViewBoard } from './ViewBoard';
322
323
  export { default as ViewCalendar } from './ViewCalendar';
@@ -0,0 +1,13 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import {forwardRef} from 'react';
4
+ import UserGroupSvg from '../ast/UserGroup';
5
+ import { Icon } from '../Icon';
6
+ import { IconBaseProps } from '../types';
7
+
8
+ const UserGroup = forwardRef<SVGSVGElement, IconBaseProps>(function UserGroup(
9
+ props: IconBaseProps,
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={UserGroupSvg} />});
12
+
13
+ export default UserGroup;
@@ -317,6 +317,7 @@ export { default as UnlockFilled } from './UnlockFilled';
317
317
  export { default as UnlockOutline } from './UnlockOutline';
318
318
  export { default as Upgrade } from './Upgrade';
319
319
  export { default as UsbFlashDrive } from './UsbFlashDrive';
320
+ export { default as UserGroup } from './UserGroup';
320
321
  export { default as UserRole } from './UserRole';
321
322
  export { default as ViewBoard } from './ViewBoard';
322
323
  export { default as ViewCalendar } from './ViewCalendar';
@@ -0,0 +1,18 @@
1
+ import {useEffect, useState} from "react";
2
+ import {getMediaQueryList, subscribeOnChange} from "./media-query-utils";
3
+
4
+ export function useIsMediaQueryMatched(mediaQuery: string) {
5
+ const [isMediaQueryMatched, setIsMediaQueryMatched] = useState(() => {
6
+ const mediaQueryList = getMediaQueryList(mediaQuery);
7
+ return mediaQueryList.matches;
8
+ });
9
+ useEffect(() => {
10
+ const unsubscribe = subscribeOnChange(getMediaQueryList(mediaQuery), (evt) => {
11
+ setIsMediaQueryMatched(evt.matches);
12
+ });
13
+ return () => {
14
+ unsubscribe();
15
+ };
16
+ }, [mediaQuery]);
17
+ return isMediaQueryMatched;
18
+ }