fomantic-ui 2.9.1-beta.17 → 2.9.1-beta.19

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 (252) hide show
  1. package/.eslintrc.js +109 -0
  2. package/.github/workflows/ci.yml +13 -3
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +569 -598
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +2 -2
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1161 -1184
  10. package/dist/components/api.min.js +2 -2
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +1895 -1818
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +842 -841
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +3 -1
  28. package/dist/components/container.min.css +2 -2
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +708 -737
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +2 -2
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +11 -8
  36. package/dist/components/dropdown.js +4161 -4238
  37. package/dist/components/dropdown.min.css +2 -2
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +651 -675
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +2 -2
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +6 -3
  48. package/dist/components/flyout.js +1464 -1467
  49. package/dist/components/flyout.min.css +2 -2
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1979 -2004
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +2 -2
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/message.css +1 -1
  74. package/dist/components/message.min.css +1 -1
  75. package/dist/components/modal.css +7 -1
  76. package/dist/components/modal.js +1491 -1487
  77. package/dist/components/modal.min.css +2 -2
  78. package/dist/components/modal.min.js +2 -2
  79. package/dist/components/nag.css +1 -1
  80. package/dist/components/nag.js +518 -529
  81. package/dist/components/nag.min.css +1 -1
  82. package/dist/components/nag.min.js +2 -2
  83. package/dist/components/placeholder.css +1 -1
  84. package/dist/components/placeholder.min.css +1 -1
  85. package/dist/components/popup.css +1 -1
  86. package/dist/components/popup.js +1437 -1456
  87. package/dist/components/popup.min.css +1 -1
  88. package/dist/components/popup.min.js +2 -2
  89. package/dist/components/progress.css +1 -1
  90. package/dist/components/progress.js +969 -997
  91. package/dist/components/progress.min.css +1 -1
  92. package/dist/components/progress.min.js +2 -2
  93. package/dist/components/rail.css +1 -1
  94. package/dist/components/rail.min.css +1 -1
  95. package/dist/components/rating.css +1 -1
  96. package/dist/components/rating.js +505 -523
  97. package/dist/components/rating.min.css +1 -1
  98. package/dist/components/rating.min.js +2 -2
  99. package/dist/components/reset.css +1 -1
  100. package/dist/components/reset.min.css +1 -1
  101. package/dist/components/reveal.css +1 -1
  102. package/dist/components/reveal.min.css +1 -1
  103. package/dist/components/search.css +3 -1
  104. package/dist/components/search.js +1498 -1534
  105. package/dist/components/search.min.css +2 -2
  106. package/dist/components/search.min.js +2 -2
  107. package/dist/components/segment.css +3 -1
  108. package/dist/components/segment.min.css +2 -2
  109. package/dist/components/shape.css +1 -1
  110. package/dist/components/shape.js +792 -809
  111. package/dist/components/shape.min.css +1 -1
  112. package/dist/components/shape.min.js +2 -2
  113. package/dist/components/sidebar.css +3 -1
  114. package/dist/components/sidebar.js +1071 -1098
  115. package/dist/components/sidebar.min.css +2 -2
  116. package/dist/components/sidebar.min.js +2 -2
  117. package/dist/components/site.css +1 -1
  118. package/dist/components/site.js +462 -471
  119. package/dist/components/site.min.css +1 -1
  120. package/dist/components/site.min.js +2 -2
  121. package/dist/components/slider.js +1287 -1311
  122. package/dist/components/slider.min.js +2 -2
  123. package/dist/components/state.js +639 -657
  124. package/dist/components/state.min.js +2 -2
  125. package/dist/components/statistic.css +1 -1
  126. package/dist/components/statistic.min.css +1 -1
  127. package/dist/components/step.css +1 -1
  128. package/dist/components/step.min.css +1 -1
  129. package/dist/components/sticky.css +1 -1
  130. package/dist/components/sticky.js +857 -903
  131. package/dist/components/sticky.min.css +1 -1
  132. package/dist/components/sticky.min.js +2 -2
  133. package/dist/components/tab.css +1 -1
  134. package/dist/components/tab.js +922 -963
  135. package/dist/components/tab.min.css +1 -1
  136. package/dist/components/tab.min.js +2 -2
  137. package/dist/components/table.css +5 -1
  138. package/dist/components/table.min.css +2 -2
  139. package/dist/components/text.css +1 -1
  140. package/dist/components/text.min.css +1 -1
  141. package/dist/components/toast.css +1 -1
  142. package/dist/components/toast.js +886 -890
  143. package/dist/components/toast.min.css +1 -1
  144. package/dist/components/toast.min.js +2 -2
  145. package/dist/components/transition.css +1 -1
  146. package/dist/components/transition.js +1041 -1077
  147. package/dist/components/transition.min.css +1 -1
  148. package/dist/components/transition.min.js +2 -2
  149. package/dist/components/visibility.js +1220 -1244
  150. package/dist/components/visibility.min.js +2 -2
  151. package/dist/semantic.css +84 -60
  152. package/dist/semantic.js +28949 -29435
  153. package/dist/semantic.min.css +2 -2
  154. package/dist/semantic.min.js +2 -2
  155. package/examples/assets/show-examples.js +13 -13
  156. package/gulpfile.js +9 -10
  157. package/package.json +5 -2
  158. package/scripts/nightly-version.js +81 -75
  159. package/src/definitions/behaviors/api.js +1162 -1185
  160. package/src/definitions/behaviors/form.js +1978 -2003
  161. package/src/definitions/behaviors/state.js +645 -663
  162. package/src/definitions/behaviors/visibility.js +1219 -1243
  163. package/src/definitions/collections/table.less +2 -0
  164. package/src/definitions/elements/container.less +1 -0
  165. package/src/definitions/elements/segment.less +1 -0
  166. package/src/definitions/globals/site.js +461 -470
  167. package/src/definitions/modules/accordion.js +568 -597
  168. package/src/definitions/modules/calendar.js +1894 -1817
  169. package/src/definitions/modules/checkbox.js +841 -840
  170. package/src/definitions/modules/dimmer.js +707 -736
  171. package/src/definitions/modules/dropdown.js +4160 -4237
  172. package/src/definitions/modules/dropdown.less +5 -8
  173. package/src/definitions/modules/embed.js +650 -674
  174. package/src/definitions/modules/flyout.js +1463 -1466
  175. package/src/definitions/modules/flyout.less +15 -12
  176. package/src/definitions/modules/modal.js +1490 -1486
  177. package/src/definitions/modules/modal.less +3 -0
  178. package/src/definitions/modules/nag.js +517 -528
  179. package/src/definitions/modules/popup.js +1436 -1455
  180. package/src/definitions/modules/progress.js +968 -996
  181. package/src/definitions/modules/rating.js +504 -522
  182. package/src/definitions/modules/search.js +1497 -1533
  183. package/src/definitions/modules/search.less +1 -0
  184. package/src/definitions/modules/shape.js +791 -808
  185. package/src/definitions/modules/sidebar.js +1070 -1097
  186. package/src/definitions/modules/sidebar.less +1 -0
  187. package/src/definitions/modules/slider.js +1286 -1310
  188. package/src/definitions/modules/sticky.js +873 -919
  189. package/src/definitions/modules/tab.js +921 -962
  190. package/src/definitions/modules/toast.js +885 -889
  191. package/src/definitions/modules/transition.js +1040 -1076
  192. package/src/themes/default/elements/container.variables +0 -7
  193. package/src/themes/default/elements/segment.variables +0 -7
  194. package/src/themes/default/globals/site.variables +7 -0
  195. package/src/themes/default/globals/variation.variables +1 -0
  196. package/tasks/admin/components/create.js +274 -276
  197. package/tasks/admin/components/init.js +123 -130
  198. package/tasks/admin/components/update.js +149 -157
  199. package/tasks/admin/distributions/create.js +184 -187
  200. package/tasks/admin/distributions/init.js +123 -130
  201. package/tasks/admin/distributions/update.js +145 -152
  202. package/tasks/admin/publish.js +5 -7
  203. package/tasks/admin/register.js +36 -38
  204. package/tasks/admin/release.js +8 -10
  205. package/tasks/build/assets.js +42 -39
  206. package/tasks/build/css.js +225 -216
  207. package/tasks/build/javascript.js +118 -113
  208. package/tasks/build.js +10 -10
  209. package/tasks/check-install.js +14 -16
  210. package/tasks/clean.js +5 -5
  211. package/tasks/collections/admin.js +34 -36
  212. package/tasks/collections/build.js +18 -20
  213. package/tasks/collections/docs.js +9 -11
  214. package/tasks/collections/install.js +9 -11
  215. package/tasks/collections/rtl.js +9 -11
  216. package/tasks/collections/various.js +8 -10
  217. package/tasks/config/admin/github.js +17 -17
  218. package/tasks/config/admin/oauth.example.js +4 -4
  219. package/tasks/config/admin/release.js +98 -98
  220. package/tasks/config/admin/templates/component-package.js +9 -10
  221. package/tasks/config/admin/templates/css-package.js +18 -20
  222. package/tasks/config/admin/templates/less-package.js +11 -13
  223. package/tasks/config/defaults.js +116 -116
  224. package/tasks/config/docs.js +23 -23
  225. package/tasks/config/npm/gulpfile.js +8 -9
  226. package/tasks/config/project/config.js +127 -134
  227. package/tasks/config/project/install.js +715 -713
  228. package/tasks/config/project/release.js +32 -38
  229. package/tasks/config/tasks.js +163 -164
  230. package/tasks/config/user.js +23 -29
  231. package/tasks/docs/build.js +97 -95
  232. package/tasks/docs/metadata.js +90 -96
  233. package/tasks/docs/serve.js +80 -81
  234. package/tasks/install.js +370 -378
  235. package/tasks/rtl/build.js +2 -2
  236. package/tasks/rtl/watch.js +2 -2
  237. package/tasks/version.js +4 -4
  238. package/tasks/watch.js +28 -30
  239. package/test/meteor/assets.js +10 -13
  240. package/test/meteor/fonts.js +12 -13
  241. package/test/modules/accordion.spec.js +6 -8
  242. package/test/modules/checkbox.spec.js +5 -7
  243. package/test/modules/dropdown.spec.js +5 -7
  244. package/test/modules/modal.spec.js +6 -8
  245. package/test/modules/module.spec.js +158 -178
  246. package/test/modules/popup.spec.js +5 -7
  247. package/test/modules/search.spec.js +5 -7
  248. package/test/modules/shape.spec.js +5 -7
  249. package/test/modules/sidebar.spec.js +5 -7
  250. package/test/modules/tab.spec.js +6 -8
  251. package/test/modules/transition.spec.js +5 -7
  252. package/test/modules/video.spec.js +5 -7
