@esportsplus/ui 0.1.8 → 0.2.2
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/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +23 -0
- package/.github/workflows/bump.yml +7 -0
- package/.github/workflows/publish.yml +14 -0
- package/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +34 -36
- package/build/components/export/clipboard.js +1 -3
- package/build/components/export/index.js +3 -8
- package/build/components/export/json.js +1 -3
- package/build/components/field/checkbox.d.ts +1 -1
- package/build/components/field/checkbox.js +32 -37
- package/build/components/field/description.d.ts +1 -1
- package/build/components/field/description.js +4 -6
- package/build/components/field/error.d.ts +1 -1
- package/build/components/field/error.js +4 -6
- package/build/components/field/file.d.ts +1 -1
- package/build/components/field/file.js +36 -41
- package/build/components/field/index.d.ts +8 -8
- package/build/components/field/index.js +8 -13
- package/build/components/field/optional.d.ts +2 -2
- package/build/components/field/optional.js +8 -13
- package/build/components/field/select.d.ts +1 -1
- package/build/components/field/select.js +65 -70
- package/build/components/field/switch.d.ts +1 -1
- package/build/components/field/switch.js +3 -8
- package/build/components/field/text.d.ts +1 -1
- package/build/components/field/text.js +37 -42
- package/build/components/field/textarea.d.ts +1 -1
- package/build/components/field/textarea.js +3 -8
- package/build/components/field/title.d.ts +1 -1
- package/build/components/field/title.js +14 -19
- package/build/components/form/action.js +7 -13
- package/build/components/form/index.d.ts +1 -1
- package/build/components/form/index.js +4 -9
- package/build/components/form/input.js +1 -3
- package/build/components/form/layout.d.ts +1 -1
- package/build/components/form/layout.js +11 -13
- package/build/components/form/types.d.ts +1 -1
- package/build/components/form/types.js +1 -2
- package/build/components/number/index.js +2 -6
- package/build/components/page/index.js +2 -7
- package/build/components/root/index.js +3 -9
- package/build/components/root/onclick.js +1 -3
- package/build/components/scrollbar/index.d.ts +3 -3
- package/build/components/scrollbar/index.js +13 -15
- package/build/components/site/index.d.ts +1 -1
- package/build/components/site/index.js +10 -15
- package/build/components/tooltip/index.d.ts +5 -5
- package/build/components/tooltip/index.js +8 -13
- package/build/components/tooltip/menu.d.ts +1 -1
- package/build/components/tooltip/menu.js +34 -36
- package/build/index.js +11 -27
- package/lib.scss +1 -1
- package/package.json +25 -25
- package/src/components/accordion/scss/index.scss +16 -16
- package/src/components/accordion/scss/variables.scss +4 -4
- package/src/components/alert/index.ts +156 -156
- package/src/components/alert/scss/index.scss +54 -54
- package/src/components/alert/scss/variables.scss +8 -8
- package/src/components/anchor/scss/index.scss +41 -41
- package/src/components/anchor/scss/variables.scss +5 -5
- package/src/components/banner/scss/index.scss +40 -40
- package/src/components/banner/scss/variables.scss +5 -5
- package/src/components/border/scss/index.scss +10 -10
- package/src/components/border/scss/variables.scss +6 -6
- package/src/components/bubble/scss/index.scss +30 -30
- package/src/components/bubble/scss/variables.scss +19 -19
- package/src/components/button/scss/index.scss +92 -92
- package/src/components/button/scss/variables.scss +69 -69
- package/src/components/card/scss/index.scss +35 -35
- package/src/components/card/scss/variables.scss +42 -42
- package/src/components/container/scss/index.scss +10 -10
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/ellipsis/scss/index.scss +71 -71
- package/src/components/ellipsis/scss/variables.scss +2 -2
- package/src/components/export/clipboard.ts +11 -11
- package/src/components/export/index.ts +4 -4
- package/src/components/export/json.ts +14 -14
- package/src/components/field/checkbox.ts +60 -60
- package/src/components/field/description.ts +11 -11
- package/src/components/field/error.ts +13 -13
- package/src/components/field/file.ts +64 -64
- package/src/components/field/index.ts +9 -9
- package/src/components/field/optional.ts +26 -26
- package/src/components/field/scss/_check.scss +225 -225
- package/src/components/field/scss/_normalize.scss +36 -36
- package/src/components/field/scss/_text.scss +106 -106
- package/src/components/field/scss/index.scss +158 -158
- package/src/components/field/scss/variables.scss +138 -138
- package/src/components/field/select.ts +150 -150
- package/src/components/field/switch.ts +8 -8
- package/src/components/field/text.ts +68 -68
- package/src/components/field/textarea.ts +7 -7
- package/src/components/field/title.ts +22 -22
- package/src/components/form/action.ts +67 -67
- package/src/components/form/index.ts +5 -5
- package/src/components/form/input.ts +14 -14
- package/src/components/form/layout.ts +25 -25
- package/src/components/form/types.ts +15 -15
- package/src/components/group/scss/index.scss +36 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/icon/scss/index.scss +17 -17
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/link/scss/index.scss +28 -28
- package/src/components/link/scss/variables.scss +47 -47
- package/src/components/loading/scss/index.scss +24 -24
- package/src/components/loading/scss/variables.scss +31 -31
- package/src/components/modal/scss/index.scss +31 -31
- package/src/components/modal/scss/variables.scss +10 -10
- package/src/components/number/index.ts +23 -23
- package/src/components/page/index.ts +14 -14
- package/src/components/page/scss/index.scss +27 -27
- package/src/components/page/scss/variables.scss +27 -27
- package/src/components/processing/scss/index.scss +46 -46
- package/src/components/processing/scss/variables.scss +11 -11
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +93 -93
- package/src/components/root/scss/variables.scss +55 -55
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +43 -43
- package/src/components/scrollbar/scss/index.scss +59 -59
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/scss/index.scss +50 -50
- package/src/components/sidebar/scss/variables.scss +21 -21
- package/src/components/site/index.ts +26 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/scss/index.scss +12 -12
- package/src/components/text/scss/variables.scss +9 -9
- package/src/components/thumbnail/scss/index.scss +7 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +93 -93
- package/src/components/tooltip/menu.ts +70 -70
- package/src/components/tooltip/scss/_center.scss +13 -13
- package/src/components/tooltip/scss/_east.scss +34 -34
- package/src/components/tooltip/scss/_north.scss +34 -34
- package/src/components/tooltip/scss/_south.scss +35 -35
- package/src/components/tooltip/scss/_west.scss +34 -34
- package/src/components/tooltip/scss/index.scss +93 -93
- package/src/components/tooltip/scss/variables.scss +25 -25
- package/src/css-utilities/[margin,padding]/scss/index.scss +41 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +59 -59
- package/src/css-utilities/background/scss/variables.scss +27 -27
- package/src/css-utilities/border/scss/index.scss +21 -21
- package/src/css-utilities/border/scss/variables.scss +66 -66
- package/src/css-utilities/color/scss/variables.scss +31 -31
- package/src/css-utilities/disabled/scss/index.scss +4 -4
- package/src/css-utilities/flex/scss/index.scss +65 -65
- package/src/css-utilities/glass/scss/index.scss +2 -2
- package/src/css-utilities/glass/scss/variables.scss +2 -2
- package/src/css-utilities/hidden/scss/index.scss +28 -28
- package/src/css-utilities/index.scss +14 -14
- package/src/css-utilities/inline/scss/index.scss +7 -7
- package/src/css-utilities/line-height/scss/variables.scss +10 -10
- package/src/css-utilities/not-allowed/scss/index.scss +7 -7
- package/src/css-utilities/overflow/scss/index.scss +4 -4
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/slide/scss/index.scss +21 -21
- package/src/css-utilities/slide/scss/variables.scss +10 -10
- package/src/css-utilities/text/scss/index.scss +93 -93
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/transition/scss/variables.scss +14 -14
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +3 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/index.ts +11 -11
- package/src/lib/index.scss +7 -7
- package/src/lib/scss/breakpoint.scss +41 -41
- package/src/lib/scss/color.scss +1 -1
- package/src/lib/scss/css-variables.scss +13 -13
- package/src/lib/scss/list.scss +76 -76
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +77 -77
- package/src/lib/scss/string.scss +33 -33
- package/src/tokens/index.scss +11 -11
- package/src/tokens/scss/border-radius.scss +12 -12
- package/src/tokens/scss/border-width.scss +6 -6
- package/src/tokens/scss/box-shadow.scss +13 -13
- package/src/tokens/scss/color.scss +64 -64
- package/src/tokens/scss/font-size.scss +12 -12
- package/src/tokens/scss/font-weight.scss +6 -6
- package/src/tokens/scss/line-height.scss +6 -6
- package/src/tokens/scss/size.scss +13 -13
- package/src/tokens/scss/spacer.scss +8 -8
- package/src/tokens/scss/state.scss +86 -86
- package/src/tokens/scss/transition-duration.scss +5 -5
- package/storage/fonts/montserrat/index.css +79 -79
- package/tokens.scss +1 -1
- package/tsconfig.json +10 -10
- package/utilities/styles.css +1 -1
- package/utilities/variables.css +1 -1
- package/webpack.config.ts +25 -25
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const template_1 = require("@esportsplus/template");
|
|
7
|
-
const root_1 = require("../../components/root");
|
|
8
|
-
const scrollbar_1 = __importDefault(require("../../components/scrollbar"));
|
|
9
|
-
exports.default = (data) => {
|
|
10
|
-
let { attributes: a, html: h } = (0, scrollbar_1.default)({
|
|
1
|
+
import { html } from '@esportsplus/template';
|
|
2
|
+
import { onclick } from '../../components/root';
|
|
3
|
+
import scrollbar from '../../components/scrollbar';
|
|
4
|
+
export default (data) => {
|
|
5
|
+
let { attributes: a, html: h } = scrollbar({
|
|
11
6
|
fixed: true,
|
|
12
7
|
style: data?.scrollbar?.style || '--background-default: var(--color-black-400);'
|
|
13
8
|
});
|
|
14
|
-
return
|
|
15
|
-
<section class='site ${data?.class || ''}' onclick='${
|
|
16
|
-
${data?.content || ''}
|
|
17
|
-
${h}
|
|
18
|
-
</section>
|
|
9
|
+
return html `
|
|
10
|
+
<section class='site ${data?.class || ''}' onclick='${onclick}' ${a}>
|
|
11
|
+
${data?.content || ''}
|
|
12
|
+
${h}
|
|
13
|
+
</section>
|
|
19
14
|
`;
|
|
20
15
|
};
|
|
@@ -27,14 +27,14 @@ declare const _default: {
|
|
|
27
27
|
class: () => string;
|
|
28
28
|
onclick: (this: HTMLElement, e: Event) => void;
|
|
29
29
|
};
|
|
30
|
-
content: (() => "" | import("@esportsplus/template
|
|
30
|
+
content: (() => "" | import("@esportsplus/template").Renderable) | undefined;
|
|
31
31
|
state: {
|
|
32
32
|
active: boolean;
|
|
33
33
|
render: boolean | undefined;
|
|
34
34
|
dispose: () => void;
|
|
35
35
|
nodes: {
|
|
36
|
-
active: import("@esportsplus/reactivity
|
|
37
|
-
render: import("@esportsplus/reactivity
|
|
36
|
+
active: import("@esportsplus/reactivity").Signal<false> | import("@esportsplus/reactivity").Signal<true>;
|
|
37
|
+
render: import("@esportsplus/reactivity").Signal<false> | import("@esportsplus/reactivity").Signal<true> | import("@esportsplus/reactivity").Signal<undefined>;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -49,8 +49,8 @@ declare const _default: {
|
|
|
49
49
|
render: boolean | undefined;
|
|
50
50
|
dispose: () => void;
|
|
51
51
|
nodes: {
|
|
52
|
-
active: import("@esportsplus/reactivity
|
|
53
|
-
render: import("@esportsplus/reactivity
|
|
52
|
+
active: import("@esportsplus/reactivity").Signal<false> | import("@esportsplus/reactivity").Signal<true>;
|
|
53
|
+
render: import("@esportsplus/reactivity").Signal<false> | import("@esportsplus/reactivity").Signal<true> | import("@esportsplus/reactivity").Signal<undefined>;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const reactivity_1 = require("@esportsplus/reactivity");
|
|
7
|
-
const menu_1 = __importDefault(require("./menu"));
|
|
8
|
-
const root_1 = __importDefault(require("../../components/root"));
|
|
1
|
+
import { reactive } from '@esportsplus/reactivity';
|
|
2
|
+
import menu from './menu';
|
|
3
|
+
import root from '../../components/root';
|
|
9
4
|
let queue = [], running = false, scheduled = false;
|
|
10
5
|
async function frame() {
|
|
11
6
|
if (running) {
|
|
@@ -19,12 +14,12 @@ async function frame() {
|
|
|
19
14
|
running = false;
|
|
20
15
|
}
|
|
21
16
|
const onclick = (data = {}) => {
|
|
22
|
-
let content, state =
|
|
17
|
+
let content, state = reactive({
|
|
23
18
|
active: data.active || false,
|
|
24
19
|
render: undefined
|
|
25
20
|
});
|
|
26
21
|
if (data.menu) {
|
|
27
|
-
content = (
|
|
22
|
+
content = menu(data.menu, state);
|
|
28
23
|
}
|
|
29
24
|
return {
|
|
30
25
|
attributes: {
|
|
@@ -42,7 +37,7 @@ const onclick = (data = {}) => {
|
|
|
42
37
|
queue.push(() => state.active = false);
|
|
43
38
|
}
|
|
44
39
|
if (!scheduled) {
|
|
45
|
-
|
|
40
|
+
root.onclick.add(() => {
|
|
46
41
|
frame();
|
|
47
42
|
scheduled = false;
|
|
48
43
|
});
|
|
@@ -55,7 +50,7 @@ const onclick = (data = {}) => {
|
|
|
55
50
|
};
|
|
56
51
|
};
|
|
57
52
|
const onhover = (active = false) => {
|
|
58
|
-
let state =
|
|
53
|
+
let state = reactive({
|
|
59
54
|
active,
|
|
60
55
|
render: undefined
|
|
61
56
|
});
|
|
@@ -72,4 +67,4 @@ const onhover = (active = false) => {
|
|
|
72
67
|
state
|
|
73
68
|
};
|
|
74
69
|
};
|
|
75
|
-
|
|
70
|
+
export default { onclick, onhover };
|
|
@@ -21,5 +21,5 @@ type Data = {
|
|
|
21
21
|
declare const _default: (data: Data, state: {
|
|
22
22
|
active?: boolean;
|
|
23
23
|
render?: boolean;
|
|
24
|
-
}) => () => "" | import("@esportsplus/template
|
|
24
|
+
}) => () => "" | import("@esportsplus/template").Renderable;
|
|
25
25
|
export default _default;
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const reactivity_1 = require("@esportsplus/reactivity");
|
|
4
|
-
const template_1 = require("@esportsplus/template");
|
|
1
|
+
import { effect } from '@esportsplus/reactivity';
|
|
2
|
+
import { html } from '@esportsplus/template';
|
|
5
3
|
function template(data) {
|
|
6
|
-
return
|
|
7
|
-
<div class="tooltip-content tooltip-content--${data?.direction || 's'} --flex-column --width-full ${data?.class || ''}" style='${data?.style || ''}'>
|
|
8
|
-
${(data?.items || []).map(item =>
|
|
9
|
-
${item?.border ?
|
|
10
|
-
<div
|
|
11
|
-
class="border ${item?.border?.class || ''}"
|
|
12
|
-
style='
|
|
13
|
-
margin-left: calc(var(--margin-horizontal) * -1);
|
|
14
|
-
width: calc(100% + var(--margin-horizontal) * 2);
|
|
15
|
-
'
|
|
16
|
-
></div>
|
|
17
|
-
` : ''}
|
|
18
|
-
|
|
19
|
-
<${item?.url ? 'a' : 'div'}
|
|
20
|
-
class='link --flex-vertical ${item?.class}' ${item?.onclick ?
|
|
21
|
-
style='${item?.style || ''}'
|
|
22
|
-
${item?.url ? `href='${item.url}' target='${item.target || '_blank'}'` : ''}
|
|
23
|
-
>
|
|
24
|
-
${item?.svg ?
|
|
25
|
-
<div class="icon --margin-right --margin-300" style='margin-left: var(--size-100)'>
|
|
26
|
-
${item.svg}
|
|
27
|
-
</div>
|
|
28
|
-
` : ''}
|
|
29
|
-
|
|
30
|
-
<div class="text --color-text --flex-fill">
|
|
31
|
-
${item.text}
|
|
32
|
-
</div>
|
|
33
|
-
</${item?.url ? 'a' : 'div'}>
|
|
34
|
-
`)}
|
|
35
|
-
</div>
|
|
4
|
+
return html `
|
|
5
|
+
<div class="tooltip-content tooltip-content--${data?.direction || 's'} --flex-column --width-full ${data?.class || ''}" style='${data?.style || ''}'>
|
|
6
|
+
${(data?.items || []).map(item => html `
|
|
7
|
+
${item?.border ? html `
|
|
8
|
+
<div
|
|
9
|
+
class="border ${item?.border?.class || ''}"
|
|
10
|
+
style='
|
|
11
|
+
margin-left: calc(var(--margin-horizontal) * -1);
|
|
12
|
+
width: calc(100% + var(--margin-horizontal) * 2);
|
|
13
|
+
'
|
|
14
|
+
></div>
|
|
15
|
+
` : ''}
|
|
16
|
+
|
|
17
|
+
<${item?.url ? 'a' : 'div'}
|
|
18
|
+
class='link --flex-vertical ${item?.class}' ${item?.onclick ? html `onclick='${item.onclick}'` : ''}
|
|
19
|
+
style='${item?.style || ''}'
|
|
20
|
+
${item?.url ? `href='${item.url}' target='${item.target || '_blank'}'` : ''}
|
|
21
|
+
>
|
|
22
|
+
${item?.svg ? html `
|
|
23
|
+
<div class="icon --margin-right --margin-300" style='margin-left: var(--size-100)'>
|
|
24
|
+
${item.svg}
|
|
25
|
+
</div>
|
|
26
|
+
` : ''}
|
|
27
|
+
|
|
28
|
+
<div class="text --color-text --flex-fill">
|
|
29
|
+
${item.text}
|
|
30
|
+
</div>
|
|
31
|
+
</${item?.url ? 'a' : 'div'}>
|
|
32
|
+
`)}
|
|
33
|
+
</div>
|
|
36
34
|
`;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
export default (data, state) => {
|
|
37
|
+
effect(() => {
|
|
40
38
|
if (!state.active || state.render) {
|
|
41
39
|
return;
|
|
42
40
|
}
|
package/build/index.js
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var field_1 = require("./components/field");
|
|
13
|
-
Object.defineProperty(exports, "field", { enumerable: true, get: function () { return __importDefault(field_1).default; } });
|
|
14
|
-
var form_1 = require("./components/form");
|
|
15
|
-
Object.defineProperty(exports, "form", { enumerable: true, get: function () { return __importDefault(form_1).default; } });
|
|
16
|
-
var number_1 = require("./components/number");
|
|
17
|
-
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return __importDefault(number_1).default; } });
|
|
18
|
-
var page_1 = require("./components/page");
|
|
19
|
-
Object.defineProperty(exports, "page", { enumerable: true, get: function () { return __importDefault(page_1).default; } });
|
|
20
|
-
var root_1 = require("./components/root");
|
|
21
|
-
Object.defineProperty(exports, "root", { enumerable: true, get: function () { return __importDefault(root_1).default; } });
|
|
22
|
-
var scrollbar_1 = require("./components/scrollbar");
|
|
23
|
-
Object.defineProperty(exports, "scrollbar", { enumerable: true, get: function () { return __importDefault(scrollbar_1).default; } });
|
|
24
|
-
var site_1 = require("./components/site");
|
|
25
|
-
Object.defineProperty(exports, "site", { enumerable: true, get: function () { return __importDefault(site_1).default; } });
|
|
26
|
-
var tooltip_1 = require("./components/tooltip");
|
|
27
|
-
Object.defineProperty(exports, "tooltip", { enumerable: true, get: function () { return __importDefault(tooltip_1).default; } });
|
|
1
|
+
import '@esportsplus/webpack/global.d.ts';
|
|
2
|
+
export { default as alert } from './components/alert';
|
|
3
|
+
export { default as export } from './components/export';
|
|
4
|
+
export { default as field } from './components/field';
|
|
5
|
+
export { default as form } from './components/form';
|
|
6
|
+
export { default as number } from './components/number';
|
|
7
|
+
export { default as page } from './components/page';
|
|
8
|
+
export { default as root } from './components/root';
|
|
9
|
+
export { default as scrollbar } from './components/scrollbar';
|
|
10
|
+
export { default as site } from './components/site';
|
|
11
|
+
export { default as tooltip } from './components/tooltip';
|
package/lib.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Dart sass doesn't support changing root directory for the package to 'src'
|
|
1
|
+
// Dart sass doesn't support changing root directory for the package to 'src'
|
|
2
2
|
@forward './src/lib';
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "ICJR",
|
|
3
|
-
"dependencies": {
|
|
4
|
-
"@esportsplus/action": "^0.0.
|
|
5
|
-
"@esportsplus/reactivity": "^0.1.
|
|
6
|
-
"@esportsplus/template": "^0.
|
|
7
|
-
},
|
|
8
|
-
"devDependencies": {
|
|
9
|
-
"@esportsplus/webpack": "^0.
|
|
10
|
-
"modern-normalize": "^2.0.0"
|
|
11
|
-
},
|
|
12
|
-
"main": "build/index.js",
|
|
13
|
-
"name": "@esportsplus/ui",
|
|
14
|
-
"private": false,
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "npm run build:ts && npm run build:assets",
|
|
17
|
-
"build:ts": "tsc && tsc-alias",
|
|
18
|
-
"build:assets": "webpack build --env=production=true",
|
|
19
|
-
"-": "-",
|
|
20
|
-
"prepublishOnly": "npm run build"
|
|
21
|
-
},
|
|
22
|
-
"sideEffects": false,
|
|
23
|
-
"types": "build/index.d.ts",
|
|
24
|
-
"version": "0.
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"author": "ICJR",
|
|
3
|
+
"dependencies": {
|
|
4
|
+
"@esportsplus/action": "^0.0.47",
|
|
5
|
+
"@esportsplus/reactivity": "^0.1.21",
|
|
6
|
+
"@esportsplus/template": "^0.2.3"
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@esportsplus/webpack": "^0.2.3",
|
|
10
|
+
"modern-normalize": "^2.0.0"
|
|
11
|
+
},
|
|
12
|
+
"main": "build/index.js",
|
|
13
|
+
"name": "@esportsplus/ui",
|
|
14
|
+
"private": false,
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "npm run build:ts && npm run build:assets",
|
|
17
|
+
"build:ts": "tsc && tsc-alias",
|
|
18
|
+
"build:assets": "webpack build --env=production=true",
|
|
19
|
+
"-": "-",
|
|
20
|
+
"prepublishOnly": "npm run build"
|
|
21
|
+
},
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"types": "build/index.d.ts",
|
|
24
|
+
"version": "0.2.2"
|
|
25
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
|
-
|
|
3
|
-
.accordion {
|
|
4
|
-
max-height: var(--max-height);
|
|
5
|
-
opacity: 0;
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
transition:
|
|
8
|
-
max-height var(--transition-duration) ease-in-out,
|
|
9
|
-
opacity var(--transition-duration) ease-in-out;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@include tokens.state(active) {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
pointer-events: auto;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
@use '/tokens';
|
|
2
|
+
|
|
3
|
+
.accordion {
|
|
4
|
+
max-height: var(--max-height);
|
|
5
|
+
opacity: 0;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
transition:
|
|
8
|
+
max-height var(--transition-duration) ease-in-out,
|
|
9
|
+
opacity var(--transition-duration) ease-in-out;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@include tokens.state(active) {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
pointer-events: auto;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.accordion {
|
|
2
|
-
--max-height: 0;
|
|
3
|
-
--transition-duration: var(--transition-duration-400);
|
|
4
|
-
}
|
|
1
|
+
.accordion {
|
|
2
|
+
--max-height: 0;
|
|
3
|
+
--transition-duration: var(--transition-duration-400);
|
|
4
|
+
}
|