fomantic-ui 2.10.0-beta.1 → 2.10.0-beta.10

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 (287) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/.eslintrc.js +0 -10
  3. package/CONTRIBUTING.md +4 -1
  4. package/CONTRIBUTORS.md +1 -0
  5. package/FAQ.md +7 -2
  6. package/README.md +5 -9
  7. package/ROADMAP.md +4 -4
  8. package/SECURITY.md +8 -7
  9. package/changelog-setup.js +64 -70
  10. package/dist/components/accordion.css +1 -1
  11. package/dist/components/accordion.js +103 -142
  12. package/dist/components/accordion.min.css +1 -1
  13. package/dist/components/accordion.min.js +2 -2
  14. package/dist/components/ad.css +1 -1
  15. package/dist/components/ad.min.css +1 -1
  16. package/dist/components/api.js +157 -210
  17. package/dist/components/api.min.js +2 -2
  18. package/dist/components/breadcrumb.css +1 -1
  19. package/dist/components/breadcrumb.min.css +1 -1
  20. package/dist/components/button.css +1 -2
  21. package/dist/components/button.min.css +2 -2
  22. package/dist/components/calendar.css +1 -2
  23. package/dist/components/calendar.js +314 -352
  24. package/dist/components/calendar.min.css +2 -2
  25. package/dist/components/calendar.min.js +2 -2
  26. package/dist/components/card.css +1 -1
  27. package/dist/components/card.min.css +1 -1
  28. package/dist/components/checkbox.css +1 -2
  29. package/dist/components/checkbox.js +85 -135
  30. package/dist/components/checkbox.min.css +2 -2
  31. package/dist/components/checkbox.min.js +2 -2
  32. package/dist/components/comment.css +1 -1
  33. package/dist/components/comment.min.css +1 -1
  34. package/dist/components/container.css +2 -4
  35. package/dist/components/container.min.css +2 -2
  36. package/dist/components/dimmer.css +1 -11
  37. package/dist/components/dimmer.js +61 -94
  38. package/dist/components/dimmer.min.css +2 -2
  39. package/dist/components/dimmer.min.js +2 -2
  40. package/dist/components/divider.css +1 -2
  41. package/dist/components/divider.min.css +2 -2
  42. package/dist/components/dropdown.css +30 -51
  43. package/dist/components/dropdown.js +736 -1055
  44. package/dist/components/dropdown.min.css +2 -2
  45. package/dist/components/dropdown.min.js +2 -2
  46. package/dist/components/embed.css +1 -1
  47. package/dist/components/embed.js +85 -114
  48. package/dist/components/embed.min.css +1 -1
  49. package/dist/components/embed.min.js +2 -2
  50. package/dist/components/emoji.css +3809 -7617
  51. package/dist/components/emoji.min.css +2 -2
  52. package/dist/components/feed.css +1 -1
  53. package/dist/components/feed.min.css +1 -1
  54. package/dist/components/flag.css +1 -1
  55. package/dist/components/flag.min.css +1 -1
  56. package/dist/components/flyout.css +2 -3
  57. package/dist/components/flyout.js +226 -355
  58. package/dist/components/flyout.min.css +2 -2
  59. package/dist/components/flyout.min.js +2 -2
  60. package/dist/components/form.css +5 -95
  61. package/dist/components/form.js +335 -444
  62. package/dist/components/form.min.css +2 -2
  63. package/dist/components/form.min.js +2 -2
  64. package/dist/components/grid.css +2 -58
  65. package/dist/components/grid.min.css +2 -2
  66. package/dist/components/header.css +1 -1
  67. package/dist/components/header.min.css +1 -1
  68. package/dist/components/icon.css +4 -4
  69. package/dist/components/icon.min.css +2 -2
  70. package/dist/components/image.css +1 -1
  71. package/dist/components/image.min.css +1 -1
  72. package/dist/components/input.css +1 -536
  73. package/dist/components/input.min.css +2 -2
  74. package/dist/components/item.css +1 -1
  75. package/dist/components/item.min.css +1 -1
  76. package/dist/components/label.css +1 -1
  77. package/dist/components/label.min.css +1 -1
  78. package/dist/components/list.css +1 -3
  79. package/dist/components/list.min.css +2 -2
  80. package/dist/components/loader.css +1 -1
  81. package/dist/components/loader.min.css +1 -1
  82. package/dist/components/menu.css +1 -9
  83. package/dist/components/menu.min.css +2 -2
  84. package/dist/components/message.css +1 -1
  85. package/dist/components/message.min.css +1 -1
  86. package/dist/components/modal.css +5 -9
  87. package/dist/components/modal.js +261 -384
  88. package/dist/components/modal.min.css +2 -2
  89. package/dist/components/modal.min.js +2 -2
  90. package/dist/components/nag.css +1 -1
  91. package/dist/components/nag.js +68 -98
  92. package/dist/components/nag.min.css +1 -1
  93. package/dist/components/nag.min.js +2 -2
  94. package/dist/components/placeholder.css +1 -1
  95. package/dist/components/placeholder.min.css +1 -1
  96. package/dist/components/popup.css +1 -2
  97. package/dist/components/popup.js +198 -271
  98. package/dist/components/popup.min.css +2 -2
  99. package/dist/components/popup.min.js +2 -2
  100. package/dist/components/progress.css +1 -1
  101. package/dist/components/progress.js +109 -144
  102. package/dist/components/progress.min.css +1 -1
  103. package/dist/components/progress.min.js +2 -2
  104. package/dist/components/rail.css +1 -1
  105. package/dist/components/rail.min.css +1 -1
  106. package/dist/components/rating.css +1 -1
  107. package/dist/components/rating.js +91 -123
  108. package/dist/components/rating.min.css +1 -1
  109. package/dist/components/rating.min.js +2 -2
  110. package/dist/components/reset.css +1 -1
  111. package/dist/components/reset.min.css +1 -1
  112. package/dist/components/reveal.css +1 -1
  113. package/dist/components/reveal.min.css +1 -1
  114. package/dist/components/search.css +2 -9
  115. package/dist/components/search.js +277 -379
  116. package/dist/components/search.min.css +2 -2
  117. package/dist/components/search.min.js +2 -2
  118. package/dist/components/segment.css +2 -7
  119. package/dist/components/segment.min.css +2 -2
  120. package/dist/components/shape.css +1 -2
  121. package/dist/components/shape.js +158 -224
  122. package/dist/components/shape.min.css +2 -2
  123. package/dist/components/shape.min.js +2 -2
  124. package/dist/components/sidebar.css +2 -3
  125. package/dist/components/sidebar.js +124 -206
  126. package/dist/components/sidebar.min.css +2 -2
  127. package/dist/components/sidebar.min.js +2 -2
  128. package/dist/components/site.css +9 -25
  129. package/dist/components/site.js +38 -57
  130. package/dist/components/site.min.css +2 -2
  131. package/dist/components/site.min.js +2 -2
  132. package/dist/components/slider.css +1 -1
  133. package/dist/components/slider.js +246 -329
  134. package/dist/components/slider.min.css +1 -1
  135. package/dist/components/slider.min.js +2 -2
  136. package/dist/components/state.js +70 -100
  137. package/dist/components/state.min.js +2 -2
  138. package/dist/components/statistic.css +1 -1
  139. package/dist/components/statistic.min.css +1 -1
  140. package/dist/components/step.css +1 -1
  141. package/dist/components/step.min.css +1 -1
  142. package/dist/components/sticky.css +1 -1
  143. package/dist/components/sticky.js +135 -180
  144. package/dist/components/sticky.min.css +1 -1
  145. package/dist/components/sticky.min.js +2 -2
  146. package/dist/components/tab.css +1 -1
  147. package/dist/components/tab.js +176 -244
  148. package/dist/components/tab.min.css +1 -1
  149. package/dist/components/tab.min.js +2 -2
  150. package/dist/components/table.css +3 -37
  151. package/dist/components/table.min.css +2 -2
  152. package/dist/components/text.css +1 -1
  153. package/dist/components/text.min.css +1 -1
  154. package/dist/components/toast.css +1 -3
  155. package/dist/components/toast.js +109 -147
  156. package/dist/components/toast.min.css +1 -1
  157. package/dist/components/toast.min.js +2 -2
  158. package/dist/components/transition.css +1 -1
  159. package/dist/components/transition.js +91 -146
  160. package/dist/components/transition.min.css +1 -1
  161. package/dist/components/transition.min.js +2 -2
  162. package/dist/components/visibility.js +146 -224
  163. package/dist/components/visibility.min.js +2 -2
  164. package/dist/semantic.css +3906 -8720
  165. package/dist/semantic.js +4397 -6155
  166. package/dist/semantic.min.css +2 -2
  167. package/dist/semantic.min.js +2 -2
  168. package/examples/assets/show-examples.js +2 -4
  169. package/gulpfile.js +5 -7
  170. package/package.json +3 -5
  171. package/scripts/nightly-version.js +7 -10
  172. package/src/README.md +3 -3
  173. package/src/definitions/behaviors/api.js +156 -209
  174. package/src/definitions/behaviors/form.js +334 -443
  175. package/src/definitions/behaviors/state.js +69 -99
  176. package/src/definitions/behaviors/visibility.js +145 -223
  177. package/src/definitions/collections/form.less +1 -13
  178. package/src/definitions/collections/grid.less +1 -61
  179. package/src/definitions/collections/menu.less +0 -11
  180. package/src/definitions/collections/table.less +1 -35
  181. package/src/definitions/elements/input.less +1 -61
  182. package/src/definitions/elements/segment.less +0 -6
  183. package/src/definitions/globals/site.js +37 -56
  184. package/src/definitions/globals/site.less +2 -18
  185. package/src/definitions/modules/accordion.js +102 -141
  186. package/src/definitions/modules/calendar.js +313 -351
  187. package/src/definitions/modules/checkbox.js +84 -134
  188. package/src/definitions/modules/dimmer.js +60 -93
  189. package/src/definitions/modules/dimmer.less +0 -9
  190. package/src/definitions/modules/dropdown.js +735 -1054
  191. package/src/definitions/modules/dropdown.less +31 -47
  192. package/src/definitions/modules/embed.js +84 -113
  193. package/src/definitions/modules/flyout.js +225 -354
  194. package/src/definitions/modules/modal.js +260 -383
  195. package/src/definitions/modules/modal.less +1 -1
  196. package/src/definitions/modules/nag.js +67 -97
  197. package/src/definitions/modules/popup.js +197 -270
  198. package/src/definitions/modules/progress.js +108 -143
  199. package/src/definitions/modules/rating.js +90 -122
  200. package/src/definitions/modules/search.js +276 -378
  201. package/src/definitions/modules/search.less +0 -3
  202. package/src/definitions/modules/shape.js +157 -223
  203. package/src/definitions/modules/sidebar.js +123 -205
  204. package/src/definitions/modules/slider.js +245 -328
  205. package/src/definitions/modules/slider.less +1 -1
  206. package/src/definitions/modules/sticky.js +134 -179
  207. package/src/definitions/modules/tab.js +175 -243
  208. package/src/definitions/modules/toast.js +108 -146
  209. package/src/definitions/modules/toast.less +1 -1
  210. package/src/definitions/modules/transition.js +90 -145
  211. package/src/theme.less +0 -13
  212. package/src/themes/basic/elements/icon.variables +1 -1
  213. package/src/themes/default/collections/grid.variables +0 -30
  214. package/src/themes/default/collections/table.variables +1 -5
  215. package/src/themes/default/elements/icon.variables +3 -3
  216. package/src/themes/default/globals/site.variables +8 -15
  217. package/src/themes/default/globals/variation.variables +1 -2
  218. package/src/themes/default/modules/dropdown.variables +1 -0
  219. package/src/themes/default/modules/slider.variables +1 -1
  220. package/src/themes/github/elements/icon.variables +1 -1
  221. package/src/themes/material/elements/icon.variables +1 -1
  222. package/tasks/README.md +1 -1
  223. package/tasks/admin/components/create.js +89 -122
  224. package/tasks/admin/components/init.js +34 -65
  225. package/tasks/admin/components/update.js +50 -61
  226. package/tasks/admin/distributions/create.js +71 -111
  227. package/tasks/admin/distributions/init.js +32 -63
  228. package/tasks/admin/distributions/update.js +49 -57
  229. package/tasks/admin/publish.js +1 -1
  230. package/tasks/admin/register.js +14 -19
  231. package/tasks/admin/release.js +2 -2
  232. package/tasks/build/assets.js +14 -18
  233. package/tasks/build/css.js +59 -68
  234. package/tasks/build/javascript.js +48 -56
  235. package/tasks/build.js +4 -6
  236. package/tasks/check-install.js +5 -8
  237. package/tasks/clean.js +5 -7
  238. package/tasks/collections/admin.js +14 -16
  239. package/tasks/collections/build.js +6 -8
  240. package/tasks/collections/docs.js +4 -6
  241. package/tasks/collections/install.js +2 -4
  242. package/tasks/collections/rtl.js +2 -4
  243. package/tasks/collections/various.js +2 -4
  244. package/tasks/config/admin/github.js +9 -19
  245. package/tasks/config/admin/templates/README.md +2 -2
  246. package/tasks/config/admin/templates/bower.json +2 -4
  247. package/tasks/config/admin/templates/composer.json +1 -1
  248. package/tasks/config/admin/templates/css-package.js +1 -4
  249. package/tasks/config/admin/templates/less-package.js +1 -3
  250. package/tasks/config/defaults.js +0 -1
  251. package/tasks/config/npm/gulpfile.js +4 -6
  252. package/tasks/config/project/config.js +27 -35
  253. package/tasks/config/project/install.js +64 -82
  254. package/tasks/config/project/release.js +7 -9
  255. package/tasks/config/tasks.js +10 -21
  256. package/tasks/config/user.js +14 -20
  257. package/tasks/docs/build.js +26 -31
  258. package/tasks/docs/metadata.js +30 -39
  259. package/tasks/docs/serve.js +23 -27
  260. package/tasks/install.js +94 -128
  261. package/tasks/rtl/build.js +2 -4
  262. package/tasks/rtl/watch.js +3 -5
  263. package/tasks/watch.js +13 -13
  264. package/test/meteor/fonts.js +1 -2
  265. package/test/modules/module.spec.js +16 -18
  266. package/types/fomantic-ui-calendar.d.ts +1 -1
  267. package/types/fomantic-ui-dropdown.d.ts +45 -1
  268. package/types/fomantic-ui-embed.d.ts +1 -1
  269. package/types/fomantic-ui-flyout.d.ts +1 -1
  270. package/types/fomantic-ui-form.d.ts +0 -7
  271. package/types/fomantic-ui-modal.d.ts +1 -1
  272. package/types/fomantic-ui-search.d.ts +12 -6
  273. package/types/fomantic-ui-toast.d.ts +1 -1
  274. package/src/themes/basic/assets/fonts/icons.woff +0 -0
  275. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  276. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  277. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  278. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  279. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  280. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  281. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  282. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  283. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  284. package/src/themes/default/assets/fonts/icons.woff +0 -0
  285. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  286. package/src/themes/github/assets/fonts/octicons.woff +0 -0
  287. package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -2,46 +2,44 @@
