purgetss 2.6.3 → 2.6.7

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.
@@ -30,28 +30,32 @@ if (!fs.existsSync('./dist')) {
30
30
  combinedSpacing = fixOneThirds(combinedSpacing);
31
31
 
32
32
  convertedStyles += helpers.resetStyles();
33
- convertedStyles += helpers.autoreverse();
34
- convertedStyles += helpers.backgroundColor(combinedColors);
35
- convertedStyles += helpers.barColor(combinedColors);
36
- convertedStyles += helpers.tabsBackgroundColor(combinedColors);
37
- convertedStyles += helpers.titleColor(combinedColors);
38
33
  convertedStyles += helpers.activeTintColor(combinedColors);
39
34
  convertedStyles += helpers.activeTitleColor(combinedColors);
40
- convertedStyles += helpers.linearGradient();
41
- convertedStyles += helpers.radialGradient();
35
+ convertedStyles += helpers.autocapitalization();
36
+ convertedStyles += helpers.autocorrect();
37
+ convertedStyles += helpers.autofillType();
38
+ convertedStyles += helpers.autoLink();
39
+ convertedStyles += helpers.autoreverse();
40
+ convertedStyles += helpers.backgroundColor(combinedColors);
42
41
  convertedStyles += helpers.backgroundSelectedColor(combinedColors);
42
+ convertedStyles += helpers.barColor(combinedColors);
43
43
  convertedStyles += helpers.borderColor(combinedColors);
44
44
  convertedStyles += helpers.borderRadiusExtraStyles({ ...combinedSpacing, ...defaultTheme.borderRadius });
45
+ convertedStyles += helpers.borderStyle();
45
46
  convertedStyles += helpers.borderWidth(defaultTheme.borderWidth);
46
47
  convertedStyles += helpers.bounce();
47
48
  convertedStyles += helpers.clipMode();
48
49
  convertedStyles += helpers.currentPageIndicatorColor(combinedColors);
49
- convertedStyles += helpers.preventDefaultImage();
50
- convertedStyles += helpers.tiMedia();
51
50
  convertedStyles += helpers.displayCaps();
52
51
  convertedStyles += helpers.displayUtilities();
53
52
  convertedStyles += helpers.draggingConstraints();
54
53
  convertedStyles += helpers.draggingType();
54
+ convertedStyles += helpers.editable();
55
+ convertedStyles += helpers.ellipsize();
56
+ convertedStyles += helpers.enableCopy();
57
+ convertedStyles += helpers.enableReturnKey();
58
+ convertedStyles += helpers.extendBackground();
55
59
  convertedStyles += helpers.exitOnClose();
56
60
  convertedStyles += helpers.flip();
57
61
  convertedStyles += helpers.fontSize(defaultTheme.fontSize);
@@ -67,20 +71,18 @@ if (!fs.existsSync('./dist')) {
67
71
  convertedStyles += helpers.interactivity();
68
72
  convertedStyles += helpers.items();
69
73
  convertedStyles += helpers.keepScreenOn();
74
+ convertedStyles += helpers.keyboardAppearance();
75
+ convertedStyles += helpers.keyboardType();
70
76
  convertedStyles += helpers.layout();
77
+ convertedStyles += helpers.linearGradient();
71
78
  convertedStyles += helpers.margin(combinedSpacing);
79
+ convertedStyles += helpers.navTintColor(combinedColors);
72
80
  convertedStyles += helpers.opacity(defaultTheme.opacity);
73
-
74
- // convertedStyles += helpers.openBackgroundColor(combinedColors);
75
- // convertedStyles += helpers.openBorderColor(combinedColors);
76
- // convertedStyles += helpers.openOpacity(defaultTheme.opacity);
77
- // convertedStyles += helpers.openSizingPosition(combinedSpacing);
78
-
79
81
  convertedStyles += helpers.origin();
80
82
  convertedStyles += helpers.overlay();
81
83
  convertedStyles += helpers.padding(combinedSpacing);
82
- convertedStyles += helpers.pageIndicatorColor(combinedColors);
83
84
 
85
+ convertedStyles += helpers.pageIndicatorColor(combinedColors);
84
86
  convertedStyles += helpers.pagingControl();
85
87
  convertedStyles += helpers.pagingControlAlpha(defaultTheme.opacity);
86
88
  convertedStyles += helpers.pagingControlColor(combinedColors);
@@ -90,21 +92,25 @@ if (!fs.existsSync('./dist')) {
90
92
 
91
93
  convertedStyles += helpers.placeholderColor(combinedColors);
92
94
  convertedStyles += helpers.placement();
95
+ convertedStyles += helpers.preventDefaultImage();
96
+
97
+ convertedStyles += helpers.radialGradient();
93
98
  convertedStyles += helpers.repeat();
99
+ convertedStyles += helpers.returnKeyType();
94
100
  convertedStyles += helpers.rotate(defaultTheme.rotate);
95
101
  convertedStyles += helpers.scale(defaultTheme.scale);
96
- convertedStyles += helpers.scrollIndicators();
97
- convertedStyles += helpers.scrollType();
98
102
  convertedStyles += helpers.scrollableRegion();
103
+ convertedStyles += helpers.scrollIndicators();
99
104
  convertedStyles += helpers.scrolling();
105
+ convertedStyles += helpers.scrollType();
100
106
  convertedStyles += helpers.shadow();
101
- convertedStyles += helpers.textAlign();
102
- convertedStyles += helpers.autocapitalization();
103
- convertedStyles += helpers.keyboardAppearance();
104
- convertedStyles += helpers.keyboardType();
105
107
  convertedStyles += helpers.showCancel();
108
+ convertedStyles += helpers.tabsBackgroundColor(combinedColors);
109
+ convertedStyles += helpers.textAlign();
106
110
  convertedStyles += helpers.textColor(combinedColors);
111
+ convertedStyles += helpers.tiMedia();
107
112
  convertedStyles += helpers.tintColor(combinedColors);
113
+ convertedStyles += helpers.titleColor(combinedColors);
108
114
  convertedStyles += helpers.touchFeedbackColor(combinedColors);
109
115
  convertedStyles += helpers.transition();
110
116
  convertedStyles += helpers.transitionDelay(defaultTheme.transitionDelay);
package/lib/helpers.js CHANGED
@@ -65,6 +65,11 @@ function backgroundColor(modifiersAndValues) {
65
65
  }
66
66
  exports.backgroundColor = backgroundColor;
67
67
 
68
+ function navTintColor(modifiersAndValues) {
69
+ return processModifiersAndProperties('navTintColor', { 'nav-tint': '{ navTintColor: {value} }' }, modifiersAndValues);
70
+ }
71
+ exports.navTintColor = navTintColor;
72
+
68
73
  function backgroundSelectedColor(modifiersAndValues) {
69
74
  return processModifiersAndProperties('backgroundSelectedColor', { 'bg-selected': '{ backgroundSelectedColor: {value} }' }, modifiersAndValues);
70
75
  }
@@ -631,6 +636,166 @@ function draggingConstraints() {
631
636
  }
632
637
  exports.draggingConstraints = draggingConstraints;
633
638
 
639
+ function autocorrect() {
640
+ let convertedStyles = '\n// autocorrect Property\n';
641
+
642
+ convertedStyles += `'.autocorrect': { autocorrect: true }\n`;
643
+ convertedStyles += `'.no-autocorrect': { autocorrect: false }\n`;
644
+
645
+ return convertedStyles;
646
+ }
647
+ exports.autocorrect = autocorrect;
648
+
649
+ function editable() {
650
+ let convertedStyles = '\n// editable Property\n';
651
+
652
+ convertedStyles += `'.editable': { editable: true }\n`;
653
+ convertedStyles += `'.none-editable': { editable: false }\n`;
654
+
655
+ return convertedStyles;
656
+ }
657
+ exports.editable = editable;
658
+
659
+ function ellipsize() {
660
+ let convertedStyles = '\n// ellipsize Property\n';
661
+
662
+ convertedStyles += `'.ellipsize': { ellipsize: true }\n`;
663
+ convertedStyles += `'.no-ellipsize': { ellipsize: false }\n`;
664
+
665
+ // for Labels
666
+ convertedStyles += '\n// ellipsize Property ( for Labels )\n';
667
+ convertedStyles += `'.ellipsize-end': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END }\n`;
668
+ convertedStyles += `'.ellipsize-clip': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_CLIP }\n`;
669
+ convertedStyles += `'.ellipsize-none': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_NONE }\n`;
670
+ convertedStyles += `'.ellipsize-start': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_START }\n`;
671
+ convertedStyles += `'.ellipsize-middle': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MIDDLE }\n`;
672
+ convertedStyles += `'.ellipsize-marquee': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MARQUEE }\n`;
673
+ convertedStyles += `'.ellipsize-char-wrap': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_CHAR_WRAP }\n`;
674
+ convertedStyles += `'.ellipsize-word-wrap': { ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_WORD_WRAP }\n`;
675
+
676
+ return convertedStyles;
677
+ }
678
+ exports.ellipsize = ellipsize;
679
+
680
+ function enableCopy() {
681
+ let convertedStyles = '\n// enableCopy Property\n';
682
+
683
+ convertedStyles += `'.enable-copy': { enableCopy: true }\n`;
684
+ convertedStyles += `'.disable-copy': { enableCopy: false }\n`;
685
+
686
+ return convertedStyles;
687
+ }
688
+ exports.enableCopy = enableCopy;
689
+
690
+ function enableReturnKey() {
691
+ let convertedStyles = '\n// enableReturnKey Property\n';
692
+
693
+ convertedStyles += `'.enable-return-key': { enableReturnKey: true }\n`;
694
+ convertedStyles += `'.disable-return-key': { enableReturnKey: false }\n`;
695
+
696
+ return convertedStyles;
697
+ }
698
+ exports.enableReturnKey = enableReturnKey;
699
+
700
+ function extendBackground() {
701
+ let convertedStyles = '\n// extendBackground Property\n';
702
+
703
+ convertedStyles += `'.extend-background': { extendBackground: true }\n`;
704
+ convertedStyles += `'.no-extend-background': { extendBackground: false }\n`;
705
+
706
+ return convertedStyles;
707
+ }
708
+ exports.extendBackground = extendBackground;
709
+
710
+ function autoLink() {
711
+ let convertedStyles = '\n// autoLink Property\n';
712
+
713
+ convertedStyles += `'.autolink-all': { autoLink: Ti.UI.AUTOLINK_ALL }\n`;
714
+ convertedStyles += `'.autolink-none': { autoLink: Ti.UI.AUTOLINK_NONE }\n`;
715
+ convertedStyles += `'.autolink-urls': { autoLink: Ti.UI.AUTOLINK_URLS }\n`;
716
+ convertedStyles += `'.autolink-calendar': { autoLink: Ti.UI.AUTOLINK_CALENDAR }\n`;
717
+ convertedStyles += `'.autolink-map-addresses': { autoLink: Ti.UI.AUTOLINK_MAP_ADDRESSES }\n`;
718
+ convertedStyles += `'.autolink-phone-numbers': { autoLink: Ti.UI.AUTOLINK_PHONE_NUMBERS }\n`;
719
+ convertedStyles += `'.autolink-email-addresses': { autoLink: Ti.UI.AUTOLINK_EMAIL_ADDRESSES }\n`;
720
+
721
+ return convertedStyles;
722
+ }
723
+ exports.autoLink = autoLink;
724
+
725
+ function borderStyle() {
726
+ let convertedStyles = '\n// borderStyle Property\n';
727
+
728
+ convertedStyles += `'.input-borderstyle-line[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_LINE }\n`;
729
+ convertedStyles += `'.input-borderstyle-none[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_NONE }\n`;
730
+ convertedStyles += `'.input-borderstyle-bezel[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_BEZEL }\n`;
731
+ convertedStyles += `'.input-borderstyle-filled[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_FILLED }\n`;
732
+ convertedStyles += `'.input-borderstyle-rounded[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED }\n`;
733
+ convertedStyles += `'.input-borderstyle-underlined[plarform=android]': { borderStyle: Ti.UI.INPUT_BORDERSTYLE_UNDERLINED }\n`;
734
+
735
+ return convertedStyles;
736
+ }
737
+ exports.borderStyle = borderStyle;
738
+
739
+ function autofillType() {
740
+ let convertedStyles = '\n// autofillType Property\n';
741
+
742
+ convertedStyles += `'.autofill-type-url': { autofillType: Ti.UI.AUTOFILL_TYPE_URL }\n`;
743
+ convertedStyles += `'.autofill-type-name': { autofillType: Ti.UI.AUTOFILL_TYPE_NAME }\n`;
744
+ convertedStyles += `'.autofill-type-phone': { autofillType: Ti.UI.AUTOFILL_TYPE_PHONE }\n`;
745
+ convertedStyles += `'.autofill-type-email': { autofillType: Ti.UI.AUTOFILL_TYPE_EMAIL }\n`;
746
+ convertedStyles += `'.autofill-type-address': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS }\n`;
747
+ convertedStyles += `'.autofill-type-username': { autofillType: Ti.UI.AUTOFILL_TYPE_USERNAME }\n`;
748
+ convertedStyles += `'.autofill-type-password': { autofillType: Ti.UI.AUTOFILL_TYPE_PASSWORD }\n`;
749
+ convertedStyles += `'.autofill-type-nickname': { autofillType: Ti.UI.AUTOFILL_TYPE_NICKNAME }\n`;
750
+ convertedStyles += `'.autofill-type-location': { autofillType: Ti.UI.AUTOFILL_TYPE_LOCATION }\n`;
751
+ convertedStyles += `'.autofill-type-job-title': { autofillType: Ti.UI.AUTOFILL_TYPE_JOB_TITLE }\n`;
752
+ convertedStyles += `'.autofill-type-given-name': { autofillType: Ti.UI.AUTOFILL_TYPE_GIVEN_NAME }\n`;
753
+ convertedStyles += `'.autofill-type-name-prefix': { autofillType: Ti.UI.AUTOFILL_TYPE_NAME_PREFIX }\n`;
754
+ convertedStyles += `'.autofill-type-middle-name': { autofillType: Ti.UI.AUTOFILL_TYPE_MIDDLE_NAME }\n`;
755
+ convertedStyles += `'.autofill-type-family-name': { autofillType: Ti.UI.AUTOFILL_TYPE_FAMILY_NAME }\n`;
756
+ convertedStyles += `'.autofill-type-name-suffix': { autofillType: Ti.UI.AUTOFILL_TYPE_NAME_SUFFIX }\n`;
757
+ convertedStyles += `'.autofill-type-sublocality': { autofillType: Ti.UI.AUTOFILL_TYPE_SUBLOCALITY }\n`;
758
+ convertedStyles += `'.autofill-type-postal-code': { autofillType: Ti.UI.AUTOFILL_TYPE_POSTAL_CODE }\n`;
759
+ convertedStyles += `'.autofill-type-card-number': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_NUMBER }\n`;
760
+ convertedStyles += `'.autofill-type-address-city': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS_CITY }\n`;
761
+ convertedStyles += `'.autofill-type-country-name': { autofillType: Ti.UI.AUTOFILL_TYPE_COUNTRY_NAME }\n`;
762
+ convertedStyles += `'.autofill-type-new-password': { autofillType: Ti.UI.AUTOFILL_TYPE_NEW_PASSWORD }\n`;
763
+ convertedStyles += `'.autofill-type-address-line1': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS_LINE1 }\n`;
764
+ convertedStyles += `'.autofill-type-address-line2': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS_LINE2 }\n`;
765
+ convertedStyles += `'.autofill-type-address-state': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS_STATE }\n`;
766
+ convertedStyles += `'.autofill-type-one-time-code': { autofillType: Ti.UI.AUTOFILL_TYPE_ONE_TIME_CODE }\n`;
767
+ convertedStyles += `'.autofill-type-organization-name': { autofillType: Ti.UI.AUTOFILL_TYPE_ORGANIZATION_NAME }\n`;
768
+ convertedStyles += `'.autofill-type-address-city-state': { autofillType: Ti.UI.AUTOFILL_TYPE_ADDRESS_CITY_STATE }\n`;
769
+ convertedStyles += `'.autofill-type-card-security-code': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_SECURITY_CODE }\n`;
770
+ convertedStyles += `'.autofill-type-card-expiration-day': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_EXPIRATION_DAY }\n`;
771
+ convertedStyles += `'.autofill-type-card-expiration-date': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_EXPIRATION_DATE }\n`;
772
+ convertedStyles += `'.autofill-type-card-expiration-year': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_EXPIRATION_YEAR }\n`;
773
+ convertedStyles += `'.autofill-type-card-expiration-month': { autofillType: Ti.UI.AUTOFILL_TYPE_CARD_EXPIRATION_MONTH }\n`;
774
+
775
+ return convertedStyles;
776
+ }
777
+ exports.autofillType = autofillType;
778
+
779
+ function returnKeyType() {
780
+ let convertedStyles = '\n// returnKeyType Property\n';
781
+
782
+ convertedStyles += `'.returnkey-go': { returnKeyType: Ti.UI.RETURNKEY_GO }\n`;
783
+ convertedStyles += `'.returnkey-done': { returnKeyType: Ti.UI.RETURNKEY_DONE }\n`;
784
+ convertedStyles += `'.returnkey-join': { returnKeyType: Ti.UI.RETURNKEY_JOIN }\n`;
785
+ convertedStyles += `'.returnkey-next': { returnKeyType: Ti.UI.RETURNKEY_NEXT }\n`;
786
+ convertedStyles += `'.returnkey-send': { returnKeyType: Ti.UI.RETURNKEY_SEND }\n`;
787
+ convertedStyles += `'.returnkey-route': { returnKeyType: Ti.UI.RETURNKEY_ROUTE }\n`;
788
+ convertedStyles += `'.returnkey-yahoo': { returnKeyType: Ti.UI.RETURNKEY_YAHOO }\n`;
789
+ convertedStyles += `'.returnkey-google': { returnKeyType: Ti.UI.RETURNKEY_GOOGLE }\n`;
790
+ convertedStyles += `'.returnkey-search': { returnKeyType: Ti.UI.RETURNKEY_SEARCH }\n`;
791
+ convertedStyles += `'.returnkey-default': { returnKeyType: Ti.UI.RETURNKEY_DEFAULT }\n`;
792
+ convertedStyles += `'.returnkey-continue': { returnKeyType: Ti.UI.RETURNKEY_CONTINUE }\n`;
793
+ convertedStyles += `'.returnkey-emergency-call': { returnKeyType: Ti.UI.RETURNKEY_EMERGENCY_CALL }\n`;
794
+
795
+ return convertedStyles;
796
+ }
797
+ exports.returnKeyType = returnKeyType;
798
+
634
799
  function gridSystem() {
635
800
  let modifiersAndValues = {
636
801
  1: '100%',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgetss",
3
- "version": "2.6.3",
3
+ "version": "2.6.7",
4
4
  "description": "An extension for Titanium SDK that generates a set of Tailwind-like classes and values to easily and quickly create beautifully designed mobile apps.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  "@tailwindcss/ui": "^0.7.2",
48
48
  "arg": "^5.0.1",
49
49
  "autoprefixer": "^10.4.0",
50
- "boxicons": "^2.0.9",
50
+ "boxicons": "^2.1.1",
51
51
  "caporal": "^1.4.0",
52
52
  "chalk": "^4.1.2",
53
53
  "command-exists": "^1.2.9",