colibri-ui 0.0.1

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 (161) hide show
  1. package/Button/index.d.ts +4 -0
  2. package/Button/index.js +40 -0
  3. package/Button/index.props.d.ts +38 -0
  4. package/Button/package.json +6 -0
  5. package/Button/styles.d.ts +15 -0
  6. package/Button/styles.js +44 -0
  7. package/Icons/AddWidget.d.ts +3 -0
  8. package/Icons/Alert.d.ts +3 -0
  9. package/Icons/Arrow.d.ts +3 -0
  10. package/Icons/Burger.d.ts +3 -0
  11. package/Icons/Check.d.ts +3 -0
  12. package/Icons/CheckBoxChecked.d.ts +3 -0
  13. package/Icons/CheckBoxDefault.d.ts +3 -0
  14. package/Icons/Chevron.d.ts +3 -0
  15. package/Icons/Close.d.ts +3 -0
  16. package/Icons/CloseRound.d.ts +3 -0
  17. package/Icons/Edit.d.ts +3 -0
  18. package/Icons/Error.d.ts +3 -0
  19. package/Icons/EyeClosed.d.ts +3 -0
  20. package/Icons/EyeOpen.d.ts +3 -0
  21. package/Icons/Flag/index.d.ts +3 -0
  22. package/Icons/Globe.d.ts +3 -0
  23. package/Icons/Help.d.ts +3 -0
  24. package/Icons/Info.d.ts +3 -0
  25. package/Icons/Location.d.ts +3 -0
  26. package/Icons/Lock.d.ts +3 -0
  27. package/Icons/Mir.d.ts +3 -0
  28. package/Icons/More.d.ts +3 -0
  29. package/Icons/Notes.d.ts +3 -0
  30. package/Icons/Setting.d.ts +3 -0
  31. package/Icons/Share.d.ts +3 -0
  32. package/Icons/SignOut.d.ts +3 -0
  33. package/Icons/Telegram.d.ts +3 -0
  34. package/Icons/User.d.ts +3 -0
  35. package/Icons/package.json +6 -0
  36. package/Theme/breakpoints.d.ts +17 -0
  37. package/Theme/breakpoints.js +38 -0
  38. package/Theme/color.d.ts +29 -0
  39. package/Theme/color.js +36 -0
  40. package/Theme/global.d.ts +2 -0
  41. package/Theme/global.js +14 -0
  42. package/Theme/index.d.ts +16 -0
  43. package/Theme/index.js +25 -0
  44. package/Theme/index.props.d.ts +6 -0
  45. package/Theme/package.json +6 -0
  46. package/Theme/themes/buenos_aires.d.ts +6 -0
  47. package/Theme/themes/buenos_aires.js +42 -0
  48. package/Theme/themes/default.d.ts +6 -0
  49. package/Theme/themes/default.js +41 -0
  50. package/_virtual/_commonjsHelpers.js +46 -0
  51. package/_virtual/index.js +5 -0
  52. package/_virtual/index2.js +9 -0
  53. package/_virtual/index3.js +9 -0
  54. package/_virtual/index4.js +5 -0
  55. package/_virtual/jsx-runtime.js +5 -0
  56. package/_virtual/package.json +6 -0
  57. package/_virtual/react-is.development.js +5 -0
  58. package/_virtual/react-is.production.min.js +5 -0
  59. package/_virtual/react-jsx-runtime.development.js +5 -0
  60. package/_virtual/react-jsx-runtime.production.min.js +5 -0
  61. package/_virtual/react.development.js +5 -0
  62. package/_virtual/react.production.min.js +5 -0
  63. package/esm/Button/index.d.ts +4 -0
  64. package/esm/Button/index.js +36 -0
  65. package/esm/Button/index.props.d.ts +38 -0
  66. package/esm/Button/styles.d.ts +15 -0
  67. package/esm/Button/styles.js +41 -0
  68. package/esm/Icons/AddWidget.d.ts +3 -0
  69. package/esm/Icons/Alert.d.ts +3 -0
  70. package/esm/Icons/Arrow.d.ts +3 -0
  71. package/esm/Icons/Burger.d.ts +3 -0
  72. package/esm/Icons/Check.d.ts +3 -0
  73. package/esm/Icons/CheckBoxChecked.d.ts +3 -0
  74. package/esm/Icons/CheckBoxDefault.d.ts +3 -0
  75. package/esm/Icons/Chevron.d.ts +3 -0
  76. package/esm/Icons/Close.d.ts +3 -0
  77. package/esm/Icons/CloseRound.d.ts +3 -0
  78. package/esm/Icons/Edit.d.ts +3 -0
  79. package/esm/Icons/Error.d.ts +3 -0
  80. package/esm/Icons/EyeClosed.d.ts +3 -0
  81. package/esm/Icons/EyeOpen.d.ts +3 -0
  82. package/esm/Icons/Flag/index.d.ts +3 -0
  83. package/esm/Icons/Globe.d.ts +3 -0
  84. package/esm/Icons/Help.d.ts +3 -0
  85. package/esm/Icons/Info.d.ts +3 -0
  86. package/esm/Icons/Location.d.ts +3 -0
  87. package/esm/Icons/Lock.d.ts +3 -0
  88. package/esm/Icons/Mir.d.ts +3 -0
  89. package/esm/Icons/More.d.ts +3 -0
  90. package/esm/Icons/Notes.d.ts +3 -0
  91. package/esm/Icons/Setting.d.ts +3 -0
  92. package/esm/Icons/Share.d.ts +3 -0
  93. package/esm/Icons/SignOut.d.ts +3 -0
  94. package/esm/Icons/Telegram.d.ts +3 -0
  95. package/esm/Icons/User.d.ts +3 -0
  96. package/esm/Theme/breakpoints.d.ts +17 -0
  97. package/esm/Theme/breakpoints.js +34 -0
  98. package/esm/Theme/color.d.ts +29 -0
  99. package/esm/Theme/color.js +32 -0
  100. package/esm/Theme/global.d.ts +2 -0
  101. package/esm/Theme/global.js +10 -0
  102. package/esm/Theme/index.d.ts +16 -0
  103. package/esm/Theme/index.js +22 -0
  104. package/esm/Theme/index.props.d.ts +6 -0
  105. package/esm/Theme/themes/buenos_aires.d.ts +6 -0
  106. package/esm/Theme/themes/buenos_aires.js +39 -0
  107. package/esm/Theme/themes/default.d.ts +6 -0
  108. package/esm/Theme/themes/default.js +38 -0
  109. package/esm/_virtual/_commonjsHelpers.js +40 -0
  110. package/esm/_virtual/index.js +3 -0
  111. package/esm/_virtual/index2.js +1 -0
  112. package/esm/_virtual/index3.js +1 -0
  113. package/esm/_virtual/index4.js +3 -0
  114. package/esm/_virtual/jsx-runtime.js +3 -0
  115. package/esm/_virtual/react-is.development.js +3 -0
  116. package/esm/_virtual/react-is.production.min.js +3 -0
  117. package/esm/_virtual/react-jsx-runtime.development.js +3 -0
  118. package/esm/_virtual/react-jsx-runtime.production.min.js +3 -0
  119. package/esm/_virtual/react.development.js +3 -0
  120. package/esm/_virtual/react.production.min.js +3 -0
  121. package/esm/index.d.ts +2 -0
  122. package/esm/index.js +2 -0
  123. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +16 -0
  124. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  125. package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +588 -0
  126. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +44 -0
  127. package/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +12 -0
  128. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  129. package/esm/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js +11 -0
  130. package/esm/node_modules/@emotion/react/dist/emotion-element-c16c303e.esm.js +233 -0
  131. package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +390 -0
  132. package/esm/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +27 -0
  133. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +265 -0
  134. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +132 -0
  135. package/esm/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +162 -0
  136. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +51 -0
  137. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
  138. package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +49 -0
  139. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +15 -0
  140. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +97 -0
  141. package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +1147 -0
  142. package/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +56 -0
  143. package/esm/node_modules/react/cjs/react.development.js +2402 -0
  144. package/esm/node_modules/react/cjs/react.production.min.js +354 -0
  145. package/esm/node_modules/react/index.js +16 -0
  146. package/esm/node_modules/react/jsx-runtime.js +16 -0
  147. package/esm/node_modules/react-is/cjs/react-is.development.js +170 -0
  148. package/esm/node_modules/react-is/cjs/react-is.production.min.js +119 -0
  149. package/esm/node_modules/react-is/index.js +16 -0
  150. package/esm/node_modules/stylis/index.js +7 -0
  151. package/esm/node_modules/stylis/src/Enum.js +21 -0
  152. package/esm/node_modules/stylis/src/Middleware.js +113 -0
  153. package/esm/node_modules/stylis/src/Parser.js +184 -0
  154. package/esm/node_modules/stylis/src/Prefixer.js +197 -0
  155. package/esm/node_modules/stylis/src/Serializer.js +40 -0
  156. package/esm/node_modules/stylis/src/Tokenizer.js +252 -0
  157. package/esm/node_modules/stylis/src/Utility.js +117 -0
  158. package/esm/node_modules/tslib/tslib.es6.js +525 -0
  159. package/index.d.ts +2 -0
  160. package/index.js +10 -0
  161. package/package.json +72 -0