2
2
  Build Task
3
3
  *******************************/
4
4
 
5
- const
6
- gulp = require('gulp'),
7
-
8
- // node dependencies
9
- console = require('@fomantic/better-console'),
10
-
11
- // gulp dependencies
12
- chmod = require('gulp-chmod'),
13
- concat = require('gulp-concat'),
14
- dedupe = require('@fomantic/gulp-dedupe'),
15
- flatten = require('gulp-flatten'),
16
- gulpif = require('gulp-if'),
17
- header = require('@fomantic/gulp-header'),
18
- normalize = require('normalize-path'),
19
- ordered = require('ordered-read-streams'),
20
- plumber = require('@fomantic/gulp-plumber'),
21
- print = require('gulp-print').default,
22
- rename = require('gulp-rename'),
23
- replace = require('gulp-replace'),
24
- uglify = require('gulp-uglify'),
25
-
26
- // config
27
- config = require('../config/user'),
28
- docsConfig = require('../config/docs'),
29
- tasks = require('../config/tasks'),
30
- install = require('../config/project/install'),
31
-
32
- // shorthand
33
- globs = config.globs,
34
- assets = config.paths.assets,
35
-
36
- banner = tasks.banner,
37
- filenames = tasks.filenames,
38
- comments = tasks.regExp.comments,
39
- log = tasks.log,
40
- settings = tasks.settings
41
- ;
5
+ const gulp = require('gulp');
6
+
7
+ // node dependencies
8
+ const console = require('@fomantic/better-console');
9
+
10
+ // gulp dependencies
11
+ const chmod = require('gulp-chmod');
12
+ const concat = require('gulp-concat');
13
+ const dedupe = require('@fomantic/gulp-dedupe');
14
+ const flatten = require('gulp-flatten');
15
+ const gulpif = require('gulp-if');
16
+ const header = require('@fomantic/gulp-header');
17
+ const normalize = require('normalize-path');
18
+ const ordered = require('ordered-read-streams');
19
+ const plumber = require('@fomantic/gulp-plumber');
20
+ const print = require('gulp-print').default;
21
+ const rename = require('gulp-rename');
22
+ const replace = require('gulp-replace');
23
+ const uglify = require('gulp-uglify');
24
+
25
+ // config
26
+ const config = require('../config/user');
27
+ const docsConfig = require('../config/docs');
28
+ const tasks = require('../config/tasks');
29
+ const install = require('../config/project/install');
30
+
31
+ // shorthand
32
+ const globs = config.globs;
33
+ const assets = config.paths.assets;
34
+
35
+ const banner = tasks.banner;
36
+ const filenames = tasks.filenames;
37
+ const comments = tasks.regExp.comments;
38
+ const log = tasks.log;
39
+ const settings = tasks.settings;
42
40
 
