@esportsplus/ui 0.2.5 → 0.2.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.
- package/build/components/accordion/index.d.ts +15 -0
- package/build/components/accordion/index.js +27 -0
- package/build/components/aurora/index.d.ts +8 -0
- package/build/components/aurora/index.js +12 -0
- package/build/components/clipboard/index.d.ts +4 -0
- package/build/components/clipboard/index.js +2 -0
- package/build/components/clipboard/write.d.ts +2 -0
- package/build/components/clipboard/write.js +9 -0
- package/build/components/ellipsis/index.d.ts +2 -0
- package/build/components/ellipsis/index.js +8 -0
- package/build/components/field/description.d.ts +1 -1
- package/build/components/field/error.d.ts +1 -1
- package/build/components/field/select.js +4 -2
- package/build/components/field/title.d.ts +1 -1
- package/build/components/form/action.js +1 -2
- package/build/components/form/types.d.ts +0 -1
- package/build/components/json/index.d.ts +4 -0
- package/build/components/json/index.js +2 -0
- package/build/components/scrollbar/index.d.ts +3 -3
- package/build/components/scrollbar/index.js +3 -5
- package/build/components/site/index.d.ts +2 -3
- package/build/components/site/index.js +6 -5
- package/build/components/tooltip/index.d.ts +0 -7
- package/build/components/tooltip/index.js +2 -13
- package/build/index.d.ts +5 -2
- package/build/index.js +5 -2
- package/components/styles.css +14 -14
- package/components/variables.css +18 -19
- package/package.json +4 -4
- package/src/components/accordion/index.ts +34 -0
- package/src/components/accordion/scss/variables.scss +6 -1
- package/src/components/anchor/scss/variables.scss +0 -1
- package/src/components/aurora/index.ts +22 -0
- package/src/components/aurora/scss/index.scss +60 -0
- package/src/components/banner/scss/index.scss +1 -1
- package/src/components/banner/scss/variables.scss +4 -0
- package/src/components/button/scss/index.scss +25 -3
- package/src/components/button/scss/variables.scss +3 -6
- package/src/components/card/scss/variables.scss +0 -1
- package/src/components/clipboard/index.ts +4 -0
- package/src/components/clipboard/write.ts +9 -0
- package/src/components/container/scss/index.scss +2 -4
- package/src/components/container/scss/variables.scss +2 -2
- package/src/components/ellipsis/index.ts +10 -0
- package/src/components/ellipsis/scss/index.scss +19 -63
- package/src/components/ellipsis/scss/variables.scss +3 -1
- package/src/components/field/scss/index.scss +2 -2
- package/src/components/field/scss/variables.scss +0 -1
- package/src/components/field/select.ts +4 -2
- package/src/components/form/action.ts +3 -2
- package/src/components/form/types.ts +1 -1
- package/src/components/grid/scss/index.scss +6 -0
- package/src/components/grid/scss/variables.scss +6 -0
- package/src/components/group/scss/index.scss +4 -4
- package/src/components/icon/scss/index.scss +0 -1
- package/src/components/json/index.ts +4 -0
- package/src/components/link/scss/variables.scss +0 -1
- package/src/components/loading/scss/index.scss +9 -16
- package/src/components/loading/scss/variables.scss +3 -28
- package/src/components/modal/scss/index.scss +7 -4
- package/src/components/modal/scss/variables.scss +3 -7
- package/src/components/page/scss/variables.scss +0 -12
- package/src/components/root/onclick.ts +1 -1
- package/src/components/root/scss/variables.scss +2 -5
- package/src/components/scrollbar/index.ts +3 -5
- package/src/components/scrollbar/scss/index.scss +2 -1
- package/src/components/scrollbar/scss/variables.scss +1 -1
- package/src/components/sidebar/scss/index.scss +5 -6
- package/src/components/sidebar/scss/variables.scss +4 -5
- package/src/components/site/index.ts +9 -8
- package/src/components/text/scss/variables.scss +0 -1
- package/src/components/tooltip/index.ts +4 -17
- package/src/components/tooltip/scss/variables.scss +0 -1
- package/src/css-utilities/absolute/scss/index.scss +11 -34
- package/src/css-utilities/hidden/scss/index.scss +1 -1
- package/src/css-utilities/squircle/scss/index.scss +5 -0
- package/src/css-utilities/text/scss/index.scss +2 -6
- package/src/css-utilities/text/scss/variables.scss +7 -7
- package/src/index.ts +5 -2
- package/src/lib/scss/breakpoint.scss +3 -3
- package/src/lib/scss/position.scss +25 -49
- package/src/tokens/scss/box-shadow.scss +17 -12
- package/src/tokens/scss/transition-duration.scss +1 -5
- package/tsconfig.json +1 -9
- package/utilities/styles.css +4 -4
- package/utilities/variables.css +1 -3
- package/build/components/alert/index.d.ts +0 -10
- package/build/components/alert/index.js +0 -122
- package/build/components/export/clipboard.d.ts +0 -2
- package/build/components/export/clipboard.js +0 -8
- package/build/components/export/index.d.ts +0 -5
- package/build/components/export/index.js +0 -3
- package/build/components/tooltip/menu.d.ts +0 -25
- package/build/components/tooltip/menu.js +0 -44
- package/src/components/alert/index.ts +0 -157
- package/src/components/alert/scss/index.scss +0 -55
- package/src/components/alert/scss/variables.scss +0 -8
- package/src/components/export/clipboard.ts +0 -12
- package/src/components/export/index.ts +0 -5
- package/src/components/processing/scss/index.scss +0 -47
- package/src/components/processing/scss/variables.scss +0 -11
- package/src/components/tooltip/menu.ts +0 -71
- package/src/css-utilities/slide/scss/index.scss +0 -21
- package/src/css-utilities/slide/scss/variables.scss +0 -10
- package/src/css-utilities/transition/scss/variables.scss +0 -14
- /package/build/components/{export/json.d.ts → json/download.d.ts} +0 -0
- /package/build/components/{export/json.js → json/download.js} +0 -0
- /package/src/components/{export/json.ts → json/download.ts} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { effect } from '@esportsplus/reactivity';
|
|
2
|
-
import { html } from '@esportsplus/template';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type Data = {
|
|
6
|
-
class?: string;
|
|
7
|
-
direction?: string;
|
|
8
|
-
items?: {
|
|
9
|
-
border?: {
|
|
10
|
-
class?: string;
|
|
11
|
-
};
|
|
12
|
-
class?: string;
|
|
13
|
-
onclick?: (...args: any[]) => void;
|
|
14
|
-
style?: string;
|
|
15
|
-
svg?: string;
|
|
16
|
-
target?: string;
|
|
17
|
-
text: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
}[];
|
|
20
|
-
state?: { active?: boolean };
|
|
21
|
-
style?: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function template(data: Data) {
|
|
26
|
-
return html`
|
|
27
|
-
<div class="tooltip-content tooltip-content--${data?.direction || 's'} --flex-column --width-full ${data?.class || ''}" style='${data?.style || ''}'>
|
|
28
|
-
${(data?.items || []).map(item => html`
|
|
29
|
-
${item?.border ? html`
|
|
30
|
-
<div
|
|
31
|
-
class="border ${item?.border?.class || ''}"
|
|
32
|
-
style='
|
|
33
|
-
margin-left: calc(var(--margin-horizontal) * -1);
|
|
34
|
-
width: calc(100% + var(--margin-horizontal) * 2);
|
|
35
|
-
'
|
|
36
|
-
></div>
|
|
37
|
-
` : ''}
|
|
38
|
-
|
|
39
|
-
<${item?.url ? 'a' : 'div'}
|
|
40
|
-
class='link --flex-vertical ${item?.class}' ${item?.onclick ? html`onclick='${item.onclick}'` : ''}
|
|
41
|
-
style='${item?.style || ''}'
|
|
42
|
-
${item?.url ? `href='${item.url}' target='${item.target || '_blank'}'` : ''}
|
|
43
|
-
>
|
|
44
|
-
${item?.svg ? html`
|
|
45
|
-
<div class="icon --margin-right --margin-300" style='margin-left: var(--size-100)'>
|
|
46
|
-
${item.svg}
|
|
47
|
-
</div>
|
|
48
|
-
` : ''}
|
|
49
|
-
|
|
50
|
-
<div class="text --color-text --flex-fill">
|
|
51
|
-
${item.text}
|
|
52
|
-
</div>
|
|
53
|
-
</${item?.url ? 'a' : 'div'}>
|
|
54
|
-
`)}
|
|
55
|
-
</div>
|
|
56
|
-
`;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// TODO: There's nothing binding activate to tooltip menu ( this is never called outside initial effect run )
|
|
61
|
-
export default (data: Data, state: { active?: boolean, render?: boolean }) => {
|
|
62
|
-
effect(() => {
|
|
63
|
-
if (!state.active || state.render) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
state.render = true;
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
return () => state.render ? template(data) : '';
|
|
71
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.--slide {
|
|
2
|
-
&-in,
|
|
3
|
-
&-in-reverse {
|
|
4
|
-
animation-duration: var(--transition-duration);
|
|
5
|
-
animation-name: --slide-in;
|
|
6
|
-
animation-timing-function: ease-in-out;
|
|
7
|
-
transform-origin: top center;
|
|
8
|
-
|
|
9
|
-
@keyframes --slide-in {
|
|
10
|
-
from {
|
|
11
|
-
opacity: 0;
|
|
12
|
-
transform: translateY(var(--translateY));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
to {
|
|
16
|
-
opacity: 1;
|
|
17
|
-
transform: translateY(0);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--transition {
|
|
5
|
-
&-duration {
|
|
6
|
-
--transition-duration: var(--transition-duration-400);
|
|
7
|
-
|
|
8
|
-
@each $key in lib.map-keys(tokens.$transition-duration) {
|
|
9
|
-
&-#{$key} {
|
|
10
|
-
--transition-duration: var(--transition-duration-#{$key});
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|