@@ -3,13 +3,12 @@
3
3
  *******************************/
4
4
 
5
5
  var
6
- gulp = require('gulp'),
6
+ gulp = require('gulp'),
7
7
 
8
- // read user config to know what task to load
9
- config = require('./tasks/config/user')
8
+ // read user config to know what task to load
9
+ config = require('./tasks/config/user')
10
10
  ;
11
11
 
12
-
13
12
  /*******************************
14
13
  * Tasks
15
14
  *******************************/
@@ -20,16 +19,16 @@ require('./tasks/collections/install')(gulp);
20
19
 
21
20
  gulp.task('default', gulp.series('watch'));
22
21
 
23
- /*--------------
22
+ /* --------------
24
23
  Docs
25
- ---------------*/
24
+ --------------- */
26
25
 
27
26
  require('./tasks/collections/docs')(gulp);
28
27
 
29
- /*--------------
28
+ /* --------------
30
29
  RTL
31
- ---------------*/
30
+ --------------- */
32
31
 
33
32
  if (config.rtl) {
34
- require('./tasks/collections/rtl')(gulp);
33
+ require('./tasks/collections/rtl')(gulp);
35
34
  }
@@ -3,152 +3,145 @@
3
3
  *******************************/
4
4
 
5
5
  var
6
- extend = require('extend'),
7
- fs = require('fs'),
8
- path = require('path'),
6
+ extend = require('extend'),
7
+ fs = require('fs'),
8
+ path = require('path'),
9
9
 