43
41
  /**
44
- * Concat and uglify the Javascript files
42
+ * Concat and uglify the JavaScript files
45
43
  * @param {string|array} src - source files
46
44
  * @param type
47
45
  * @param config
@@ -60,24 +58,22 @@ function build(src, type, config) {
60
58
  .pipe(header(banner, settings.header))
61
59
  .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
62
60
  .pipe(gulp.dest(config.paths.output.compressed))
63
- .pipe(print(log.created))
64
- ;
61
+ .pipe(print(log.created));
65
62
  }
66
63
 
67
64
  /**
68
- * Packages the Javascript files in dist
65
+ * Packages the JavaScript files in dist
69
66
  * @param {string} type - type of the js processing (none, rtl, docs)
70
67
  * @param {boolean} compress - should the output be compressed
71
68
  */
72
69
  function pack(type, compress) {
73
- const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
70
+ const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
74
71
  const concatenatedJS = compress ? filenames.concatenatedMinifiedJS : filenames.concatenatedJS;
75
72
 
76
73
  let src = globs.components
77
74
  .replace(/[{}]/g, '')
78
75
  .split(',')
79
- .map((c) => gulp.src(output.uncompressed + '/**/' + c + globs.ignored + '.js'))
80
- ;
76
+ .map((c) => gulp.src(output.uncompressed + '/**/' + c + globs.ignored + '.js'));
81
77
 
82
78
  return ordered(src)
83
79
  .pipe(plumber())
@@ -89,8 +85,7 @@ function pack(type, compress) {
89
85
  .pipe(header(banner, settings.header))
90
86
  .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
91
87
  .pipe(gulp.dest(output.packaged))
92
- .pipe(print(log.created))
93
- ;
88
+ .pipe(print(log.created));
94
89
  }
95
90
 
96
91
  function buildJS(src, type, config, callback) {
@@ -115,13 +110,13 @@ function buildJS(src, type, config, callback) {
115
110
  }
116
111
 
117
112
  // copy source javascript
118
- const js = () => build(src, type, config);
113
+ const js = () => build(src, type, config);
119
114
  js.displayName = 'Building un/compressed Javascript';
120
115
 
121
- const packUncompressed = () => pack(type, false);
116
+ const packUncompressed = () => pack(type, false);
122
117
  packUncompressed.displayName = 'Packing uncompressed Javascript';
123
118
 
124
- const packCompressed = () => pack(type, true);
119
+ const packCompressed = () => pack(type, true);
125
120
  packCompressed.displayName = 'Packing compressed Javascript';
126
121
 
127
122
  gulp.series(js, gulp.parallel(packUncompressed, packCompressed))(callback);
@@ -132,10 +127,8 @@ module.exports = function (callback) {
132
127
  };
133
128
 
134
129
  // We keep the changed files in an array to call build with all of them at the same time
135
- let
136
- timeout,
137
- files = []
138
- ;
130
+ let timeout;
131
+ let files = [];
139
132
 
140
133
  module.exports.watch = function (type, config) {
141
134
  gulp
@@ -151,7 +144,7 @@ module.exports.watch = function (type, config) {
151
144
  clearTimeout(timeout);
152
145
  }
153
146
 
154
- // Add file to internal changed files array
147
+ // Add the file to the internal changed files array
155
148
  if (!files.includes(path)) {
156
149
  files.push(path);
157
150
  }
@@ -166,8 +159,7 @@ module.exports.watch = function (type, config) {
166
159
  // Reset internal changed files array
167
160
  files = [];
168
161
  }, 1000);
169
- })
170
- ;
162
+ });
171
163
  };
