@spark-ui/icons 1.6.0-beta.3 → 1.6.0-beta.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/package.json CHANGED
@@ -1,20 +1,27 @@
1
1
  {
2
2
  "name": "@spark-ui/icons",
3
- "version": "1.6.0-beta.3",
3
+ "version": "1.6.0-beta.4",
4
4
  "description": "spark-ui icons",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "main": "dist",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
9
14
  "scripts": {
10
15
  "generate": "node ./scripts/build.mjs",
11
- "build": "vite build"
16
+ "build": "vite build",
17
+ "prepublishOnly": "npm run build"
12
18
  },
13
19
  "repository": {
14
20
  "type": "git",
15
21
  "url": "git@github.com:adevinta/spark.git",
16
22
  "directory": "packages/components/icons"
17
23
  },
24
+ "sideEffects": false,
18
25
  "devDependencies": {
19
26
  "@spark-ui/button": "1",
20
27
  "@spark-ui/icon": "1",
package/CHANGELOG.md DELETED
@@ -1,140 +0,0 @@
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.5.0](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.4.1...@spark-ui/icons@1.5.0) (2023-04-12)
7
-
8
- ### Features
9
-
10
- - **icons:** frooze versions ([a306d88](https://github.com/adevinta/spark/commit/a306d88f24b36354f6d38f8a293adfc64f7a0b58))
11
-
12
- ## [1.4.1](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.4.0...@spark-ui/icons@1.4.1) (2023-04-11)
13
-
14
- **Note:** Version bump only for package @spark-ui/icons
15
-
16
- # [1.4.0](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.8...@spark-ui/icons@1.4.0) (2023-04-07)
17
-
18
- ### Features
19
-
20
- - add peerDeps field ([18e758d](https://github.com/adevinta/spark/commit/18e758d4796389711040fed1c9b738270c505abf))
21
-
22
- ## [1.3.8](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.7...@spark-ui/icons@1.3.8) (2023-04-07)
23
-
24
- **Note:** Version bump only for package @spark-ui/icons
25
-
26
- ## [1.3.7](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.6...@spark-ui/icons@1.3.7) (2023-04-06)
27
-
28
- **Note:** Version bump only for package @spark-ui/icons
29
-
30
- ## [1.3.6](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.5...@spark-ui/icons@1.3.6) (2023-04-06)
31
-
32
- **Note:** Version bump only for package @spark-ui/icons
33
-
34
- ## [1.3.5](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.4...@spark-ui/icons@1.3.5) (2023-04-06)
35
-
36
- **Note:** Version bump only for package @spark-ui/icons
37
-
38
- ## [1.3.4](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.3...@spark-ui/icons@1.3.4) (2023-04-05)
39
-
40
- **Note:** Version bump only for package @spark-ui/icons
41
-
42
- ## [1.3.3](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.2...@spark-ui/icons@1.3.3) (2023-04-05)
43
-
44
- **Note:** Version bump only for package @spark-ui/icons
45
-
46
- ## [1.3.2](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.1...@spark-ui/icons@1.3.2) (2023-04-05)
47
-
48
- **Note:** Version bump only for package @spark-ui/icons
49
-
50
- ## [1.3.1](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.3.0...@spark-ui/icons@1.3.1) (2023-04-04)
51
-
52
- **Note:** Version bump only for package @spark-ui/icons
53
-
54
- # [1.3.0](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.2.2...@spark-ui/icons@1.3.0) (2023-04-03)
55
-
56
- ### Bug Fixes
57
-
58
- - **icons:** wrong viewbox ([4778f17](https://github.com/adevinta/spark/commit/4778f176ed97c6756ad89006a2ea1f53b9152249))
59
-
60
- ### Features
61
-
62
- - **icons:** add alert icons ([7bf8a20](https://github.com/adevinta/spark/commit/7bf8a20249a7874063fb31a032149a9f8b2e8328))
63
- - **icons:** add categories ([0c46052](https://github.com/adevinta/spark/commit/0c46052decaf6eb5eb51441aa57e6ceed8e6073d))
64
- - **icons:** add criteria ([82d962a](https://github.com/adevinta/spark/commit/82d962a6046f9b0723ecc226b669990d6aaad960))
65
- - **icons:** add delivery icons ([977b6d7](https://github.com/adevinta/spark/commit/977b6d7872b5be21ae62bd6002ccb4e00bc237bf))
66
- - **icons:** add images ([8d13eb0](https://github.com/adevinta/spark/commit/8d13eb01f317130c1006ecb0f53bd5e05123a519))
67
- - **icons:** add security icons ([9e1d600](https://github.com/adevinta/spark/commit/9e1d60026cdad7a923afb54c607ea0f431788eea))
68
-
69
- ## [1.2.2](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.2.1...@spark-ui/icons@1.2.2) (2023-03-31)
70
-
71
- ### Bug Fixes
72
-
73
- - **icons:** wrong stroke ([30c3b48](https://github.com/adevinta/spark/commit/30c3b4878c3774adceca91b9558283aed5496b87))
74
-
75
- ## [1.2.1](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.2.0...@spark-ui/icons@1.2.1) (2023-03-31)
76
-
77
- **Note:** Version bump only for package @spark-ui/icons
78
-
79
- # [1.2.0](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.6...@spark-ui/icons@1.2.0) (2023-03-31)
80
-
81
- ### Bug Fixes
82
-
83
- - **icons:** wrong viewbox ([22b8255](https://github.com/adevinta/spark/commit/22b8255cb08ffd62e4b3779a0ace6ac714c353ca))
84
-
85
- ### Features
86
-
87
- - **icons:** add account svg ([cc46079](https://github.com/adevinta/spark/commit/cc460791a2030b64ba9e75734268cc80963e0311))
88
- - **icons:** add actions icons ([e14c9d9](https://github.com/adevinta/spark/commit/e14c9d9068c6029ef80afa02d3dbe70d8cff9abe))
89
- - **icons:** add arrows icons ([c74c10c](https://github.com/adevinta/spark/commit/c74c10c77475a0cf09882abe1c8775a01c54fb68))
90
- - **icons:** add calendar icons ([f4205d6](https://github.com/adevinta/spark/commit/f4205d60aaa7590a28fe5909c41c88c55f337823))
91
- - **icons:** add contact icons ([390b57e](https://github.com/adevinta/spark/commit/390b57e4bf6b57d6e66ce209e91b944b9f792785))
92
- - **icons:** refactor package ([1bd1fc1](https://github.com/adevinta/spark/commit/1bd1fc1a3c1e49e05776660ea5fbc8a676795991))
93
-
94
- ## [1.1.6](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.5...@spark-ui/icons@1.1.6) (2023-03-30)
95
-
96
- ### Bug Fixes
97
-
98
- - revise code in accordance with the updated vite configuration ([4f4174a](https://github.com/adevinta/spark/commit/4f4174a0ef8df71f28af5c77acf0c5f7c7837e58)), closes [#503](https://github.com/adevinta/spark/issues/503)
99
-
100
- ## [1.1.5](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.4...@spark-ui/icons@1.1.5) (2023-03-29)
101
-
102
- ### Bug Fixes
103
-
104
- - **icons:** remove not needed char ([319a7c6](https://github.com/adevinta/spark/commit/319a7c6c252a3d101178c5f11dacb25135143303))
105
- - **icons:** remove unwanted char ([d778b1f](https://github.com/adevinta/spark/commit/d778b1fb6eb99795732d488248520a19950ed4a6))
106
- - **icons:** update tsx template ([dcceb6d](https://github.com/adevinta/spark/commit/dcceb6da1a8ac36b75b657f4a36b00b42c63b47b))
107
-
108
- ## [1.1.4](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.3...@spark-ui/icons@1.1.4) (2023-03-28)
109
-
110
- ### Bug Fixes
111
-
112
- - **icons:** fix ci process ([66d01d3](https://github.com/adevinta/spark/commit/66d01d399570a7ac428c8303b02c439b73492e7a))
113
- - **icons:** update check icon ([ef5b0f1](https://github.com/adevinta/spark/commit/ef5b0f196648f271d3ddf93150bbf207439790ff))
114
-
115
- ## [1.1.3](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.2...@spark-ui/icons@1.1.3) (2023-03-28)
116
-
117
- **Note:** Version bump only for package @spark-ui/icons
118
-
119
- ## [1.1.2](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.1...@spark-ui/icons@1.1.2) (2023-03-27)
120
-
121
- ### Bug Fixes
122
-
123
- - **icons:** untrack assests directory when publishing to npm ([e727d2b](https://github.com/adevinta/spark/commit/e727d2b47c717ea8825affbfcc40d5dd10b0792b))
124
-
125
- ## [1.1.1](https://github.com/adevinta/spark/compare/@spark-ui/icons@1.1.0...@spark-ui/icons@1.1.1) (2023-03-27)
126
-
127
- ### Bug Fixes
128
-
129
- - **icons:** repository directory url ([0d69a53](https://github.com/adevinta/spark/commit/0d69a5344aa38953746448d782e76823564024d6))
130
-
131
- # 1.1.0 (2023-03-27)
132
-
133
- ### Bug Fixes
134
-
135
- - **icons:** fix tests for the icons ([79a83d5](https://github.com/adevinta/spark/commit/79a83d5a03c2836b07ce5a4b3cf342bee24a4618))
136
-
137
- ### Features
138
-
139
- - **icons:** a11y and test for icons ([d428c32](https://github.com/adevinta/spark/commit/d428c321c00a524ca7295910a3a58ad2380b1d13))
140
- - **icons:** add initial package ([37d1736](https://github.com/adevinta/spark/commit/37d1736f5b0a326610ba93f738464ad494386d58))
package/CONTRIBUTE.md DELETED
@@ -1,20 +0,0 @@
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/tsconfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "include": ["src/**/*", "../../../global.d.ts"]
4
- }
package/vite.config.ts DELETED
@@ -1,21 +0,0 @@
1
- import path, { resolve } from 'node:path'
2
- import glob from 'fast-glob'
3
- import { getComponentConfiguration } from '../../../config/index'
4
-
5
- const { name } = require(path.resolve(__dirname, 'package.json'))
6
- const baseConfig = getComponentConfiguration(process.cwd(), name)
7
- const icons = glob.sync(['src/icons/*.tsx'])
8
-
9
- export default {
10
- ...baseConfig,
11
- build: {
12
- ...baseConfig.build,
13
- lib: {
14
- entry: [...icons, 'src/index.ts'],
15
- fileName: (_, entryName) => {
16
- return entryName === 'index' ? `${entryName}.js` : `icons/${entryName}.js`
17
- },
18
- formats: ['es', 'cjs'],
19
- },
20
- },
21
- }