@medyll/cssfabric 0.2.1-beta.7 → 0.2.1-beta.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.
@@ -1,6 +1,7 @@
1
+
1
2
  <script lang="ts">
2
3
  export let name = '';
3
- export let children = [];
4
+ export const children = [];
4
5
  export let indent = 0;
5
6
  export let data: Record<string, any> = {};
6
7
 
@@ -37,8 +38,4 @@
37
38
  {/if}
38
39
 
39
40
  <style>
40
- h3 {
41
- cursor: pointer;
42
- user-select: none;
43
- }
44
41
  </style>
@@ -15,5 +15,6 @@ export type NewMenuProps = typeof __propDef.props;
15
15
  export type NewMenuEvents = typeof __propDef.events;
16
16
  export type NewMenuSlots = typeof __propDef.slots;
17
17
  export default class NewMenu extends SvelteComponentTyped<NewMenuProps, NewMenuEvents, NewMenuSlots> {
18
+ get children(): any[];
18
19
  }
19
20
  export {};
package/dist/cssf/cssf.js CHANGED
@@ -1,12 +1,6 @@
1
1
  import fs from 'fs-extra';
2
2
  import { CssGuide } from './cssfGuide.js';
3
3
  import { cssfModelTypes, cssfModel } from './cssfModel.js';
4
- /* const processor = postcss([myPlugin]);
5
-
6
- processor.process('a { color: black; }').then((result) => {
7
- console.log(result.css);
8
- }); */
9
4
  const cssGuide = new CssGuide(cssfModelTypes);
10
5
  const { meta, interfaces, classMethods, classTypes, transformerTypes } = cssGuide.generate(cssfModel);
11
- console.log(meta, interfaces, classMethods, classTypes, transformerTypes);
12
6
  fs.writeFileSync('src/lib/cssf/cssfLib.ts', meta + classTypes + transformerTypes + interfaces + classMethods);
@@ -8,7 +8,6 @@ export const myPlugin = () => (root) => {
8
8
  const prop = decl.prop;
9
9
  const method = cssfClass?.[parent];
10
10
  if (method) {
11
- console.log(method(decl)?.[prop](value));
12
11
  }
13
12
  //decl.prop = 'my-fed-' + decl.prop;
14
13
  // if (decl?.parent) decl.parent.append({ prop: 'my-prefix-' + decl.prop, value: decl.value });
@@ -33,5 +32,4 @@ cssfProcessor
33
32
 
34
33
  `)
35
34
  .then((result) => {
36
- console.log(result.css);
37
35
  });
@@ -73,7 +73,6 @@ export class CssFabric {
73
73
  this.cssFabricModel.out2 = this.cssFabricBuilder.makeDefaultVariations(['foreground', 'bg'], ['lighten', 'darken', 'opacity'], this.vendor());
74
74
  break;
75
75
  default:
76
- console.log('default', modelKey);
77
76
  break;
78
77
  }
79
78
  });
@@ -23,7 +23,6 @@ export class CssFabricExport {
23
23
  console.error(err);
24
24
  return;
25
25
  }
26
- console.log('File created successfully.');
27
26
  });
28
27
  }
29
28
  createJsonModel() {
@@ -33,7 +32,6 @@ export class CssFabricExport {
33
32
  console.error(err);
34
33
  return;
35
34
  }
36
- console.log('File created successfully.');
37
35
  });
38
36
  }
39
37
  parseModel(json, parentKey = '') {