@esportsplus/ui 0.51.7 → 0.53.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.
Files changed (150) hide show
  1. package/README.md +2 -3
  2. package/build/components/accordion/index.d.ts +15 -10
  3. package/build/components/accordion/index.js +8 -34
  4. package/build/components/accordion/scss/index.scss +1 -1
  5. package/build/components/back/index.d.ts +14 -11
  6. package/build/components/back/index.js +3 -3
  7. package/build/components/button/index.js +2 -2
  8. package/build/components/checkbox/index.js +7 -3
  9. package/build/components/clipboard/index.d.ts +23 -20
  10. package/build/components/clipboard/index.js +1 -0
  11. package/build/components/clipboard/onclick.js +3 -3
  12. package/build/components/form/input.js +3 -3
  13. package/build/components/frame/index.d.ts +16 -15
  14. package/build/components/frame/index.js +11 -5
  15. package/build/components/highlight/index.js +2 -2
  16. package/build/components/icon/index.js +2 -2
  17. package/build/components/index.d.ts +1 -4
  18. package/build/components/index.js +1 -4
  19. package/build/components/loader/index.js +4 -4
  20. package/build/components/loader/scss/index.scss +1 -1
  21. package/build/components/overlay/index.d.ts +16 -15
  22. package/build/components/overlay/index.js +11 -5
  23. package/build/components/overlay/scss/index.scss +1 -1
  24. package/build/components/page/scss/index.scss +1 -1
  25. package/build/components/root/scss/index.scss +1 -1
  26. package/build/components/select/index.d.ts +3 -6
  27. package/build/components/select/index.js +72 -78
  28. package/build/components/sidebar/index.d.ts +16 -15
  29. package/build/components/sidebar/index.js +11 -5
  30. package/build/components/sidebar/scss/index.scss +1 -1
  31. package/build/components/toast/index.d.ts +9 -0
  32. package/build/components/toast/index.js +157 -0
  33. package/build/components/toast/manager.d.ts +60 -0
  34. package/build/components/toast/manager.js +203 -0
  35. package/build/components/toast/scss/index.scss +2 -0
  36. package/build/components/toast/svg/check.svg +1 -0
  37. package/build/components/toast/svg/chevron.svg +1 -0
  38. package/build/components/toast/svg/close.svg +1 -0
  39. package/build/components/toast/svg/copy.svg +1 -0
  40. package/build/components/toast/svg/error.svg +1 -0
  41. package/build/components/toast/svg/info.svg +1 -0
  42. package/build/components/toast/svg/loading.svg +1 -0
  43. package/build/components/toast/svg/success.svg +1 -0
  44. package/build/components/toast/svg/warning.svg +1 -0
  45. package/build/components/tooltip/index.d.ts +40 -40
  46. package/build/components/tooltip/menu.js +37 -23
  47. package/build/components/tooltip/onclick.d.ts +20 -20
  48. package/build/components/tooltip/onclick.js +2 -2
  49. package/build/components/tooltip/onhover.js +2 -2
  50. package/build/components/typewriter/index.js +2 -2
  51. package/build/css-utilities/index.scss +1 -1
  52. package/build/css-utilities/scroll-fade/scss/index.scss +2 -0
  53. package/build/css-utilities/scrollbar/scss/index.scss +2 -0
  54. package/build/themes/dark/back.d.ts +8 -4
  55. package/build/themes/dark/index.d.ts +0 -1
  56. package/build/themes/dark/index.js +0 -1
  57. package/build/themes/dark/input.d.ts +2 -2
  58. package/build/themes/dark/select.d.ts +60 -110
  59. package/build/themes/dark/textarea.d.ts +2 -2
  60. package/package.json +15 -15
  61. package/pnpm-workspace.yaml +11 -8
  62. package/src/components/accordion/index.ts +7 -30
  63. package/src/components/accordion/scss/index.scss +9 -12
  64. package/src/components/back/index.ts +4 -5
  65. package/src/components/button/index.ts +2 -3
  66. package/src/components/checkbox/index.ts +7 -2
  67. package/src/components/clipboard/index.ts +2 -1
  68. package/src/components/clipboard/onclick.ts +3 -4
  69. package/src/components/form/input.ts +4 -4
  70. package/src/components/frame/index.ts +9 -5
  71. package/src/components/highlight/index.ts +2 -3
  72. package/src/components/icon/index.ts +2 -3
  73. package/src/components/index.ts +1 -4
  74. package/src/components/loader/index.ts +5 -6
  75. package/src/components/loader/scss/index.scss +1 -1
  76. package/src/components/overlay/index.ts +9 -5
  77. package/src/components/overlay/scss/index.scss +0 -1
  78. package/src/components/page/scss/index.scss +1 -1
  79. package/src/components/root/scss/index.scss +35 -4
  80. package/src/components/root/scss/variables.scss +1 -2
  81. package/src/components/select/index.ts +71 -83
  82. package/src/components/sidebar/index.ts +9 -5
  83. package/src/components/sidebar/scss/index.scss +0 -1
  84. package/src/components/toast/index.ts +188 -0
  85. package/src/components/toast/manager.ts +312 -0
  86. package/src/components/toast/scss/index.scss +276 -0
  87. package/src/components/toast/scss/variables.scss +19 -0
  88. package/src/components/toast/svg/check.svg +1 -0
  89. package/src/components/toast/svg/chevron.svg +1 -0
  90. package/src/components/toast/svg/close.svg +1 -0
  91. package/src/components/toast/svg/copy.svg +1 -0
  92. package/src/components/toast/svg/error.svg +1 -0
  93. package/src/components/toast/svg/info.svg +1 -0
  94. package/src/components/toast/svg/loading.svg +1 -0
  95. package/src/components/toast/svg/success.svg +1 -0
  96. package/src/components/toast/svg/warning.svg +1 -0
  97. package/src/components/tooltip/menu.ts +8 -4
  98. package/src/components/tooltip/onclick.ts +2 -3
  99. package/src/components/tooltip/onhover.ts +2 -3
  100. package/src/components/typewriter/index.ts +2 -3
  101. package/src/css-utilities/index.scss +3 -2
  102. package/src/css-utilities/scroll-fade/scss/index.scss +47 -0
  103. package/src/css-utilities/scroll-fade/scss/variables.scss +3 -0
  104. package/src/css-utilities/scrollbar/scss/index.scss +53 -0
  105. package/src/css-utilities/scrollbar/scss/variables.scss +5 -0
  106. package/src/themes/dark/index.ts +0 -1
  107. package/src/tokens/scss/color.scss +14 -14
  108. package/src/tokens/scss/font-size.scss +12 -11
  109. package/src/tokens/scss/line-height.scss +7 -4
  110. package/src/tokens/scss/scale.scss +22 -0
  111. package/src/tokens/scss/size.scss +12 -9
  112. package/src/tokens/scss/spacer.scss +9 -9
  113. package/storage/svg/bolt.svg +1 -0
  114. package/storage/svg/star.svg +1 -0
  115. package/tsconfig.json +6 -2
  116. package/vite-env.d.ts +1 -0
  117. package/vite.config.ts +73 -72
  118. package/build/components/alert/index.d.ts +0 -19
  119. package/build/components/alert/index.js +0 -151
  120. package/build/components/alert/scss/index.scss +0 -2
  121. package/build/components/alert/svg/check.svg +0 -11
  122. package/build/components/alert/svg/close.svg +0 -12
  123. package/build/components/alert/svg/error.svg +0 -18
  124. package/build/components/scrollbar/index.d.ts +0 -27
  125. package/build/components/scrollbar/index.js +0 -56
  126. package/build/components/scrollbar/scss/index.scss +0 -2
  127. package/build/components/site/index.d.ts +0 -20
  128. package/build/components/site/index.js +0 -9
  129. package/build/components/site/scss/index.scss +0 -2
  130. package/build/components/template/index.d.ts +0 -14
  131. package/build/components/template/index.js +0 -21
  132. package/build/css-utilities/scroller/scss/index.scss +0 -2
  133. package/build/themes/dark/alert.d.ts +0 -11
  134. package/build/themes/dark/alert.js +0 -20
  135. package/src/components/accordion/scss/variables.scss +0 -9
  136. package/src/components/alert/index.ts +0 -165
  137. package/src/components/alert/scss/index.scss +0 -25
  138. package/src/components/alert/scss/variables.scss +0 -3
  139. package/src/components/alert/svg/check.svg +0 -11
  140. package/src/components/alert/svg/close.svg +0 -12
  141. package/src/components/alert/svg/error.svg +0 -18
  142. package/src/components/scrollbar/index.ts +0 -70
  143. package/src/components/scrollbar/scss/index.scss +0 -82
  144. package/src/components/scrollbar/scss/variables.scss +0 -6
  145. package/src/components/site/index.ts +0 -11
  146. package/src/components/site/scss/index.scss +0 -3
  147. package/src/components/template/index.ts +0 -40
  148. package/src/css-utilities/scroller/scss/index.scss +0 -8
  149. package/src/css-utilities/scroller/scss/variables.scss +0 -4
  150. package/src/themes/dark/alert.ts +0 -23
