@esportsplus/ui 0.43.0 → 0.44.1

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.
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ content: Node;
3
+ deactivate: () => void;
4
+ error: {
5
+ (messages: import("@esportsplus/template").Renderable<any>, seconds?: number): void;
6
+ response(response: import("@esportsplus/action").Response<any>): void;
7
+ };
8
+ info: (messages: import("@esportsplus/template").Renderable<any>, seconds?: number) => void;
9
+ success: (messages: import("@esportsplus/template").Renderable<any>, seconds?: number) => void;
10
+ };
11
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import alert from '../../components/alert/index.js';
2
+ export default alert({
3
+ class: '--margin-600 --padding-500',
4
+ style: `
5
+ background: var(--color-black-400);
6
+ border: 2px solid var(--color-black-300);
7
+ box-shadow: var(--box-shadow-300);
8
+ `,
9
+ 'alert-close': {
10
+ class: '--background-black --border-radius-300 --color-white',
11
+ style: '--color-default: var(--color-grey-500);margin: calc(var(--size-100) * -1) 0;'
12
+ },
13
+ 'alert-messages': {
14
+ class: '--padding-horizontal --padding-500',
15
+ style: 'justify-content: center;'
16
+ },
17
+ 'alert-message': {
18
+ style: 'color: var(--color-white-400);'
19
+ },
20
+ });
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ (): ReturnType<(this: {
3
+ attributes?: import("@esportsplus/template").Attributes;
4
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
5
+ <T extends import("@esportsplus/template").Attributes>(attributes: T): ReturnType<(this: {
6
+ attributes?: import("@esportsplus/template").Attributes;
7
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
8
+ <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
9
+ attributes?: import("@esportsplus/template").Attributes;
10
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
+ (attributes: import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
12
+ attributes?: import("@esportsplus/template").Attributes;
13
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
14
+ };
15
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import back from '../../components/back/index.js';
2
+ export default back.bind({
3
+ attributes: {
4
+ class: '--color-white --margin-vertical --margin-spacer-200',
5
+ style: '--color-default: var(--color-grey-500);'
6
+ }
7
+ });
@@ -0,0 +1,16 @@
1
+ import './scss/index.scss';
2
+ declare const _default: {
3
+ form: {
4
+ class: string;
5
+ };
6
+ primary: {
7
+ class: string;
8
+ };
9
+ secondary: {
10
+ class: string;
11
+ };
12
+ tertiary: {
13
+ class: string;
14
+ };
15
+ };
16
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import './scss/index.scss';
2
+ const primary = {
3
+ class: `button button--primary --color-white --text-bold --text-uppercase`,
4
+ };
5
+ const secondary = {
6
+ class: `button button--secondary --background-black --color-white --text-bold`
7
+ };
8
+ const tertiary = {
9
+ class: `button button--tertiary --background-black --color-white --text-bold`
10
+ };
11
+ const form = {
12
+ class: `${primary.class} --padding-500 --width-full`
13
+ };
14
+ export default { form, primary, secondary, tertiary };
@@ -0,0 +1,2 @@
1
+ @layer theme/dark {.button--primary,.button--secondary,.button--tertiary{--border-color-active:var(--color-primary-300);--color-default:var(--color-grey-500)}.button--form,.button--primary{--background-active:var(--color-primary-300);--background-default:var(--color-primary-300);--background-hover:var(--color-primary-300);--background-pressed:var(--color-primary-500)}.button--secondary{--background-default:var(--color-black-300);--background-hover:var(--color-primary-300);--background-pressed:var(--color-primary-500);--border-color:var(--background-color)}.button--tertiary{--border-color-active:var(--color-primary-300);--border-color-default:var(--color-black-300);--border-color-hover:var(--color-black-400);--border-color-pressed:var(--color-black-500)}}
2
+ /*$vite$:1*/
@@ -0,0 +1,6 @@
1
+ export { default as alert } from './alert.js';
2
+ export { default as back } from './back.js';
3
+ export { default as button } from './button/index.js';
4
+ export { default as input } from './input.js';
5
+ export { default as select } from './select.js';
6
+ export { default as textarea } from './textarea.js';
@@ -0,0 +1,6 @@
1
+ export { default as alert } from './alert.js';
2
+ export { default as back } from './back.js';
3
+ export { default as button } from './button/index.js';
4
+ export { default as input } from './input.js';
5
+ export { default as select } from './select.js';
6
+ export { default as textarea } from './textarea.js';
@@ -0,0 +1,120 @@
1
+ declare const _default: (attributes: {
2
+ [key: `aria-${string}`]: string | number | boolean | undefined;
3
+ [key: `data-${string}`]: string | undefined;
4
+ class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
5
+ onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
6
+ ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
7
+ onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
8
+ ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
9
+ style?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
10
+ } & {
11
+ onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
12
+ onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
13
+ onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
14
+ onanimationiteration?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
15
+ onanimationstart?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
16
+ onauxclick?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
17
+ onbeforeinput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
18
+ onbeforetoggle?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
19
+ onblur?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
20
+ oncancel?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
21
+ oncanplay?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
22
+ oncanplaythrough?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
23
+ onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
24
+ onclick?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
25
+ onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
26
+ oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
27
+ oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
28
+ oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
29
+ oncontextlost?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
30
+ oncontextmenu?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
31
+ oncontextrestored?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
32
+ oncopy?: ((this: import("@esportsplus/template").Element, event: ClipboardEvent) => void) | undefined;
33
+ oncuechange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
34
+ oncut?: ((this: import("@esportsplus/template").Element, event: ClipboardEvent) => void) | undefined;
35
+ ondblclick?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
36
+ ondrag?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
37
+ ondragend?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
38
+ ondragenter?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
39
+ ondragleave?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
40
+ ondragover?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
41
+ ondragstart?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
42
+ ondrop?: ((this: import("@esportsplus/template").Element, event: DragEvent) => void) | undefined;
43
+ ondurationchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
44
+ onemptied?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
45
+ onended?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
46
+ onerror?: ((this: import("@esportsplus/template").Element, event: ErrorEvent) => void) | undefined;
47
+ onfocus?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
48
+ onfocusin?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
49
+ onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
50
+ onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
51
+ ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
52
+ oninput?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
53
+ oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
54
+ onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
55
+ onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
56
+ onkeyup?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
57
+ onload?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
58
+ onloadeddata?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
59
+ onloadedmetadata?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
60
+ onloadstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
61
+ onlostpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
62
+ onmousedown?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
63
+ onmouseenter?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
64
+ onmouseleave?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
65
+ onmousemove?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
66
+ onmouseout?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
67
+ onmouseover?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
68
+ onmouseup?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
69
+ onpaste?: ((this: import("@esportsplus/template").Element, event: ClipboardEvent) => void) | undefined;
70
+ onpause?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
71
+ onplay?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
72
+ onplaying?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
73
+ onpointercancel?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
74
+ onpointerdown?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
75
+ onpointerenter?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
76
+ onpointerleave?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
77
+ onpointermove?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
78
+ onpointerout?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
79
+ onpointerover?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
80
+ onpointerup?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
81
+ onprogress?: ((this: import("@esportsplus/template").Element, event: ProgressEvent<EventTarget>) => void) | undefined;
82
+ onratechange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
83
+ onreset?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
84
+ onresize?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
85
+ onscroll?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
86
+ onscrollend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
87
+ onsecuritypolicyviolation?: ((this: import("@esportsplus/template").Element, event: SecurityPolicyViolationEvent) => void) | undefined;
88
+ onseeked?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
89
+ onseeking?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
90
+ onselect?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
91
+ onselectionchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
92
+ onselectstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
93
+ onslotchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
94
+ onstalled?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
95
+ onsubmit?: ((this: import("@esportsplus/template").Element, event: SubmitEvent) => void) | undefined;
96
+ onsuspend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
97
+ ontimeupdate?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
98
+ ontoggle?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
99
+ ontouchcancel?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
100
+ ontouchend?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
101
+ ontouchmove?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
102
+ ontouchstart?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
103
+ ontransitioncancel?: ((this: import("@esportsplus/template").Element, event: TransitionEvent) => void) | undefined;
104
+ ontransitionend?: ((this: import("@esportsplus/template").Element, event: TransitionEvent) => void) | undefined;
105
+ ontransitionrun?: ((this: import("@esportsplus/template").Element, event: TransitionEvent) => void) | undefined;
106
+ ontransitionstart?: ((this: import("@esportsplus/template").Element, event: TransitionEvent) => void) | undefined;
107
+ onvolumechange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
108
+ onwaiting?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
109
+ onwebkitanimationend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
110
+ onwebkitanimationiteration?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
111
+ onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
112
+ onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
113
+ onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
114
+ } & Record<PropertyKey, unknown> & {
115
+ state?: {
116
+ active: boolean;
117
+ error: string;
118
+ };
119
+ }) => Node;
120
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import input from '../../components/input/index.js';
2
+ export default input.bind({
3
+ attributes: {
4
+ class: 'input--primary --border --border-black --color-white',
5
+ style: `
6
+ --border-color-active: var(--color-purple-300);
7
+ --border-color-default: var(--color-black-300);
8
+ `
9
+ }
10
+ });