@@ -0,0 +1,252 @@
1
+ import { assign, charat, substr, strlen, trim, append, from } from './Utility.js';
2
+
3
+ var line = 1;
4
+ var column = 1;
5
+ var length = 0;
6
+ var position = 0;
7
+ var character = 0;
8
+ var characters = '';
9
+
10
+ /**
11
+ * @param {string} value
12
+ * @param {object | null} root
13
+ * @param {object | null} parent
14
+ * @param {string} type
15
+ * @param {string[] | string} props
16
+ * @param {object[] | string} children
17
+ * @param {number} length
18
+ */
19
+ function node(value, root, parent, type, props, children, length) {
20
+ return {
21
+ value: value,
22
+ root: root,
23
+ parent: parent,
24
+ type: type,
25
+ props: props,
26
+ children: children,
27
+ line: line,
28
+ column: column,
29
+ length: length,
30
+ "return": ''
31
+ };
32
+ }
33
+
34
+ /**
35
+ * @param {object} root
36
+ * @param {object} props
37
+ * @return {object}
38
+ */
39
+ function copy(root, props) {
40
+ return assign(node('', null, null, '', null, null, 0), root, {
41
+ length: -root.length
42
+ }, props);
43
+ }
44
+
45
+ /**
46
+ * @return {number}
47
+ */
48
+ function _char() {
49
+ return character;
50
+ }
51
+ function prev() {
52
+ character = position > 0 ? charat(characters, --position) : 0;
53
+ if (column--, character === 10) column = 1, line--;
54
+ return character;
55
+ }
56
+
57
+ /**
58
+ * @return {number}
59
+ */
60
+ function next() {
61
+ character = position < length ? charat(characters, position++) : 0;
62
+ if (column++, character === 10) column = 1, line++;
63
+ return character;
64
+ }
65
+
66
+ /**
67
+ * @return {number}
68
+ */
69
+ function peek() {
70
+ return charat(characters, position);
71
+ }
72
+
73
+ /**
74
+ * @return {number}
75
+ */
76
+ function caret() {
77
+ return position;
78
+ }
79
+
80
+ /**
81
+ * @param {number} begin
82
+ * @param {number} end
83
+ * @return {string}
84
+ */
85
+ function slice(begin, end) {
86
+ return substr(characters, begin, end);
87
+ }
88
+
89
+ /**
90
+ * @param {number} type
91
+ * @return {number}
92
+ */
93
+ function token(type) {
94
+ switch (type) {
95
+ // \0 \t \n \r \s whitespace token
96
+ case 0:
97
+ case 9:
98
+ case 10:
99
+ case 13:
100
+ case 32:
101
+ return 5;
102
+ // ! + , / > @ ~ isolate token
103
+ case 33:
104
+ case 43:
105
+ case 44:
106
+ case 47:
107
+ case 62:
108
+ case 64:
109
+ case 126:
110
+ // ; { } breakpoint token
111
+ case 59:
112
+ case 123:
113
+ case 125:
114
+ return 4;
115
+ // : accompanied token
116
+ case 58:
117
+ return 3;
118
+ // " ' ( [ opening delimit token
119
+ case 34:
120
+ case 39:
121
+ case 40:
122
+ case 91:
123
+ return 2;
124
+ // ) ] closing delimit token
125
+ case 41:
126
+ case 93:
127
+ return 1;
128
+ }
129
+ return 0;
130
+ }
131
+
132
+ /**
133
+ * @param {string} value
134
+ * @return {any[]}
135
+ */
136
+ function alloc(value) {
137
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
138
+ }
139
+
140
+ /**
141
+ * @param {any} value
142
+ * @return {any}
143
+ */
144
+ function dealloc(value) {
145
+ return characters = '', value;
146
+ }
147
+
148
+ /**
149
+ * @param {number} type
150
+ * @return {string}
151
+ */
152
+ function delimit(type) {
153
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
154
+ }
155
+
156
+ /**
157
+ * @param {string} value
158
+ * @return {string[]}
159
+ */
160
+ function tokenize(value) {
161
+ return dealloc(tokenizer(alloc(value)));
162
+ }
163
+
164
+ /**
165
+ * @param {number} type
166
+ * @return {string}
167
+ */
168
+ function whitespace(type) {
169
+ while (character = peek()) if (character < 33) next();else break;
170
+ return token(type) > 2 || token(character) > 3 ? '' : ' ';
171
+ }
172
+
173
+ /**
174
+ * @param {string[]} children
175
+ * @return {string[]}
176
+ */
177
+ function tokenizer(children) {
178
+ while (next()) switch (token(character)) {
179
+ case 0:
180
+ append(identifier(position - 1), children);
181
+ break;
182
+ case 2:
183
+ append(delimit(character), children);
184
+ break;
185
+ default:
186
+ append(from(character), children);
187
+ }
188
+ return children;
189
+ }
190
+
191
+ /**
192
+ * @param {number} index
193
+ * @param {number} count
194
+ * @return {string}
195
+ */
196
+ function escaping(index, count) {
197
+ while (--count && next())
198
+ // not 0-9 A-F a-f
199
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
200
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
201
+ }
202
+
203
+ /**
204
+ * @param {number} type
205
+ * @return {number}
206
+ */
207
+ function delimiter(type) {
208
+ while (next()) switch (character) {
209
+ // ] ) " '
210
+ case type:
211
+ return position;
212
+ // " '
213
+ case 34:
214
+ case 39:
215
+ if (type !== 34 && type !== 39) delimiter(character);
216
+ break;
217
+ // (
218
+ case 40:
219
+ if (type === 41) delimiter(type);
220
+ break;
221
+ // \
222
+ case 92:
223
+ next();
224
+ break;
225
+ }
226
+ return position;
227
+ }
228
+
229
+ /**
230
+ * @param {number} type
231
+ * @param {number} index
232
+ * @return {number}
233
+ */
234
+ function commenter(type, index) {
235
+ while (next())
236
+ // //
237
+ if (type + character === 47 + 10) break;
238
+ // /*
239
+ else if (type + character === 42 + 42 && peek() === 47) break;
240
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
241
+ }
242
+
243
+ /**
244
+ * @param {number} index
245
+ * @return {string}
246
+ */
247
+ function identifier(index) {
248
+ while (!token(peek())) next();
249
+ return slice(index, position);
250
+ }
251
+
252
+ export { alloc, caret, _char as char, character, characters, column, commenter, copy, dealloc, delimit, delimiter, escaping, identifier, length, line, next, node, peek, position, prev, slice, token, tokenize, tokenizer, whitespace };
@@ -0,0 +1,117 @@
1
+ /**
2
+ * @param {number}
3
+ * @return {number}
4
+ */
5
+ var abs = Math.abs;
6
+
7
+ /**
8
+ * @param {number}
9
+ * @return {string}
10
+ */
11
+ var from = String.fromCharCode;
12
+
13
+ /**
14
+ * @param {object}
15
+ * @return {object}
16
+ */
17
+ var assign = Object.assign;
18
+
19
+ /**
20
+ * @param {string} value
21
+ * @param {number} length
22
+ * @return {number}
23
+ */
24
+ function hash(value, length) {
25
+ return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
26
+ }
27
+
28
+ /**
29
+ * @param {string} value
30
+ * @return {string}
31
+ */
32
+ function trim(value) {
33
+ return value.trim();
34
+ }
35
+
36
+ /**
37
+ * @param {string} value
38
+ * @param {RegExp} pattern
39
+ * @return {string?}
40
+ */
41
+ function match(value, pattern) {
42
+ return (value = pattern.exec(value)) ? value[0] : value;
43
+ }
44
+
45
+ /**
46
+ * @param {string} value
47
+ * @param {(string|RegExp)} pattern
48
+ * @param {string} replacement
49
+ * @return {string}
50
+ */
51
+ function replace(value, pattern, replacement) {
52
+ return value.replace(pattern, replacement);
53
+ }
54
+
55
+ /**
56
+ * @param {string} value
57
+ * @param {string} search
58
+ * @return {number}
59
+ */
60
+ function indexof(value, search) {
61
+ return value.indexOf(search);
62
+ }
63
+
64
+ /**
65
+ * @param {string} value
66
+ * @param {number} index
67
+ * @return {number}
68
+ */
69
+ function charat(value, index) {
70
+ return value.charCodeAt(index) | 0;
71
+ }
72
+
73
+ /**
74
+ * @param {string} value
75
+ * @param {number} begin
76
+ * @param {number} end
77
+ * @return {string}
78
+ */
79
+ function substr(value, begin, end) {
80
+ return value.slice(begin, end);
81
+ }
82
+
83
+ /**
84
+ * @param {string} value
85
+ * @return {number}
86
+ */
87
+ function strlen(value) {
88
+ return value.length;
89
+ }
90
+
91
+ /**
92
+ * @param {any[]} value
93
+ * @return {number}
94
+ */
95
+ function sizeof(value) {
96
+ return value.length;
97
+ }
98
+
99
+ /**
100
+ * @param {any} value
101
+ * @param {any[]} array
102
+ * @return {any}
103
+ */
104
+ function append(value, array) {
105
+ return array.push(value), value;
106
+ }
107
+
108
+ /**
109
+ * @param {string[]} array
110
+ * @param {function} callback
111
+ * @return {string}
112
+ */
113
+ function combine(array, callback) {
114
+ return array.map(callback).join('');
115
+ }
116
+
117
+ export { abs, append, assign, charat, combine, from, hash, indexof, match, replace, sizeof, strlen, substr, trim };