@behivetech/icons.search 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +15 -2
- package/dist/index.cjs +42 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +15 -0
- package/docs.json +75 -0
- package/index.ts +1 -0
- package/package.json +61 -3
- package/search.example.tsx +14 -0
- package/search.tsx +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BEhive Tech
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Search icon
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The search icon: a 24 by 24 stroke glyph that takes its color from the text around it.
|
|
4
|
+
|
|
5
|
+
Docs: https://platform.behivetech.com/behivetech/icons/search
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { SearchIcon } from '@behivetech/icons.search';
|
|
11
|
+
|
|
12
|
+
<SearchIcon />
|
|
13
|
+
<SearchIcon size="lg" titleAccess="Search" />
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The icon is hidden from assistive technology unless it is named: pass `titleAccess` (rendered as the svg's `<title>`) or `aria-label`. It sizes through `size` (`sm`, `md`, `lg`, `xl`) with the stylesheet of `@behivetech/icons.base`, which the app imports once. The default export is the same component.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
SearchIcon: () => SearchIcon,
|
|
24
|
+
default: () => search_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// search.tsx
|
|
29
|
+
var import_icons = require("@behivetech/icons.base");
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var SearchIcon = /* @__PURE__ */ (0, import_icons.createIcon)(
|
|
32
|
+
"SearchIcon",
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m21 21-4.34-4.34" }),
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "11", cy: "11", r: "8" })
|
|
36
|
+
] })
|
|
37
|
+
);
|
|
38
|
+
var search_default = SearchIcon;
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
SearchIcon
|
|
42
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as _behivetech_icons_base from '@behivetech/icons.base';
|
|
2
|
+
|
|
3
|
+
/** The search icon: a stroke glyph on a 24 by 24 grid that inherits the text color. */
|
|
4
|
+
declare const SearchIcon: _behivetech_icons_base.IconComponent;
|
|
5
|
+
|
|
6
|
+
export { SearchIcon, SearchIcon as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// search.tsx
|
|
2
|
+
import { createIcon } from "@behivetech/icons.base";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var SearchIcon = /* @__PURE__ */ createIcon(
|
|
5
|
+
"SearchIcon",
|
|
6
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7
|
+
/* @__PURE__ */ jsx("path", { d: "m21 21-4.34-4.34" }),
|
|
8
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" })
|
|
9
|
+
] })
|
|
10
|
+
);
|
|
11
|
+
var search_default = SearchIcon;
|
|
12
|
+
export {
|
|
13
|
+
SearchIcon,
|
|
14
|
+
search_default as default
|
|
15
|
+
};
|
package/docs.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"generatedAt": "2026-11-26T16:41:52.883Z",
|
|
5
|
+
"docs": [
|
|
6
|
+
{
|
|
7
|
+
"displayName": "SearchIcon",
|
|
8
|
+
"description": "The search icon: a stroke glyph on a 24 by 24 grid that inherits the text color.",
|
|
9
|
+
"extendsNative": false,
|
|
10
|
+
"props": [
|
|
11
|
+
{
|
|
12
|
+
"name": "className",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"required": false,
|
|
15
|
+
"defaultValue": null,
|
|
16
|
+
"description": "Additional class names to merge with the component root element"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "ref",
|
|
20
|
+
"type": "Ref<SVGSVGElement>",
|
|
21
|
+
"required": false,
|
|
22
|
+
"defaultValue": null,
|
|
23
|
+
"description": "Ref to the root svg element"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "size",
|
|
27
|
+
"type": "\"sm\" | \"md\" | \"lg\" | \"xl\"",
|
|
28
|
+
"required": false,
|
|
29
|
+
"defaultValue": null,
|
|
30
|
+
"description": "Controls width/height; defaults to md"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "styles",
|
|
34
|
+
"type": "StylesFor<Block<\"BHT__Icon\", { readonly flexShrink: 0; readonly variants: { readonly sm: { readonly width: \"1rem\"; readonly height: \"1rem\"; }; readonly md: { readonly width: \"1.25rem\"; readonly height: \"1.25rem\"; }; readonly lg: { ...; }; readonly xl: { ...; }; }; readonly web: { ...; }; readonly native: { ...; }; }...",
|
|
35
|
+
"required": false,
|
|
36
|
+
"defaultValue": null,
|
|
37
|
+
"description": "An override block made with `defineBlock`, typed to this component's children and variants; it wins over the block's own styles."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "titleAccess",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"required": false,
|
|
43
|
+
"defaultValue": null,
|
|
44
|
+
"description": "Accessible name of the icon, rendered as the svg's `<title>`. When set\nthe icon is exposed as an image with this name; without it (and without\n`aria-label` or `aria-labelledby`) the icon is decorative and hidden from\nassistive technology. Pass an already translated string."
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"functions": [
|
|
50
|
+
{
|
|
51
|
+
"name": "SearchIcon",
|
|
52
|
+
"kind": "function",
|
|
53
|
+
"description": "The search icon: a stroke glyph on a 24 by 24 grid that inherits the text color.",
|
|
54
|
+
"signatures": [
|
|
55
|
+
{
|
|
56
|
+
"text": "SearchIcon(props: import(\"@behivetech/icons.base\").IconBaseProps): import(\"react\").ReactNode",
|
|
57
|
+
"params": [
|
|
58
|
+
{
|
|
59
|
+
"name": "props",
|
|
60
|
+
"type": "import(\"@behivetech/icons.base\").IconBaseProps",
|
|
61
|
+
"optional": false,
|
|
62
|
+
"defaultValue": null,
|
|
63
|
+
"description": ""
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"returns": {
|
|
67
|
+
"type": "import(\"react\").ReactNode",
|
|
68
|
+
"description": ""
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"examples": []
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchIcon, default } from "./search.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behivetech/icons.search",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "The search icon: a 24 by 24 stroke glyph that takes its color from the text around it.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": false,
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"index.ts",
|
|
20
|
+
"search.tsx",
|
|
21
|
+
"*.example.tsx",
|
|
22
|
+
"docs.json"
|
|
23
|
+
],
|
|
24
|
+
"registry": {
|
|
25
|
+
"status": "stable",
|
|
26
|
+
"tags": [
|
|
27
|
+
"icon"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@behivetech/icons.base": "^1.1.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": "^19.2.7",
|
|
35
|
+
"react-dom": "^19.2.7"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@bht-component-registry/env": "0.3.0",
|
|
39
|
+
"@types/react": "19.2.17",
|
|
40
|
+
"@types/react-dom": "19.2.3",
|
|
41
|
+
"eslint": "^9.39.5",
|
|
42
|
+
"tsup": "^8.5.1",
|
|
43
|
+
"typescript": "^6.0.3"
|
|
44
|
+
},
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/behivetech/bht-galaxy.git",
|
|
48
|
+
"directory": "packages/icons/search"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://platform.behivetech.com/behivetech/icons/search",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"registry": "https://registry.npmjs.org",
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"blocks": {
|
|
56
|
+
"native": true
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsup && bht-registry-docgen",
|
|
60
|
+
"dev": "tsup --watch",
|
|
61
|
+
"lint": "eslint . --max-warnings 0",
|
|
62
|
+
"check-types": "tsc --noEmit"
|
|
63
|
+
}
|
|
6
64
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SearchIcon } from "./search.js";
|
|
2
|
+
|
|
3
|
+
/** The icon at each size; it takes its color from the surrounding text. */
|
|
4
|
+
export const SearchIconSizes = () => (
|
|
5
|
+
<>
|
|
6
|
+
<SearchIcon size="sm" />
|
|
7
|
+
<SearchIcon />
|
|
8
|
+
<SearchIcon size="lg" />
|
|
9
|
+
<SearchIcon size="xl" />
|
|
10
|
+
</>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
/** Named with `titleAccess`, so assistive technology announces it. */
|
|
14
|
+
export const NamedSearchIcon = () => <SearchIcon titleAccess="Search" />;
|
package/search.tsx
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createIcon } from "@behivetech/icons.base";
|
|
2
|
+
|
|
3
|
+
/** The search icon: a stroke glyph on a 24 by 24 grid that inherits the text color. */
|
|
4
|
+
export const SearchIcon = /*#__PURE__*/ createIcon(
|
|
5
|
+
"SearchIcon",
|
|
6
|
+
<>
|
|
7
|
+
<path d="m21 21-4.34-4.34" />
|
|
8
|
+
<circle cx="11" cy="11" r="8" />
|
|
9
|
+
</>,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export default SearchIcon;
|