@omnific/icons 0.1.2 → 0.1.4
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/dist/ChevronUp.d.ts +1 -3
- package/dist/ChevronUp.js +1 -2
- package/dist/EyeIcon.d.ts +1 -3
- package/dist/EyeIcon.js +1 -2
- package/dist/EyeOffIcon.d.ts +1 -3
- package/dist/EyeOffIcon.js +1 -2
- package/dist/LoadingIcon.d.ts +1 -3
- package/dist/LoadingIcon.js +1 -2
- package/dist/PanelLeftClose.d.ts +1 -3
- package/dist/PanelLeftClose.js +1 -2
- package/dist/RotateCw.d.ts +1 -3
- package/dist/RotateCw.js +1 -2
- package/dist/Search.d.ts +1 -3
- package/dist/Search.js +1 -2
- package/dist/SlidersHorizontal.d.ts +1 -3
- package/dist/SlidersHorizontal.js +1 -2
- package/dist/SvgIcon.d.ts +1 -3
- package/dist/SvgIcon.js +1 -2
- package/dist/X.d.ts +1 -3
- package/dist/X.js +1 -2
- package/dist/createIcon.js +1 -2
- package/dist/iconTypes.d.ts +1 -3
- package/dist/svgAttributes.js +1 -2
- package/package.json +6 -6
package/dist/ChevronUp.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region ChevronUp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link ChevronUp}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type ChevronUpProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders an upward chevron used for expand and menu controls.
|
|
9
8
|
*/
|
|
10
|
-
export declare const ChevronUp: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const ChevronUp: import("react").ComponentType<IconProps>;
|
package/dist/ChevronUp.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// ChevronUp.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders an upward chevron used for expand and menu controls.
|
|
5
5
|
*/
|
|
6
6
|
const ChevronUp = createIcon([["path", { d: "m18 15-6-6-6 6" }]]);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { ChevronUp };
|
package/dist/EyeIcon.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region EyeIcon.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link EyeIcon}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type EyeIconProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders an eye used to indicate visible content.
|
|
9
8
|
*/
|
|
10
|
-
export declare const EyeIcon: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const EyeIcon: import("react").ComponentType<IconProps>;
|
package/dist/EyeIcon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// EyeIcon.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders an eye used to indicate visible content.
|
|
5
5
|
*/
|
|
@@ -8,5 +8,4 @@ const EyeIcon = createIcon([["path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75
|
|
|
8
8
|
cy: "12",
|
|
9
9
|
r: "3"
|
|
10
10
|
}]]);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { EyeIcon };
|
package/dist/EyeOffIcon.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region EyeOffIcon.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link EyeOffIcon}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type EyeOffIconProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders a crossed-out eye used to indicate hidden content.
|
|
9
8
|
*/
|
|
10
|
-
export declare const EyeOffIcon: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const EyeOffIcon: import("react").ComponentType<IconProps>;
|
package/dist/EyeOffIcon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// EyeOffIcon.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders a crossed-out eye used to indicate hidden content.
|
|
5
5
|
*/
|
|
@@ -9,5 +9,4 @@ const EyeOffIcon = createIcon([
|
|
|
9
9
|
["path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }],
|
|
10
10
|
["path", { d: "m2 2 20 20" }]
|
|
11
11
|
]);
|
|
12
|
-
//#endregion
|
|
13
12
|
export { EyeOffIcon };
|
package/dist/LoadingIcon.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region LoadingIcon.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link LoadingIcon}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type LoadingIconProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders the package loading indicator.
|
|
9
8
|
*/
|
|
10
|
-
export declare const LoadingIcon: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const LoadingIcon: import("react").ComponentType<IconProps>;
|
package/dist/LoadingIcon.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// LoadingIcon.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders the package loading indicator.
|
|
5
5
|
*/
|
|
6
6
|
const LoadingIcon = createIcon([["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]]);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { LoadingIcon };
|
package/dist/PanelLeftClose.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region PanelLeftClose.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link PanelLeftClose}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type PanelLeftCloseProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders a left panel with a close chevron used for collapsing sidebars.
|
|
9
8
|
*/
|
|
10
|
-
export declare const PanelLeftClose: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const PanelLeftClose: import("react").ComponentType<IconProps>;
|
package/dist/PanelLeftClose.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// PanelLeftClose.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders a left panel with a close chevron used for collapsing sidebars.
|
|
5
5
|
*/
|
|
@@ -14,5 +14,4 @@ const PanelLeftClose = createIcon([
|
|
|
14
14
|
["path", { d: "M9 3v18" }],
|
|
15
15
|
["path", { d: "m16 15-3-3 3-3" }]
|
|
16
16
|
]);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { PanelLeftClose };
|
package/dist/RotateCw.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region RotateCw.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link RotateCw}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type RotateCwProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders a clockwise arrow used for reset and refresh actions.
|
|
9
8
|
*/
|
|
10
|
-
export declare const RotateCw: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const RotateCw: import("react").ComponentType<IconProps>;
|
package/dist/RotateCw.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// RotateCw.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders a clockwise arrow used for reset and refresh actions.
|
|
5
5
|
*/
|
|
6
6
|
const RotateCw = createIcon([["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }], ["path", { d: "M21 3v5h-5" }]]);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { RotateCw };
|
package/dist/Search.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region Search.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link Search}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type SearchProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders a magnifying glass used for search actions.
|
|
9
8
|
*/
|
|
10
|
-
export declare const Search: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const Search: import("react").ComponentType<IconProps>;
|
package/dist/Search.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// Search.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders a magnifying glass used for search actions.
|
|
5
5
|
*/
|
|
@@ -8,5 +8,4 @@ const Search = createIcon([["path", { d: "m21 21-4.34-4.34" }], ["circle", {
|
|
|
8
8
|
cy: "11",
|
|
9
9
|
r: "8"
|
|
10
10
|
}]]);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Search };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region SlidersHorizontal.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link SlidersHorizontal}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type SlidersHorizontalProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders horizontal sliders used for filter and customization controls.
|
|
9
8
|
*/
|
|
10
|
-
export declare const SlidersHorizontal: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const SlidersHorizontal: import("react").ComponentType<IconProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIcon } from "./createIcon.js";
|
|
2
|
-
|
|
2
|
+
// SlidersHorizontal.tsx
|
|
3
3
|
/**
|
|
4
4
|
Renders horizontal sliders used for filter and customization controls.
|
|
5
5
|
*/
|
|
@@ -14,5 +14,4 @@ const SlidersHorizontal = createIcon([
|
|
|
14
14
|
["path", { d: "M8 10v4" }],
|
|
15
15
|
["path", { d: "M8 12H3" }]
|
|
16
16
|
]);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { SlidersHorizontal };
|
package/dist/SvgIcon.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region SvgIcon.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* SvgIcon 组件,用于渲染自定义的 SVG 图标
|
|
5
4
|
* @param {IconProps} props - 组件的属性对象
|
|
6
5
|
* @returns {JSX.Element} 返回一个 SVG 元素
|
|
7
6
|
*/
|
|
8
|
-
export declare const SvgIcon: (props: IconProps) => import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare const SvgIcon: (props: IconProps) => import("react").JSX.Element;
|
package/dist/SvgIcon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { svgAttributes } from "./svgAttributes.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// SvgIcon.tsx
|
|
4
4
|
/**
|
|
5
5
|
* SvgIcon 组件,用于渲染自定义的 SVG 图标
|
|
6
6
|
* @param {IconProps} props - 组件的属性对象
|
|
@@ -18,5 +18,4 @@ const SvgIcon = (props) => {
|
|
|
18
18
|
children
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { SvgIcon };
|
package/dist/X.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from "./iconTypes.js";
|
|
2
|
-
//#region X.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props accepted by {@link X}.
|
|
5
4
|
*/
|
|
@@ -7,5 +6,4 @@ export type XProps = IconProps;
|
|
|
7
6
|
/**
|
|
8
7
|
Renders an X used for dismiss and clear actions.
|
|
9
8
|
*/
|
|
10
|
-
export declare const X: import("react").ComponentType<IconProps>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const X: import("react").ComponentType<IconProps>;
|
package/dist/X.js
CHANGED
package/dist/createIcon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvgIcon } from "./SvgIcon.js";
|
|
2
2
|
import { uniqueId } from "@omnific/utils";
|
|
3
3
|
import { createElement } from "react";
|
|
4
|
-
|
|
4
|
+
// createIcon.ts
|
|
5
5
|
/**
|
|
6
6
|
Creates a named package icon from immutable SVG artwork nodes.
|
|
7
7
|
*/
|
|
@@ -16,5 +16,4 @@ const createIcon = (nodes) => {
|
|
|
16
16
|
};
|
|
17
17
|
return Icon;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { createIcon };
|
package/dist/iconTypes.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
-
//#region iconTypes.d.ts
|
|
3
2
|
/**
|
|
4
3
|
Props shared by the package's SVG icon components.
|
|
5
4
|
*/
|
|
@@ -16,5 +15,4 @@ export type IconProps = ComponentPropsWithRef<'svg'> & {
|
|
|
16
15
|
Optional artwork or consumer content rendered after the icon nodes.
|
|
17
16
|
*/
|
|
18
17
|
children?: ReactNode;
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
18
|
+
};
|
package/dist/svgAttributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// svgAttributes.ts
|
|
2
2
|
/**
|
|
3
3
|
Default SVG attributes shared by the package's icon components.
|
|
4
4
|
*/
|
|
@@ -11,5 +11,4 @@ const svgAttributes = {
|
|
|
11
11
|
strokeLinecap: "round",
|
|
12
12
|
strokeLinejoin: "round"
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { svgAttributes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnific/icons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "React icon components for Omnific",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -79,20 +79,20 @@
|
|
|
79
79
|
"README.md"
|
|
80
80
|
],
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@omnific/utils": "0.
|
|
82
|
+
"@omnific/utils": "0.6.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^19.0.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@omnific/react-scripts": "0.5.
|
|
88
|
+
"@omnific/react-scripts": "0.5.4",
|
|
89
89
|
"@omnific/tsconfig": "0.2.0",
|
|
90
|
-
"@swc/helpers": "0.5.
|
|
90
|
+
"@swc/helpers": "0.5.24",
|
|
91
91
|
"@types/react": "^19.3.0",
|
|
92
92
|
"@types/react-dom": "19.3.0",
|
|
93
93
|
"clsx": "2.1.1",
|
|
94
|
-
"react": "^19.3.
|
|
95
|
-
"react-dom": "19.3.
|
|
94
|
+
"react": "^19.3.1",
|
|
95
|
+
"react-dom": "19.3.1"
|
|
96
96
|
},
|
|
97
97
|
"browserslist": [
|
|
98
98
|
"last 2 Chrome versions",
|