carbon-preprocess-svelte 0.10.0 → 0.11.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/LICENSE +1 -1
- package/README.md +162 -348
- package/dist/component-index.d.ts +4 -0
- package/dist/component-index.js +1924 -0
- package/dist/constants.d.ts +9 -14
- package/dist/constants.js +8 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.js +12 -83167
- package/dist/plugins/OptimizeCssPlugin.d.ts +8 -0
- package/dist/plugins/OptimizeCssPlugin.js +49 -0
- package/dist/plugins/compare-diff.d.ts +6 -0
- package/dist/plugins/compare-diff.js +36 -0
- package/dist/plugins/create-optimized-css.d.ts +25 -0
- package/dist/plugins/create-optimized-css.js +90 -0
- package/dist/plugins/optimize-css.d.ts +3 -10
- package/dist/plugins/optimize-css.js +49 -0
- package/dist/preprocessors/optimize-imports.d.ts +3 -3
- package/dist/preprocessors/optimize-imports.js +65 -0
- package/dist/utils.d.ts +3 -11
- package/dist/utils.js +16 -0
- package/package.json +21 -49
- package/CHANGELOG.md +0 -136
- package/dist/build/build-components.d.ts +0 -9
- package/dist/build/build-elements.d.ts +0 -10
- package/dist/build/build-icons.d.ts +0 -15
- package/dist/build/build-pictograms.d.ts +0 -54
- package/dist/build/index.d.ts +0 -19
- package/dist/build/type.d.ts +0 -11
- package/dist/carbon-components-svelte.d.ts +0 -681
- package/dist/carbon-elements.d.ts +0 -833
- package/dist/carbon-icons.d.ts +0 -84420
- package/dist/carbon-pictograms.d.ts +0 -8839
- package/dist/extractors/extract-selectors.d.ts +0 -14
- package/dist/extractors/index.d.ts +0 -1
- package/dist/index.cjs.d.ts +0 -4
- package/dist/index.mjs +0 -83182
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/optimize-css.cjs.d.ts +0 -10
- package/dist/preprocessors/collect-headings.d.ts +0 -27
- package/dist/preprocessors/elements.d.ts +0 -22
- package/dist/preprocessors/icons.d.ts +0 -2
- package/dist/preprocessors/include.d.ts +0 -49
- package/dist/preprocessors/index.d.ts +0 -6
- package/dist/preprocessors/pictograms.d.ts +0 -2
- package/dist/presets/index.d.ts +0 -1
- package/dist/presets/preset-carbon.d.ts +0 -7
- package/dist/walk-and-replace.d.ts +0 -117
- package/src/carbon-components-svelte.js +0 -513
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuildApi } from "../build";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* "Add16"
|
|
5
|
-
* "Add20"
|
|
6
|
-
*/
|
|
7
|
-
export declare type IconName = string;
|
|
8
|
-
export interface BuildIcons extends BuildApi {
|
|
9
|
-
icons: Record<IconName, CarbonIconModule>;
|
|
10
|
-
}
|
|
11
|
-
interface CarbonIconModule {
|
|
12
|
-
attributes: Record<string, any>;
|
|
13
|
-
children: string;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BuildApi } from "../build";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* "Airplane"
|
|
5
|
-
* "ActiveServer"
|
|
6
|
-
*/
|
|
7
|
-
export declare type PictogramName = string;
|
|
8
|
-
export interface BuildPictograms extends BuildApi {
|
|
9
|
-
pictograms: Record<PictogramName, CarbonPictogramModule>;
|
|
10
|
-
}
|
|
11
|
-
interface CarbonPictogramModule {
|
|
12
|
-
attributes: Record<string, any>;
|
|
13
|
-
children: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CarbonPictogramsMetadata {
|
|
16
|
-
icons: ReadonlyArray<{
|
|
17
|
-
name: string;
|
|
18
|
-
friendlyName: string;
|
|
19
|
-
namespace: [];
|
|
20
|
-
assets: [
|
|
21
|
-
{
|
|
22
|
-
filepath: string;
|
|
23
|
-
source: string;
|
|
24
|
-
optimized: {
|
|
25
|
-
data: string;
|
|
26
|
-
info: {};
|
|
27
|
-
path: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
output: [
|
|
32
|
-
pictogram: {
|
|
33
|
-
moduleName: PictogramName;
|
|
34
|
-
filepath: string;
|
|
35
|
-
descriptor: {
|
|
36
|
-
elem: "svg";
|
|
37
|
-
attrs: {
|
|
38
|
-
xmlns: "http://www.w3.org/2000/svg";
|
|
39
|
-
viewBox: "0 0 48 48";
|
|
40
|
-
width: "48";
|
|
41
|
-
height: "48";
|
|
42
|
-
};
|
|
43
|
-
content: {
|
|
44
|
-
elem: string;
|
|
45
|
-
attrs: object;
|
|
46
|
-
}[];
|
|
47
|
-
name: string;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
category: string;
|
|
52
|
-
}>;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
package/dist/build/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * as type from "./type";
|
|
2
|
-
export interface BuildApi {
|
|
3
|
-
metadata: {
|
|
4
|
-
/**
|
|
5
|
-
* Package name
|
|
6
|
-
* @example "carbon-components-svelte"
|
|
7
|
-
*/
|
|
8
|
-
package: string;
|
|
9
|
-
/**
|
|
10
|
-
* Package version
|
|
11
|
-
* @example "0.32.0"
|
|
12
|
-
*/
|
|
13
|
-
version: string;
|
|
14
|
-
/**
|
|
15
|
-
* Number of exports
|
|
16
|
-
*/
|
|
17
|
-
exports: number;
|
|
18
|
-
};
|
|
19
|
-
}
|
package/dist/build/type.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as elements from "@carbon/elements";
|
|
2
|
-
declare type TypeStylesBreakpoint = Partial<Record<elements.BreakpointName, TypeStyles>>;
|
|
3
|
-
interface TypeStyles extends Record<string, string | number | undefined | TypeStylesBreakpoint> {
|
|
4
|
-
breakpoints?: TypeStylesBreakpoint;
|
|
5
|
-
}
|
|
6
|
-
export interface TypeStylesComputed {
|
|
7
|
-
css: string;
|
|
8
|
-
breakpoints: Array<any>;
|
|
9
|
-
}
|
|
10
|
-
export declare function serializeTypeStyles(type: TypeStyles): TypeStylesComputed;
|
|
11
|
-
export {};
|