172
164
 
173
165
  module.exports.buildJS = buildJS;
package/tasks/build.js CHANGED
@@ -2,13 +2,11 @@
2
2
  * Build Task
3
3
  *******************************/
4
4
 
5
- const
6
- // dependencies
7
- gulp = require('gulp'),
5
+ // dependencies
6
+ const gulp = require('gulp');
8
7
 
9
- // config
10
- install = require('./config/project/install')
11
- ;
8
+ // config
9
+ const install = require('./config/project/install');
12
10
 
13
11
  module.exports = function (callback) {
14
12
  console.info('Building Fomantic');
@@ -2,15 +2,12 @@
2
2
  * Check Install
3
3
  *******************************/
4
4
 
5
- const
6
- // node dependencies
7
- gulp = require('gulp'),
8
- console = require('@fomantic/better-console'),
9
- isSetup = require('./config/project/install').isSetup,
5
+ // node dependencies
6
+ const console = require('@fomantic/better-console');
7
+ const isSetup = require('./config/project/install').isSetup;
10
8
 
11
- install = require('./install'),
12
- watch = require('./watch')
13
- ;
9
+ const install = require('./install');
10
+ const watch = require('./watch');
14
11
 
15
12
  // export task
16
13
  module.exports = function (callback) {
package/tasks/clean.js CHANGED
@@ -2,13 +2,11 @@
2
2
  Clean Task
3
3
  *******************************/
4
4
 
5
- const
6
- del = require('del'),
7
- config = require('./config/user'),
8
- tasks = require('./config/tasks')
9
- ;
5
+ const fs = require('fs-extra');
6
+ const config = require('./config/user');
10
7
 
11
8
  // cleans distribution files
12
- module.exports = function () {
13
- return del([config.paths.clean], tasks.settings.del);
9
+ module.exports = function (callback) {
10
+ fs.removeSync(config.paths.clean);
11
+ callback();
14
12
  };
@@ -2,24 +2,22 @@
2
2
  * Admin Task Collection
3
3
  *******************************/
4
4
 
5
- const
6
- // less/css distributions
7
- initComponents = require('../admin/components/init'),
8
- createComponents = require('../admin/components/create'),
9
- updateComponents = require('../admin/components/update'),
10
-
11
- // single component releases
12
- initDistributions = require('../admin/distributions/init'),
13
- createDistributions = require('../admin/distributions/create'),
14
- updateDistributions = require('../admin/distributions/update'),
15
-
16
- release = require('../admin/release'),
17
- publish = require('../admin/publish'),
18
- register = require('../admin/register')
19
- ;
5
+ // less/css distributions
6
+ const initComponents = require('../admin/components/init');
7
+ const createComponents = require('../admin/components/create');
8
+ const updateComponents = require('../admin/components/update');
9
+
10
+ // single component releases
11
+ const initDistributions = require('../admin/distributions/init');
12
+ const createDistributions = require('../admin/distributions/create');
13
+ const updateDistributions = require('../admin/distributions/update');
14
+
15
+ const release = require('../admin/release');
16
+ const publish = require('../admin/publish');
17
+ const register = require('../admin/register');
20
18
 
21
19
  /*
22
- This are tasks to be run by project maintainers
20
+ These are tasks to be run by project maintainers
23
21
  - Creating Component Repos
24
22
  - Syncing with GitHub via APIs
25
23
  - Modifying package files
@@ -2,15 +2,13 @@
2
2
  * Define Build Sub-Tasks
3
3
  *******************************/
4
4
 
5
- const
6
- watch = require('../watch'),
5
+ const watch = require('../watch');
7
6
 
8
- // build sub-tasks
9
- build = require('../build'),
10
- buildJS = require('../build/javascript'),
11
- buildCSS = require('../build/css'),
12
- buildAssets = require('../build/assets')
13
- ;
7
+ // build sub-tasks
8
+ const build = require('../build');
9
+ const buildJS = require('../build/javascript');
10
+ const buildCSS = require('../build/css');
11
+ const buildAssets = require('../build/assets');
14
12
 
15
13
  module.exports = function (gulp) {
16
14
  gulp.task('watch', watch);
@@ -3,10 +3,8 @@
3
3
  *******************************/
4
4
 
5
5
  // docs tasks
6
- const
7
- buildDocs = require('../docs/build'),
8
- serveDocs = require('../docs/serve')
9
- ;
6
+ const buildDocs = require('../docs/build');
7
+ const serveDocs = require('../docs/serve');
10
8
 
11
9
  /*
12
10
  Lets you serve files to a local documentation instance
@@ -14,8 +12,8 @@ const
14
12
  */
15
13
  module.exports = function (gulp) {
16
14
  gulp.task('serve-docs', serveDocs);
17
- gulp.task('serve-docs').description = 'Serve file changes to SUI Docs';
15
+ gulp.task('serve-docs').description = 'Serve file changes to FUI Docs';
18
16
 
19
17
  gulp.task('build-docs', buildDocs);
20
- gulp.task('build-docs').description = 'Build all files and add to SUI Docs';
18
+ gulp.task('build-docs').description = 'Build all files and add to FUI Docs';
21
19
  };
@@ -3,10 +3,8 @@
3
3
  *******************************/
4
4
 
5
5
  // docs tasks
6
- const
7
- install = require('../install'),
8
- checkInstall = require('../check-install')
9
- ;
6
+ const install = require('../install');
7
+ const checkInstall = require('../check-install');
10
8
 
11
9
  /*
12
10
  Lets you serve files to a local documentation instance
@@ -2,10 +2,8 @@
2
2
  * Define RTL Sub-Tasks
3
3
  *******************************/
4
4
 
5
- const
6
- buildRTL = require('../rtl/build'),
7
- watchRTL = require('../rtl/watch')
8
- ;
5
+ const buildRTL = require('../rtl/build');
6
+ const watchRTL = require('../rtl/watch');
9
7
 
10
8
  module.exports = function (gulp) {
11
9
  gulp.task('watch-rtl', watchRTL);
@@ -2,10 +2,8 @@
2
2
  * Define Various Sub-Tasks
3
3
  *******************************/
4
4
 
5
- const
6
- clean = require('../clean'),
7
- version = require('../version')
8
- ;
5
+ const clean = require('../clean');
6
+ const version = require('../version');
9
7
 
10
8
  /*
11
9
  Lets you serve files to a local documentation instance
@@ -5,31 +5,21 @@
5
5
  Logs into GitHub using OAuth
6
6
  */
7
7
 
8
- const
9
- fs = require('fs'),
10
- path = require('path'),
11
- GithubAPI = require('@octokit/rest'),
8
+ const fs = require('node:fs');
9
+ const path = require('node:path');
10
+ const GithubAPI = require('@octokit/rest');
12
11
 
13
- // stores oauth info for GitHub API
14
- oAuth = fs.existsSync(path.join(__dirname, './oauth.js'))
15
- ? require('./oauth.js') // eslint-disable-line import/extensions
16
- : false
17
- ;
12
+ // stores oauth info for GitHub API
13
+ const oAuth = fs.existsSync(path.join(__dirname, './oauth.js'))
14
+ ? require('./oauth.js') // eslint-disable-line import/extensions
15
+ : false;
18
16
 
19
17
  if (!oAuth) {
20
18
  console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js');
21
19
  }
22
20
 
23
- let github = new GithubAPI({
24
- version: '3.0.0',
25
- debug: true,
26
- protocol: 'https',
27
- timeout: 5000,
28
- });
29
-
30
- github.authenticate({
31
- type: 'oauth',
32
- token: oAuth.token,
21
+ let github = new GithubAPI.Octokit({
22
+ auth: oAuth.token,
33
23
  });
34
24
 
35
25
  module.exports = github;
@@ -2,7 +2,7 @@
2
2
 
3
3
  This repository contains pre-compiled {component} files using the default themes. This is intended for use in projects that do not need all the bells and whistles of Fomantic UI, and want to keep file size to a minimum.
4
4
 
5
- For the latest changes please see the [Release Notes](https://github.com/fomantic/UI-{Component}/blob/master/RELEASE-NOTES.md)
5
+ For the latest changes, please see the [Release Notes](https://github.com/fomantic/UI-{Component}/blob/master/RELEASE-NOTES.md)
6
6
 
7
7
  **Special Note**
8
8
  An update in `2.0.8` has fixed an issue which may have prevented some single component modules from working correctly. Please see notes in [this pull request](https://github.com/Semantic-Org/Semantic-UI/pull/2816).
@@ -27,6 +27,6 @@ meteor add fomantic:ui-{component}
27
27
 
28
28
  ## Addendum
29
29
 
30
- This element's definitions (required class names, html structures) are available in the [UI Docs](https://www.fomantic-ui.com)
30
+ This element's definitions (required class names, HTML structures) are available in the [UI Docs](https://www.fomantic-ui.com)
31
31
 
32
32
  Please consider checking out [all the benefits to theming](http://www.learnsemantic.com/guide/expert.html) before using these stand-alone releases.
@@ -4,11 +4,8 @@
4
4
  "homepage" : "https://www.fomantic-ui.com",
5
5
  "author": {
6
6
  "name" : "Jack Lukic",
7
- "web" : "http://www.jacklukic.com"
7
+ "web" : "https://www.jacklukic.com"
8
8
  },
9
- "ignore": [
10
- "./index.js"
11
- ],
12
9
  "keywords": [
13
10
  "fomantic",
14
11
  "semantic",
@@ -20,6 +17,7 @@
20
17
  "https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md"
21
18
  ],
22
19
  "ignore": [
20
+ "./index.js",
23
21
  "docs",
24
22
  "node",
25
23
  "server",
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "name" : "Jack Lukic",
8
8
  "email": "jacklukic@gmail.com",
9
- "homepage" : "http://www.jacklukic.com",
9
+ "homepage" : "https://www.jacklukic.com",
10
10
  "role" : "Creator"
11
11
  }
12
12
  ],
@@ -1,6 +1,4 @@
1
- let
2
- where = 'client' // Adds files only to the client
3
- ;
1
+ let where = 'client'; // Adds files only to the client
4
2
 
5
3
  Package.describe({
6
4
  name: 'fomantic:ui-css',
@@ -16,7 +14,6 @@ Package.onUse(function (api) {
16
14
 
17
15
  api.addAssets([
18
16
  // icons
19
- 'themes/default/assets/fonts/icons.woff',
20
17
  'themes/default/assets/fonts/icons.woff2',
21
18
  ], 'client');
22
19
 
@@ -1,6 +1,4 @@
1
- let
2
- where = 'client' // Adds files only to the client
3
- ;
1
+ let where = 'client'; // Adds files only to the client
4
2
 
5
3
  Package.describe({
6
4
  name: 'semantic:ui',
@@ -19,7 +19,6 @@ module.exports = {
19
19
  // file paths
20
20
  files: {
21
21
  config: 'semantic.json',
22
- site: 'src/site',
23
22
  theme: 'src/theme.config',
24
23
  },
25
24
 
@@ -2,14 +2,12 @@
2
2
  * Set-up
3
3
  *******************************/
4
4
 
5
- const
6
- gulp = require('gulp'),
5
+ const gulp = require('gulp');
7
6
 
8
- // read user config to know what task to load
9
- config = require('./tasks/config/user'), // eslint-disable-line import/extensions
7
+ // read user config to know what task to load
8
+ const config = require('./tasks/config/user'); // eslint-disable-line import/extensions
10
9
 
11
- rtl = require('./tasks/collections/rtl') // eslint-disable-line import/extensions
12
- ;
10
+ const rtl = require('./tasks/collections/rtl'); // eslint-disable-line import/extensions
13
11
 
14
12
  /*******************************
15
13
  * Tasks
@@ -2,12 +2,10 @@
2
2
  Set-up
3
3
  *******************************/
4
4
 
5
- const
6
- fs = require('fs'),
7
- path = require('path'),
5
+ const fs = require('node:fs');
6
+ const path = require('node:path');
8
7
 
9
- defaults = require('../defaults')
10
- ;
8
+ const defaults = require('../defaults');
11
9
 
12
10
  /*******************************
13
11
  Exports
@@ -16,28 +14,24 @@ const
16
14
  module.exports = {
17
15
 
18
16
  getPath: function (file, directory) {
19
- let
20
- configPath,
21
- walk = function (directory) {
22
- let
23
- nextDirectory = path.resolve(path.join(directory, path.sep, '..')),
24
- currentPath = path.normalize(path.join(directory, file))
25
- ;
26
- if (fs.existsSync(currentPath)) {
27
- // found file
28
- configPath = path.normalize(directory);
29
- } else {
30
- // reached file system root, let's stop
31
- if (nextDirectory === directory) {
32
- return;
33
- }
34
- // otherwise recurse
35
- walk(nextDirectory, file);
17
+ let configPath;
18
+ let walk = function (directory) {
19
+ let nextDirectory = path.resolve(path.join(directory, path.sep, '..'));
20
+ let currentPath = path.normalize(path.join(directory, file));
21
+ if (fs.existsSync(currentPath)) {
22
+ // found the file
23
+ configPath = path.normalize(directory);
24
+ } else {
25
+ // reached file system root, let's stop
26
+ if (nextDirectory === directory) {
27
+ return;
36
28
  }
29
+ // otherwise recurse
30
+ walk(nextDirectory, file);
37
31
  }
38
- ;
32
+ };
39
33
 
40
- // start walk from outside require-dot-files directory
34
+ // start the walk from outside require-dot-files directory
41
35
  file = file || defaults.files.config;
42
36
  directory = directory || path.join(__dirname, path.sep, '..');
43
37
  walk(directory);
@@ -51,12 +45,10 @@ module.exports = {
51
45
  File Paths
52
46
  --------------- */
53
47
 
54
- let
55
- configPath = this.getPath(),
56
- sourcePaths = {},
57
- outputPaths = {},
58
- folder
59
- ;
48
+ let configPath = this.getPath();
49
+ let sourcePaths = {};
50
+ let outputPaths = {};
51
+ let folder;
60
52
 
61
53
  // resolve paths (config location + base + path)
62
54
  for (folder in config.paths.source) {
@@ -81,7 +73,7 @@ module.exports = {
81
73
  CSS URLs
82
74
  --------------- */
83
75
 
84
- // determine asset paths in css by finding relative path between themes and output
76
+ // determine asset paths in CSS by finding relative path between themes and output
85
77
  // force forward slashes
86
78
 
87
79
  config.paths.assets = {
@@ -99,7 +91,7 @@ module.exports = {
99
91
  config.hasPermissions = true;
100
92
  config.parsedPermissions = typeof config.permission === 'string' ? parseInt(config.permission, 8) : config.permission;
101
93
  } else {
102
- // pass blank object to avoid causing errors
94
+ // pass a blank object to avoid causing errors
103
95
  config.permission = {};
104
96
  config.hasPermissions = false;
105
97
  config.parsedPermissions = {};
@@ -113,7 +105,7 @@ module.exports = {
113
105
  config.globs = {};
114
106
  }
115
107
 
116
- // remove duplicates from component array
108
+ // remove duplicates from the component array
117
109
  if (Array.isArray(config.components)) {
118
110
  config.components = config.components.filter(function (component, index) {
119
111
  return config.components.indexOf(component) === index;
@@ -123,12 +115,12 @@ module.exports = {
123
115
  const components = Array.isArray(config.components) && config.components.length > 0
124
116
  ? config.components
125
117
  : defaults.components;
126
- const individuals = Array.isArray(config.individuals) && config.individuals.length > 0
118
+ const individuals = Array.isArray(config.individuals) && config.individuals.length > 0
127
119
  ? config.individuals
128
120
  : [];
129
121
  const componentsExceptIndividuals = components.filter((component) => !individuals.includes(component));
130
122
 
131
- // takes component object and creates file glob matching selected components
123
+ // takes the component object and creates file glob matching selected components
132
124
  config.globs.components = componentsExceptIndividuals.length === 1 ? componentsExceptIndividuals[0] : '{' + componentsExceptIndividuals.join(',') + '}';
133
125
 
134
126
  // components that should be built, but excluded from main .css/.js files