@esportsplus/ui 0.24.3 → 0.24.4

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.
Files changed (56) hide show
  1. package/build/components/field/index.d.ts +18331 -0
  2. package/build/components/field/select.d.ts +22 -11
  3. package/build/components/frame/index.d.ts +20 -0
  4. package/build/components/frame/index.js +7 -0
  5. package/build/components/grid/index.d.ts +1 -0
  6. package/build/components/grid/index.js +1 -0
  7. package/build/components/group/index.d.ts +1 -0
  8. package/build/components/group/index.js +1 -0
  9. package/build/components/highlight/index.d.ts +21 -0
  10. package/build/components/highlight/index.js +48 -0
  11. package/build/components/icon/index.d.ts +20 -0
  12. package/build/components/icon/index.js +10 -0
  13. package/build/components/index.d.ts +37 -0
  14. package/build/components/index.js +37 -0
  15. package/build/components/json/download.d.ts +2 -0
  16. package/build/components/json/download.js +8 -0
  17. package/build/components/json/index.d.ts +4 -0
  18. package/build/components/json/index.js +2 -0
  19. package/build/components/link/index.d.ts +1 -0
  20. package/build/components/link/index.js +1 -0
  21. package/build/components/loader/index.d.ts +21 -0
  22. package/build/components/loader/index.js +67 -0
  23. package/build/components/loading/index.d.ts +4 -0
  24. package/build/components/loading/index.js +12 -0
  25. package/build/components/modal/index.d.ts +1 -0
  26. package/build/components/modal/index.js +1 -0
  27. package/build/components/number/index.d.ts +2 -0
  28. package/build/components/number/index.js +2 -0
  29. package/build/components/overlay/index.d.ts +20 -0
  30. package/build/components/overlay/index.js +7 -0
  31. package/build/components/page/index.d.ts +1 -0
  32. package/build/components/page/index.js +1 -0
  33. package/build/components/row/index.d.ts +1 -0
  34. package/build/components/row/index.js +1 -0
  35. package/build/components/sidebar/index.d.ts +20 -0
  36. package/build/components/sidebar/index.js +7 -0
  37. package/build/components/site/index.d.ts +20 -0
  38. package/build/components/site/index.js +9 -0
  39. package/build/components/text/index.d.ts +1 -0
  40. package/build/components/text/index.js +1 -0
  41. package/build/components/thumbnail/index.d.ts +1 -0
  42. package/build/components/thumbnail/index.js +1 -0
  43. package/build/components/truncate/index.d.ts +2 -0
  44. package/build/components/truncate/index.js +2 -0
  45. package/build/components/typewriter/index.d.ts +20 -0
  46. package/build/components/typewriter/index.js +43 -0
  47. package/build/css-utilities/index.d.ts +20 -0
  48. package/build/css-utilities/index.js +20 -0
  49. package/build/fonts/index.d.ts +1 -0
  50. package/build/fonts/index.js +1 -0
  51. package/build/fonts/montserrat/index.d.ts +1 -0
  52. package/build/fonts/montserrat/index.js +1 -0
  53. package/build/normalize/index.d.ts +1 -0
  54. package/build/normalize/index.js +1 -0
  55. package/package.json +1 -1
  56. package/src/components/field/select.ts +1 -1
