@orago/dodo 0.0.10 → 0.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orago/dodo",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Dear Orago's Dom Objects",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -36,9 +36,15 @@ export class FinchSheet {
36
36
  }
37
37
  }
38
38
 
39
- export function $dodoStyleRef(style: FinchStyle) {
40
- const group = new DodoTagGroup();
41
- const sheet = new FinchSheet();
39
+ export function $dodoStyleRef(
40
+ style: FinchStyle,
41
+ options?: {
42
+ group?: DodoTagGroup;
43
+ sheet?: FinchSheet;
44
+ },
45
+ ) {
46
+ const group = options?.group ?? new DodoTagGroup();
47
+ const sheet = options?.sheet ?? new FinchSheet();
42
48
  const style_group = Builder.group([
43
49
  Builder.style(group.getQuerySelector(), style),
44
50
  ]);