carbon-preprocess-svelte 0.9.1 → 0.11.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.
Files changed (48) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +162 -348
  3. package/dist/component-index.d.ts +4 -0
  4. package/dist/component-index.js +1924 -0
  5. package/dist/constants.d.ts +8 -14
  6. package/dist/constants.js +7 -0
  7. package/dist/index.d.ts +3 -4
  8. package/dist/index.js +12 -83169
  9. package/dist/plugins/OptimizeCssPlugin.d.ts +8 -0
  10. package/dist/plugins/OptimizeCssPlugin.js +49 -0
  11. package/dist/plugins/compare-diff.d.ts +6 -0
  12. package/dist/plugins/compare-diff.js +36 -0
  13. package/dist/plugins/create-optimized-css.d.ts +25 -0
  14. package/dist/plugins/create-optimized-css.js +89 -0
  15. package/dist/plugins/optimize-css.d.ts +3 -10
  16. package/dist/plugins/optimize-css.js +49 -0
  17. package/dist/preprocessors/optimize-imports.d.ts +3 -3
  18. package/dist/preprocessors/optimize-imports.js +65 -0
  19. package/dist/utils.d.ts +3 -11
  20. package/dist/utils.js +16 -0
  21. package/package.json +21 -49
  22. package/CHANGELOG.md +0 -126
  23. package/dist/build/build-components.d.ts +0 -9
  24. package/dist/build/build-elements.d.ts +0 -10
  25. package/dist/build/build-icons.d.ts +0 -15
  26. package/dist/build/build-pictograms.d.ts +0 -54
  27. package/dist/build/index.d.ts +0 -19
  28. package/dist/build/type.d.ts +0 -11
  29. package/dist/carbon-components-svelte.d.ts +0 -681
  30. package/dist/carbon-elements.d.ts +0 -833
  31. package/dist/carbon-icons.d.ts +0 -84420
  32. package/dist/carbon-pictograms.d.ts +0 -8839
  33. package/dist/extractors/extract-selectors.d.ts +0 -14
  34. package/dist/extractors/index.d.ts +0 -1
  35. package/dist/index.cjs.d.ts +0 -4
  36. package/dist/index.mjs +0 -83184
  37. package/dist/plugins/index.d.ts +0 -1
  38. package/dist/plugins/optimize-css.cjs.d.ts +0 -10
  39. package/dist/preprocessors/collect-headings.d.ts +0 -27
  40. package/dist/preprocessors/elements.d.ts +0 -22
  41. package/dist/preprocessors/icons.d.ts +0 -2
  42. package/dist/preprocessors/include.d.ts +0 -49
  43. package/dist/preprocessors/index.d.ts +0 -6
  44. package/dist/preprocessors/pictograms.d.ts +0 -2
  45. package/dist/presets/index.d.ts +0 -1
  46. package/dist/presets/preset-carbon.d.ts +0 -7
  47. package/dist/walk-and-replace.d.ts +0 -117
  48. package/src/carbon-components-svelte.js +0 -513
@@ -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 {};
@@ -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
- }
@@ -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 {};