@@ -0,0 +1,20 @@
1
+ import './scss/index.scss';
2
+ declare const _default: {
3
+ (): ReturnType<(this: {
4
+ attributes?: import("@esportsplus/template").Attributes | undefined;
5
+ content?: string[] | undefined;
6
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
7
+ <T extends import("@esportsplus/template").Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: import("@esportsplus/template").Attributes | undefined;
9
+ content?: string[] | undefined;
10
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
11
+ <T extends string[]>(content: T): ReturnType<(this: {
12
+ attributes?: import("@esportsplus/template").Attributes | undefined;
13
+ content?: string[] | undefined;
14
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
15
+ (attributes: import("@esportsplus/template").Attributes, content: string[]): ReturnType<(this: {
16
+ attributes?: import("@esportsplus/template").Attributes | undefined;
17
+ content?: string[] | undefined;
18
+ }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
19
+ };
20
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { html } from '@esportsplus/template';
2
+ import { reactive } from '@esportsplus/reactivity';
3
+ import template from '../../components/template/index.js';
4
+ import './scss/index.scss';
5
+ const EMPTY_NODE = html ` `;
6
+ export default template.factory(function (_, content) {
7
+ let state = reactive({ text: '' });
8
+ return html `
9
+ <div class='typewriter' ${{
10
+ onconnect: () => {
11
+ let character = 0, i = 0, isWriting = true, write = content[i];
12
+ function play() {
13
+ setTimeout(() => {
14
+ state.text = write.slice(0, character);
15
+ if (isWriting) {
16
+ if (character > write.length) {
17
+ isWriting = false;
18
+ setTimeout(play, 2000);
19
+ return;
20
+ }
21
+ else {
22
+ character++;
23
+ }
24
+ }
25
+ else {
26
+ if (character === 0) {
27
+ isWriting = true;
28
+ write = content[++i] || content[i = 0];
29
+ }
30
+ else {
31
+ character--;
32
+ }
33
+ }
34
+ play();
35
+ }, isWriting ? 64 : 32);
36
+ }
37
+ play();
38
+ }
39
+ }}>
40
+ ${() => state.text || EMPTY_NODE}
41
+ </div>
42
+ `;
43
+ });
@@ -0,0 +1,20 @@
1
+ import './[margin,padding]/scss/index.scss';
2
+ import './absolute/scss/index.scss';
3
+ import './background/scss/index.scss';
4
+ import './border/scss/index.scss';
5
+ import './color/scss/index.scss';
6
+ import './disabled/scss/index.scss';
7
+ import './flex/scss/index.scss';
8
+ import './flicker/scss/index.scss';
9
+ import './focus/scss/index.scss';
10
+ import './glass/scss/index.scss';
11
+ import './hidden/scss/index.scss';
12
+ import './inline/scss/index.scss';
13
+ import './line-height/scss/index.scss';
14
+ import './not-allowed/scss/index.scss';
15
+ import './pointer/scss/index.scss';
16
+ import './size/scss/index.scss';
17
+ import './squircle/scss/index.scss';
18
+ import './text/scss/index.scss';
19
+ import './viewport/scss/index.scss';
20
+ import './width/scss/index.scss';
@@ -0,0 +1,20 @@
1
+ import './[margin,padding]/scss/index.scss';
2
+ import './absolute/scss/index.scss';
3
+ import './background/scss/index.scss';
4
+ import './border/scss/index.scss';
5
+ import './color/scss/index.scss';
6
+ import './disabled/scss/index.scss';
7
+ import './flex/scss/index.scss';
8
+ import './flicker/scss/index.scss';
9
+ import './focus/scss/index.scss';
10
+ import './glass/scss/index.scss';
11
+ import './hidden/scss/index.scss';
12
+ import './inline/scss/index.scss';
13
+ import './line-height/scss/index.scss';
14
+ import './not-allowed/scss/index.scss';
15
+ import './pointer/scss/index.scss';
16
+ import './size/scss/index.scss';
17
+ import './squircle/scss/index.scss';
18
+ import './text/scss/index.scss';
19
+ import './viewport/scss/index.scss';
20
+ import './width/scss/index.scss';
@@ -0,0 +1 @@
1
+ export * as montserrat from './montserrat/index.js';
@@ -0,0 +1 @@
1
+ export * as montserrat from './montserrat/index.js';
@@ -0,0 +1 @@
1
+ import './scss/index.scss';
@@ -0,0 +1 @@
1
+ import './scss/index.scss';
@@ -0,0 +1 @@
1
+ import './scss/index.scss';
@@ -0,0 +1 @@
1
+ import './scss/index.scss';
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.24.3",
51
+ "version": "0.24.4",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -179,7 +179,7 @@ export default template.factory<
179
179
  }
180
180
  }
181
181
  ),
182
- (mask: ReturnType<typeof template.factory<A>>) => Renderable<unknown>
182
+ (mask: typeof select) => Renderable<unknown>
183
183
  >((attributes, content) => {
184
184
  let options = attributes.options,
185
185
  state = attributes.state || reactive({