@xy-planning-network/trees 0.13.7 → 0.13.8-dev-1
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 +45 -0
- package/dist/trees.es.js +1061 -1043
- package/dist/trees.umd.js +13 -13
- package/package.json +2 -2
- package/src/lib-components/indicators/InlineAlert.vue +4 -4
- package/src/lib-components/layout/SidebarLayout.vue +8 -5
- package/src/lib-components/layout/StackedLayout.vue +11 -3
- package/src/lib-components/lists/DownloadCell.vue +3 -3
- package/src/lib-components/navigation/ActionsDropdown.vue +5 -2
- package/src/lib-components/overlays/Modal.vue +2 -2
- package/src/lib-components/overlays/Slideover.vue +2 -2
- package/types/composables/useActionItems.d.ts +12 -0
- package/types/heroicons.d.ts +8 -0
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +8 -0
package/README.md
CHANGED
|
@@ -122,6 +122,51 @@ 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
|
+
|
|
125
170
|
### JavaScript - Only What You Need
|
|
126
171
|
|
|
127
172
|
This is the best option when tree shaking and final bundle size is important to you.
|