@esportsplus/ui 0.42.14 → 0.44.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.
@@ -0,0 +1,19 @@
1
+ import select from '../../components/select/index.js';
2
+ export default select.bind({
3
+ attributes: {
4
+ class: '--background-black --border --border-black --color-white',
5
+ option: {
6
+ class: '--background-black --color-white --padding-horizontal-500 --width-full',
7
+ style: '--color-default: var(--color-grey-500);white-space: nowrap;'
8
+ },
9
+ style: '--border-color-default: var(--color-black-300);',
10
+ 'tooltip-content': {
11
+ class: '--border --border-radius-500',
12
+ direction: 'sw',
13
+ style: `
14
+ --background: var(--color-black-400);
15
+ --border-color: var(--color-black-300);
16
+ `
17
+ }
18
+ }
19
+ });
@@ -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 textarea from '../../components/textarea/index.js';
2
+ export default textarea.bind({
3
+ attributes: {
4
+ class: 'textarea--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
+ });
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "@types/node": "^24.10.1",
15
15
  "@types/shelljs": "^0.8.17",
16
16
  "autoprefixer": "^10.4.22",
17
- "glob": "^11.0.3",
17
+ "glob": "^12.0.0",
18
18
  "lightningcss": "^1.30.2",
19
19
  "npm-run-all": "^4.1.5",
20
- "sass": "^1.94.0",
20
+ "sass": "^1.94.1",
21
21
  "shelljs": "^0.10.0",
22
22
  "vite": "^7.2.2"
23
23
  },
@@ -30,6 +30,10 @@
30
30
  },
31
31
  "./layer.scss": "./layer.scss",
32
32
  "./lib.scss": "./lib.scss",
33
+ "./theme/dark/*": {
34
+ "types": "./build/theme/dark/index.d.ts",
35
+ "default": "./build/theme/dark/index.js"
36
+ },
33
37
  "./tokens.scss": "./tokens.scss",
34
38
  "./*.scss": "./build/components/*/scss/index.scss",
35
39
  "./*": {
@@ -45,7 +49,7 @@
45
49
  "private": false,
46
50
  "sideEffects": false,
47
51
  "type": "module",
48
- "version": "0.42.14",
52
+ "version": "0.44.0",
49
53
  "scripts": {
50
54
  "build": "run-s build:vite build:ts",
51
55
  "build:ts": "tsc && tsc-alias",
@@ -39,6 +39,18 @@
39
39
  &-top::before {
40
40
  margin-top: calc((1 - var(--line-height)) * 0.618em);
41
41
  }
42
+
43
+ &-first-child {
44
+ &:first-child {
45
+ @extend .--text-crop-top;
46
+ }
47
+ }
48
+
49
+ &-last-child {
50
+ &:last-child {
51
+ @extend .--text-crop-bottom;
52
+ }
53
+ }
42
54
  }
43
55
 
44
56
  &-italic {
@@ -0,0 +1,23 @@
1
+ import alert from '~/components/alert';
2
+
3
+
4
+ export default alert({
5
+ class: '--margin-600 --padding-500',
6
+ style: `
7
+ background: var(--color-black-400);
8
+ border: 2px solid var(--color-black-300);
9
+ box-shadow: var(--box-shadow-300);
10
+ `,
11
+
12
+ 'alert-close': {
13
+ class: '--background-black --border-radius-300 --color-white',
14
+ style: '--color-default: var(--color-grey-500);margin: calc(var(--size-100) * -1) 0;'
15
+ },
16
+ 'alert-messages': {
17
+ class: '--padding-horizontal --padding-500',
18
+ style: 'justify-content: center;'
19
+ },
20
+ 'alert-message': {
21
+ style: 'color: var(--color-white-400);'
22
+ },
23
+ });
@@ -0,0 +1,9 @@
1
+ import back from '~/components/back';
2
+
3
+
4
+ export default back.bind({
5
+ attributes: {
6
+ class: '--color-white --margin-vertical --margin-spacer-200',
7
+ style: '--color-default: var(--color-grey-500);'
8
+ }
9
+ });
@@ -0,0 +1,22 @@
1
+ import './scss/index.scss';
2
+
3
+
4
+ const primary = {
5
+ class: `button button--primary --color-white --text-bold --text-uppercase`,
6
+ };
7
+
8
+ const secondary = {
9
+ class: `button button--secondary --background-black --color-white --text-bold`
10
+ };
11
+
12
+ const tertiary = {
13
+ class: `button button--tertiary --background-black --color-white --text-bold`
14
+ };
15
+
16
+
17
+ const form = {
18
+ class: `${primary.class} --padding-500 --width-full`
19
+ };
20
+
21
+
22
+ export default { form, primary, secondary, tertiary };
@@ -0,0 +1,30 @@
1
+ .button {
2
+ &--primary,
3
+ &--secondary,
4
+ &--tertiary {
5
+ --border-color-active: var(--color-primary-300);
6
+ --color-default: var(--color-grey-500);
7
+ }
8
+
9
+ &--form,
10
+ &--primary {
11
+ --background-active: var(--color-primary-300);
12
+ --background-default: var(--color-primary-300);
13
+ --background-hover: var(--color-primary-300);
14
+ --background-pressed: var(--color-primary-500);
15
+ }
16
+
17
+ &--secondary {
18
+ --background-default: var(--color-black-300);
19
+ --background-hover: var(--color-primary-300);
20
+ --background-pressed: var(--color-primary-500);
21
+ --border-color: var(--background-color);
22
+ }
23
+
24
+ &--tertiary {
25
+ --border-color-active: var(--color-primary-300);
26
+ --border-color-default: var(--color-black-300);
27
+ --border-color-hover: var(--color-black-400);
28
+ --border-color-pressed: var(--color-black-500);
29
+ }
30
+ }
@@ -0,0 +1,6 @@
1
+ export { default as alert } from './alert';
2
+ export { default as back } from './back';
3
+ export { default as button } from './button';
4
+ export { default as input } from './input';
5
+ export { default as select } from './select';
6
+ export { default as textarea } from './textarea';
@@ -0,0 +1,12 @@
1
+ import input from '~/components/input';
2
+
3
+
4
+ export default input.bind({
5
+ attributes: {
6
+ class: 'input--primary --border --border-black --color-white',
7
+ style: `
8
+ --border-color-active: var(--color-purple-300);
9
+ --border-color-default: var(--color-black-300);
10
+ `
11
+ }
12
+ });
@@ -0,0 +1,22 @@
1
+ import select from '~/components/select';
2
+
3
+
4
+ export default select.bind({
5
+ attributes: {
6
+ class: '--background-black --border --border-black --color-white',
7
+ option: {
8
+ class: '--background-black --color-white --padding-horizontal-500 --width-full',
9
+ style: '--color-default: var(--color-grey-500);white-space: nowrap;'
10
+ },
11
+ style: '--border-color-default: var(--color-black-300);',
12
+
13
+ 'tooltip-content': {
14
+ class: '--border --border-radius-500',
15
+ direction: 'sw',
16
+ style: `
17
+ --background: var(--color-black-400);
18
+ --border-color: var(--color-black-300);
19
+ `
20
+ }
21
+ }
22
+ });
@@ -0,0 +1,12 @@
1
+ import textarea from '~/components/textarea';
2
+
3
+
4
+ export default textarea.bind({
5
+ attributes: {
6
+ class: 'textarea--primary --border --border-black --color-white',
7
+ style: `
8
+ --border-color-active: var(--color-purple-300);
9
+ --border-color-default: var(--color-black-300);
10
+ `
11
+ }
12
+ });