@iyulab/enterprise 0.8.2 → 0.9.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 +18 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +19 -0
- package/package.json +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **New opt-in subpath `@iyulab/enterprise/icons`.** Bundles 10 hand-drawn nav-style SVG
|
|
8
|
+
icons and registers them under the icon-library name `'house'` via `@iyulab/components`'
|
|
9
|
+
`IconRegistry`. Importing the main `@iyulab/enterprise` entry does not pull this in —
|
|
10
|
+
only importing `@iyulab/enterprise/icons` registers the library, matching how
|
|
11
|
+
`./styles/preset.css` is already opt-in.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **`sideEffects` narrowed from `false` to an explicit array.** Protects the new
|
|
16
|
+
`icons.ts` module (and, since this package builds as a single bundle with no
|
|
17
|
+
per-file output, the whole `index.ts`/`index.js` — which also covers a pre-existing
|
|
18
|
+
side effect in `helpers/messages.ts`) from being tree-shaken away by consumers'
|
|
19
|
+
production bundlers.
|
|
20
|
+
|
|
3
21
|
## 0.8.2
|
|
4
22
|
|
|
5
23
|
### Changed
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IconRegistry } from "@iyulab/components";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/icons.ts
|
|
4
|
+
var bundle = new Map(Object.entries(/* #__PURE__ */ Object.assign({
|
|
5
|
+
"./assets/icons/code.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M8 6l-5 6l5 6\" />\n <path d=\"M16 6l5 6l-5 6\" />\n</svg>\n",
|
|
6
|
+
"./assets/icons/contrast.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <circle cx=\"12\" cy=\"12\" r=\"4\" />\n <path d=\"M12 3v2M12 19v2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M3 12h2M19 12h2M5.6 18.4l1.4 -1.4M17 7l1.4 -1.4\" />\n</svg>\n",
|
|
7
|
+
"./assets/icons/flow.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <circle cx=\"4\" cy=\"12\" r=\"2\" />\n <circle cx=\"12\" cy=\"12\" r=\"2\" />\n <circle cx=\"20\" cy=\"12\" r=\"2\" />\n <line x1=\"6\" y1=\"12\" x2=\"10\" y2=\"12\" />\n <line x1=\"14\" y1=\"12\" x2=\"18\" y2=\"12\" />\n</svg>\n",
|
|
8
|
+
"./assets/icons/home.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M5 12l7 -7l7 7\" />\n <path d=\"M6 10.5v8.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1 -1v-8.5\" />\n</svg>\n",
|
|
9
|
+
"./assets/icons/identity.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <circle cx=\"12\" cy=\"12\" r=\"8\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n</svg>\n",
|
|
10
|
+
"./assets/icons/layers.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <rect x=\"5\" y=\"4\" width=\"14\" height=\"4\" rx=\"1\" />\n <rect x=\"5\" y=\"10\" width=\"14\" height=\"4\" rx=\"1\" />\n <rect x=\"5\" y=\"16\" width=\"14\" height=\"4\" rx=\"1\" />\n</svg>\n",
|
|
11
|
+
"./assets/icons/layout.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\" />\n <rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\" />\n <rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\" />\n <rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\" />\n</svg>\n",
|
|
12
|
+
"./assets/icons/message.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"11\" rx=\"2\" />\n <path d=\"M8 15v4l4 -4\" />\n</svg>\n",
|
|
13
|
+
"./assets/icons/pulse.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M3 12h4l2 -7l4 14l2 -7h6\" />\n</svg>\n",
|
|
14
|
+
"./assets/icons/table.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"1\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n <line x1=\"9\" y1=\"4\" x2=\"9\" y2=\"20\" />\n</svg>\n"
|
|
15
|
+
})).map(([path, module]) => {
|
|
16
|
+
return [path.split("/").pop()?.replace(".svg", "") || "", module];
|
|
17
|
+
}).filter(([name]) => name !== ""));
|
|
18
|
+
IconRegistry.register("house", (name) => bundle.get(name));
|
|
19
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/enterprise",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Enterprise utilities and components for iyulab framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"enterprise",
|
|
@@ -25,12 +25,23 @@
|
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
|
-
"sideEffects":
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"./src/index.ts",
|
|
30
|
+
"./dist/index.js",
|
|
31
|
+
"./src/icons.ts",
|
|
32
|
+
"./dist/icons.js",
|
|
33
|
+
"./src/styles/preset.css",
|
|
34
|
+
"./dist/styles/preset.css"
|
|
35
|
+
],
|
|
29
36
|
"exports": {
|
|
30
37
|
".": {
|
|
31
38
|
"types": "./dist/index.d.ts",
|
|
32
39
|
"import": "./dist/index.js"
|
|
33
40
|
},
|
|
41
|
+
"./icons": {
|
|
42
|
+
"types": "./dist/icons.d.ts",
|
|
43
|
+
"import": "./dist/icons.js"
|
|
44
|
+
},
|
|
34
45
|
"./styles/preset.css": "./dist/styles/preset.css"
|
|
35
46
|
},
|
|
36
47
|
"scripts": {
|