weapp-tailwindcss 2.6.2 → 2.6.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.
@@ -1,111 +0,0 @@
1
- 'use strict';
2
-
3
- const SYMBOL_TABLE = {
4
- BACKQUOTE: '`',
5
- TILDE: '~',
6
- EXCLAM: '!',
7
- AT: '@',
8
- NUMBERSIGN: '#',
9
- DOLLAR: '$',
10
- PERCENT: '%',
11
- CARET: '^',
12
- AMPERSAND: '&',
13
- ASTERISK: '*',
14
- PARENLEFT: '(',
15
- PARENRIGHT: ')',
16
- MINUS: '-',
17
- UNDERSCORE: '_',
18
- EQUAL: '=',
19
- PLUS: '+',
20
- BRACKETLEFT: '[',
21
- BRACELEFT: '{',
22
- BRACKETRIGHT: ']',
23
- BRACERIGHT: '}',
24
- SEMICOLON: ';',
25
- COLON: ':',
26
- QUOTE: "'",
27
- DOUBLEQUOTE: '"',
28
- BACKSLASH: '\\',
29
- BAR: '|',
30
- COMMA: ',',
31
- LESS: '<',
32
- PERIOD: '.',
33
- GREATER: '>',
34
- SLASH: '/',
35
- QUESTION: '?',
36
- SPACE: ' ',
37
- DOT: '.',
38
- HASH: '#'
39
- };
40
- const MappingChars2String = {
41
- '[': '_bl_',
42
- ']': '_br_',
43
- '(': '_pl_',
44
- ')': '_qr_',
45
- '#': '_h_',
46
- '!': '_i_',
47
- '/': '_s_',
48
- '\\': '_bs_',
49
- '.': '_d_',
50
- ':': '_c_',
51
- '%': '_p_',
52
- ',': '_co_',
53
- "'": '_q_',
54
- '"': '_dq_',
55
- '*': '_a_',
56
- '&': '_am_',
57
- '@': '_at_',
58
- '{': '_bal_',
59
- '}': '_bar_',
60
- '+': '_plus_',
61
- ';': '_se_',
62
- '<': '_l_',
63
- '~': '_t_',
64
- '=': '_e_',
65
- '>': '_g_',
66
- '?': '_qu_',
67
- '^': '_ca_',
68
- '`': '_bq_',
69
- '|': '_b_',
70
- $: '_do_'
71
- };
72
- const MappingChars2StringEntries = Object.entries(MappingChars2String);
73
- const SimpleMappingChars2String = {
74
- '[': '_',
75
- ']': '_',
76
- '(': '_',
77
- ')': '_',
78
- '{': '_',
79
- '}': '_',
80
- '+': 'a',
81
- ',': 'b',
82
- ':': 'c',
83
- '.': 'd',
84
- '=': 'e',
85
- ';': 'f',
86
- '>': 'g',
87
- '#': 'h',
88
- '!': 'i',
89
- '@': 'j',
90
- '^': 'k',
91
- '<': 'l',
92
- '*': 'm',
93
- '&': 'n',
94
- '?': 'o',
95
- '%': 'p',
96
- "'": 'q',
97
- $: 'r',
98
- '/': 's',
99
- '~': 't',
100
- '|': 'u',
101
- '`': 'v',
102
- '\\': 'w',
103
- '"': 'x'
104
- };
105
- const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
106
-
107
- exports.MappingChars2String = MappingChars2String;
108
- exports.MappingChars2StringEntries = MappingChars2StringEntries;
109
- exports.SYMBOL_TABLE = SYMBOL_TABLE;
110
- exports.SimpleMappingChars2String = SimpleMappingChars2String;
111
- exports.SimpleMappingChars2StringEntries = SimpleMappingChars2StringEntries;
@@ -1,105 +0,0 @@
1
- const SYMBOL_TABLE = {
2
- BACKQUOTE: '`',
3
- TILDE: '~',
4
- EXCLAM: '!',
5
- AT: '@',
6
- NUMBERSIGN: '#',
7
- DOLLAR: '$',
8
- PERCENT: '%',
9
- CARET: '^',
10
- AMPERSAND: '&',
11
- ASTERISK: '*',
12
- PARENLEFT: '(',
13
- PARENRIGHT: ')',
14
- MINUS: '-',
15
- UNDERSCORE: '_',
16
- EQUAL: '=',
17
- PLUS: '+',
18
- BRACKETLEFT: '[',
19
- BRACELEFT: '{',
20
- BRACKETRIGHT: ']',
21
- BRACERIGHT: '}',
22
- SEMICOLON: ';',
23
- COLON: ':',
24
- QUOTE: "'",
25
- DOUBLEQUOTE: '"',
26
- BACKSLASH: '\\',
27
- BAR: '|',
28
- COMMA: ',',
29
- LESS: '<',
30
- PERIOD: '.',
31
- GREATER: '>',
32
- SLASH: '/',
33
- QUESTION: '?',
34
- SPACE: ' ',
35
- DOT: '.',
36
- HASH: '#'
37
- };
38
- const MappingChars2String = {
39
- '[': '_bl_',
40
- ']': '_br_',
41
- '(': '_pl_',
42
- ')': '_qr_',
43
- '#': '_h_',
44
- '!': '_i_',
45
- '/': '_s_',
46
- '\\': '_bs_',
47
- '.': '_d_',
48
- ':': '_c_',
49
- '%': '_p_',
50
- ',': '_co_',
51
- "'": '_q_',
52
- '"': '_dq_',
53
- '*': '_a_',
54
- '&': '_am_',
55
- '@': '_at_',
56
- '{': '_bal_',
57
- '}': '_bar_',
58
- '+': '_plus_',
59
- ';': '_se_',
60
- '<': '_l_',
61
- '~': '_t_',
62
- '=': '_e_',
63
- '>': '_g_',
64
- '?': '_qu_',
65
- '^': '_ca_',
66
- '`': '_bq_',
67
- '|': '_b_',
68
- $: '_do_'
69
- };
70
- const MappingChars2StringEntries = Object.entries(MappingChars2String);
71
- const SimpleMappingChars2String = {
72
- '[': '_',
73
- ']': '_',
74
- '(': '_',
75
- ')': '_',
76
- '{': '_',
77
- '}': '_',
78
- '+': 'a',
79
- ',': 'b',
80
- ':': 'c',
81
- '.': 'd',
82
- '=': 'e',
83
- ';': 'f',
84
- '>': 'g',
85
- '#': 'h',
86
- '!': 'i',
87
- '@': 'j',
88
- '^': 'k',
89
- '<': 'l',
90
- '*': 'm',
91
- '&': 'n',
92
- '?': 'o',
93
- '%': 'p',
94
- "'": 'q',
95
- $: 'r',
96
- '/': 's',
97
- '~': 't',
98
- '|': 'u',
99
- '`': 'v',
100
- '\\': 'w',
101
- '"': 'x'
102
- };
103
- const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
104
-
105
- export { MappingChars2String as M, SimpleMappingChars2String as S, SYMBOL_TABLE as a, MappingChars2StringEntries as b, SimpleMappingChars2StringEntries as c };
package/dist/dic.d.ts DELETED
@@ -1,44 +0,0 @@
1
- export declare const SYMBOL_TABLE: {
2
- readonly BACKQUOTE: "`";
3
- readonly TILDE: "~";
4
- readonly EXCLAM: "!";
5
- readonly AT: "@";
6
- readonly NUMBERSIGN: "#";
7
- readonly DOLLAR: "$";
8
- readonly PERCENT: "%";
9
- readonly CARET: "^";
10
- readonly AMPERSAND: "&";
11
- readonly ASTERISK: "*";
12
- readonly PARENLEFT: "(";
13
- readonly PARENRIGHT: ")";
14
- readonly MINUS: "-";
15
- readonly UNDERSCORE: "_";
16
- readonly EQUAL: "=";
17
- readonly PLUS: "+";
18
- readonly BRACKETLEFT: "[";
19
- readonly BRACELEFT: "{";
20
- readonly BRACKETRIGHT: "]";
21
- readonly BRACERIGHT: "}";
22
- readonly SEMICOLON: ";";
23
- readonly COLON: ":";
24
- readonly QUOTE: "'";
25
- readonly DOUBLEQUOTE: "\"";
26
- readonly BACKSLASH: "\\";
27
- readonly BAR: "|";
28
- readonly COMMA: ",";
29
- readonly LESS: "<";
30
- readonly PERIOD: ".";
31
- readonly GREATER: ">";
32
- readonly SLASH: "/";
33
- readonly QUESTION: "?";
34
- readonly SPACE: " ";
35
- readonly DOT: ".";
36
- readonly HASH: "#";
37
- };
38
- export type SYMBOL_TABLE_TYPE = typeof SYMBOL_TABLE;
39
- export type SYMBOL_TABLE_TYPE_VALUES = SYMBOL_TABLE_TYPE[keyof SYMBOL_TABLE_TYPE];
40
- export type MappingStringDictionary = Record<Exclude<SYMBOL_TABLE_TYPE_VALUES, '-' | '_' | ' '>, string>;
41
- export declare const MappingChars2String: MappingStringDictionary;
42
- export declare const MappingChars2StringEntries: [string, string][];
43
- export declare const SimpleMappingChars2String: MappingStringDictionary;
44
- export declare const SimpleMappingChars2StringEntries: [string, string][];
@@ -1,62 +0,0 @@
1
- 'use strict';
2
-
3
- var dic = require('./dic-05980807.js');
4
-
5
- const MAX_ASCII_CHAR_CODE = 127;
6
- function isAsciiNumber(code) {
7
- return code >= 48 && code <= 57;
8
- }
9
- function escape(selectors, options = {
10
- map: dic.SimpleMappingChars2String
11
- }) {
12
- const { map = dic.SimpleMappingChars2String } = options;
13
- const sb = [...selectors];
14
- for (let i = 0; i < sb.length; i++) {
15
- const char = sb[i];
16
- const code = char.codePointAt(0);
17
- const isCodeExisted = code !== undefined;
18
- const hit = map[char];
19
- if (isCodeExisted) {
20
- if (code > MAX_ASCII_CHAR_CODE) {
21
- sb[i] = 'u' + Number(code).toString(16);
22
- }
23
- else if (hit) {
24
- sb[i] = hit;
25
- }
26
- else if (i === 0) {
27
- if (isAsciiNumber(code)) {
28
- sb[i] = '_' + char;
29
- }
30
- else if (char === '-') {
31
- const nextChar = sb[i + 1];
32
- if (nextChar) {
33
- const nextCharCode = nextChar.codePointAt(0);
34
- if (nextCharCode && isAsciiNumber(nextCharCode)) {
35
- sb[i] = '_' + char;
36
- }
37
- }
38
- else if (nextChar === undefined) {
39
- sb[i] = '_' + char;
40
- }
41
- }
42
- }
43
- }
44
- }
45
- const res = sb.join('');
46
- return res;
47
- }
48
-
49
- function internalCssSelectorReplacer(selectors, options = {
50
- escapeMap: dic.SimpleMappingChars2String
51
- }) {
52
- const { mangleContext, escapeMap } = options;
53
- if (mangleContext) {
54
- selectors = mangleContext.cssHandler(selectors);
55
- }
56
- return escape(selectors, {
57
- map: escapeMap
58
- });
59
- }
60
-
61
- exports.escape = escape;
62
- exports.internalCssSelectorReplacer = internalCssSelectorReplacer;
@@ -1,59 +0,0 @@
1
- import { S as SimpleMappingChars2String } from './dic-3790a3a4.mjs';
2
-
3
- const MAX_ASCII_CHAR_CODE = 127;
4
- function isAsciiNumber(code) {
5
- return code >= 48 && code <= 57;
6
- }
7
- function escape(selectors, options = {
8
- map: SimpleMappingChars2String
9
- }) {
10
- const { map = SimpleMappingChars2String } = options;
11
- const sb = [...selectors];
12
- for (let i = 0; i < sb.length; i++) {
13
- const char = sb[i];
14
- const code = char.codePointAt(0);
15
- const isCodeExisted = code !== undefined;
16
- const hit = map[char];
17
- if (isCodeExisted) {
18
- if (code > MAX_ASCII_CHAR_CODE) {
19
- sb[i] = 'u' + Number(code).toString(16);
20
- }
21
- else if (hit) {
22
- sb[i] = hit;
23
- }
24
- else if (i === 0) {
25
- if (isAsciiNumber(code)) {
26
- sb[i] = '_' + char;
27
- }
28
- else if (char === '-') {
29
- const nextChar = sb[i + 1];
30
- if (nextChar) {
31
- const nextCharCode = nextChar.codePointAt(0);
32
- if (nextCharCode && isAsciiNumber(nextCharCode)) {
33
- sb[i] = '_' + char;
34
- }
35
- }
36
- else if (nextChar === undefined) {
37
- sb[i] = '_' + char;
38
- }
39
- }
40
- }
41
- }
42
- }
43
- const res = sb.join('');
44
- return res;
45
- }
46
-
47
- function internalCssSelectorReplacer(selectors, options = {
48
- escapeMap: SimpleMappingChars2String
49
- }) {
50
- const { mangleContext, escapeMap } = options;
51
- if (mangleContext) {
52
- selectors = mangleContext.cssHandler(selectors);
53
- }
54
- return escape(selectors, {
55
- map: escapeMap
56
- });
57
- }
58
-
59
- export { escape as e, internalCssSelectorReplacer as i };