typecomposer 0.0.74 → 0.0.76

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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,OAAO,EAAE,MAAM,IAAI,CAAC;AA28E9C,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,SAAS,CAAC,cAAc,CAAC;AAE5E,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,EAAE;IACrE,KAAK,EAAE,UAAU,QAAgB;QAC/B,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,SAAS,CAAC,WAAW,CAAC;AAEtE,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,EAAE;IAClE,KAAK,EAAE,UAAU,QAAgB,EAAE,KAAkC,EAAE,QAAiB;QACtF,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,OAAO;YAAE,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;;YAC1C,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,EAAE;IACrE,KAAK,EAAE,UAAU,GAAW;QAC1B,OAAO,GAAG,IAAI,IAAI,CAAC;IACrB,CAAC;IACD,QAAQ,EAAE,IAAI;IACd,YAAY,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O,CAAC,KAAK,EAAE;YAC9C,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;gBAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;gBAC/B,IAAI,OAAO,IAAI,SAAS,IAAI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU;oBAAE,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;;oBAC1F,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;gBAC1B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;gBACpB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;SACF,CAAC,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;YACtC,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;SAChC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typecomposer",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zico15"
@@ -18,9 +18,9 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "scripts": {
21
- "copy": "cp -r dist '/Users/ezequiel/Documents/observatorios/frontend_tc/node_modules/typecomposer'",
22
- "copy_style": "cp -r styles '/Users/ezequiel/Documents/observatorios/frontend_tc/node_modules/typecomposer'",
23
- "copy_typings": "cp -r typings '/Users/ezequiel/Documents/observatorios/frontend_tc/node_modules/typecomposer'",
21
+ "copy": "cp -r dist '/Users/ezequiel/Documents/TypeComposer/project-test/node_modules/typecomposer'",
22
+ "copy_style": "cp -r styles '/Users/ezequiel/Documents/TypeComposer/project-test/node_modules/typecomposer'",
23
+ "copy_typings": "cp -r typings '/Users/ezequiel/Documents/TypeComposer/project-test/node_modules/typecomposer'",
24
24
  "build": "rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs && npm run copy && npm run copy_style && npm run copy_typings",
25
25
  "build:esm": "tsc -p tsconfig.json",
26
26
  "build:cjs": "tsc -p tsconfig.json --module CommonJS --outDir dist/cjs",
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.5.5",
40
+ "csstype": "^3.1.3",
40
41
  "ts-morph": "^20.0.0",
41
42
  "typescript": "^5.6.2",
42
43
  "vite": "^5.0.0"
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  drop-down,
2
4
  text-field-element {
3
5
  position: relative;
@@ -247,7 +249,7 @@ drop-down {
247
249
  border: 3px solid #f0f0f0; // Creates padding around the thumb
248
250
 
249
251
  &:hover {
250
- background: darken(#6a5acd, 10%); // Darkens the thumb on hover
252
+ background: color.adjust(#6a5acd, $lightness: -10%);
251
253
  }
252
254
  }
253
255
 
@@ -26,60 +26,4 @@
26
26
  --v-field-input-padding-bottom: var(--v-field-padding-bottom, 5px);
27
27
  --v-input-chips-margin-top: 2px;
28
28
  --v-scrollbar-offset: inherit;
29
-
30
- // --font-family: 'Arial', sans-serif;
31
- //--primary-color: #333333;
32
- //--secondary-color: #555555;
33
- //--background-color: #f9f9f9;
34
- //--foreground-color: #ffffff;
35
- //--border-color: #dddddd;
36
- //--link-color: #1a73e8;
37
- //--link-hover-color: darken(#1a73e8, 10%);
38
- //--button-background-color: #1a73e8;
39
- //--button-color: #ffffff;
40
- //--button-hover-background-color: darken(#1a73e8, 10%);
41
- //--input-background-color: #ffffff;
42
- //--input-border-color: #cccccc;
43
- //--input-focus-border-color: #1a73e8;
44
29
  }
45
- // // Você pode adicionar mais variáveis de cores conforme necessário
46
-
47
- // a {
48
- // color: $cor-link;
49
- // &:hover {
50
- // color: darken($cor-link, 10%); // Escurecer a cor do link ao passar o mouse
51
- // }
52
- // }
53
-
54
- // .btn-primary {
55
- // background-color: $cor-primaria;
56
- // color: $cor-de-fundo;
57
- // &:hover {
58
- // background-color: darken(
59
- // $cor-primaria,
60
- // 10%
61
- // ); // Escurecer a cor do botão ao passar o mouse
62
- // }
63
- // }
64
-
65
- // .btn-secondary {
66
- // background-color: $cor-secundaria;
67
- // color: $cor-de-fundo;
68
- // &:hover {
69
- // background-color: darken(
70
- // $cor-secundaria,
71
- // 10%
72
- // ); // Escurecer a cor do botão ao passar o mouse
73
- // }
74
- // }
75
-
76
- // // Você pode aplicar as outras variáveis de cores da mesma maneira
77
-
78
- // // Exemplo de botão de destaque
79
- // .btn-destaque {
80
- // background-color: $cor-destaque;
81
- // color: $cor-de-fundo;
82
- // &:hover {
83
- // background-color: darken($cor-destaque, 10%);
84
- // }
85
- // }
@@ -1,14 +1,50 @@
1
+ import type * as CSS from "csstype";
2
+
3
+ type Ref<T> = {
4
+ value: T;
5
+ subscribe: (target: any, prop: string | symbol | ((value: any) => void), refPropertyKey?: string | symbol | undefined) => subscribeRef<any> | undefined;
6
+ onChange: (fun: (value: T) => void, target?: {} | undefined) => void;
7
+ toString: () => string;
8
+ toJSON: () => object;
9
+ };
10
+
11
+ type StyleProperties = {
12
+ [K in keyof CSS.Properties]?: CSS.Properties[K] | Ref<CSS.Properties[K]>;
13
+ } & {
14
+ [K in keyof CSS.PropertiesHyphen]?: CSS.PropertiesHyphen[K] | Ref<CSS.PropertiesHyphen[K]>;
15
+ };
16
+
17
+ interface StylePropertiesMethods {
18
+ /** [MDN reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
19
+ getPropertyPriority(property: string): string | ref<string>;
20
+ /** [MDN reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
21
+ getPropertyValue(property: string): string | ref<string>;
22
+ /** [MDN reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */
23
+ item(index: number): string | ref<string>;
24
+ /** [MDN reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */
25
+ removeProperty(property: string): string | ref<string>;
26
+ /** [MDN reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */
27
+ setProperty(property: string, value: string | ref<string> | null, priority?: string): void;
28
+ [index: number]: string | ref<string>;
29
+
30
+ hasOwnProperty(key: string): boolean;
31
+ }
32
+
1
33
  declare module '*.html' {
2
34
  const content: string;
3
35
  export default content;
4
36
  }
5
37
 
6
38
  declare global {
39
+
40
+ type CSSStyleDeclarationRef = StyleProperties & StylePropertiesMethods;
41
+
7
42
  var CSSStyleDeclarationRef: {
8
- prototype: CSSStyleDeclaration;
9
- new(): CSSStyleDeclarationRefType;
43
+ prototype: CSSStyleDeclarationRef;
44
+ new(): CSSStyleDeclarationRef;
10
45
  };
11
- // function test_global();
46
+
47
+
12
48
  interface Array<T> {
13
49
  clear(): void;
14
50
  }
@@ -26,7 +62,7 @@ declare global {
26
62
 
27
63
  interface Element {
28
64
  innerHTML: string | ref<string>;
29
- style: CSSStyleDeclarationRefType;
65
+ style: CSSStyleDeclarationRef;
30
66
  variant: string | ref<string> | undefined;
31
67
  disabled: boolean | ref<boolean>;
32
68
  onInit(): void;
@@ -40,7 +76,7 @@ declare global {
40
76
 
41
77
  interface HTMLElement {
42
78
  innerHTML: string | ref<string>;
43
- style: CSSStyleDeclarationRefType;
79
+ style: CSSStyleDeclarationRef;
44
80
  disabled: boolean | ref<boolean>;
45
81
  onInit(): void;
46
82
  unmount(): void;