carbon-preprocess-svelte 0.4.0 → 0.7.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 +14 -2
- package/README.md +16 -11
- package/dist/carbon-components-svelte.d.ts +313 -125
- package/dist/index.js +227 -86
- package/dist/index.mjs +227 -86
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,15 +5,27 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.7.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.7.0) - 2022-03-19
|
|
9
|
+
|
|
10
|
+
- upgrade `carbon-components-svelte` to v0.62.0 to account for the removed `Copy` component and inlined icon components
|
|
11
|
+
|
|
12
|
+
## [0.6.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.6.0) - 2021-07-11
|
|
13
|
+
|
|
14
|
+
- upgrade `carbon-components-svelte` to v0.40.0 to include `Breakpoint`, `Theme` components for `optimizeImports`
|
|
15
|
+
|
|
16
|
+
## [0.5.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.5.0) - 2021-07-05
|
|
17
|
+
|
|
18
|
+
- upgrade `carbon-components-svelte` to v0.39.0 to include `RecursiveList`, `TreeView` components for `optimizeImports`
|
|
19
|
+
|
|
8
20
|
## [0.4.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.4.0) - 2021-06-28
|
|
9
21
|
|
|
10
22
|
**Features**
|
|
11
23
|
|
|
12
|
-
- upgrade `carbon-components-svelte` to v0.38 to include
|
|
24
|
+
- upgrade `carbon-components-svelte` to v0.38.0 to include `ProgressBar` component for `optimizeImports`
|
|
13
25
|
|
|
14
26
|
**Fixes**
|
|
15
27
|
|
|
16
|
-
- default `include` preprocessor entry test
|
|
28
|
+
- default `include` preprocessor entry test regex to high-level test option
|
|
17
29
|
|
|
18
30
|
## [0.3.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.3.0) - 2021-05-21
|
|
19
31
|
|
package/README.md
CHANGED
|
@@ -3,18 +3,29 @@
|
|
|
3
3
|
[![NPM][npm]][npm-url]
|
|
4
4
|

|
|
5
5
|

|
|
6
|
-
[![Build][build]][build-badge]
|
|
7
6
|
|
|
8
7
|
> Collection of [Svelte preprocessors](https://svelte.dev/docs#svelte_preprocess) for the Carbon Design System
|
|
9
8
|
|
|
10
9
|
## Installation
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
**Yarn**
|
|
12
|
+
|
|
13
|
+
```sh
|
|
13
14
|
yarn add -D carbon-preprocess-svelte
|
|
14
|
-
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**NPM**
|
|
18
|
+
|
|
19
|
+
```sh
|
|
15
20
|
npm i -D carbon-preprocess-svelte
|
|
16
21
|
```
|
|
17
22
|
|
|
23
|
+
**pnpm**
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
pnpm i -D carbon-preprocess-svelte
|
|
27
|
+
```
|
|
28
|
+
|
|
18
29
|
## Usage
|
|
19
30
|
|
|
20
31
|
This library contains the following preprocessors and plugins:
|
|
@@ -73,10 +84,8 @@ import { optimizeCss } from "carbon-preprocess-svelte";
|
|
|
73
84
|
|
|
74
85
|
export default {
|
|
75
86
|
kit: {
|
|
76
|
-
target: "#svelte",
|
|
77
87
|
adapter: adapter(),
|
|
78
88
|
vite: {
|
|
79
|
-
optimizeDeps: { include: ["clipboard-copy"] },
|
|
80
89
|
plugins: [process.env.NODE_ENV === "production" && optimizeCss()],
|
|
81
90
|
},
|
|
82
91
|
},
|
|
@@ -184,7 +193,7 @@ interface ElementsOptions {
|
|
|
184
193
|
|
|
185
194
|
### `icons`
|
|
186
195
|
|
|
187
|
-
`icons` is Svelte markup preprocessor that inlines [Carbon SVG icons](https://www.carbondesignsystem.com/guidelines/icons/library/).
|
|
196
|
+
`icons` is a Svelte markup preprocessor that inlines [Carbon SVG icons](https://www.carbondesignsystem.com/guidelines/icons/library/).
|
|
188
197
|
|
|
189
198
|
The only required attribute is `name`, which represents the module name of the icon. Refer to [carbon-icons-svelte/ICON_INDEX.md](https://github.com/IBM/carbon-icons-svelte/blob/master/ICON_INDEX.md) for a list of supported icons.
|
|
190
199
|
|
|
@@ -208,7 +217,7 @@ export default {
|
|
|
208
217
|
|
|
209
218
|
### `pictograms`
|
|
210
219
|
|
|
211
|
-
`pictograms` is Svelte markup preprocessor that inlines [Carbon SVG pictograms](https://www.carbondesignsystem.com/guidelines/pictograms/library/).
|
|
220
|
+
`pictograms` is a Svelte markup preprocessor that inlines [Carbon SVG pictograms](https://www.carbondesignsystem.com/guidelines/pictograms/library/).
|
|
212
221
|
|
|
213
222
|
The only required attribute is `name`, which represents the module name of the pictogram. Refer to [carbon-pictograms-svelte/PICTOGRAM_INDEX.md](https://github.com/IBM/carbon-pictograms-svelte/blob/master/PICTOGRAM_INDEX.md) for a list of supported pictograms.
|
|
214
223
|
|
|
@@ -439,10 +448,8 @@ import { optimizeImports, optimizeCss } from "carbon-preprocess-svelte";
|
|
|
439
448
|
export default {
|
|
440
449
|
preprocess: [optimizeImports()],
|
|
441
450
|
kit: {
|
|
442
|
-
target: "#svelte",
|
|
443
451
|
adapter: adapter(),
|
|
444
452
|
vite: {
|
|
445
|
-
optimizeDeps: { include: ["clipboard-copy"] },
|
|
446
453
|
plugins: [process.env.NODE_ENV === "production" && optimizeCss()],
|
|
447
454
|
},
|
|
448
455
|
},
|
|
@@ -459,5 +466,3 @@ Refer to the [contributing guidelines](CONTRIBUTING.md).
|
|
|
459
466
|
|
|
460
467
|
[npm]: https://img.shields.io/npm/v/carbon-preprocess-svelte.svg?color=262626&style=for-the-badge
|
|
461
468
|
[npm-url]: https://npmjs.com/package/carbon-preprocess-svelte
|
|
462
|
-
[build]: https://img.shields.io/travis/com/ibm/carbon-preprocess-svelte?color=24a148&style=for-the-badge
|
|
463
|
-
[build-badge]: https://travis-ci.com/ibm/carbon-preprocess-svelte
|