@xy-planning-network/trees 0.13.8-dev-1 → 0.13.9

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/README.md CHANGED
@@ -122,51 +122,6 @@ module.exports = {
122
122
  }
123
123
  ```
124
124
 
125
- ### Icons - Heroicons v2
126
-
127
- This project ships with [Heroicons v2](https://heroicons.com/). This version of Heroicons packages the icons into 4 different import paths for optimized icon sizing. In order to keep the DX simpler we've chosen to consolidate these import paths into 2 paths that are consistent with the v1 paths. To accomplish this, you'll need to add a `heroicons.d.ts` file and add path aliases in `tsconfig.json` and vite.config.mts`.
128
-
129
- Using the full import paths like `import { XIcon } from @heroicons/vue/16/solid;` continues to be available as needed.
130
-
131
- ```ts
132
- // src/heroicons.d.ts
133
-
134
- declare module "@heroicons/vue/outline" {
135
- export * from "@heroicons/vue/24/outline"
136
- }
137
-
138
- declare module "@heroicons/vue/solid" {
139
- export * from "@heroicons/vue/24/solid"
140
- }
141
- ```
142
-
143
- ```ts
144
- // tsconfig.json
145
-
146
- ...
147
- "paths": {
148
- ...
149
- "@heroicons/vue/outline": ["node_modules/@heroicons/vue/24/outline"],
150
- "@heroicons/vue/solid": ["node_modules/@heroicons/vue/24/solid"]
151
- },
152
- ...
153
- ```
154
-
155
- ```ts
156
- // vite.config.mts
157
-
158
- ...
159
- resolve: {
160
- alias: {
161
- ...
162
- // Intercept v1-style imports and route them to the v2 24px files.
163
- "@heroicons/vue/outline": "@heroicons/vue/24/outline",
164
- "@heroicons/vue/solid": "@heroicons/vue/24/solid",
165
- },
166
- },
167
- ...
168
- ```
169
-
170
125
  ### JavaScript - Only What You Need
171
126
 
172
127
  This is the best option when tree shaking and final bundle size is important to you.