@esportsplus/ui 0.20.0 → 0.20.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.
@@ -5,6 +5,6 @@ import select from './select.js';
5
5
  import title from './title.js';
6
6
  import './scss/index.scss';
7
7
  const { checkbox: cb, radio, switch: sw } = checkbox;
8
- const { file, text, textarea } = input;
9
- export default { checkbox: cb, description, file, radio, select, switch: sw, textarea, text, title };
10
- export { cb as checkbox, description, file, radio, select, sw as switch, textarea, text, title };
8
+ const { file, range, text, textarea } = input;
9
+ export default { checkbox: cb, description, file, radio, range, select, switch: sw, textarea, text, title };
10
+ export { cb as checkbox, description, file, radio, range, select, sw as switch, textarea, text, title };
@@ -19,6 +19,20 @@ declare const file: {
19
19
  };
20
20
  }, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
21
21
  };
22
+ declare const range: {
23
+ (): ReturnType<(this: {
24
+ attributes?: Attributes | undefined;
25
+ content?: Renderable<any>;
26
+ }, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
27
+ (content: Renderable<any>): ReturnType<(this: {
28
+ attributes?: Attributes | undefined;
29
+ content?: Renderable<any>;
30
+ }, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
31
+ (attributes: Attributes, content: Renderable<any>): ReturnType<(this: {
32
+ attributes?: Attributes | undefined;
33
+ content?: Renderable<any>;
34
+ }, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
35
+ };
22
36
  declare const text: {
23
37
  (): ReturnType<(this: {
24
38
  state: {
@@ -62,47 +76,47 @@ declare const textarea: {
62
76
  declare const _default: {
63
77
  file: {
64
78
  (): ReturnType<(this: {
65
- mask: typeof file | typeof text | typeof textarea;
66
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
67
- (content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
68
- mask: typeof file | typeof text | typeof textarea;
69
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
70
- (attributes: Attributes, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
71
- mask: typeof file | typeof text | typeof textarea;
72
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
79
+ mask: typeof file | typeof range | typeof text | typeof textarea;
80
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
81
+ (content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
82
+ mask: typeof file | typeof range | typeof text | typeof textarea;
83
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
84
+ (attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
85
+ mask: typeof file | typeof range | typeof text | typeof textarea;
86
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
73
87
  };
74
88
  range: {
75
89
  (): ReturnType<(this: {
76
- mask: typeof file | typeof text | typeof textarea;
77
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
78
- (content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
79
- mask: typeof file | typeof text | typeof textarea;
80
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
81
- (attributes: Attributes, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
82
- mask: typeof file | typeof text | typeof textarea;
83
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
90
+ mask: typeof file | typeof range | typeof text | typeof textarea;
91
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
92
+ (content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
93
+ mask: typeof file | typeof range | typeof text | typeof textarea;
94
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
95
+ (attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
96
+ mask: typeof file | typeof range | typeof text | typeof textarea;
97
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
84
98
  };
85
99
  text: {
86
100
  (): ReturnType<(this: {
87
- mask: typeof file | typeof text | typeof textarea;
88
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
89
- (content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
90
- mask: typeof file | typeof text | typeof textarea;
91
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
92
- (attributes: Attributes, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
93
- mask: typeof file | typeof text | typeof textarea;
94
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
101
+ mask: typeof file | typeof range | typeof text | typeof textarea;
102
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
103
+ (content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
104
+ mask: typeof file | typeof range | typeof text | typeof textarea;
105
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
106
+ (attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
107
+ mask: typeof file | typeof range | typeof text | typeof textarea;
108
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
95
109
  };
96
110
  textarea: {
97
111
  (): ReturnType<(this: {
98
- mask: typeof file | typeof text | typeof textarea;
99
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
100
- (content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
101
- mask: typeof file | typeof text | typeof textarea;
102
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
103
- (attributes: Attributes, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
104
- mask: typeof file | typeof text | typeof textarea;
105
- }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
112
+ mask: typeof file | typeof range | typeof text | typeof textarea;
113
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
114
+ (content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
115
+ mask: typeof file | typeof range | typeof text | typeof textarea;
116
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
117
+ (attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
118
+ mask: typeof file | typeof range | typeof text | typeof textarea;
119
+ }, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
106
120
  };
107
121
  };
108
122
  export default _default;
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.20.0",
51
+ "version": "0.20.2",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -8,8 +8,8 @@ import './scss/index.scss';
8
8
 
9
9
  const { checkbox: cb, radio, switch: sw } = checkbox;
10
10
 
11
- const { file, text, textarea } = input;
11
+ const { file, range, text, textarea } = input;
12
12
 
13
13
 
14
- export default { checkbox: cb, description, file, radio, select, switch: sw, textarea, text, title };
15
- export { cb as checkbox, description, file, radio, select, sw as switch, textarea, text, title };
14
+ export default { checkbox: cb, description, file, radio, range, select, switch: sw, textarea, text, title };
15
+ export { cb as checkbox, description, file, radio, range, select, sw as switch, textarea, text, title };
@@ -18,9 +18,9 @@ const OMIT_TAG = ['field-mask-tag'];
18
18
 
19
19
  const field = template.factory(
20
20
  function(
21
- this: { mask: typeof file | typeof text | typeof textarea },
21
+ this: { mask: typeof file | typeof range | typeof text | typeof textarea },
22
22
  attributes: Attributes & { state?: { active: boolean, error: string } },
23
- content: (mask: typeof file | typeof text | typeof textarea) => Renderable<unknown>
23
+ content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>
24
24
  ) {
25
25
  let state = attributes.state || reactive({
26
26
  active: false,