10
- defaults = require('../defaults')
10
+ defaults = require('../defaults')
11
11
  ;
12
12
 
13
-
14
13
  /*******************************
15
14
  Exports
16
15
  *******************************/
17
16
 
18
17
  module.exports = {
19
18
 
20
- getPath: function(file, directory) {
21
- var
22
- configPath,
23
- walk = function(directory) {
19
+ getPath: function (file, directory) {
24
20
  var
25
- nextDirectory = path.resolve( path.join(directory, path.sep, '..') ),
26
- currentPath = path.normalize( path.join(directory, file) )
21
+ configPath,
22
+ walk = function (directory) {
23
+ var
24
+ nextDirectory = path.resolve(path.join(directory, path.sep, '..')),
25
+ currentPath = path.normalize(path.join(directory, file))
26
+ ;
27
+ if (fs.existsSync(currentPath)) {
28
+ // found file
29
+ configPath = path.normalize(directory);
30
+
31
+ return;
32
+ } else {
33
+ // reached file system root, let's stop
34
+ if (nextDirectory == directory) {
35
+ return;
36
+ }
37
+ // otherwise recurse
38
+ walk(nextDirectory, file);
39
+ }
40
+ }
27
41
  ;
28
- if( fs.existsSync(currentPath) ) {
29
- // found file
30
- configPath = path.normalize(directory);
31
- return;
42
+
43
+ // start walk from outside require-dot-files directory
44
+ file = file || defaults.files.config;
45
+ directory = directory || path.join(__dirname, path.sep, '..');
46
+ walk(directory);
47
+
48
+ return configPath || '';
49
+ },
50
+
51
+ // adds additional derived values to a config object
52
+ addDerivedValues: function (config) {
53
+ config = config || extend(false, {}, defaults);
54
+
55
+ /* --------------
56
+ File Paths
57
+ --------------- */
58
+
59
+ var
60
+ configPath = this.getPath(),
61
+ sourcePaths = {},
62
+ outputPaths = {},
63
+ folder
64
+ ;
65
+
66
+ // resolve paths (config location + base + path)
67
+ for (folder in config.paths.source) {
68
+ if (config.paths.source.hasOwnProperty(folder)) {
69
+ sourcePaths[folder] = path.resolve(path.join(configPath, config.base, config.paths.source[folder]));
70
+ }
32
71
  }
33
- else {
34
- // reached file system root, let's stop
35
- if(nextDirectory == directory) {
36
- return;
37
- }
38
- // otherwise recurse
39
- walk(nextDirectory, file);
72
+ for (folder in config.paths.output) {
73
+ if (config.paths.output.hasOwnProperty(folder)) {
74
+ outputPaths[folder] = path.resolve(path.join(configPath, config.base, config.paths.output[folder]));
75
+ }
40
76
  }
41
- }
42
- ;
43
-
44
- // start walk from outside require-dot-files directory
45
- file = file || defaults.files.config;
46
- directory = directory || path.join(__dirname, path.sep, '..');
47
- walk(directory);
48
- return configPath || '';
49
- },
50
-
51
- // adds additional derived values to a config object
52
- addDerivedValues: function(config) {
53
-
54
- config = config || extend(false, {}, defaults);
55
-
56
- /*--------------
57
- File Paths
58
- ---------------*/
59
-
60
- var
61
- configPath = this.getPath(),
62
- sourcePaths = {},
63
- outputPaths = {},
64
- folder
65
- ;
66
-
67
- // resolve paths (config location + base + path)
68
- for(folder in config.paths.source) {
69
- if(config.paths.source.hasOwnProperty(folder)) {
70
- sourcePaths[folder] = path.resolve(path.join(configPath, config.base, config.paths.source[folder]));
71
- }
72
- }
73
- for(folder in config.paths.output) {
74
- if(config.paths.output.hasOwnProperty(folder)) {
75
- outputPaths[folder] = path.resolve(path.join(configPath, config.base, config.paths.output[folder]));
76
- }
77
- }
78
-
79
- // set config paths to full paths
80
- config.paths.source = sourcePaths;
81
- config.paths.output = outputPaths;
82
-
83
- // resolve "clean" command path
84
- config.paths.clean = path.resolve( path.join(configPath, config.base, config.paths.clean) );
85
-
86
- /*--------------
87
- CSS URLs
88
- ---------------*/
89
-
90
- // determine asset paths in css by finding relative path between themes and output
91
- // force forward slashes
92
-
93
- config.paths.assets = {
94
- source : '../../themes', // source asset path is always the same
95
- uncompressed : './' + path.relative(config.paths.output.uncompressed, config.paths.output.themes).replace(/\\/g, '/'),
96
- compressed : './' + path.relative(config.paths.output.compressed, config.paths.output.themes).replace(/\\/g, '/'),
97
- packaged : './' + path.relative(config.paths.output.packaged, config.paths.output.themes).replace(/\\/g, '/')
98
- };
99
-
100
- /*--------------
101
- Permission
102
- ---------------*/
103
-
104
- if(config.permission) {
105
- config.hasPermissions = true;
106
- config.parsedPermissions = typeof config.permission === 'string' ? parseInt(config.permission, 8) : config.permission;
107
- }
108
- else {
109
- // pass blank object to avoid causing errors
110
- config.permission = {};
111
- config.hasPermissions = false;
112
- config.parsedPermissions = {};
113
- }
114
-
115
- /*--------------
116
- Globs
117
- ---------------*/
118
-
119
- if(!config.globs) {
120
- config.globs = {};
121
- }
122
-
123
- // remove duplicates from component array
124
- if(config.components instanceof Array) {
125
- config.components = config.components.filter(function(component, index) {
126
- return config.components.indexOf(component) == index;
127
- });
128
- }
129
-
130
- const components = (Array.isArray(config.components) && config.components.length >= 1)
131
- ? config.components
132
- : defaults.components
133
- ;
134
- const individuals = (Array.isArray(config.individuals) && config.individuals.length >= 1)
135
- ? config.individuals
136
- : []
137
- ;
138
- const componentsExceptIndividuals = components.filter((component) => !individuals.includes(component));
139
-
140
- // takes component object and creates file glob matching selected components
141
- config.globs.components = componentsExceptIndividuals.length === 1 ? componentsExceptIndividuals[0] : '{' + componentsExceptIndividuals.join(',') + '}';
142
-
143
- // components that should be built, but excluded from main .css/.js files
144
- config.globs.individuals = individuals.length === 1 ? individuals[0] : (individuals.length > 1)
145
- ? '{' + individuals.join(',') + '}'
146
- : undefined
147
- ;
148
-
149
- return config;
150
-
151
- }
152
77
 
153
- };
78
+ // set config paths to full paths
79
+ config.paths.source = sourcePaths;
80
+ config.paths.output = outputPaths;
81
+
82
+ // resolve "clean" command path
83
+ config.paths.clean = path.resolve(path.join(configPath, config.base, config.paths.clean));
84
+
85
+ /* --------------
86
+ CSS URLs
87
+ --------------- */
88
+
89
+ // determine asset paths in css by finding relative path between themes and output
90
+ // force forward slashes
91
+
92
+ config.paths.assets = {
93
+ source: '../../themes', // source asset path is always the same
94
+ uncompressed: './' + path.relative(config.paths.output.uncompressed, config.paths.output.themes).replace(/\\/g, '/'),
95
+ compressed: './' + path.relative(config.paths.output.compressed, config.paths.output.themes).replace(/\\/g, '/'),
96
+ packaged: './' + path.relative(config.paths.output.packaged, config.paths.output.themes).replace(/\\/g, '/'),
97
+ };
98
+
99
+ /* --------------
100
+ Permission
101
+ --------------- */
102
+
103
+ if (config.permission) {
104
+ config.hasPermissions = true;
105
+ config.parsedPermissions = typeof config.permission === 'string' ? parseInt(config.permission, 8) : config.permission;
106
+ } else {
107
+ // pass blank object to avoid causing errors
108
+ config.permission = {};
109
+ config.hasPermissions = false;
110
+ config.parsedPermissions = {};
111
+ }
154
112
 
113
+ /* --------------
114
+ Globs
115
+ --------------- */
116
+
117
+ if (!config.globs) {
118
+ config.globs = {};
119
+ }
120
+
121
+ // remove duplicates from component array
122
+ if (config.components instanceof Array) {
123
+ config.components = config.components.filter(function (component, index) {
124
+ return config.components.indexOf(component) == index;
125
+ });
126
+ }
127
+
128
+ const components = (Array.isArray(config.components) && config.components.length >= 1)
129
+ ? config.components
130
+ : defaults.components;
131
+ const individuals = (Array.isArray(config.individuals) && config.individuals.length >= 1)
132
+ ? config.individuals
133
+ : [];
134
+ const componentsExceptIndividuals = components.filter((component) => !individuals.includes(component));
135
+
136
+ // takes component object and creates file glob matching selected components
137
+ config.globs.components = componentsExceptIndividuals.length === 1 ? componentsExceptIndividuals[0] : '{' + componentsExceptIndividuals.join(',') + '}';
138
+
139
+ // components that should be built, but excluded from main .css/.js files
140
+ config.globs.individuals = individuals.length === 1 ? individuals[0] : (individuals.length > 1)
141
+ ? '{' + individuals.join(',') + '}'
142
+ : undefined;
143
+
144
+ return config;
145
+ },
146
+
147
+ };