@spark-ui/icons 1.1.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/CHANGELOG.md +15 -0
- package/CONTRIBUTE.md +20 -0
- package/LICENSE +21 -0
- package/README.md +22 -0
- package/assets/check.svg +6 -0
- package/dist/Types.d.ts +5 -0
- package/dist/icons/Check.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +5 -0
- package/package.json +29 -0
- package/tsconfig.json +4 -0
- package/vite.config.ts +6 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 1.1.0 (2023-03-27)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **icons:** fix tests for the icons ([79a83d5](https://github.com/adevinta/spark/commit/79a83d5a03c2836b07ce5a4b3cf342bee24a4618))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **icons:** a11y and test for icons ([d428c32](https://github.com/adevinta/spark/commit/d428c321c00a524ca7295910a3a58ad2380b1d13))
|
|
15
|
+
- **icons:** add initial package ([37d1736](https://github.com/adevinta/spark/commit/37d1736f5b0a326610ba93f738464ad494386d58))
|
package/CONTRIBUTE.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Contribute
|
|
2
|
+
|
|
3
|
+
To add new icons to the library just simply place it into `./assets/` directory with the desired name to be served by itself:
|
|
4
|
+
|
|
5
|
+
Ex:
|
|
6
|
+
`./assets/<icon>.svg`
|
|
7
|
+
|
|
8
|
+
Then execute the `build` command
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm run build
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
It will create an `<Icon>.tsx` file in `./src/icons` package directory and will index it in its `./src/index.ts` file.
|
|
15
|
+
|
|
16
|
+
It will be automatically optimized documented and tested.
|
|
17
|
+
|
|
18
|
+
Track those new changes in git.
|
|
19
|
+
|
|
20
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @spark-ui/icons
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install @spark-ui/icons
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { IconName } from "@spark-ui/icons"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { IconName } from "@spark-ui/icons"
|
|
17
|
+
|
|
18
|
+
({...props}) => <IconName {...props} />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Contribute
|
|
22
|
+
[Contribute](CONTRIBUTE.md)
|
package/assets/check.svg
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
viewBox="0 0 24 24"
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
>
|
|
5
|
+
<path d="M8.91958 20.1667C8.73748 20.1667 8.56045 20.1323 8.38847 20.0635C8.21649 19.9947 8.05969 19.8915 7.91806 19.7539L2.42489 14.4176C2.14163 14.1425 2 13.8083 2 13.4152C2 13.0222 2.14163 12.688 2.42489 12.4129C2.70814 12.1377 3.04704 12.0001 3.44158 12.0001C3.83612 12.0001 4.18513 12.1377 4.48862 12.4129L8.91958 16.7173L19.5417 6.42797C19.825 6.1528 20.1639 6.0103 20.5584 6.00048C20.953 5.99065 21.2919 6.13315 21.5751 6.42797C21.8584 6.70313 22 7.03727 22 7.43036C22 7.82346 21.8584 8.15759 21.5751 8.43276L9.92109 19.7539C9.77946 19.8915 9.62266 19.9947 9.45068 20.0635C9.27871 20.1323 9.10167 20.1667 8.91958 20.1667Z"/>
|
|
6
|
+
</svg>
|
package/dist/Types.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Check } from './icons/Check';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react");exports.Check=({title:e,fill:l="currentColor",stroke:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e&&{"data-title":e},fill:l,stroke:r,...o},"$",e===void 0?void 0:t.createElement("title",null,e),t.createElement("path",{d:"M8.91958 20.1667C8.73748 20.1667 8.56045 20.1323 8.38847 20.0635C8.21649 19.9947 8.05969 19.8915 7.91806 19.7539L2.42489 14.4176C2.14163 14.1425 2 13.8083 2 13.4152C2 13.0222 2.14163 12.688 2.42489 12.4129C2.70814 12.1377 3.04704 12.0001 3.44158 12.0001C3.83612 12.0001 4.18513 12.1377 4.48862 12.4129L8.91958 16.7173L19.5417 6.42797C19.825 6.1528 20.1639 6.0103 20.5584 6.00048C20.953 5.99065 21.2919 6.13315 21.5751 6.42797C21.8584 6.70313 22 7.03727 22 7.43036C22 7.82346 21.8584 8.15759 21.5751 8.43276L9.92109 19.7539C9.77946 19.8915 9.62266 19.9947 9.45068 20.0635C9.27871 20.1323 9.10167 20.1667 8.91958 20.1667Z"}));
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
const i = ({ title: t, fill: l = "currentColor", stroke: r = "currentColor", ...C }) => e.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...t && { "data-title": t }, fill: l, stroke: r, ...C }, "$", t === void 0 ? void 0 : e.createElement("title", null, t), e.createElement("path", { d: "M8.91958 20.1667C8.73748 20.1667 8.56045 20.1323 8.38847 20.0635C8.21649 19.9947 8.05969 19.8915 7.91806 19.7539L2.42489 14.4176C2.14163 14.1425 2 13.8083 2 13.4152C2 13.0222 2.14163 12.688 2.42489 12.4129C2.70814 12.1377 3.04704 12.0001 3.44158 12.0001C3.83612 12.0001 4.18513 12.1377 4.48862 12.4129L8.91958 16.7173L19.5417 6.42797C19.825 6.1528 20.1639 6.0103 20.5584 6.00048C20.953 5.99065 21.2919 6.13315 21.5751 6.42797C21.8584 6.70313 22 7.03727 22 7.43036C22 7.82346 21.8584 8.15759 21.5751 8.43276L9.92109 19.7539C9.77946 19.8915 9.62266 19.9947 9.45068 20.0635C9.27871 20.1323 9.10167 20.1667 8.91958 20.1667Z" }));
|
|
3
|
+
export {
|
|
4
|
+
i as Check
|
|
5
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spark-ui/icons",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "spark-ui icons",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prebuild": "./scripts/build.mjs",
|
|
13
|
+
"build": "vite build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git@github.com:adevinta/spark.git",
|
|
18
|
+
"directory": "packages/components/dummy"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"change-case": "4.1.2",
|
|
22
|
+
"minimatch": "7.4.2",
|
|
23
|
+
"path-that-svg": "1.2.4",
|
|
24
|
+
"prettier": "2.8.6",
|
|
25
|
+
"svgo": "3.0.2",
|
|
26
|
+
"svgson": "5.2.1"
|
|
27
|
+
},
|
|
28
|
+
"gitHead": "2676ce9376519a07e23903bd9c420a5665ae5643"
|
|
29
|
+
}
|
package/tsconfig.json
ADDED