purgetss 3.1.2 → 3.1.3
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.
- package/README.md +83 -51
- package/assets/images/icon-fonts-bootstrap-grid.png +0 -0
- package/bin/purgetss +4 -4
- package/dist/bootstrapicons.tss +2 -1
- package/dist/tailwind.tss +14 -10
- package/docs/whats-new/v2.5.0.md +57 -37
- package/docs/whats-new/v2.5.3.md +2 -1
- package/docs/whats-new/v2.5.5.md +20 -9
- package/docs/whats-new/v2.6.0.md +62 -43
- package/docs/whats-new/v3.0.3.md +2 -1
- package/docs/whats-new/v3.0.4.md +35 -0
- package/docs/whats-new/v3.1.0.md +30 -0
- package/docs/whats-new/v3.1.2.md +73 -0
- package/index.js +27 -10
- package/lib/build-fonts-folder.js +1 -0
- package/lib/helpers.js +30 -7
- package/lib/templates/bootstrap-icons/reset.tss +2 -1
- package/package.json +1 -1
- package/assets/images/icon-fonts-tabler.png +0 -0
package/README.md
CHANGED
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
- Provides more than 8400 [Tailwind-like utility classes](https://tailwindcss.com/) ready to use in your projects.
|
|
23
23
|
- Creates a clean `app.tss` file with only the classes used in your project by parsing all your XML files.
|
|
24
24
|
- You can customize any of the default classes through a simple configuration file, or you can create new *just-in-time* classes with arbitrary values within the `Views`.
|
|
25
|
-
- You can easily use Font Awesome, Material Design, Lineicons, Boxicons, Tabler Icons
|
|
25
|
+
- You can easily use Font Awesome, Material Design, Lineicons, Boxicons, Tabler Icons, Framework7-Icons and Bootstrap Icons fonts in `Buttons` and `Labels`.
|
|
26
26
|
- Includes an Animation module to apply a 2D Matrix animation or transformation to any element or to an `Array` of elements.
|
|
27
27
|
- Includes a simple two-dimensional Grid System to align and distribute elements in your views.
|
|
28
28
|
|
|
29
29
|
## List of available classes
|
|
30
30
|
- [tailwind.tss](https://github.com/macCesar/purgeTSS/blob/master/dist/tailwind.tss)
|
|
31
|
+
- [bootstrapicons.tss](https://github.com/macCesar/purgeTSS/blob/master/dist/bootstrapicons.tss)
|
|
31
32
|
- [boxicons.tss](https://github.com/macCesar/purgeTSS/blob/master/dist/boxicons.tss)
|
|
32
33
|
- [fontawesome.tss](https://github.com/macCesar/purgeTSS/blob/master/dist/fontawesome.tss)
|
|
33
34
|
- [framework7icons.tss](https://github.com/macCesar/purgeTSS/blob/master/dist/framework7icons.tss)
|
|
@@ -270,10 +271,10 @@ Use **`purgetss module`** command to install the `purgetss.ui.js` module in your
|
|
|
270
271
|
If you want to create a new Alloy Project with `purgetss` ready to go, use the `create` command.
|
|
271
272
|
|
|
272
273
|
```bash
|
|
273
|
-
> purgetss create 'Name of the Project' [--vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons"]
|
|
274
|
+
> purgetss create 'Name of the Project' [--vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons, bootstrapicons"]
|
|
274
275
|
|
|
275
276
|
# alias:
|
|
276
|
-
> purgetss c 'Name of the Project' [-v=fa,md,li,bx,f7,ti]
|
|
277
|
+
> purgetss c 'Name of the Project' [-v=fa,md,li,bx,f7,ti,bi]
|
|
277
278
|
```
|
|
278
279
|
|
|
279
280
|
You need to have `app.idprefix` and `app.idprefix` already configured in `ti config`.
|
|
@@ -300,7 +301,7 @@ When you run `purgetss create 'Name of the Project'` it will execute the followi
|
|
|
300
301
|
- **`alloy new`** To convert it to an Alloy Project.
|
|
301
302
|
- **`purgetss w`** To autorun `purgetss` every time you compile your project.
|
|
302
303
|
- **`purgetss b`** To build a new `./purgetss/tailwind.tss` and `./purgetss/config.js` files.
|
|
303
|
-
- **`[-v=fa,md,li,bx,f7,ti]`** Set the `--vendor` argument to copy the selected fonts into your project. Including the CommonJS module into `./app/lib/` folder.
|
|
304
|
+
- **`[-v=fa,md,li,bx,f7,ti,bi]`** Set the `--vendor` argument to copy the selected fonts into your project. Including the CommonJS module into `./app/lib/` folder.
|
|
304
305
|
- **`code .`**, **`subl .`** or **`open .`** It will use either one of these commands to open `VS Code`, `Sublime Text` or the project’s folder in that order.
|
|
305
306
|
|
|
306
307
|
## fonts
|
|
@@ -311,8 +312,10 @@ When you run `purgetss create 'Name of the Project'` it will execute the followi
|
|
|
311
312
|
> purgetss f
|
|
312
313
|
```
|
|
313
314
|
|
|
314
|
-
Use this command to copy the free versions of [Boxicons](https://boxicons.com), [Font Awesome](https://github.com/FortAwesome/Font-Awesome/tree/master/js-packages/%40fortawesome/fontawesome-free/webfonts), [Framework7 Icons](https://framework7.io/icons/), [LineIcons](https://lineicons.com/icons/?type=free), [Material Design Icons](https://github.com/google/material-design-icons)
|
|
315
|
+
Use this command to copy the free versions of [Boxicons](https://boxicons.com), [Font Awesome](https://github.com/FortAwesome/Font-Awesome/tree/master/js-packages/%40fortawesome/fontawesome-free/webfonts), [Framework7 Icons](https://framework7.io/icons/), [LineIcons](https://lineicons.com/icons/?type=free), [Material Design Icons](https://github.com/google/material-design-icons), [Tabler Icons](https://tabler-icons.io) and [Bootstrap Icons](https://icons.getbootstrap.com) Fonts into your `app/assets/fonts` folder. With their names fixed to work in iOS or Android.
|
|
315
316
|
|
|
317
|
+
> bootstrap-icons.ttf
|
|
318
|
+
>
|
|
316
319
|
> boxicons.ttf
|
|
317
320
|
>
|
|
318
321
|
> FontAwesome5Brands-Regular.ttf
|
|
@@ -351,38 +354,58 @@ After copying the desired fonts, you can use them in Buttons and Labels, just se
|
|
|
351
354
|
```xml
|
|
352
355
|
<Alloy>
|
|
353
356
|
<Window>
|
|
354
|
-
<
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
357
|
+
<ScrollView>
|
|
358
|
+
<View class="grid">
|
|
359
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
360
|
+
<!-- FontAwesome -->
|
|
361
|
+
<Label class="mt-2 text-gray-700" text="FontAwesome" />
|
|
362
|
+
<Label class="text-xl text-blue-500 fa fa-home" />
|
|
363
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded fa fa-home" />
|
|
364
|
+
</View>
|
|
365
|
+
|
|
366
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
367
|
+
<!-- Material Design -->
|
|
368
|
+
<Label class="mt-2 text-gray-700" text="Material Design" />
|
|
369
|
+
<Label class="text-xl text-blue-500 md md-home" />
|
|
370
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded md md-home" />
|
|
371
|
+
</View>
|
|
372
|
+
|
|
373
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
374
|
+
<!-- LineIcons -->
|
|
375
|
+
<Label class="mt-2 text-gray-700" text="LineIcons" />
|
|
376
|
+
<Label class="text-xl text-blue-500 lni lni-delivery" />
|
|
377
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded lni lni-delivery" />
|
|
378
|
+
</View>
|
|
379
|
+
|
|
380
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
381
|
+
<!-- Boxicons -->
|
|
382
|
+
<Label class="mt-2 text-gray-700" text="Boxicons" />
|
|
383
|
+
<Label class="text-xl text-blue-500 bx bx-home" />
|
|
384
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded bx bx-home" />
|
|
385
|
+
</View>
|
|
386
|
+
|
|
387
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
388
|
+
<!-- Framework7-Icons -->
|
|
389
|
+
<Label class="mt-2 text-gray-700" text="Framework7-Icons" />
|
|
390
|
+
<Label class="text-xl text-blue-500 f7 f7-house" />
|
|
391
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded f7 f7-house" />
|
|
392
|
+
</View>
|
|
393
|
+
|
|
394
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
395
|
+
<!-- Tabler-Icons -->
|
|
396
|
+
<Label class="mt-2 text-gray-700" text="Tabler-Icons" />
|
|
397
|
+
<Label class="text-xl text-blue-500 ti ti-home" />
|
|
398
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded ti ti-home" />
|
|
399
|
+
</View>
|
|
400
|
+
|
|
401
|
+
<View class="grid-cols-2 mx-auto gap-y-2 vertical">
|
|
402
|
+
<!-- Bootstrap Icons -->
|
|
403
|
+
<Label class="mt-2 text-gray-700" text="Bootstrap Icons" />
|
|
404
|
+
<Label class="text-xl text-blue-500 bi bi-house-fill" />
|
|
405
|
+
<Button class="w-10 h-10 my-1 text-xl text-white bg-blue-500 rounded bi bi-house-fill" />
|
|
406
|
+
</View>
|
|
407
|
+
</View>
|
|
408
|
+
</ScrollView>
|
|
386
409
|
</Window>
|
|
387
410
|
</Alloy>
|
|
388
411
|
```
|
|
@@ -392,20 +415,23 @@ After copying the desired fonts, you can use them in Buttons and Labels, just se
|
|
|
392
415
|
// Created by César Estrada
|
|
393
416
|
// https://github.com/macCesar/purgeTSS
|
|
394
417
|
|
|
395
|
-
//
|
|
418
|
+
// Main styles
|
|
396
419
|
'View': { width: Ti.UI.SIZE, height: Ti.UI.SIZE }
|
|
397
420
|
'Window': { backgroundColor: '#ffffff' }
|
|
398
421
|
'.bg-blue-500': { backgroundColor: '#3b82f6' }
|
|
399
422
|
'.rounded': { borderRadius: 4 }
|
|
400
423
|
'.text-xl': { font: { fontSize: 20 } }
|
|
424
|
+
'.gap-y-2': { top: 8, bottom: 8 }
|
|
425
|
+
'.grid': { layout: 'horizontal' }
|
|
426
|
+
'.grid-cols-2': { width: '50%' }
|
|
401
427
|
'.h-10': { height: 40 }
|
|
402
|
-
'.keep-screen-on[platform=android]': { keepScreenOn: true }
|
|
403
428
|
'.vertical': { layout: 'vertical' }
|
|
404
429
|
'.my-1': { top: 4, bottom: 4 }
|
|
430
|
+
'.mx-auto': { right: null, left: null }
|
|
405
431
|
'.mt-2': { top: 8 }
|
|
406
432
|
'.text-white': { color: '#ffffff' }
|
|
433
|
+
'.text-gray-700': { color: '#374151' }
|
|
407
434
|
'.text-blue-500': { color: '#3b82f6' }
|
|
408
|
-
'.text-gray-700': { color: '#3f3f46' }
|
|
409
435
|
'.w-10': { width: 40 }
|
|
410
436
|
|
|
411
437
|
// Default Font Awesome styles
|
|
@@ -422,7 +448,7 @@ After copying the desired fonts, you can use them in Buttons and Labels, just se
|
|
|
422
448
|
|
|
423
449
|
// BoxIcons styles
|
|
424
450
|
'.bx': { font: { fontFamily: 'boxicons' } }
|
|
425
|
-
'.bx-home': { text: '\
|
|
451
|
+
'.bx-home': { text: '\ueb12', title: '\ueb12' }
|
|
426
452
|
|
|
427
453
|
// Framework7 styles
|
|
428
454
|
'.f7': { font: { fontFamily: 'Framework7-Icons' } }
|
|
@@ -431,27 +457,32 @@ After copying the desired fonts, you can use them in Buttons and Labels, just se
|
|
|
431
457
|
// Tabler Icons styles
|
|
432
458
|
'.ti': { font: { fontFamily: 'tabler-icons' } }
|
|
433
459
|
'.ti-home': { text: '\ueac1', title: '\ueac1' }
|
|
460
|
+
|
|
461
|
+
// Bootstrap Icons styles
|
|
462
|
+
'.bi': { font: { fontFamily: 'bootstrap-icons' } }
|
|
463
|
+
'.bi-house-fill': { text: '\uf424', title: '\uf424' }
|
|
434
464
|
```
|
|
435
465
|
|
|
436
466
|
## Result
|
|
437
|
-
<img src="https://raw.githubusercontent.com/macCesar/purgeTSS/master/assets/images/icon-fonts-
|
|
467
|
+
<img src="https://raw.githubusercontent.com/macCesar/purgeTSS/master/assets/images/icon-fonts-bootstrap-grid.png" width="375" alt="iOS Screen - Icon Fonts">
|
|
438
468
|
|
|
439
469
|
### Copying specific font vendors
|
|
440
470
|
Use any of the following arguments to copy specific vendors:
|
|
441
471
|
|
|
442
472
|
```bash
|
|
443
|
-
> purgetss fonts --vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons"
|
|
473
|
+
> purgetss fonts --vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons, bootstrapicons"
|
|
444
474
|
|
|
445
475
|
# alias:
|
|
446
|
-
> purgetss f -v=fa,md,li,bx,f7,ti
|
|
476
|
+
> purgetss f -v=fa,md,li,bx,f7,ti,bi
|
|
447
477
|
```
|
|
448
478
|
|
|
449
479
|
Available aliases:
|
|
480
|
+
- bi, bootstrap, bootstrapicons = Bootstrap Icons
|
|
450
481
|
- bx, box, boxicons = BoxIcons
|
|
451
|
-
-
|
|
482
|
+
- f7, framework, framework7 = Framework7 Icons
|
|
452
483
|
- fa, font, fontawesome = Font Awesome Icons
|
|
484
|
+
- li, line, lineicons = LineIcons
|
|
453
485
|
- md, material, materialdesign = Material Design Icons
|
|
454
|
-
- f7, framework, framework7 = Framework7 Icons
|
|
455
486
|
- ti, tablericons, tabler = Tabler Icons
|
|
456
487
|
|
|
457
488
|
### Copying corresponding CommonJS Modules
|
|
@@ -459,22 +490,23 @@ You can use the `--modules` flag to copy the corresponding CommonJS modules into
|
|
|
459
490
|
|
|
460
491
|
```bash
|
|
461
492
|
> purgetss fonts --modules
|
|
462
|
-
> purgetss fonts --modules --vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons"
|
|
493
|
+
> purgetss fonts --modules --vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons, bootstrapicons"
|
|
463
494
|
|
|
464
495
|
# alias:
|
|
465
496
|
> purgetss f -m
|
|
466
|
-
> purgetss f -m -v=fa,md,li,bx,f7,ti
|
|
497
|
+
> purgetss f -m -v=fa,md,li,bx,f7,ti,bi
|
|
467
498
|
```
|
|
468
499
|
|
|
469
|
-
Each library contains a CommonJS module exposing the UniCode strings for Font Awesome
|
|
500
|
+
Each library contains a CommonJS module exposing the UniCode strings for Font Awesome Icons, Material Design Icons, Line Icons, Boxicons, Framework7-Icons and Bootstrap Icons fonts.
|
|
470
501
|
|
|
471
502
|
All prefixes are stripped out from their class names and are camelCased, for example:
|
|
472
503
|
|
|
473
|
-
- **
|
|
504
|
+
- **Bootstrap Icons** `bi-alarm-fill` becomes `alarmFill` or `bi-clock-fill` becomes `clockFill`.
|
|
474
505
|
- **Font Awesome**: `fa-flag` becomes `flag`
|
|
506
|
+
- **Framework7 Icons** `f7-alarm_fill` becomes `alarmFill` or `f7-clock_fill` becomes `clockFill`.
|
|
507
|
+
- **Line Icons**: `lni-flag` becomes `flag`
|
|
475
508
|
- **Material Design Icons**: `md-flag` becomes `flag`
|
|
476
509
|
- **Tabler Icons** `ti-flag` becomes `flag` or `ti-cloud-download` becomes `cloudDownload`.
|
|
477
|
-
- **Framework7 Icons** `f7-alarm_fill` becomes `alarmFill` or `f7-clock_fill` becomes `clockFill`.
|
|
478
510
|
- **boxicons** have three sets of icons in the same font file: Regular, Solid and Logos, so we need to keep their prefixes:
|
|
479
511
|
|
|
480
512
|
- **Regular**: `bx-flag` becomes `bxFlag`
|
|
Binary file
|
package/bin/purgetss
CHANGED
|
@@ -36,7 +36,7 @@ program
|
|
|
36
36
|
.description('Creates a new Alloy Project with `purgetss` already configured.')
|
|
37
37
|
.help('Creates a new Alloy Project with `purgetss` already configured.')
|
|
38
38
|
.option('-t, --tailwind', 'To install Tailwind CSS in your project to work with `Tailwind CSS Intellisense`.')
|
|
39
|
-
.option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons')
|
|
39
|
+
.option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons\n bi = Bootstrap Icons')
|
|
40
40
|
.argument('<name>', 'The name of the project')
|
|
41
41
|
.action((args, options, logger) => {
|
|
42
42
|
purgetss.create(args, options);
|
|
@@ -64,9 +64,9 @@ program
|
|
|
64
64
|
program
|
|
65
65
|
.command('fonts')
|
|
66
66
|
.alias('f')
|
|
67
|
-
.description('Copy Font Awesome icons, Material Design Icons, LineIcons, Boxicons
|
|
68
|
-
.help('Command to copy the Free versions of:\n\n • Font Awesome Icons ( Brands, Regular, Solid )\n • Material Design Icons\n • LineIcons\n • Boxicons\n • Framework7 Icons\n • Tabler Icons\n\nInto your projects’s app/assets/fonts/ folder.\n\nWith their names fixed to work with your app whether it is for iOS or for Android.')
|
|
69
|
-
.option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons')
|
|
67
|
+
.description('Copy Font Awesome icons, Material Design Icons, LineIcons, Boxicons, Framework7-Icons and Bootstrap Icons Font files into your project.')
|
|
68
|
+
.help('Command to copy the Free versions of:\n\n • Font Awesome Icons ( Brands, Regular, Solid )\n • Material Design Icons\n • LineIcons\n • Boxicons\n • Framework7 Icons\n • Tabler Icons\n • Bootstrap Icons\n\nInto your projects’s app/assets/fonts/ folder.\n\nWith their names fixed to work with your app whether it is for iOS or for Android.')
|
|
69
|
+
.option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons\n bi = Bootstrap Icons')
|
|
70
70
|
.option('-m, --modules', 'Use the `--modules` option to also copy the corresponding CommonJS module into `./app/lib/` folder.')
|
|
71
71
|
.action((args, options, logger) => {
|
|
72
72
|
purgetss.copyFonts(options);
|
package/dist/bootstrapicons.tss
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
// Font Families
|
|
5
5
|
'.bi': { font: { fontFamily: 'bootstrap-icons' } }
|
|
6
6
|
'.bootstrap': { font: { fontFamily: 'bootstrap-icons' } }
|
|
7
|
+
'.bootstrapicons': { font: { fontFamily: 'bootstrap-icons' } }
|
|
7
8
|
|
|
8
9
|
// Font Icons
|
|
9
|
-
// To use
|
|
10
|
+
// To use Bootstrap Icons in Buttons AND Labels each class sets 'text' and 'title' properties
|
|
10
11
|
'.bi-123': { text: '\uf67f', title: '\uf67f' }
|
|
11
12
|
'.bi-alarm-fill': { text: '\uf101', title: '\uf101' }
|
|
12
13
|
'.bi-alarm': { text: '\uf102', title: '\uf102' }
|
package/dist/tailwind.tss
CHANGED
|
@@ -615,6 +615,7 @@
|
|
|
615
615
|
// Component(s): Ti.UI.Animation
|
|
616
616
|
// Property(ies): autoreverse
|
|
617
617
|
'.autoreverse': { autoreverse: true }
|
|
618
|
+
'.no-autoreverse': { autoreverse: false }
|
|
618
619
|
|
|
619
620
|
// Component(s): Ti.UI.MaskedImage
|
|
620
621
|
// Property(ies): mode ( Background Blend Mode )
|
|
@@ -4130,22 +4131,22 @@
|
|
|
4130
4131
|
// Component(s): Ti.UI.Window
|
|
4131
4132
|
// Property(ies): hidesBackButton
|
|
4132
4133
|
'.hides-back-button': { hidesBackButton: true }
|
|
4133
|
-
'.
|
|
4134
|
+
'.show-back-button': { hidesBackButton: false }
|
|
4134
4135
|
|
|
4135
4136
|
// Component(s): Ti.UI.Window
|
|
4136
4137
|
// Property(ies): hidesBarsOnSwipe - iOS Only
|
|
4137
4138
|
'.hides-bars-on-swipe[platform=ios]': { hidesBarsOnSwipe: true }
|
|
4138
|
-
'.
|
|
4139
|
+
'.show-bars-on-swipe[platform=ios]': { hidesBarsOnSwipe: false }
|
|
4139
4140
|
|
|
4140
4141
|
// Component(s): Ti.UI.Window
|
|
4141
4142
|
// Property(ies): hidesBarsOnTap - iOS Only
|
|
4142
4143
|
'.hides-bars-on-tap[platform=ios]': { hidesBarsOnTap: true }
|
|
4143
|
-
'.
|
|
4144
|
+
'.show-bars-on-tap[platform=ios]': { hidesBarsOnTap: false }
|
|
4144
4145
|
|
|
4145
4146
|
// Component(s): Ti.UI.Window
|
|
4146
4147
|
// Property(ies): hidesBarsWhenKeyboardAppears - iOS Only
|
|
4147
4148
|
'.hides-bars-when-keyboard-appears[platform=ios]': { hidesBarsWhenKeyboardAppears: true }
|
|
4148
|
-
'.
|
|
4149
|
+
'.show-bars-when-keyboard-appears[platform=ios]': { hidesBarsWhenKeyboardAppears: false }
|
|
4149
4150
|
|
|
4150
4151
|
// Component(s): Ti.UI.Window
|
|
4151
4152
|
// Property(ies): hideShadow - iOS Only
|
|
@@ -4155,7 +4156,7 @@
|
|
|
4155
4156
|
// Component(s): Ti.UI.Window
|
|
4156
4157
|
// Property(ies): hidesSearchBarWhenScrolling - iOS Only
|
|
4157
4158
|
'.hides-search-bar-when-scrolling[platform=ios]': { hidesSearchBarWhenScrolling: true }
|
|
4158
|
-
'.
|
|
4159
|
+
'.show-search-bar-when-scrolling[platform=ios]': { hidesSearchBarWhenScrolling: false }
|
|
4159
4160
|
|
|
4160
4161
|
// Component(s): Ti.UI.Window
|
|
4161
4162
|
// Property(ies): homeIndicatorAutoHidden - iOS Only
|
|
@@ -5684,6 +5685,7 @@
|
|
|
5684
5685
|
// Component(s): Ti.UI.ScrollableView
|
|
5685
5686
|
// Property(ies): overlayEnabled
|
|
5686
5687
|
'.overlay-enabled[platform=ios]': { overlayEnabled: true }
|
|
5688
|
+
'.overlay-disabled[platform=ios]': { overlayEnabled: false }
|
|
5687
5689
|
|
|
5688
5690
|
// Component(s): Ti.UI.Android.CardView, Ti.UI.TextArea, Ti.UI.TextField
|
|
5689
5691
|
// Property(ies): padding
|
|
@@ -6351,6 +6353,7 @@
|
|
|
6351
6353
|
// Component(s): Ti.UI.ScrollableView
|
|
6352
6354
|
// Property(ies): showPagingControl
|
|
6353
6355
|
'.show-paging-control': { showPagingControl: true }
|
|
6356
|
+
'.hide-paging-control': { showPagingControl: false }
|
|
6354
6357
|
|
|
6355
6358
|
// Component(s): Ti.UI.ScrollableView
|
|
6356
6359
|
// Property(ies): pagingControlAlpha
|
|
@@ -7281,6 +7284,7 @@
|
|
|
7281
7284
|
// Component(s): Ti.UI.SearchBar
|
|
7282
7285
|
// Property(ies): showCancel
|
|
7283
7286
|
'.show-cancel': { showCancel: true }
|
|
7287
|
+
'.hide-cancel': { showCancel: false }
|
|
7284
7288
|
|
|
7285
7289
|
// Component(s): Ti.UI.TabGroup
|
|
7286
7290
|
// Property(ies): smoothScrollOnTabClick
|
|
@@ -8005,11 +8009,11 @@
|
|
|
8005
8009
|
// Ti.Media
|
|
8006
8010
|
// Component(s): Ti.Media
|
|
8007
8011
|
// Property(ies): audioSessionCategory - iOS Only
|
|
8008
|
-
'.audio-
|
|
8009
|
-
'.audio-
|
|
8010
|
-
'.audio-
|
|
8011
|
-
'.audio-
|
|
8012
|
-
'.audio-
|
|
8012
|
+
'.audio-session-record[platform=ios]': { audioSessionCategory: Ti.Media.AUDIO_SESSION_CATEGORY_RECORD }
|
|
8013
|
+
'.audio-session-ambient[platform=ios]': { audioSessionCategory: Ti.Media.AUDIO_SESSION_CATEGORY_AMBIENT }
|
|
8014
|
+
'.audio-session-playback[platform=ios]': { audioSessionCategory: Ti.Media.AUDIO_SESSION_CATEGORY_PLAYBACK }
|
|
8015
|
+
'.audio-session-solo-ambient[platform=ios]': { audioSessionCategory: Ti.Media.AUDIO_SESSION_CATEGORY_SOLO_AMBIENT }
|
|
8016
|
+
'.audio-session-play-record[platform=ios]': { audioSessionCategory: Ti.Media.AUDIO_SESSION_CATEGORY_PLAY_AND_RECORD }
|
|
8013
8017
|
|
|
8014
8018
|
// Component(s): Ti.Media.AudioPlayer[android], Ti.Media.Sound[android]
|
|
8015
8019
|
// Property(ies): audioType
|
package/docs/whats-new/v2.5.0.md
CHANGED
|
@@ -322,7 +322,8 @@ Point to rotate around, specified as a dictionary object with x and y properties
|
|
|
322
322
|
**Default:** `(0.5, 0.5)`
|
|
323
323
|
|
|
324
324
|
```css
|
|
325
|
-
//
|
|
325
|
+
// Component(s): Ti.UI.Animation, Ti.UI.View
|
|
326
|
+
// Property(ies): anchorPoint
|
|
326
327
|
'.origin-center': { anchorPoint: { x: 0.5, y: 0.5 } }
|
|
327
328
|
'.origin-top': { anchorPoint: { x: 0.5, y: 0 } }
|
|
328
329
|
'.origin-top-right': { anchorPoint: { x: 1, y: 0 } }
|
|
@@ -340,7 +341,8 @@ Specifies if the animation should be replayed in reverse upon completion.
|
|
|
340
341
|
**Default:** `false`
|
|
341
342
|
|
|
342
343
|
```css
|
|
343
|
-
//
|
|
344
|
+
// Component(s): Ti.UI.Animation
|
|
345
|
+
// Property(ies): autoreverse
|
|
344
346
|
'.autoreverse': { autoreverse: true }
|
|
345
347
|
'.no-autoreverse': { autoreverse: false }
|
|
346
348
|
```
|
|
@@ -351,7 +353,8 @@ Animation curve or easing function to apply to the animation.
|
|
|
351
353
|
This API can be assigned the following constants:
|
|
352
354
|
|
|
353
355
|
```css
|
|
354
|
-
//
|
|
356
|
+
// Component(s): Ti.UI.Animation
|
|
357
|
+
// Property(ies): curve
|
|
355
358
|
'.ease-in': { curve: Ti.UI.ANIMATION_CURVE_EASE_IN }
|
|
356
359
|
'.ease-out': { curve: Ti.UI.ANIMATION_CURVE_EASE_OUT }
|
|
357
360
|
'.ease-linear': { curve: Ti.UI.ANIMATION_CURVE_LINEAR }
|
|
@@ -362,7 +365,8 @@ This API can be assigned the following constants:
|
|
|
362
365
|
Delay, in milliseconds before starting the animation
|
|
363
366
|
|
|
364
367
|
```css
|
|
365
|
-
//
|
|
368
|
+
// Component(s): Ti.UI.Animation
|
|
369
|
+
// Property(ies): delay
|
|
366
370
|
'.delay-0': { delay: 0 }
|
|
367
371
|
'.delay-25': { delay: 25 }
|
|
368
372
|
'.delay-50': { delay: 50 }
|
|
@@ -384,8 +388,8 @@ Delay, in milliseconds before starting the animation
|
|
|
384
388
|
Duration of the animation, in milliseconds.
|
|
385
389
|
|
|
386
390
|
```css
|
|
387
|
-
//
|
|
388
|
-
|
|
391
|
+
// Component(s): Ti.UI.Animation
|
|
392
|
+
// Property(ies): duration
|
|
389
393
|
'.duration-0': { duration: 0 }
|
|
390
394
|
'.duration-25': { duration: 25 }
|
|
391
395
|
'.duration-50': { duration: 50 }
|
|
@@ -397,6 +401,7 @@ Duration of the animation, in milliseconds.
|
|
|
397
401
|
'.duration-500': { duration: 500 }
|
|
398
402
|
'.duration-700': { duration: 700 }
|
|
399
403
|
'.duration-1000': { duration: 1000 }
|
|
404
|
+
'.duration': { duration: 150 }
|
|
400
405
|
```
|
|
401
406
|
#### repeat
|
|
402
407
|
Number of times the animation should be performed.
|
|
@@ -404,7 +409,8 @@ Number of times the animation should be performed.
|
|
|
404
409
|
If `autoreverse` is true, then one repeat of the animation consists of the animation being played once forward, and once backward.
|
|
405
410
|
|
|
406
411
|
```css
|
|
407
|
-
//
|
|
412
|
+
// Component(s): Ti.UI.Animation
|
|
413
|
+
// Property(ies): repeat
|
|
408
414
|
'.repeat-1': { repeat: 1 }
|
|
409
415
|
'.repeat-2': { repeat: 2 }
|
|
410
416
|
'.repeat-3': { repeat: 3 }
|
|
@@ -425,7 +431,8 @@ Rotation angle, in degrees. See the rotate method for a discussion of rotation.
|
|
|
425
431
|
**Default:** `No rotation.`
|
|
426
432
|
|
|
427
433
|
```css
|
|
428
|
-
//
|
|
434
|
+
// Component(s): For the Animation Component
|
|
435
|
+
// Property(ies): rotate
|
|
429
436
|
'.rotate-0': { rotate: 0 }
|
|
430
437
|
'.rotate-1': { rotate: 1 }
|
|
431
438
|
'.rotate-2': { rotate: 2 }
|
|
@@ -435,14 +442,6 @@ Rotation angle, in degrees. See the rotate method for a discussion of rotation.
|
|
|
435
442
|
'.rotate-45': { rotate: 45 }
|
|
436
443
|
'.rotate-90': { rotate: 90 }
|
|
437
444
|
'.rotate-180': { rotate: 180 }
|
|
438
|
-
'.-rotate-180': { rotate: -180 }
|
|
439
|
-
'.-rotate-90': { rotate: -90 }
|
|
440
|
-
'.-rotate-45': { rotate: -45 }
|
|
441
|
-
'.-rotate-12': { rotate: -12 }
|
|
442
|
-
'.-rotate-6': { rotate: -6 }
|
|
443
|
-
'.-rotate-3': { rotate: -3 }
|
|
444
|
-
'.-rotate-2': { rotate: -2 }
|
|
445
|
-
'.-rotate-1': { rotate: -1 }
|
|
446
445
|
```
|
|
447
446
|
|
|
448
447
|
#### scale
|
|
@@ -451,8 +450,12 @@ Scale the matrix by the specified scaling factor. The same scaling factor is use
|
|
|
451
450
|
**Default:** `1`
|
|
452
451
|
|
|
453
452
|
```css
|
|
454
|
-
//
|
|
453
|
+
// Component(s): Ti.UI.ScrollView
|
|
454
|
+
// Property(ies): scale
|
|
455
455
|
'.scale-0': { scale: '0' }
|
|
456
|
+
'.scale-5': { scale: '.05' }
|
|
457
|
+
'.scale-10': { scale: '.10' }
|
|
458
|
+
'.scale-25': { scale: '.25' }
|
|
456
459
|
'.scale-50': { scale: '.5' }
|
|
457
460
|
'.scale-75': { scale: '.75' }
|
|
458
461
|
'.scale-90': { scale: '.9' }
|
|
@@ -487,7 +490,8 @@ The clipMode property lets the user control the clipping behavior of the View. S
|
|
|
487
490
|
- If none of the conditions are met, clipping is disabled.
|
|
488
491
|
|
|
489
492
|
```css
|
|
490
|
-
//
|
|
493
|
+
// Component(s): Ti.UI.View
|
|
494
|
+
// Property(ies): clipMode - iOS Only
|
|
491
495
|
'.clip-enabled[platform=ios]': { clipMode: Ti.UI.iOS.CLIP_MODE_ENABLED }
|
|
492
496
|
'.clip-disabled[platform=ios]': { clipMode: Ti.UI.iOS.CLIP_MODE_DISABLED }
|
|
493
497
|
```
|
|
@@ -498,10 +502,13 @@ Color for the current page of the paging control, as a color name or hex triplet
|
|
|
498
502
|
**Default:** `undefined (system-default white)`
|
|
499
503
|
|
|
500
504
|
```css
|
|
501
|
-
//
|
|
505
|
+
// Component(s): Ti.UI.ScrollableView
|
|
506
|
+
// Property(ies): currentPageIndicatorColor
|
|
502
507
|
'.current-page-transparent': { currentPageIndicatorColor: 'transparent' }
|
|
503
508
|
'.current-page-black': { currentPageIndicatorColor: '#000000' }
|
|
504
509
|
'.current-page-white': { currentPageIndicatorColor: '#ffffff' }
|
|
510
|
+
'.current-page-slate-50': { currentPageIndicatorColor: '#f8fafc' }
|
|
511
|
+
'.current-page-slate-100': { currentPageIndicatorColor: '#f1f5f9' }
|
|
505
512
|
// ...
|
|
506
513
|
// The rest of available colors
|
|
507
514
|
```
|
|
@@ -512,9 +519,10 @@ Determines whether page bouncing effect is disabled.
|
|
|
512
519
|
**Default**: `false`
|
|
513
520
|
|
|
514
521
|
```css
|
|
515
|
-
//
|
|
516
|
-
|
|
522
|
+
// Component(s): Ti.UI.ListView, Ti.UI.ScrollableView, Ti.UI.ScrollView, Ti.UI.WebView
|
|
523
|
+
// Property(ies): disableBounce
|
|
517
524
|
'.disable-bounce': { disableBounce: true }
|
|
525
|
+
'.enable-bounce': { disableBounce: false }
|
|
518
526
|
```
|
|
519
527
|
|
|
520
528
|
### overlayEnabled
|
|
@@ -525,9 +533,10 @@ If this property is set to true, the view takes up the entire height available i
|
|
|
525
533
|
**Default**: `false`
|
|
526
534
|
|
|
527
535
|
```css
|
|
528
|
-
//
|
|
529
|
-
|
|
530
|
-
'.overlay-
|
|
536
|
+
// Component(s): Ti.UI.ScrollableView
|
|
537
|
+
// Property(ies): overlayEnabled
|
|
538
|
+
'.overlay-enabled[platform=ios]': { overlayEnabled: true }
|
|
539
|
+
'.overlay-disabled[platform=ios]': { overlayEnabled: false }
|
|
531
540
|
```
|
|
532
541
|
|
|
533
542
|
### pageIndicatorColor
|
|
@@ -536,10 +545,13 @@ Color for the current page of the paging control, as a color name or hex triplet
|
|
|
536
545
|
**Default:** `undefined (system-default white)`
|
|
537
546
|
|
|
538
547
|
```css
|
|
539
|
-
//
|
|
548
|
+
// Component(s): Ti.UI.ScrollableView
|
|
549
|
+
// Property(ies): pageIndicatorColor
|
|
540
550
|
'.page-transparent': { pageIndicatorColor: 'transparent' }
|
|
541
551
|
'.page-black': { pageIndicatorColor: '#000000' }
|
|
542
552
|
'.page-white': { pageIndicatorColor: '#ffffff' }
|
|
553
|
+
'.page-slate-50': { pageIndicatorColor: '#f8fafc' }
|
|
554
|
+
'.page-slate-100': { pageIndicatorColor: '#f1f5f9' }
|
|
543
555
|
// ...
|
|
544
556
|
// The rest of available colors
|
|
545
557
|
```
|
|
@@ -550,7 +562,8 @@ Alpha value of the paging control.
|
|
|
550
562
|
**Default**: `1`
|
|
551
563
|
|
|
552
564
|
```css
|
|
553
|
-
//
|
|
565
|
+
// Component(s): Ti.UI.ScrollableView
|
|
566
|
+
// Property(ies): pagingControlAlpha
|
|
554
567
|
'.paging-alpha-0': { pagingControlAlpha: 0 }
|
|
555
568
|
'.paging-alpha-5': { pagingControlAlpha: 0.05 }
|
|
556
569
|
'.paging-alpha-10': { pagingControlAlpha: 0.1 }
|
|
@@ -574,10 +587,13 @@ Color of the paging control, as a color name or hex triplet.
|
|
|
574
587
|
**Default:** `black`
|
|
575
588
|
|
|
576
589
|
```css
|
|
577
|
-
//
|
|
590
|
+
// Component(s): Ti.UI.ScrollableView
|
|
591
|
+
// Property(ies): pagingControlColor
|
|
578
592
|
'.paging-transparent': { pagingControlColor: 'transparent' }
|
|
579
593
|
'.paging-black': { pagingControlColor: '#000000' }
|
|
580
594
|
'.paging-white': { pagingControlColor: '#ffffff' }
|
|
595
|
+
'.paging-slate-50': { pagingControlColor: '#f8fafc' }
|
|
596
|
+
'.paging-slate-100': { pagingControlColor: '#f1f5f9' }
|
|
581
597
|
// ...
|
|
582
598
|
// The rest of available colors
|
|
583
599
|
```
|
|
@@ -588,7 +604,8 @@ Height of the paging control.
|
|
|
588
604
|
**Default:** `20`
|
|
589
605
|
|
|
590
606
|
```css
|
|
591
|
-
//
|
|
607
|
+
// Component(s): Ti.UI.ScrollableView
|
|
608
|
+
// Property(ies): pagingControlHeight
|
|
592
609
|
'.paging-h-0': { pagingControlHeight: 0 }
|
|
593
610
|
'.paging-h-1': { pagingControlHeight: 4 }
|
|
594
611
|
'.paging-h-2': { pagingControlHeight: 8 }
|
|
@@ -602,9 +619,7 @@ Height of the paging control.
|
|
|
602
619
|
'.paging-h-10': { pagingControlHeight: 40 }
|
|
603
620
|
'.paging-h-11': { pagingControlHeight: 44 }
|
|
604
621
|
'.paging-h-12': { pagingControlHeight: 48 }
|
|
605
|
-
'.paging-h-13': { pagingControlHeight: 52 }
|
|
606
622
|
'.paging-h-14': { pagingControlHeight: 56 }
|
|
607
|
-
'.paging-h-15': { pagingControlHeight: 60 }
|
|
608
623
|
'.paging-h-16': { pagingControlHeight: 64 }
|
|
609
624
|
'.paging-h-20': { pagingControlHeight: 80 }
|
|
610
625
|
'.paging-h-24': { pagingControlHeight: 96 }
|
|
@@ -636,7 +651,8 @@ Set to true for the paging control at the top.
|
|
|
636
651
|
**Default:** `false`
|
|
637
652
|
|
|
638
653
|
```css
|
|
639
|
-
//
|
|
654
|
+
// Component(s): Ti.UI.ScrollableView
|
|
655
|
+
// Property(ies): pagingControlOnTop
|
|
640
656
|
'.paging-control-on-top': { pagingControlOnTop: true }
|
|
641
657
|
'.paging-control-on-bottom': { pagingControlOnTop: false }
|
|
642
658
|
```
|
|
@@ -649,7 +665,8 @@ Set to less than or equal to 0 to disable timeout, to keep controls displayed.
|
|
|
649
665
|
**Default:** `3000`
|
|
650
666
|
|
|
651
667
|
```css
|
|
652
|
-
//
|
|
668
|
+
// Component(s): Ti.UI.ScrollableView
|
|
669
|
+
// Property(ies): pagingControlTimeout
|
|
653
670
|
'.paging-timeout-0': { pagingControlTimeout: 0 }
|
|
654
671
|
'.paging-timeout-25': { pagingControlTimeout: 25 }
|
|
655
672
|
'.paging-timeout-50': { pagingControlTimeout: 50 }
|
|
@@ -675,7 +692,8 @@ If this property is unset or true, scrolling is enabled.
|
|
|
675
692
|
**Default:** `undefined (scrolling enabled)`
|
|
676
693
|
|
|
677
694
|
```css
|
|
678
|
-
//
|
|
695
|
+
// Component(s): Ti.UI.ScrollableView, Ti.UI.ScrollView
|
|
696
|
+
// Property(ies): scrollingEnabled
|
|
679
697
|
'.scrolling-enabled': { scrollingEnabled: true }
|
|
680
698
|
'.scrolling-disabled': { scrollingEnabled: false }
|
|
681
699
|
```
|
|
@@ -688,9 +706,10 @@ Set to true to show paging control.
|
|
|
688
706
|
**Default:** `false`
|
|
689
707
|
|
|
690
708
|
```css
|
|
691
|
-
//
|
|
692
|
-
|
|
693
|
-
'.
|
|
709
|
+
// Component(s): Ti.UI.ScrollableView
|
|
710
|
+
// Property(ies): showPagingControl
|
|
711
|
+
'.show-paging-control': { showPagingControl: true }
|
|
712
|
+
'.hide-paging-control': { showPagingControl: false }
|
|
694
713
|
```
|
|
695
714
|
|
|
696
715
|
## Radial Gradients ( iOS only )
|
|
@@ -701,7 +720,8 @@ Use it in combination with `from-{color}` and `to-{color}` utilities.
|
|
|
701
720
|
Unfortunately this implementation do not work on Android, due to the lack of support for percentage values in `startRadius` and `endRadius` properties.
|
|
702
721
|
|
|
703
722
|
```css
|
|
704
|
-
//
|
|
723
|
+
// Component(s): Ti.UI.ListItem, Ti.UI.View
|
|
724
|
+
// Property(ies): backgroundGradient: type, startRadius, endRadius, backfillStart, backfillEnd
|
|
705
725
|
'.bg-radial[platform=ios]': { backgroundGradient: { type: 'radial', startRadius: '125%', endRadius: '0%', backfillStart: true, backfillEnd: true } }
|
|
706
726
|
'.bg-radial-to-b[platform=ios]': { backgroundGradient: { type: 'radial', startPoint: { x: '50%', y: '0%' }, endPoint: { x: '50%', y: '0%' }, startRadius: '150%', endRadius: '0%', backfillStart: true, backfillEnd: true } }
|
|
707
727
|
'.bg-radial-to-bl[platform=ios]': { backgroundGradient: { type: 'radial', startPoint: { x: '100%', y: '0%' }, endPoint: { x: '100%', y: '0%' }, startRadius: '150%', endRadius: '0%', backfillStart: true, backfillEnd: true } }
|
package/docs/whats-new/v2.5.3.md
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
## `zIndex` utilities
|
|
10
10
|
Utilities for controlling the stack order of an element.
|
|
11
11
|
```css
|
|
12
|
-
//
|
|
12
|
+
// Component(s): Ti.UI.Animation, Ti.UI.View
|
|
13
|
+
// Property(ies): zIndex
|
|
13
14
|
'.z-0': { zIndex: 0 }
|
|
14
15
|
'.z-10': { zIndex: 10 }
|
|
15
16
|
'.z-20': { zIndex: 20 }
|