@@ -0,0 +1,203 @@
1
+ import * as reactivity_u0 from '@esportsplus/reactivity';
2
+ import { ReactiveArray, effect } from '@esportsplus/reactivity';
3
+ class ReactiveObject_0ktzs5p0 extends reactivity_u0.ReactiveObject {
4
+ #active = this[reactivity_u0.SIGNAL](false);
5
+ constructor() {
6
+ super(null);
7
+ }
8
+ get active() {
9
+ return reactivity_u0.read(this.#active);
10
+ }
11
+ set active(_v0) {
12
+ reactivity_u0.write(this.#active, _v0);
13
+ }
14
+ }
15
+ const DURATIONS = {
16
+ error: 6000,
17
+ info: 4000,
18
+ loading: 0,
19
+ message: 4000,
20
+ success: 4000,
21
+ warning: 6000
22
+ };
23
+ const EXIT_DURATION = 300;
24
+ let counter = 0, paused = false, timers = new Map();
25
+ function buildVisibleToastLayout(toasts) {
26
+ let fullIndex = 0, fullOffsetY = 0, liveIndex = 0, liveOffsetY = 0, items = toasts.map((toast) => {
27
+ let height = normalizeToastHeight(toast.height), item;
28
+ if (toast.status === 'ending') {
29
+ item = {
30
+ offsetY: fullOffsetY,
31
+ toast,
32
+ visibleIndex: fullIndex
33
+ };
34
+ fullOffsetY += height;
35
+ fullIndex += 1;
36
+ return item;
37
+ }
38
+ item = {
39
+ offsetY: liveOffsetY,
40
+ toast,
41
+ visibleIndex: liveIndex
42
+ };
43
+ fullOffsetY += height;
44
+ fullIndex += 1;
45
+ liveOffsetY += height;
46
+ liveIndex += 1;
47
+ return item;
48
+ }), frontmostLiveToast = toasts.find((toast) => toast.status !== 'ending');
49
+ return {
50
+ frontmostHeight: normalizeToastHeight(frontmostLiveToast?.height),
51
+ items
52
+ };
53
+ }
54
+ function clearTimer(id) {
55
+ let timer = timers.get(id);
56
+ if (!timer) {
57
+ return;
58
+ }
59
+ if (timer.handle !== undefined) {
60
+ clearTimeout(timer.handle);
61
+ }
62
+ timers.delete(id);
63
+ }
64
+ function create(type, title, options = {}) {
65
+ let id = options.id ?? `toast-${++counter}`, toast = reactivity_u0.reactive({
66
+ action: options.action,
67
+ createdAt: Date.now(),
68
+ description: options.description,
69
+ dismissible: options.dismissible ?? true,
70
+ duration: options.duration ?? DURATIONS[type],
71
+ height: 0,
72
+ id,
73
+ priority: options.priority ?? 'low',
74
+ status: 'starting',
75
+ title,
76
+ type
77
+ });
78
+ toasts.push(toast);
79
+ queueMicrotask(() => {
80
+ if (toast.status === 'starting' && toasts.includes(toast)) {
81
+ toast.status = 'visible';
82
+ }
83
+ });
84
+ if (type !== 'loading' && toast.duration > 0) {
85
+ schedule(toast);
86
+ }
87
+ return id;
88
+ }
89
+ function dismiss(id) {
90
+ let toast = toasts.find((value) => value.id === id);
91
+ if (!toast || toast.status === 'ending') {
92
+ return;
93
+ }
94
+ clearTimer(id);
95
+ toast.status = 'ending';
96
+ setTimeout(() => remove(id), EXIT_DURATION);
97
+ }
98
+ function normalizeToastHeight(height) {
99
+ return typeof height === 'number' && Number.isFinite(height) && height > 0 ? height : 0;
100
+ }
101
+ function pause() {
102
+ for (let timer of timers.values()) {
103
+ if (timer.handle === undefined) {
104
+ continue;
105
+ }
106
+ clearTimeout(timer.handle);
107
+ timer.remaining = Math.max(0, timer.remaining - (performance.now() - timer.started));
108
+ timer.handle = undefined;
109
+ }
110
+ }
111
+ function remove(id) {
112
+ let index = toasts.findIndex((toast) => toast.id === id);
113
+ clearTimer(id);
114
+ if (index !== -1) {
115
+ toasts.splice(index, 1);
116
+ }
117
+ }
118
+ function resume() {
119
+ for (let [id, timer] of timers) {
120
+ if (timer.handle !== undefined) {
121
+ continue;
122
+ }
123
+ timer.started = performance.now();
124
+ timer.handle = setTimeout(() => dismiss(id), timer.remaining);
125
+ }
126
+ }
127
+ function schedule(toast) {
128
+ if (toast.duration <= 0) {
129
+ return;
130
+ }
131
+ if (state.active) {
132
+ timers.set(toast.id, {
133
+ handle: undefined,
134
+ remaining: toast.duration,
135
+ started: 0
136
+ });
137
+ return;
138
+ }
139
+ timers.set(toast.id, {
140
+ handle: setTimeout(() => dismiss(toast.id), toast.duration),
141
+ remaining: toast.duration,
142
+ started: performance.now()
143
+ });
144
+ }
145
+ function update(id, options) {
146
+ let toast = toasts.find((value) => value.id === id);
147
+ if (!toast) {
148
+ return;
149
+ }
150
+ if (options.action !== undefined) {
151
+ toast.action = options.action;
152
+ }
153
+ if (options.description !== undefined) {
154
+ toast.description = options.description;
155
+ }
156
+ if (options.dismissible !== undefined) {
157
+ toast.dismissible = options.dismissible;
158
+ }
159
+ if (options.priority !== undefined) {
160
+ toast.priority = options.priority;
161
+ }
162
+ if (options.duration !== undefined) {
163
+ toast.duration = options.duration;
164
+ clearTimer(id);
165
+ if (toast.type !== 'loading' && toast.duration > 0 && toast.status !== 'ending') {
166
+ schedule(toast);
167
+ }
168
+ }
169
+ }
170
+ const state = new ReactiveObject_0ktzs5p0();
171
+ const toasts = new ReactiveArray();
172
+ effect(() => {
173
+ let active = state.active;
174
+ if (active === paused) {
175
+ return;
176
+ }
177
+ paused = active;
178
+ if (active) {
179
+ pause();
180
+ }
181
+ else {
182
+ resume();
183
+ }
184
+ });
185
+ const toast = {
186
+ dismiss: (id) => {
187
+ if (id === undefined) {
188
+ for (let value of [...toasts]) {
189
+ dismiss(value.id);
190
+ }
191
+ return;
192
+ }
193
+ dismiss(id);
194
+ },
195
+ error: (title, options) => create('error', title, options),
196
+ info: (title, options) => create('info', title, options),
197
+ loading: (title, options) => create('loading', title, options),
198
+ message: (title, options) => create('message', title, options),
199
+ success: (title, options) => create('success', title, options),
200
+ update,
201
+ warning: (title, options) => create('warning', title, options)
202
+ };
203
+ export { buildVisibleToastLayout, remove, state, toast, toasts };
@@ -0,0 +1,2 @@
1
+ @layer components {.toaster{--toast-gap:var(--size-300);--toast-inset:var(--size-500);--toast-peek:var(--size-300)}.toast{--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height,0px)), var(--toast-height,0px));--toast-calc-offset-y:calc(var(--toast-offset-y,0px) + (var(--toast-index,0) * var(--toast-gap)) + var(--toast-swipe-y,0px));--toast-color:var(--color-text-300);--toast-height:0px;--toast-index:0;--toast-offset-y:0px;--toast-scale:max(0, 1 - (var(--toast-index,0) * .06));--toast-shrink:calc(1 - var(--toast-scale));--toast-swipe-x:0px;--toast-swipe-y:0px}.toaster{width:min(360px, 100% - var(--toast-inset) * 2);z-index:9999;position:fixed;inset:auto}.toaster[data-position^=top]{top:var(--toast-inset)}.toaster[data-position^=bottom]{bottom:var(--toast-inset)}.toaster[data-position$=left]{left:var(--toast-inset)}.toaster[data-position$=right]{right:var(--toast-inset)}.toaster[data-position$=center]{left:50%;transform:translate(-50%)}.toast{background:var(--background);border:1px solid var(--color-border-400);border-radius:var(--border-radius-500);box-shadow:var(--box-shadow-300);color:var(--color-text-400);transform:translateX(var(--toast-swipe-x)) translateY(calc(var(--toast-swipe-y) + var(--toast-index) * var(--toast-peek) + var(--toast-shrink) * var(--toast-calc-height))) scale(var(--toast-scale));-webkit-user-select:none;user-select:none;width:100%;z-index:calc(9999 - var(--toast-index,0));transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .3s,height .2s;position:absolute;left:0;right:0;overflow:visible}[data-position*=top] .toast{transform-origin:top;top:0;bottom:auto}[data-position*=bottom] .toast{--toast-calc-offset-y:calc((var(--toast-offset-y,0px) * -1) + (var(--toast-index,0) * var(--toast-gap) * -1) + var(--toast-swipe-y,0px));transform:translateX(var(--toast-swipe-x)) translateY(calc(var(--toast-swipe-y) - var(--toast-index) * var(--toast-peek) - var(--toast-shrink) * var(--toast-calc-height))) scale(var(--toast-scale));transform-origin:bottom;top:auto;bottom:0}.toast:after{content:"";height:calc(var(--toast-gap) + 1px);width:100%;position:absolute;left:0}[data-position*=top] .toast:after{top:100%}[data-position*=bottom] .toast:after{bottom:100%}.toast-action{flex-shrink:0}.toast-close{background:var(--background);border:1px solid var(--color-border-400);border-radius:var(--border-radius-circle);color:var(--color-text-500);height:var(--size-500);right:calc(var(--size-200) * -1);top:calc(var(--size-200) * -1);width:var(--size-500);z-index:1;justify-content:center;align-items:center;display:flex;position:absolute}.toast-content{align-items:center;gap:var(--size-300);min-height:0;opacity:max(0, 1 - var(--toast-index,0));padding:var(--size-400);justify-content:space-between;transition:opacity .3s;display:flex;overflow:clip visible}.toast-copy{justify-content:center;align-items:center;display:inline-flex}.toast-description{color:var(--color-text-300);overflow-wrap:anywhere}.toast-description--clamp{-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toast-details{margin-top:var(--size-200);max-height:160px;overflow-y:auto}.toast-details-toggle{cursor:pointer;align-items:center;gap:var(--size-200);display:flex}.toast-icon{color:var(--toast-color);flex-shrink:0;width:18px;height:18px}.toast-title{font-weight:var(--font-weight-400);overflow-wrap:anywhere}.toast--error{--toast-color:var(--color-red-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--warning{--toast-color:var(--color-yellow-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--success{--toast-color:var(--color-green-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--info{--toast-color:var(--color-blue-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--loading{--toast-color:var(--color-grey-500);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--loading .toast-icon{animation:1s linear infinite toast-spin}.toast--message{--toast-color:var(--color-text-300);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toaster.--active .toast{height:auto;transform:translateX(var(--toast-swipe-x)) translateY(var(--toast-calc-offset-y))}.toaster.--active .toast-content{opacity:1}.toaster .toast.toast--starting{opacity:0}.toaster[data-position*=top] .toast.toast--starting{transform:translateY(-120%)}.toaster[data-position*=bottom] .toast.toast--starting{transform:translateY(120%)}.toaster .toast.toast--ending{opacity:0}.toaster[data-position*=top] .toast.toast--ending{transform:translateY(calc(-100% - var(--toast-inset)))}.toaster[data-position*=bottom] .toast.toast--ending{transform:translateY(calc(100% + var(--toast-inset)))}.toaster .toast.toast--ending[data-swipe-direction=left]{transform:translateX(calc(var(--toast-swipe-x) - 100% - var(--toast-inset))) translateY(var(--toast-calc-offset-y))}.toaster .toast.toast--ending[data-swipe-direction=right]{transform:translateX(calc(var(--toast-swipe-x) + 100% + var(--toast-inset))) translateY(var(--toast-calc-offset-y))}.toaster .toast.toast--ending[data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-y) - 100% - var(--toast-inset)))}.toaster .toast.toast--ending[data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-y) + 100% + var(--toast-inset)))}.toast--swiping{transition:none}@keyframes toast-spin{to{transform:rotate(360deg)}}}
2
+ /*$vite$:1*/
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>
@@ -3,8 +3,8 @@ declare const _default: {
3
3
  menu: {
4
4
  (): ReturnType<(this: {
5
5
  attributes?: ({
6
- [key: `aria-${string}`]: string | number | boolean | undefined;
7
- [key: `data-${string}`]: string | undefined;
6
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
7
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
8
8
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
9
9
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
10
10
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -133,8 +133,8 @@ declare const _default: {
133
133
  }) | undefined;
134
134
  content?: import("@esportsplus/template").Renderable<any>;
135
135
  }, attributes: Readonly<{
136
- [key: `aria-${string}`]: string | number | boolean | undefined;
137
- [key: `data-${string}`]: string | undefined;
136
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
137
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
138
138
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
139
139
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
140
140
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -262,8 +262,8 @@ declare const _default: {
262
262
  };
263
263
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
264
264
  <T extends {
265
- [key: `aria-${string}`]: string | number | boolean | undefined;
266
- [key: `data-${string}`]: string | undefined;
265
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
266
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
267
267
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
268
268
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
269
269
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -391,8 +391,8 @@ declare const _default: {
391
391
  };
392
392
  }>(attributes: T): ReturnType<(this: {
393
393
  attributes?: ({
394
- [key: `aria-${string}`]: string | number | boolean | undefined;
395
- [key: `data-${string}`]: string | undefined;
394
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
395
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
396
396
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
397
397
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
398
398
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -521,8 +521,8 @@ declare const _default: {
521
521
  }) | undefined;
522
522
  content?: import("@esportsplus/template").Renderable<any>;
523
523
  }, attributes: Readonly<{
524
- [key: `aria-${string}`]: string | number | boolean | undefined;
525
- [key: `data-${string}`]: string | undefined;
524
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
525
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
526
526
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
527
527
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
528
528
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -651,8 +651,8 @@ declare const _default: {
651
651
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
652
652
  <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
653
653
  attributes?: ({
654
- [key: `aria-${string}`]: string | number | boolean | undefined;
655
- [key: `data-${string}`]: string | undefined;
654
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
655
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
656
656
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
657
657
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
658
658
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -781,8 +781,8 @@ declare const _default: {
781
781
  }) | undefined;
782
782
  content?: import("@esportsplus/template").Renderable<any>;
783
783
  }, attributes: Readonly<{
784
- [key: `aria-${string}`]: string | number | boolean | undefined;
785
- [key: `data-${string}`]: string | undefined;
784
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
785
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
786
786
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
787
787
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
788
788
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -910,8 +910,8 @@ declare const _default: {
910
910
  };
911
911
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
912
912
  (attributes: {
913
- [key: `aria-${string}`]: string | number | boolean | undefined;
914
- [key: `data-${string}`]: string | undefined;
913
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
914
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
915
915
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
916
916
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
917
917
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1039,8 +1039,8 @@ declare const _default: {
1039
1039
  };
1040
1040
  }, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
1041
1041
  attributes?: ({
1042
- [key: `aria-${string}`]: string | number | boolean | undefined;
1043
- [key: `data-${string}`]: string | undefined;
1042
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1043
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1044
1044
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1045
1045
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1046
1046
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1169,8 +1169,8 @@ declare const _default: {
1169
1169
  }) | undefined;
1170
1170
  content?: import("@esportsplus/template").Renderable<any>;
1171
1171
  }, attributes: Readonly<{
1172
- [key: `aria-${string}`]: string | number | boolean | undefined;
1173
- [key: `data-${string}`]: string | undefined;
1172
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1173
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1174
1174
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1175
1175
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1176
1176
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1301,8 +1301,8 @@ declare const _default: {
1301
1301
  onclick: {
1302
1302
  (): ReturnType<(this: {
1303
1303
  attributes?: ({
1304
- [key: `aria-${string}`]: string | number | boolean | undefined;
1305
- [key: `data-${string}`]: string | undefined;
1304
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1305
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1306
1306
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1307
1307
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1308
1308
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1424,8 +1424,8 @@ declare const _default: {
1424
1424
  }) | undefined;
1425
1425
  content?: import("@esportsplus/template").Renderable<any>;
1426
1426
  }, attributes: Readonly<{
1427
- [key: `aria-${string}`]: string | number | boolean | undefined;
1428
- [key: `data-${string}`]: string | undefined;
1427
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1428
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1429
1429
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1430
1430
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1431
1431
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1546,8 +1546,8 @@ declare const _default: {
1546
1546
  toggle?: boolean;
1547
1547
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
1548
1548
  <T extends {
1549
- [key: `aria-${string}`]: string | number | boolean | undefined;
1550
- [key: `data-${string}`]: string | undefined;
1549
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1550
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1551
1551
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1552
1552
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1553
1553
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1668,8 +1668,8 @@ declare const _default: {
1668
1668
  toggle?: boolean;
1669
1669
  }>(attributes: T): ReturnType<(this: {
1670
1670
  attributes?: ({
1671
- [key: `aria-${string}`]: string | number | boolean | undefined;
1672
- [key: `data-${string}`]: string | undefined;
1671
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1672
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1673
1673
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1674
1674
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1675
1675
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1791,8 +1791,8 @@ declare const _default: {
1791
1791
  }) | undefined;
1792
1792
  content?: import("@esportsplus/template").Renderable<any>;
1793
1793
  }, attributes: Readonly<{
1794
- [key: `aria-${string}`]: string | number | boolean | undefined;
1795
- [key: `data-${string}`]: string | undefined;
1794
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1795
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1796
1796
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1797
1797
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1798
1798
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1914,8 +1914,8 @@ declare const _default: {
1914
1914
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
1915
1915
  <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
1916
1916
  attributes?: ({
1917
- [key: `aria-${string}`]: string | number | boolean | undefined;
1918
- [key: `data-${string}`]: string | undefined;
1917
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1918
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1919
1919
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1920
1920
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1921
1921
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2037,8 +2037,8 @@ declare const _default: {
2037
2037
  }) | undefined;
2038
2038
  content?: import("@esportsplus/template").Renderable<any>;
2039
2039
  }, attributes: Readonly<{
2040
- [key: `aria-${string}`]: string | number | boolean | undefined;
2041
- [key: `data-${string}`]: string | undefined;
2040
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2041
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2042
2042
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2043
2043
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2044
2044
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2159,8 +2159,8 @@ declare const _default: {
2159
2159
  toggle?: boolean;
2160
2160
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
2161
2161
  (attributes: {
2162
- [key: `aria-${string}`]: string | number | boolean | undefined;
2163
- [key: `data-${string}`]: string | undefined;
2162
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2163
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2164
2164
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2165
2165
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2166
2166
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2281,8 +2281,8 @@ declare const _default: {
2281
2281
  toggle?: boolean;
2282
2282
  }, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
2283
2283
  attributes?: ({
2284
- [key: `aria-${string}`]: string | number | boolean | undefined;
2285
- [key: `data-${string}`]: string | undefined;
2284
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2285
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2286
2286
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2287
2287
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2288
2288
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2404,8 +2404,8 @@ declare const _default: {
2404
2404
  }) | undefined;
2405
2405
  content?: import("@esportsplus/template").Renderable<any>;
2406
2406
  }, attributes: Readonly<{
2407
- [key: `aria-${string}`]: string | number | boolean | undefined;
2408
- [key: `data-${string}`]: string | undefined;
2407
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2408
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2409
2409
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2410
2410
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2411
2411
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1,38 +1,52 @@
1
1
  import * as template_u1 from '@esportsplus/template';
2
+ import { component } from '@esportsplus/template';
3
+ import * as reactivity_u0 from '@esportsplus/reactivity';
2
4
  import { omit } from '@esportsplus/utilities';
3
- import template from '../template/index.js';
4
5
  import onclick from './onclick.js';
5
- const template_0p4v5171 = template_u1.template(`<a class='link --width-full' target='_blank' >`);
6
- const template_0p4v5174 = template_u1.template(`<div class='link --width-full' >`);
7
- const template_0p4v5177 = template_u1.template(`<!--$--><div class='tooltip-content ' >`);
6
+ const template_0p4v5172 = template_u1.template(`<a class='link --width-full' target='_blank' >`);
7
+ const template_0p4v5175 = template_u1.template(`<div class='link --width-full' >`);
8
+ const template_0p4v5178 = template_u1.template(`<!--$--><div class='tooltip-content ' >`);
9
+ class ReactiveObject_0p4v5170 extends reactivity_u0.ReactiveObject {
10
+ #active = this[reactivity_u0.SIGNAL](false);
11
+ constructor() {
12
+ super(null);
13
+ }
14
+ get active() {
15
+ return reactivity_u0.read(this.#active);
16
+ }
17
+ set active(_v0) {
18
+ reactivity_u0.write(this.#active, _v0);
19
+ }
20
+ }
8
21
  const OMIT = ['options', 'option', 'tooltip-content'];
9
22
  const OMIT_OPTION = ['content'];
10
23
  const OMIT_TOOLTIP_CONTENT = ['direction'];
11
- export default template.factory((attributes, content) => {
12
- let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
13
- return onclick(omit(attributes, OMIT), (() => {
14
- let root_0p4v5176 = template_0p4v5177(), element_0p4v5178 = root_0p4v5176.firstChild, element_0p4v5179 = element_0p4v5178.nextSibling;
15
- template_u1.slot(element_0p4v5178, content);
16
- template_u1.setList(element_0p4v5179, 'class', `tooltip-content--${tooltipContentDirection}`);
17
- template_u1.setProperties(element_0p4v5179, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
18
- template_u1.slot(element_0p4v5179, options.map((o) => {
24
+ export default component((attributes, content) => {
25
+ let options = attributes.options, option = attributes.option, state = attributes.state || new ReactiveObject_0p4v5170(), tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
26
+ return onclick({ ...omit(attributes, OMIT), state }, (() => {
27
+ let root_0p4v5177 = template_0p4v5178(), element_0p4v5179 = root_0p4v5177.firstChild, element_0p4v517a = element_0p4v5179.nextSibling;
28
+ template_u1.slot(element_0p4v5179, content);
29
+ template_u1.setList(element_0p4v517a, 'class', `tooltip-content--${tooltipContentDirection}`);
30
+ template_u1.setProperties(element_0p4v517a, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
31
+ template_u1.setProperty(element_0p4v517a, 'inert', () => !state.active);
32
+ template_u1.slot(element_0p4v517a, options.map((o) => {
19
33
  if (o.href) {
20
34
  return (() => {
21
- let root_0p4v5170 = template_0p4v5171(), element_0p4v5172 = root_0p4v5170.firstChild;
22
- template_u1.setProperties(element_0p4v5172, omit(o, OMIT_OPTION));
23
- template_u1.setProperties(element_0p4v5172, option);
24
- template_u1.slot(element_0p4v5172, o.content, 1);
25
- return root_0p4v5170;
35
+ let root_0p4v5171 = template_0p4v5172(), element_0p4v5173 = root_0p4v5171.firstChild;
36
+ template_u1.setProperties(element_0p4v5173, omit(o, OMIT_OPTION));
37
+ template_u1.setProperties(element_0p4v5173, option);
38
+ template_u1.slot(element_0p4v5173, o.content, 1);
39
+ return root_0p4v5171;
26
40
  })();
27
41
  }
28
42
  return (() => {
29
- let root_0p4v5173 = template_0p4v5174(), element_0p4v5175 = root_0p4v5173.firstChild;
30
- template_u1.setProperties(element_0p4v5175, omit(o, OMIT_OPTION));
31
- template_u1.setProperties(element_0p4v5175, option);
32
- template_u1.slot(element_0p4v5175, o.content, 1);
33
- return root_0p4v5173;
43
+ let root_0p4v5174 = template_0p4v5175(), element_0p4v5176 = root_0p4v5174.firstChild;
44
+ template_u1.setProperties(element_0p4v5176, omit(o, OMIT_OPTION));
45
+ template_u1.setProperties(element_0p4v5176, option);
46
+ template_u1.slot(element_0p4v5176, o.content, 1);
47
+ return root_0p4v5174;
34
48
  })();
35
49
  }), 1);
36
- return root_0p4v5176;
50
+ return root_0p4v5177;
37
51
  })());
38
52
  });