@cos-design/true-focus 4.0.0 → 4.1.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.
- package/dist/core/packages/shared/src/element-options.d.ts +19 -0
- package/dist/core/packages/shared/src/index.d.ts +2 -0
- package/dist/element/index.js +32 -31
- package/dist/element/packages/shared/src/element-options.d.ts +19 -0
- package/dist/element/packages/shared/src/index.d.ts +2 -0
- package/dist/react/packages/shared/src/element-options.d.ts +19 -0
- package/dist/react/packages/shared/src/index.d.ts +2 -0
- package/dist/vue/index.js +21 -22
- package/dist/vue/packages/shared/src/element-options.d.ts +19 -0
- package/dist/vue/packages/shared/src/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Component attribute → Core options parsing (v4 Element adapters).
|
|
3
|
+
* Keeps behavior consistent across 91 components.
|
|
4
|
+
*/
|
|
5
|
+
export type BooleanAttrMode =
|
|
6
|
+
/** `options.key = el.hasAttribute(attr)` — always written */
|
|
7
|
+
'presence'
|
|
8
|
+
/** Only when attribute present: `raw !== 'false' && raw !== '0'` (omit when absent) */
|
|
9
|
+
| 'optional-true'
|
|
10
|
+
/** Only when attribute present; when absent leave `undefined` (controlled props like `flipped`) */
|
|
11
|
+
| 'optional-undefined';
|
|
12
|
+
export declare const camelToKebabAttr: (name: string) => string;
|
|
13
|
+
export declare function readStringAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
14
|
+
export declare function readNumberAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
15
|
+
export declare function readBooleanAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string, mode?: BooleanAttrMode): void;
|
|
16
|
+
export declare function readJsonAttr<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, attr?: string): void;
|
|
17
|
+
/** Property setters on the custom element class (`_prizes`, `_items`, …) override attributes. */
|
|
18
|
+
export declare function readPropertyOverride<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, backingKey: string): void;
|
|
19
|
+
export declare function optionCallbackDispatcher(el: HTMLElement, eventName: string): (...args: unknown[]) => void;
|
|
@@ -9,3 +9,5 @@ export type { PhotoItem, PhotoIndexChangeHandler, PhotoFaceChangeHandler } from
|
|
|
9
9
|
export { resolveCanvasBoxSize } from './canvas-box';
|
|
10
10
|
export type { CanvasBoxSizeInput, CanvasBoxSize } from './canvas-box';
|
|
11
11
|
export { applyCanvasHostBox, applyBlockHostBox, setHidden, optionsFingerprint, optionsVisualChanged, } from './host-layout';
|
|
12
|
+
export type { BooleanAttrMode } from './element-options';
|
|
13
|
+
export { camelToKebabAttr, optionCallbackDispatcher, readBooleanAttr, readJsonAttr, readNumberAttr, readPropertyOverride, readStringAttr, } from './element-options';
|
package/dist/element/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { readBooleanAttr as e, readNumberAttr as t, readStringAttr as n } from "@cos-design/shared";
|
|
1
2
|
import './element.css';//#region src/components/trueFocus/core/engine.ts
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
let
|
|
3
|
+
var r = "cos-true-focus";
|
|
4
|
+
function i(e, t = {}) {
|
|
5
|
+
let n = {
|
|
5
6
|
sentence: "True Focus",
|
|
6
7
|
separator: " ",
|
|
7
8
|
manualMode: !1,
|
|
@@ -12,50 +13,50 @@ function t(t, n = {}) {
|
|
|
12
13
|
pauseBetweenAnimations: 1,
|
|
13
14
|
fontSize: 48,
|
|
14
15
|
color: "#f8fafc",
|
|
15
|
-
...
|
|
16
|
+
...t
|
|
16
17
|
}, i = 0, a = 0, o = 0, s = document.createElement("div");
|
|
17
|
-
s.className =
|
|
18
|
+
s.className = r;
|
|
18
19
|
let c = document.createElement("div");
|
|
19
|
-
c.className = `${
|
|
20
|
+
c.className = `${r}__stage`;
|
|
20
21
|
let l = document.createElement("div");
|
|
21
|
-
l.className = `${
|
|
22
|
-
for (let
|
|
22
|
+
l.className = `${r}__focus-frame`;
|
|
23
|
+
for (let e of [
|
|
23
24
|
"tl",
|
|
24
25
|
"tr",
|
|
25
26
|
"bl",
|
|
26
27
|
"br"
|
|
27
28
|
]) {
|
|
28
|
-
let
|
|
29
|
-
|
|
29
|
+
let t = document.createElement("span");
|
|
30
|
+
t.className = `${r}__corner ${r}__${e}`, l.appendChild(t);
|
|
30
31
|
}
|
|
31
|
-
c.appendChild(l), s.appendChild(c),
|
|
32
|
+
c.appendChild(l), s.appendChild(c), e.appendChild(s);
|
|
32
33
|
let u = [], d = () => {
|
|
33
34
|
let e = u[i];
|
|
34
35
|
if (!e) return;
|
|
35
36
|
let t = c.getBoundingClientRect(), n = e.getBoundingClientRect();
|
|
36
37
|
l.style.transform = `translate(${n.left - t.left}px, ${n.top - t.top}px)`, l.style.width = `${n.width}px`, l.style.height = `${n.height}px`, l.style.opacity = i >= 0 ? "1" : "0";
|
|
37
38
|
}, f = () => {
|
|
38
|
-
c.style.fontSize = `${
|
|
39
|
+
c.style.fontSize = `${n.fontSize ?? 48}px`, c.style.setProperty("--focus-color", n.color ?? "#f8fafc"), c.style.setProperty("--border-color", n.borderColor ?? "#22c55e"), c.style.setProperty("--glow-color", n.glowColor ?? "rgb(34 197 94 / 60%)"), c.style.setProperty("--focus-duration", `${n.animationDuration ?? .5}s`), u.length = 0, c.querySelectorAll(`.${r}__word`).forEach((e) => e.remove()), (n.sentence ?? "").split(n.separator ?? " ").filter(Boolean).forEach((e, t) => {
|
|
39
40
|
let o = document.createElement("span");
|
|
40
|
-
o.className = `${
|
|
41
|
-
let s =
|
|
42
|
-
o.style.filter = s ? "blur(0px)" : `blur(${
|
|
43
|
-
|
|
41
|
+
o.className = `${r}__word`, o.textContent = e;
|
|
42
|
+
let s = t === i;
|
|
43
|
+
o.style.filter = s ? "blur(0px)" : `blur(${n.blurAmount ?? 5}px)`, o.style.cursor = n.manualMode ? "pointer" : "default", o.addEventListener("mouseenter", () => {
|
|
44
|
+
n.manualMode && (a = t, i = t, f());
|
|
44
45
|
}), o.addEventListener("mouseleave", () => {
|
|
45
|
-
|
|
46
|
+
n.manualMode && (i = a, f());
|
|
46
47
|
}), c.insertBefore(o, l), u.push(o);
|
|
47
48
|
}), d();
|
|
48
49
|
}, p = () => {
|
|
49
|
-
if (o && clearInterval(o),
|
|
50
|
-
let e = (
|
|
50
|
+
if (o && clearInterval(o), n.manualMode) return;
|
|
51
|
+
let e = (n.sentence ?? "").split(n.separator ?? " ").filter(Boolean);
|
|
51
52
|
e.length && (o = window.setInterval(() => {
|
|
52
53
|
i = (i + 1) % e.length, f();
|
|
53
|
-
}, ((
|
|
54
|
+
}, ((n.animationDuration ?? .5) + (n.pauseBetweenAnimations ?? 1)) * 1e3));
|
|
54
55
|
};
|
|
55
56
|
return f(), p(), {
|
|
56
57
|
update(e) {
|
|
57
|
-
|
|
58
|
-
...
|
|
58
|
+
n = {
|
|
59
|
+
...n,
|
|
59
60
|
...e
|
|
60
61
|
}, i = 0, f(), p();
|
|
61
62
|
},
|
|
@@ -66,12 +67,12 @@ function t(t, n = {}) {
|
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region src/components/trueFocus/element/index.ts
|
|
69
|
-
var
|
|
70
|
-
function r
|
|
71
|
-
let
|
|
72
|
-
return
|
|
70
|
+
var a = "cos-true-focus";
|
|
71
|
+
function o(r) {
|
|
72
|
+
let i = {};
|
|
73
|
+
return n(i, r, "sentence", "sentence"), n(i, r, "separator", "separator"), n(i, r, "borderColor", "border-color"), n(i, r, "glowColor", "glow-color"), n(i, r, "color", "color"), t(i, r, "blurAmount", "blur-amount"), t(i, r, "animationDuration", "animation-duration"), t(i, r, "pauseBetweenAnimations", "pause-between-animations"), t(i, r, "fontSize", "font-size"), e(i, r, "manualMode", "manual-mode", "presence"), i;
|
|
73
74
|
}
|
|
74
|
-
var
|
|
75
|
+
var s = class extends HTMLElement {
|
|
75
76
|
ctrl = null;
|
|
76
77
|
static get observedAttributes() {
|
|
77
78
|
return [
|
|
@@ -88,15 +89,15 @@ var i = class extends HTMLElement {
|
|
|
88
89
|
];
|
|
89
90
|
}
|
|
90
91
|
connectedCallback() {
|
|
91
|
-
this.ctrl =
|
|
92
|
+
this.ctrl = i(this, o(this));
|
|
92
93
|
}
|
|
93
94
|
disconnectedCallback() {
|
|
94
95
|
this.ctrl?.destroy(), this.ctrl = null;
|
|
95
96
|
}
|
|
96
97
|
attributeChangedCallback() {
|
|
97
|
-
this.ctrl?.update(
|
|
98
|
+
this.ctrl?.update(o(this));
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
|
-
typeof customElements < "u" && !customElements.get("cos-true-focus") && customElements.define(
|
|
101
|
+
typeof customElements < "u" && !customElements.get("cos-true-focus") && customElements.define(a, s);
|
|
101
102
|
//#endregion
|
|
102
|
-
export {
|
|
103
|
+
export { s as CosTrueFocusElement, a as TAG };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Component attribute → Core options parsing (v4 Element adapters).
|
|
3
|
+
* Keeps behavior consistent across 91 components.
|
|
4
|
+
*/
|
|
5
|
+
export type BooleanAttrMode =
|
|
6
|
+
/** `options.key = el.hasAttribute(attr)` — always written */
|
|
7
|
+
'presence'
|
|
8
|
+
/** Only when attribute present: `raw !== 'false' && raw !== '0'` (omit when absent) */
|
|
9
|
+
| 'optional-true'
|
|
10
|
+
/** Only when attribute present; when absent leave `undefined` (controlled props like `flipped`) */
|
|
11
|
+
| 'optional-undefined';
|
|
12
|
+
export declare const camelToKebabAttr: (name: string) => string;
|
|
13
|
+
export declare function readStringAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
14
|
+
export declare function readNumberAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
15
|
+
export declare function readBooleanAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string, mode?: BooleanAttrMode): void;
|
|
16
|
+
export declare function readJsonAttr<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, attr?: string): void;
|
|
17
|
+
/** Property setters on the custom element class (`_prizes`, `_items`, …) override attributes. */
|
|
18
|
+
export declare function readPropertyOverride<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, backingKey: string): void;
|
|
19
|
+
export declare function optionCallbackDispatcher(el: HTMLElement, eventName: string): (...args: unknown[]) => void;
|
|
@@ -9,3 +9,5 @@ export type { PhotoItem, PhotoIndexChangeHandler, PhotoFaceChangeHandler } from
|
|
|
9
9
|
export { resolveCanvasBoxSize } from './canvas-box';
|
|
10
10
|
export type { CanvasBoxSizeInput, CanvasBoxSize } from './canvas-box';
|
|
11
11
|
export { applyCanvasHostBox, applyBlockHostBox, setHidden, optionsFingerprint, optionsVisualChanged, } from './host-layout';
|
|
12
|
+
export type { BooleanAttrMode } from './element-options';
|
|
13
|
+
export { camelToKebabAttr, optionCallbackDispatcher, readBooleanAttr, readJsonAttr, readNumberAttr, readPropertyOverride, readStringAttr, } from './element-options';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Component attribute → Core options parsing (v4 Element adapters).
|
|
3
|
+
* Keeps behavior consistent across 91 components.
|
|
4
|
+
*/
|
|
5
|
+
export type BooleanAttrMode =
|
|
6
|
+
/** `options.key = el.hasAttribute(attr)` — always written */
|
|
7
|
+
'presence'
|
|
8
|
+
/** Only when attribute present: `raw !== 'false' && raw !== '0'` (omit when absent) */
|
|
9
|
+
| 'optional-true'
|
|
10
|
+
/** Only when attribute present; when absent leave `undefined` (controlled props like `flipped`) */
|
|
11
|
+
| 'optional-undefined';
|
|
12
|
+
export declare const camelToKebabAttr: (name: string) => string;
|
|
13
|
+
export declare function readStringAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
14
|
+
export declare function readNumberAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
15
|
+
export declare function readBooleanAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string, mode?: BooleanAttrMode): void;
|
|
16
|
+
export declare function readJsonAttr<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, attr?: string): void;
|
|
17
|
+
/** Property setters on the custom element class (`_prizes`, `_items`, …) override attributes. */
|
|
18
|
+
export declare function readPropertyOverride<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, backingKey: string): void;
|
|
19
|
+
export declare function optionCallbackDispatcher(el: HTMLElement, eventName: string): (...args: unknown[]) => void;
|
|
@@ -9,3 +9,5 @@ export type { PhotoItem, PhotoIndexChangeHandler, PhotoFaceChangeHandler } from
|
|
|
9
9
|
export { resolveCanvasBoxSize } from './canvas-box';
|
|
10
10
|
export type { CanvasBoxSizeInput, CanvasBoxSize } from './canvas-box';
|
|
11
11
|
export { applyCanvasHostBox, applyBlockHostBox, setHidden, optionsFingerprint, optionsVisualChanged, } from './host-layout';
|
|
12
|
+
export type { BooleanAttrMode } from './element-options';
|
|
13
|
+
export { camelToKebabAttr, optionCallbackDispatcher, readBooleanAttr, readJsonAttr, readNumberAttr, readPropertyOverride, readStringAttr, } from './element-options';
|
package/dist/vue/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, onMounted as n, onUnmounted as r, openBlock as i, ref as a, watch as o } from "vue";
|
|
2
|
-
import { optionsFingerprint as s } from "@cos-design/shared";
|
|
3
2
|
import './vue.css';//#region src/components/trueFocus/core/engine.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
3
|
+
var s = "cos-true-focus";
|
|
4
|
+
function c(e, t = {}) {
|
|
6
5
|
let n = {
|
|
7
6
|
sentence: "True Focus",
|
|
8
7
|
separator: " ",
|
|
@@ -16,11 +15,11 @@ function l(e, t = {}) {
|
|
|
16
15
|
color: "#f8fafc",
|
|
17
16
|
...t
|
|
18
17
|
}, r = 0, i = 0, a = 0, o = document.createElement("div");
|
|
19
|
-
o.className =
|
|
20
|
-
let
|
|
21
|
-
|
|
18
|
+
o.className = s;
|
|
19
|
+
let c = document.createElement("div");
|
|
20
|
+
c.className = `${s}__stage`;
|
|
22
21
|
let l = document.createElement("div");
|
|
23
|
-
l.className = `${
|
|
22
|
+
l.className = `${s}__focus-frame`;
|
|
24
23
|
for (let e of [
|
|
25
24
|
"tl",
|
|
26
25
|
"tr",
|
|
@@ -28,24 +27,24 @@ function l(e, t = {}) {
|
|
|
28
27
|
"br"
|
|
29
28
|
]) {
|
|
30
29
|
let t = document.createElement("span");
|
|
31
|
-
t.className = `${
|
|
30
|
+
t.className = `${s}__corner ${s}__${e}`, l.appendChild(t);
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
c.appendChild(l), o.appendChild(c), e.appendChild(o);
|
|
34
33
|
let u = [], d = () => {
|
|
35
34
|
let e = u[r];
|
|
36
35
|
if (!e) return;
|
|
37
|
-
let t =
|
|
36
|
+
let t = c.getBoundingClientRect(), n = e.getBoundingClientRect();
|
|
38
37
|
l.style.transform = `translate(${n.left - t.left}px, ${n.top - t.top}px)`, l.style.width = `${n.width}px`, l.style.height = `${n.height}px`, l.style.opacity = r >= 0 ? "1" : "0";
|
|
39
38
|
}, f = () => {
|
|
40
|
-
|
|
39
|
+
c.style.fontSize = `${n.fontSize ?? 48}px`, c.style.setProperty("--focus-color", n.color ?? "#f8fafc"), c.style.setProperty("--border-color", n.borderColor ?? "#22c55e"), c.style.setProperty("--glow-color", n.glowColor ?? "rgb(34 197 94 / 60%)"), c.style.setProperty("--focus-duration", `${n.animationDuration ?? .5}s`), u.length = 0, c.querySelectorAll(`.${s}__word`).forEach((e) => e.remove()), (n.sentence ?? "").split(n.separator ?? " ").filter(Boolean).forEach((e, t) => {
|
|
41
40
|
let a = document.createElement("span");
|
|
42
|
-
a.className = `${
|
|
41
|
+
a.className = `${s}__word`, a.textContent = e;
|
|
43
42
|
let o = t === r;
|
|
44
43
|
a.style.filter = o ? "blur(0px)" : `blur(${n.blurAmount ?? 5}px)`, a.style.cursor = n.manualMode ? "pointer" : "default", a.addEventListener("mouseenter", () => {
|
|
45
44
|
n.manualMode && (i = t, r = t, f());
|
|
46
45
|
}), a.addEventListener("mouseleave", () => {
|
|
47
46
|
n.manualMode && (r = i, f());
|
|
48
|
-
}),
|
|
47
|
+
}), c.insertBefore(a, l), u.push(a);
|
|
49
48
|
}), d();
|
|
50
49
|
}, p = () => {
|
|
51
50
|
if (a && clearInterval(a), n.manualMode) return;
|
|
@@ -68,7 +67,7 @@ function l(e, t = {}) {
|
|
|
68
67
|
}
|
|
69
68
|
//#endregion
|
|
70
69
|
//#region src/components/trueFocus/vue/TrueFocus.vue
|
|
71
|
-
var
|
|
70
|
+
var l = /* @__PURE__ */ t({
|
|
72
71
|
__name: "TrueFocus",
|
|
73
72
|
props: {
|
|
74
73
|
sentence: {},
|
|
@@ -82,18 +81,18 @@ var u = /* @__PURE__ */ t({
|
|
|
82
81
|
fontSize: {},
|
|
83
82
|
color: {}
|
|
84
83
|
},
|
|
85
|
-
setup(t, { expose:
|
|
86
|
-
let
|
|
84
|
+
setup(t, { expose: s, emit: l }) {
|
|
85
|
+
let u = t, d = a(), f = null, p = () => ({ ...u });
|
|
87
86
|
return n(() => {
|
|
88
|
-
|
|
89
|
-
}), o(() =>
|
|
90
|
-
|
|
91
|
-
}),
|
|
87
|
+
d.value && (f = c(d.value, p()));
|
|
88
|
+
}), o(() => ({ ...u }), () => f?.update(p()), { deep: !0 }), r(() => {
|
|
89
|
+
f?.destroy(), f = null;
|
|
90
|
+
}), s({}), (t, n) => (i(), e("div", {
|
|
92
91
|
ref_key: "hostRef",
|
|
93
|
-
ref:
|
|
92
|
+
ref: d,
|
|
94
93
|
class: "cos-trueFocus-host"
|
|
95
94
|
}, null, 512));
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
//#endregion
|
|
99
|
-
export {
|
|
98
|
+
export { l as TrueFocus };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Component attribute → Core options parsing (v4 Element adapters).
|
|
3
|
+
* Keeps behavior consistent across 91 components.
|
|
4
|
+
*/
|
|
5
|
+
export type BooleanAttrMode =
|
|
6
|
+
/** `options.key = el.hasAttribute(attr)` — always written */
|
|
7
|
+
'presence'
|
|
8
|
+
/** Only when attribute present: `raw !== 'false' && raw !== '0'` (omit when absent) */
|
|
9
|
+
| 'optional-true'
|
|
10
|
+
/** Only when attribute present; when absent leave `undefined` (controlled props like `flipped`) */
|
|
11
|
+
| 'optional-undefined';
|
|
12
|
+
export declare const camelToKebabAttr: (name: string) => string;
|
|
13
|
+
export declare function readStringAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
14
|
+
export declare function readNumberAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string): void;
|
|
15
|
+
export declare function readBooleanAttr<T extends object>(options: T, el: HTMLElement, key: keyof T & string, attr?: string, mode?: BooleanAttrMode): void;
|
|
16
|
+
export declare function readJsonAttr<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, attr?: string): void;
|
|
17
|
+
/** Property setters on the custom element class (`_prizes`, `_items`, …) override attributes. */
|
|
18
|
+
export declare function readPropertyOverride<T extends object, K extends keyof T & string>(options: T, el: HTMLElement, key: K, backingKey: string): void;
|
|
19
|
+
export declare function optionCallbackDispatcher(el: HTMLElement, eventName: string): (...args: unknown[]) => void;
|
|
@@ -9,3 +9,5 @@ export type { PhotoItem, PhotoIndexChangeHandler, PhotoFaceChangeHandler } from
|
|
|
9
9
|
export { resolveCanvasBoxSize } from './canvas-box';
|
|
10
10
|
export type { CanvasBoxSizeInput, CanvasBoxSize } from './canvas-box';
|
|
11
11
|
export { applyCanvasHostBox, applyBlockHostBox, setHidden, optionsFingerprint, optionsVisualChanged, } from './host-layout';
|
|
12
|
+
export type { BooleanAttrMode } from './element-options';
|
|
13
|
+
export { camelToKebabAttr, optionCallbackDispatcher, readBooleanAttr, readJsonAttr, readNumberAttr, readPropertyOverride, readStringAttr, } from './element-options';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cos-design/true-focus",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "TrueFocus component from cos-design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/react/index.cjs",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@cos-design/shared": "4.
|
|
87
|
+
"@cos-design/shared": "4.1.0"
|
|
88
88
|
}
|
|
89
|
-
}
|
|
89
|
+
}
|