ripple 0.3.89 → 0.3.90

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.
@@ -28,27 +28,27 @@ import { track } from 'ripple';
28
28
  export function IfWithChildren({ children }) {
29
29
  return _$_.tsrx_element((__anchor, __block) => {
30
30
  let lazy = _$_.track(true, __block, 'c64714b1');
31
- var div_1 = root();
31
+ var div = root();
32
32
 
33
33
  {
34
- var div_2 = _$_.child(div_1);
34
+ var div_1 = _$_.child(div);
35
35
 
36
- div_2.__click = () => _$_.set(lazy, !lazy.value);
36
+ div_1.__click = () => _$_.set(lazy, !lazy.value);
37
37
 
38
- var node = _$_.sibling(div_2);
38
+ var node = _$_.sibling(div_1);
39
39
 
40
40
  {
41
41
  var consequent = (__anchor) => {
42
- var div_3 = root_1();
42
+ var div_2 = root_1();
43
43
 
44
44
  {
45
- var expression = _$_.child(div_3);
45
+ var expression = _$_.child(div_2);
46
46
 
47
47
  _$_.expression(expression, () => children);
48
- _$_.pop(div_3);
48
+ _$_.pop(div_2);
49
49
  }
50
50
 
51
- _$_.append(__anchor, div_3);
51
+ _$_.append(__anchor, div_2);
52
52
  };
53
53
 
54
54
  _$_.if(node, (__render) => {
@@ -56,25 +56,25 @@ export function IfWithChildren({ children }) {
56
56
  });
57
57
  }
58
58
 
59
- _$_.pop(div_1);
59
+ _$_.pop(div);
60
60
  }
61
61
 
62
- _$_.append(__anchor, div_1);
62
+ _$_.append(__anchor, div);
63
63
  });
64
64
  }
65
65
 
66
66
  export function ChildItem({ text: label }) {
67
67
  return _$_.tsrx_element((__anchor, __block) => {
68
- var div_4 = root_2();
68
+ var div_3 = root_2();
69
69
 
70
70
  {
71
- var expression_1 = _$_.child(div_4, true);
71
+ var expression_1 = _$_.child(div_3, true);
72
72
 
73
73
  expression_1.nodeValue = label;
74
- _$_.pop(div_4);
74
+ _$_.pop(div_3);
75
75
  }
76
76
 
77
- _$_.append(__anchor, div_4);
77
+ _$_.append(__anchor, div_3);
78
78
  });
79
79
  }
80
80
 
@@ -99,20 +99,20 @@ export function TestIfWithChildren() {
99
99
  export function IfWithStaticChildren() {
100
100
  return _$_.tsrx_element((__anchor, __block) => {
101
101
  let lazy_1 = _$_.track(true, __block, '3bba8f77');
102
- var div_5 = root_4();
102
+ var div_4 = root_4();
103
103
 
104
104
  {
105
- var div_6 = _$_.child(div_5);
105
+ var div_5 = _$_.child(div_4);
106
106
 
107
- div_6.__click = () => _$_.set(lazy_1, !lazy_1.value);
107
+ div_5.__click = () => _$_.set(lazy_1, !lazy_1.value);
108
108
 
109
- var node_3 = _$_.sibling(div_6);
109
+ var node_3 = _$_.sibling(div_5);
110
110
 
111
111
  {
112
112
  var consequent_1 = (__anchor) => {
113
- var div_7 = root_5();
113
+ var div_6 = root_5();
114
114
 
115
- _$_.append(__anchor, div_7);
115
+ _$_.append(__anchor, div_6);
116
116
  };
117
117
 
118
118
  _$_.if(node_3, (__render) => {
@@ -120,38 +120,38 @@ export function IfWithStaticChildren() {
120
120
  });
121
121
  }
122
122
 
123
- _$_.pop(div_5);
123
+ _$_.pop(div_4);
124
124
  }
125
125
 
126
- _$_.append(__anchor, div_5);
126
+ _$_.append(__anchor, div_4);
127
127
  });
128
128
  }
129
129
 
130
130
  export function IfWithSiblingsAndChildren({ children }) {
131
131
  return _$_.tsrx_element((__anchor, __block) => {
132
132
  let lazy_2 = _$_.track(true, __block, 'a1b8fb4c');
133
- var section_1 = root_6();
133
+ var section = root_6();
134
134
 
135
135
  {
136
- var div_8 = _$_.child(section_1);
136
+ var div_7 = _$_.child(section);
137
137
 
138
- div_8.__click = () => _$_.set(lazy_2, !lazy_2.value);
139
- _$_.pop(div_8);
138
+ div_7.__click = () => _$_.set(lazy_2, !lazy_2.value);
139
+ _$_.pop(div_7);
140
140
 
141
- var node_4 = _$_.sibling(div_8);
141
+ var node_4 = _$_.sibling(div_7);
142
142
 
143
143
  {
144
144
  var consequent_2 = (__anchor) => {
145
- var div_9 = root_7();
145
+ var div_8 = root_7();
146
146
 
147
147
  {
148
- var expression_2 = _$_.child(div_9);
148
+ var expression_2 = _$_.child(div_8);
149
149
 
150
150
  _$_.expression(expression_2, () => children);
151
- _$_.pop(div_9);
151
+ _$_.pop(div_8);
152
152
  }
153
153
 
154
- _$_.append(__anchor, div_9);
154
+ _$_.append(__anchor, div_8);
155
155
  };
156
156
 
157
157
  _$_.if(node_4, (__render) => {
@@ -159,10 +159,10 @@ export function IfWithSiblingsAndChildren({ children }) {
159
159
  });
160
160
  }
161
161
 
162
- _$_.pop(section_1);
162
+ _$_.pop(section);
163
163
  }
164
164
 
165
- _$_.append(__anchor, section_1);
165
+ _$_.append(__anchor, section);
166
166
  });
167
167
  }
168
168
 
@@ -192,20 +192,20 @@ export function ElementWithChildrenThenIf() {
192
192
 
193
193
  _$_.expression(node_8, () => _$_.tsrx_element((__anchor, __block) => {
194
194
  var fragment_3 = root_10();
195
- var div_11 = _$_.first_child_frag(fragment_3);
195
+ var div_10 = _$_.first_child_frag(fragment_3);
196
196
 
197
197
  {
198
- var div_10 = _$_.child(div_11);
198
+ var div_9 = _$_.child(div_10);
199
199
 
200
- _$_.pop(div_10);
200
+ _$_.pop(div_9);
201
201
 
202
- var node_7 = _$_.sibling(div_10);
202
+ var node_7 = _$_.sibling(div_9);
203
203
 
204
204
  {
205
205
  var consequent_3 = (__anchor) => {
206
- var div_12 = root_11();
206
+ var div_11 = root_11();
207
207
 
208
- _$_.append(__anchor, div_12);
208
+ _$_.append(__anchor, div_11);
209
209
  };
210
210
 
211
211
  _$_.if(node_7, (__render) => {
@@ -213,12 +213,12 @@ export function ElementWithChildrenThenIf() {
213
213
  });
214
214
  }
215
215
 
216
- _$_.pop(div_11);
216
+ _$_.pop(div_10);
217
217
  }
218
218
 
219
- var button_1 = _$_.sibling(div_11);
219
+ var button = _$_.sibling(div_10);
220
220
 
221
- button_1.__click = () => _$_.set(lazy_3, !lazy_3.value);
221
+ button.__click = () => _$_.set(lazy_3, !lazy_3.value);
222
222
  _$_.next();
223
223
  _$_.append(__anchor, fragment_3, true);
224
224
  }));
@@ -235,20 +235,20 @@ export function DeepNestingThenIf() {
235
235
 
236
236
  _$_.expression(node_10, () => _$_.tsrx_element((__anchor, __block) => {
237
237
  var fragment_5 = root_13();
238
- var section_2 = _$_.first_child_frag(fragment_5);
238
+ var section_1 = _$_.first_child_frag(fragment_5);
239
239
 
240
240
  {
241
- var article_1 = _$_.child(section_2);
241
+ var article = _$_.child(section_1);
242
242
 
243
- _$_.pop(article_1);
243
+ _$_.pop(article);
244
244
 
245
- var node_9 = _$_.sibling(article_1);
245
+ var node_9 = _$_.sibling(article);
246
246
 
247
247
  {
248
248
  var consequent_4 = (__anchor) => {
249
- var footer_1 = root_14();
249
+ var footer = root_14();
250
250
 
251
- _$_.append(__anchor, footer_1);
251
+ _$_.append(__anchor, footer);
252
252
  };
253
253
 
254
254
  _$_.if(node_9, (__render) => {
@@ -256,12 +256,12 @@ export function DeepNestingThenIf() {
256
256
  });
257
257
  }
258
258
 
259
- _$_.pop(section_2);
259
+ _$_.pop(section_1);
260
260
  }
261
261
 
262
- var button_2 = _$_.sibling(section_2);
262
+ var button_1 = _$_.sibling(section_1);
263
263
 
264
- button_2.__click = () => _$_.set(lazy_4, !lazy_4.value);
264
+ button_1.__click = () => _$_.set(lazy_4, !lazy_4.value);
265
265
  _$_.next();
266
266
  _$_.append(__anchor, fragment_5, true);
267
267
  }));
@@ -273,39 +273,39 @@ export function DeepNestingThenIf() {
273
273
  export function DomElementChildrenThenSibling() {
274
274
  return _$_.tsrx_element((__anchor, __block) => {
275
275
  let lazy_5 = _$_.track('code', __block, '33a1e97f');
276
- var div_13 = root_15();
276
+ var div_12 = root_15();
277
277
 
278
278
  {
279
- var div_14 = _$_.child(div_13);
279
+ var div_13 = _$_.child(div_12);
280
280
 
281
281
  {
282
- var button_3 = _$_.child(div_14);
282
+ var button_2 = _$_.child(div_13);
283
283
 
284
- button_3.__click = () => _$_.set(lazy_5, 'code');
284
+ button_2.__click = () => _$_.set(lazy_5, 'code');
285
285
 
286
- var button_4 = _$_.sibling(button_3);
286
+ var button_3 = _$_.sibling(button_2);
287
287
 
288
- button_4.__click = () => _$_.set(lazy_5, 'preview');
288
+ button_3.__click = () => _$_.set(lazy_5, 'preview');
289
289
  }
290
290
 
291
- _$_.pop(div_14);
291
+ _$_.pop(div_13);
292
292
 
293
- var div_15 = _$_.sibling(div_14);
293
+ var div_14 = _$_.sibling(div_13);
294
294
 
295
295
  {
296
- var node_11 = _$_.child(div_15);
296
+ var node_11 = _$_.child(div_14);
297
297
 
298
298
  {
299
299
  var consequent_5 = (__anchor) => {
300
- var pre_1 = root_16();
300
+ var pre = root_16();
301
301
 
302
- _$_.append(__anchor, pre_1);
302
+ _$_.append(__anchor, pre);
303
303
  };
304
304
 
305
305
  var alternate = (__anchor) => {
306
- var div_16 = root_17();
306
+ var div_15 = root_17();
307
307
 
308
- _$_.append(__anchor, div_16);
308
+ _$_.append(__anchor, div_15);
309
309
  };
310
310
 
311
311
  _$_.if(node_11, (__render) => {
@@ -313,7 +313,7 @@ export function DomElementChildrenThenSibling() {
313
313
  });
314
314
  }
315
315
 
316
- _$_.pop(div_15);
316
+ _$_.pop(div_14);
317
317
  }
318
318
  }
319
319
 
@@ -322,19 +322,19 @@ export function DomElementChildrenThenSibling() {
322
322
  var __a = lazy_5.value === 'code' ? 'true' : 'false';
323
323
 
324
324
  if (__prev.a !== __a) {
325
- _$_.set_attribute(button_3, 'aria-selected', __prev.a = __a);
325
+ _$_.set_attribute(button_2, 'aria-selected', __prev.a = __a);
326
326
  }
327
327
 
328
328
  var __b = lazy_5.value === 'preview' ? 'true' : 'false';
329
329
 
330
330
  if (__prev.b !== __b) {
331
- _$_.set_attribute(button_4, 'aria-selected', __prev.b = __b);
331
+ _$_.set_attribute(button_3, 'aria-selected', __prev.b = __b);
332
332
  }
333
333
  },
334
334
  { a: void 0, b: void 0 }
335
335
  );
336
336
 
337
- _$_.append(__anchor, div_13);
337
+ _$_.append(__anchor, div_12);
338
338
  });
339
339
  }
340
340
 
@@ -346,29 +346,29 @@ export function DomChildrenThenStaticSiblings() {
346
346
 
347
347
  _$_.expression(node_12, () => _$_.tsrx_element((__anchor, __block) => {
348
348
  var fragment_7 = root_19();
349
- var div_17 = _$_.first_child_frag(fragment_7);
349
+ var div_16 = _$_.first_child_frag(fragment_7);
350
350
 
351
351
  {
352
- var ul_1 = _$_.child(div_17);
352
+ var ul = _$_.child(div_16);
353
353
 
354
354
  {
355
- var li_1 = _$_.child(ul_1);
355
+ var li = _$_.child(ul);
356
356
 
357
357
  {
358
- var expression_3 = _$_.child(li_1, true);
358
+ var expression_3 = _$_.child(li, true);
359
359
 
360
- _$_.pop(li_1);
360
+ _$_.pop(li);
361
361
  }
362
362
  }
363
363
 
364
- _$_.pop(ul_1);
364
+ _$_.pop(ul);
365
365
  }
366
366
 
367
- _$_.pop(div_17);
367
+ _$_.pop(div_16);
368
368
 
369
- var button_5 = _$_.sibling(div_17);
369
+ var button_4 = _$_.sibling(div_16);
370
370
 
371
- button_5.__click = () => _$_.update(lazy_6);
371
+ button_4.__click = () => _$_.update(lazy_6);
372
372
  _$_.next();
373
373
 
374
374
  _$_.render(() => {
@@ -384,25 +384,25 @@ export function DomChildrenThenStaticSiblings() {
384
384
 
385
385
  export function StaticListThenStaticSiblings() {
386
386
  return _$_.tsrx_element((__anchor, __block) => {
387
- var div_18 = root_20();
387
+ var div_17 = root_20();
388
388
 
389
389
  {
390
- var ul_2 = _$_.child(div_18);
390
+ var ul_1 = _$_.child(div_17);
391
391
 
392
392
  {
393
- var li_2 = _$_.child(ul_2);
393
+ var li_1 = _$_.child(ul_1);
394
394
 
395
- _$_.pop(li_2);
395
+ _$_.pop(li_1);
396
396
 
397
- var li_3 = _$_.sibling(li_2);
397
+ var li_2 = _$_.sibling(li_1);
398
398
 
399
- _$_.pop(li_3);
399
+ _$_.pop(li_2);
400
400
  }
401
401
 
402
- _$_.pop(ul_2);
402
+ _$_.pop(ul_1);
403
403
  }
404
404
 
405
- _$_.append(__anchor, div_18);
405
+ _$_.append(__anchor, div_17);
406
406
  });
407
407
  }
408
408