fomantic-ui 2.9.4-beta.6 → 2.9.4-beta.61

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 (266) hide show
  1. package/.all-contributorsrc +20 -1
  2. package/.eslintrc.js +17 -0
  3. package/.github/FUNDING.yml +1 -1
  4. package/.github/workflows/ci.yml +5 -5
  5. package/.github/workflows/depsreview.yml +14 -0
  6. package/.github/workflows/nightly.yml +1 -1
  7. package/.github/workflows/release.yml +1 -1
  8. package/CONTRIBUTORS.md +2 -0
  9. package/README.md +2 -12
  10. package/dist/components/accordion.css +1 -1
  11. package/dist/components/accordion.js +4 -2
  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 +7 -3
  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 +21 -3
  21. package/dist/components/button.min.css +2 -2
  22. package/dist/components/calendar.css +1 -1
  23. package/dist/components/calendar.js +15 -3
  24. package/dist/components/calendar.min.css +1 -1
  25. package/dist/components/calendar.min.js +3 -3
  26. package/dist/components/card.css +1 -1
  27. package/dist/components/card.min.css +1 -1
  28. package/dist/components/checkbox.css +1 -1
  29. package/dist/components/checkbox.js +10 -4
  30. package/dist/components/checkbox.min.css +1 -1
  31. package/dist/components/checkbox.min.js +3 -3
  32. package/dist/components/comment.css +1 -1
  33. package/dist/components/comment.min.css +1 -1
  34. package/dist/components/container.css +1 -1
  35. package/dist/components/container.min.css +1 -1
  36. package/dist/components/dimmer.css +7 -3
  37. package/dist/components/dimmer.js +4 -2
  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 -1
  41. package/dist/components/divider.min.css +1 -1
  42. package/dist/components/dropdown.css +46 -38
  43. package/dist/components/dropdown.js +104 -33
  44. package/dist/components/dropdown.min.css +2 -2
  45. package/dist/components/dropdown.min.js +3 -3
  46. package/dist/components/embed.css +1 -1
  47. package/dist/components/embed.js +17 -7
  48. package/dist/components/embed.min.css +1 -1
  49. package/dist/components/embed.min.js +3 -3
  50. package/dist/components/emoji.css +1 -1
  51. package/dist/components/emoji.min.css +1 -1
  52. package/dist/components/feed.css +12 -1
  53. package/dist/components/feed.min.css +2 -2
  54. package/dist/components/flag.css +1 -1
  55. package/dist/components/flag.min.css +1 -1
  56. package/dist/components/flyout.css +1 -1
  57. package/dist/components/flyout.js +4 -2
  58. package/dist/components/flyout.min.css +1 -1
  59. package/dist/components/flyout.min.js +2 -2
  60. package/dist/components/form.css +23 -5
  61. package/dist/components/form.js +46 -20
  62. package/dist/components/form.min.css +2 -2
  63. package/dist/components/form.min.js +3 -3
  64. package/dist/components/grid.css +5 -5
  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 +1 -1
  69. package/dist/components/icon.min.css +1 -1
  70. package/dist/components/image.css +1 -1
  71. package/dist/components/image.min.css +1 -1
  72. package/dist/components/input.css +30 -10
  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 -1
  79. package/dist/components/list.min.css +1 -1
  80. package/dist/components/loader.css +1 -1
  81. package/dist/components/loader.min.css +1 -1
  82. package/dist/components/menu.css +1 -1
  83. package/dist/components/menu.min.css +1 -1
  84. package/dist/components/message.css +2 -1
  85. package/dist/components/message.min.css +2 -2
  86. package/dist/components/modal.css +1 -1
  87. package/dist/components/modal.js +7 -3
  88. package/dist/components/modal.min.css +1 -1
  89. package/dist/components/modal.min.js +2 -2
  90. package/dist/components/nag.css +1 -1
  91. package/dist/components/nag.js +11 -5
  92. package/dist/components/nag.min.css +1 -1
  93. package/dist/components/nag.min.js +3 -3
  94. package/dist/components/placeholder.css +1 -1
  95. package/dist/components/placeholder.min.css +1 -1
  96. package/dist/components/popup.css +1 -1
  97. package/dist/components/popup.js +10 -4
  98. package/dist/components/popup.min.css +1 -1
  99. package/dist/components/popup.min.js +2 -2
  100. package/dist/components/progress.css +14 -5
  101. package/dist/components/progress.js +4 -2
  102. package/dist/components/progress.min.css +2 -2
  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 +4 -2
  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 +1 -1
  115. package/dist/components/search.js +67 -14
  116. package/dist/components/search.min.css +1 -1
  117. package/dist/components/search.min.js +3 -3
  118. package/dist/components/segment.css +1 -1
  119. package/dist/components/segment.min.css +1 -1
  120. package/dist/components/shape.css +1 -1
  121. package/dist/components/shape.js +4 -2
  122. package/dist/components/shape.min.css +1 -1
  123. package/dist/components/shape.min.js +2 -2
  124. package/dist/components/sidebar.css +1 -1
  125. package/dist/components/sidebar.js +4 -2
  126. package/dist/components/sidebar.min.css +1 -1
  127. package/dist/components/sidebar.min.js +2 -2
  128. package/dist/components/site.css +14 -6
  129. package/dist/components/site.js +4 -2
  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 +4 -2
  134. package/dist/components/slider.min.css +1 -1
  135. package/dist/components/slider.min.js +2 -2
  136. package/dist/components/state.js +4 -2
  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 +4 -2
  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 +4 -2
  148. package/dist/components/tab.min.css +1 -1
  149. package/dist/components/tab.min.js +2 -2
  150. package/dist/components/table.css +32 -21
  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 -1
  155. package/dist/components/toast.js +7 -3
  156. package/dist/components/toast.min.css +1 -1
  157. package/dist/components/toast.min.js +3 -3
  158. package/dist/components/transition.css +1 -1
  159. package/dist/components/transition.js +7 -3
  160. package/dist/components/transition.min.css +1 -1
  161. package/dist/components/transition.min.js +2 -2
  162. package/dist/components/visibility.js +4 -2
  163. package/dist/components/visibility.min.js +2 -2
  164. package/dist/semantic.css +270 -142
  165. package/dist/semantic.js +362 -130
  166. package/dist/semantic.min.css +3 -3
  167. package/dist/semantic.min.js +3 -3
  168. package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  169. package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  170. package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  171. package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
  172. package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
  173. package/package.json +14 -14
  174. package/src/definitions/behaviors/api.js +6 -2
  175. package/src/definitions/behaviors/form.js +45 -19
  176. package/src/definitions/behaviors/state.js +3 -1
  177. package/src/definitions/behaviors/visibility.js +3 -1
  178. package/src/definitions/collections/form.less +16 -4
  179. package/src/definitions/collections/grid.less +4 -4
  180. package/src/definitions/collections/message.less +1 -0
  181. package/src/definitions/collections/table.less +69 -54
  182. package/src/definitions/elements/button.less +27 -3
  183. package/src/definitions/elements/input.less +14 -6
  184. package/src/definitions/globals/site.js +3 -1
  185. package/src/definitions/globals/site.less +17 -12
  186. package/src/definitions/modules/accordion.js +3 -1
  187. package/src/definitions/modules/calendar.js +14 -2
  188. package/src/definitions/modules/checkbox.js +9 -3
  189. package/src/definitions/modules/dimmer.js +3 -1
  190. package/src/definitions/modules/dimmer.less +8 -5
  191. package/src/definitions/modules/dropdown.js +103 -32
  192. package/src/definitions/modules/dropdown.less +43 -29
  193. package/src/definitions/modules/embed.js +16 -6
  194. package/src/definitions/modules/flyout.js +3 -1
  195. package/src/definitions/modules/modal.js +6 -2
  196. package/src/definitions/modules/nag.js +10 -4
  197. package/src/definitions/modules/popup.js +9 -3
  198. package/src/definitions/modules/progress.js +3 -1
  199. package/src/definitions/modules/progress.less +17 -5
  200. package/src/definitions/modules/rating.js +3 -1
  201. package/src/definitions/modules/search.js +66 -13
  202. package/src/definitions/modules/search.less +9 -2
  203. package/src/definitions/modules/shape.js +3 -1
  204. package/src/definitions/modules/sidebar.js +3 -1
  205. package/src/definitions/modules/slider.js +3 -1
  206. package/src/definitions/modules/sticky.js +3 -1
  207. package/src/definitions/modules/tab.js +3 -1
  208. package/src/definitions/modules/toast.js +6 -2
  209. package/src/definitions/modules/transition.js +6 -2
  210. package/src/definitions/views/feed.less +11 -0
  211. package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
  212. package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  213. package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  214. package/src/themes/default/collections/form.variables +1 -0
  215. package/src/themes/default/elements/button.variables +3 -0
  216. package/src/themes/default/globals/site.variables +3 -0
  217. package/src/themes/default/globals/variation.variables +3 -0
  218. package/src/themes/default/modules/dropdown.variables +3 -0
  219. package/src/themes/default/modules/search.variables +3 -0
  220. package/src/themes/default/views/feed.variables +3 -0
  221. package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
  222. package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
  223. package/tasks/admin/components/create.js +4 -4
  224. package/tasks/admin/components/init.js +2 -2
  225. package/tasks/admin/components/update.js +3 -3
  226. package/tasks/admin/distributions/create.js +3 -3
  227. package/tasks/admin/distributions/init.js +2 -2
  228. package/tasks/admin/distributions/update.js +4 -4
  229. package/tasks/build/assets.js +1 -1
  230. package/tasks/build/css.js +19 -10
  231. package/tasks/build/javascript.js +12 -5
  232. package/tasks/check-install.js +1 -1
  233. package/tasks/config/defaults.js +2 -0
  234. package/tasks/config/tasks.js +1 -1
  235. package/tasks/docs/build.js +3 -3
  236. package/tasks/docs/metadata.js +1 -1
  237. package/tasks/docs/serve.js +3 -1
  238. package/tasks/install.js +2 -2
  239. package/tasks/watch.js +1 -1
  240. package/types/fomantic-ui-accordion.d.ts +1 -1
  241. package/types/fomantic-ui-api.d.ts +9 -3
  242. package/types/fomantic-ui-calendar.d.ts +93 -8
  243. package/types/fomantic-ui-checkbox.d.ts +14 -4
  244. package/types/fomantic-ui-dimmer.d.ts +1 -1
  245. package/types/fomantic-ui-dropdown.d.ts +48 -35
  246. package/types/fomantic-ui-embed.d.ts +19 -2
  247. package/types/fomantic-ui-flyout.d.ts +24 -10
  248. package/types/fomantic-ui-form.d.ts +123 -15
  249. package/types/fomantic-ui-modal.d.ts +75 -5
  250. package/types/fomantic-ui-nag.d.ts +4 -4
  251. package/types/fomantic-ui-popup.d.ts +11 -11
  252. package/types/fomantic-ui-progress.d.ts +12 -6
  253. package/types/fomantic-ui-rating.d.ts +1 -1
  254. package/types/fomantic-ui-search.d.ts +125 -14
  255. package/types/fomantic-ui-shape.d.ts +2 -2
  256. package/types/fomantic-ui-sidebar.d.ts +4 -4
  257. package/types/fomantic-ui-slider.d.ts +1 -1
  258. package/types/fomantic-ui-sticky.d.ts +1 -1
  259. package/types/fomantic-ui-tab.d.ts +5 -5
  260. package/types/fomantic-ui-toast.d.ts +14 -2
  261. package/types/fomantic-ui-transition.d.ts +29 -1
  262. package/types/fomantic-ui-visibility.d.ts +3 -3
  263. package/types/index.d.ts +25 -25
  264. package/types/tests.ts +188 -0
  265. package/types/tsconfig.json +1 -1
  266. package/types/fomantic-ui-tests.ts +0 -25
@@ -10,7 +10,7 @@ declare namespace FomanticUI {
10
10
  /**
11
11
  * Displays message in search results with text, using template matching type.
12
12
  */
13
- (behavior: 'display message', text: string, type: string): JQuery;
13
+ (behavior: 'display message', text: string, type?: string): JQuery;
14
14
 
15
15
  /**
16
16
  * Cancels current remote search query.
@@ -107,7 +107,7 @@ declare namespace FomanticUI {
107
107
  */
108
108
  (behavior: 'destroy'): JQuery;
109
109
 
110
- <K extends keyof SearchSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<SearchSettings, keyof SearchSettings>>;
110
+ <K extends keyof SearchSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SearchSettings, keyof SearchSettings>>;
111
111
  <K extends keyof SearchSettings>(behavior: 'setting', name: K, value: SearchSettings[K]): JQuery;
112
112
  (behavior: 'setting', value: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
113
113
  (settings?: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
@@ -124,7 +124,7 @@ declare namespace FomanticUI {
124
124
  * @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
125
125
  * @default {}
126
126
  */
127
- apiSettings: APISettings | JQueryAjaxSettings;
127
+ apiSettings: Partial<Pick<APISettings, keyof APISettings>> | JQueryAjaxSettings;
128
128
 
129
129
  /**
130
130
  * Minimum characters to query for results.
@@ -192,7 +192,7 @@ declare namespace FomanticUI {
192
192
  * List mapping display content to JSON property, either with API or 'source'.
193
193
  * @default {}
194
194
  */
195
- fields: object;
195
+ fields: Search.FieldsSettings;
196
196
 
197
197
  /**
198
198
  * Specify object properties inside local source object which will be searched.
@@ -228,6 +228,36 @@ declare namespace FomanticUI {
228
228
  */
229
229
  ignoreDiacritics: boolean;
230
230
 
231
+ /**
232
+ * Whether to consider case sensitivity on local searching
233
+ * @default true
234
+ */
235
+ ignoreSearchCase: boolean;
236
+
237
+ /**
238
+ * Whether search result should highlight matching strings
239
+ * @default false
240
+ */
241
+ highlightMatches: boolean;
242
+
243
+ /**
244
+ * Template to use (specified in settings.templates)
245
+ * @default 'standard'
246
+ */
247
+ type: 'escape' | 'message' | 'category' | 'standard';
248
+
249
+ /**
250
+ * Field to display in standard results template
251
+ * @default ''
252
+ */
253
+ displayField: string;
254
+
255
+ /**
256
+ * Whether to add events to prompt automatically
257
+ * @default true
258
+ */
259
+ automatic: boolean;
260
+
231
261
  // endregion
232
262
 
233
263
  // region Callbacks
@@ -237,13 +267,13 @@ declare namespace FomanticUI {
237
267
  * The first parameter includes the filtered response results for that element.
238
268
  * The function should return 'false' to prevent default action (closing search results and selecting value).
239
269
  */
240
- onSelect(this: JQuery, result: object, response: object): boolean;
270
+ onSelect(this: JQuery, result: object, response: object): any;
241
271
 
242
272
  /**
243
273
  * Callback after processing element template to add HTML to results.
244
274
  * Function should return 'false' to prevent default actions.
245
275
  */
246
- onResultsAdd(this: JQuery, html: string): boolean;
276
+ onResultsAdd(this: JQuery, html: string): void | boolean;
247
277
 
248
278
  /**
249
279
  * Callback on search query.
@@ -347,29 +377,30 @@ declare namespace FomanticUI {
347
377
  type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
348
378
  type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
349
379
  type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
380
+ type FieldsSettings = Partial<Pick<Settings.Fields, keyof Settings.Fields>>;
350
381
  type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
351
382
 
352
383
  namespace Settings {
353
384
  interface Templates {
354
385
  /**
355
- * @default function(string)
386
+ * @default function(string, preserveHTML)
356
387
  */
357
- escape: Function;
388
+ escape: (string: string, preserveHTML?: boolean) => string;
358
389
 
359
390
  /**
360
- * @default function(message, type)
391
+ * @default function(message, type, header)
361
392
  */
362
- message: Function;
393
+ message: (message: string, type?: string, header?: string) => string;
363
394
 
364
395
  /**
365
- * @default function(response)
396
+ * @default function(response, fields, preserveHTML)
366
397
  */
367
- category: Function;
398
+ category: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
368
399
 
369
400
  /**
370
- * @default function(response)
401
+ * @default function(response, fields, preserveHTML)
371
402
  */
372
- standard: Function;
403
+ standard: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
373
404
  }
374
405
 
375
406
  interface Selectors {
@@ -450,6 +481,86 @@ declare namespace FomanticUI {
450
481
  results: string;
451
482
  }
452
483
 
484
+ interface Fields {
485
+ /**
486
+ * Array of categories (category view)
487
+ * @default 'results'
488
+ */
489
+ categories: string;
490
+
491
+ /**
492
+ * Name of category (category view)
493
+ * @default 'name'
494
+ */
495
+ categoryName: string;
496
+
497
+ /**
498
+ * Array of results (category view)
499
+ * @default 'results'
500
+ */
501
+ categoryResults: string;
502
+
503
+ /**
504
+ * Sesult description
505
+ * @default ' description'
506
+ */
507
+ description: string;
508
+
509
+ /**
510
+ * Result image
511
+ * @default 'image'
512
+ */
513
+ image: string;
514
+
515
+ /**
516
+ * Result alt text for image
517
+ * @default 'alt'
518
+ */
519
+ alt: string;
520
+
521
+ /**
522
+ * Result price
523
+ * @default 'price'
524
+ */
525
+ price: string;
526
+
527
+ /**
528
+ * Array of results (standard)
529
+ * @default 'results'
530
+ */
531
+ results: string;
532
+
533
+ /**
534
+ * Result title
535
+ * @default 'title'
536
+ */
537
+ title: string;
538
+
539
+ /**
540
+ * Result url
541
+ * @default 'url'
542
+ */
543
+ url: string;
544
+
545
+ /**
546
+ * "view more" object name
547
+ * @default 'action'
548
+ */
549
+ action: string;
550
+
551
+ /**
552
+ * "view more" text
553
+ * @default 'text'
554
+ */
555
+ actionText: string;
556
+
557
+ /**
558
+ * "view more" url
559
+ * @default 'url'
560
+ */
561
+ actionURL: string;
562
+ }
563
+
453
564
  interface Errors {
454
565
  /**
455
566
  * @default 'Cannot search. No source used, and Fomantic API module was not included'
@@ -102,7 +102,7 @@ declare namespace FomanticUI {
102
102
  */
103
103
  (behavior: 'destroy'): JQuery;
104
104
 
105
- <K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ShapeSettings, keyof ShapeSettings>>;
105
+ <K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ShapeSettings, keyof ShapeSettings>>;
106
106
  <K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings[K]): JQuery;
107
107
  (behavior: 'setting', value: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
108
108
  (settings?: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
@@ -257,7 +257,7 @@ declare namespace FomanticUI {
257
257
  */
258
258
  active: string;
259
259
  }
260
-
260
+
261
261
  interface Errors {
262
262
  /**
263
263
  * @default 'You tried to switch to a side that does not exist.'
@@ -68,7 +68,7 @@ declare namespace FomanticUI {
68
68
  */
69
69
  (behavior: 'destroy'): JQuery;
70
70
 
71
- <K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<SidebarSettings, keyof SidebarSettings>>;
71
+ <K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SidebarSettings, keyof SidebarSettings>>;
72
72
  <K extends keyof SidebarSettings>(behavior: 'setting', name: K, value: SidebarSettings[K]): JQuery;
73
73
  (behavior: 'setting', value: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
74
74
  (settings?: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
@@ -281,7 +281,7 @@ declare namespace FomanticUI {
281
281
  */
282
282
  sidebar: string;
283
283
  }
284
-
284
+
285
285
  interface RegExps {
286
286
  /**
287
287
  * @default /(iPad|iPhone|iPod)/g
@@ -298,7 +298,7 @@ declare namespace FomanticUI {
298
298
  */
299
299
  mobile: RegExp;
300
300
  }
301
-
301
+
302
302
  interface ClassNames {
303
303
  /**
304
304
  * @default 'active'
@@ -370,7 +370,7 @@ declare namespace FomanticUI {
370
370
  */
371
371
  visible: string;
372
372
  }
373
-
373
+
374
374
  interface Errors {
375
375
  /**
376
376
  * @default 'The method you called is not defined.'
@@ -35,7 +35,7 @@ declare namespace FomanticUI {
35
35
  */
36
36
  (behavior: 'destroy'): JQuery;
37
37
 
38
- <K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<SliderSettings, keyof SliderSettings>>;
38
+ <K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SliderSettings, keyof SliderSettings>>;
39
39
  <K extends keyof SliderSettings>(behavior: 'setting', name: K, value: SliderSettings[K]): JQuery;
40
40
  (behavior: 'setting', value: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
41
41
  (settings?: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
@@ -3,7 +3,7 @@ declare namespace FomanticUI {
3
3
  settings: StickySettings;
4
4
 
5
5
  (behavior: 'destroy'): JQuery;
6
- <K extends keyof StickySettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<StickySettings, keyof StickySettings>>;
6
+ <K extends keyof StickySettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<StickySettings, keyof StickySettings>>;
7
7
  <K extends keyof StickySettings>(behavior: 'setting', name: K, value: StickySettings[K]): JQuery;
8
8
  (behavior: 'setting', value: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
9
9
  (settings?: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
@@ -48,7 +48,7 @@ declare namespace FomanticUI {
48
48
  */
49
49
  (behavior: 'destroy'): JQuery;
50
50
 
51
- <K extends keyof TabSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<TabSettings, keyof TabSettings>>;
51
+ <K extends keyof TabSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<TabSettings, keyof TabSettings>>;
52
52
  <K extends keyof TabSettings>(behavior: 'setting', name: K, value: TabSettings[K]): JQuery;
53
53
  (behavior: 'setting', value: Partial<Pick<TabSettings, keyof TabSettings>>): JQuery;
54
54
  (settings?: Partial<Pick<TabSettings, keyof TabSettings>>): JQuery;
@@ -149,7 +149,7 @@ declare namespace FomanticUI {
149
149
  * Tabs are limited to those found inside this context.
150
150
  * @default false
151
151
  */
152
- context: false | string;
152
+ context: JQuery | string | false;
153
153
 
154
154
  /**
155
155
  * If enabled limits tabs to children of passed context.
@@ -278,7 +278,7 @@ declare namespace FomanticUI {
278
278
  */
279
279
  determineTitle: Function;
280
280
  }
281
-
281
+
282
282
  interface Selectors {
283
283
  /**
284
284
  * @default '.ui.tab'
@@ -290,7 +290,7 @@ declare namespace FomanticUI {
290
290
  */
291
291
  parent: string;
292
292
  }
293
-
293
+
294
294
  interface Metadatas {
295
295
  /**
296
296
  * @default 'tab'
@@ -319,7 +319,7 @@ declare namespace FomanticUI {
319
319
  */
320
320
  active: string;
321
321
  }
322
-
322
+
323
323
  interface Errors {
324
324
  /**
325
325
  * @default 'You attempted to load content without API module'
@@ -12,6 +12,11 @@ declare namespace FomanticUI {
12
12
  */
13
13
  (behavior: 'animate continue'): JQuery;
14
14
 
15
+ /**
16
+ * Show the toast
17
+ */
18
+ (behavior: 'show'): JQuery;
19
+
15
20
  /**
16
21
  * Closes the toast
17
22
  */
@@ -28,7 +33,7 @@ declare namespace FomanticUI {
28
33
  (behavior: 'get remainingTime'): number;
29
34
 
30
35
  (behavior: 'refresh' | 'destroy'): JQuery;
31
- <K extends keyof ToastSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ToastSettings, keyof ToastSettings>>;
36
+ <K extends keyof ToastSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ToastSettings, keyof ToastSettings>>;
32
37
  <K extends keyof ToastSettings>(behavior: 'setting', name: K, value: ToastSettings[K]): JQuery;
33
38
  (behavior: 'setting', value: Partial<Pick<ToastSettings, keyof ToastSettings>>): JQuery;
34
39
  (settings?: Partial<Pick<ToastSettings, keyof ToastSettings>>): JQuery;
@@ -120,6 +125,13 @@ declare namespace FomanticUI {
120
125
  */
121
126
  showImage: false | string;
122
127
 
128
+ /**
129
+ * Alt text for a given showImage.
130
+ *
131
+ * @default false
132
+ */
133
+ alt: false | string;
134
+
123
135
  /**
124
136
  * Define if the toast should display an icon which matches to a given class.
125
137
  * If a string is given, this will be used as icon classname.
@@ -273,7 +285,7 @@ declare namespace FomanticUI {
273
285
  /**
274
286
  * An array of objects. Each object defines an action with 'properties' 'text', 'class', 'icon' and 'click'.
275
287
  */
276
- actions: Toast.ActionsSettings;
288
+ actions: Toast.ActionsSettings[];
277
289
 
278
290
  // endregion
279
291
 
@@ -112,11 +112,39 @@ declare namespace FomanticUI {
112
112
  */
113
113
  (behavior: 'is supported'): boolean;
114
114
 
115
+ (behavior: 'scale', duration?: any, onComplete?: () => any): JQuery;
116
+
117
+ (behavior: 'zoom', duration?: any, onComplete?: () => any): JQuery;
118
+
119
+ (behavior: 'fade' | 'fade up' | 'fade down' | 'fade left' | 'fade right', duration?: any, onComplete?: () => any): JQuery;
120
+
121
+ (behavior: 'horizontal flip' | 'vertical flip', duration?: any, onComplete?: () => any): JQuery;
122
+
123
+ (behavior: 'drop', duration?: any, onComplete?: () => any): JQuery;
124
+
125
+ (behavior: 'fly up' | 'fly down' | 'fly left' | 'fly right', duration?: any, onComplete?: () => any): JQuery;
126
+
127
+ (behavior: 'swing up' | 'swing down' | 'swing left' | 'swing right', duration?: any, onComplete?: () => any): JQuery;
128
+
129
+ (behavior: 'browse' | 'browse up' | 'browse down' | 'browse left' | 'browse right', duration?: any, onComplete?: () => any): JQuery;
130
+
131
+ (behavior: 'slide up' | 'slide down' | 'slide left' | 'slide right', duration?: any, onComplete?: () => any): JQuery;
132
+
133
+ // Static animations
134
+ (behavior: 'pulsating', duration?: any, onComplete?: () => any): JQuery;
135
+ (behavior: 'jiggle', duration?: any, onComplete?: () => any): JQuery;
136
+ (behavior: 'flash', duration?: any, onComplete?: () => any): JQuery;
137
+ (behavior: 'shake', duration?: any, onComplete?: () => any): JQuery;
138
+ (behavior: 'pulse', duration?: any, onComplete?: () => any): JQuery;
139
+ (behavior: 'tada', duration?: any, onComplete?: () => any): JQuery;
140
+ (behavior: 'bounce', duration?: any, onComplete?: () => any): JQuery;
141
+ (behavior: 'glow', duration?: any, onComplete?: () => any): JQuery;
142
+
115
143
  /**
116
144
  * Destroys instance and removes all events.
117
145
  */
118
146
  (behavior: 'destroy'): JQuery;
119
- <K extends keyof TransitionSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<TransitionSettings, keyof TransitionSettings>>;
147
+ <K extends keyof TransitionSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<TransitionSettings, keyof TransitionSettings>>;
120
148
  <K extends keyof TransitionSettings>(behavior: 'setting', name: K, value: TransitionSettings[K]): JQuery;
121
149
  (behavior: 'setting', value: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
122
150
  (settings?: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
@@ -44,10 +44,10 @@ declare namespace FomanticUI {
44
44
  (behavior: 'get screen size'): object;
45
45
 
46
46
  (behavior: 'destroy'): JQuery;
47
- <K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>;
47
+ <K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>;
48
48
  <K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value: VisibilitySettings[K]): JQuery;
49
- (behavior: 'setting', value: VisibilitySettings): JQuery;
50
- (settings?: VisibilitySettings): JQuery;
49
+ (behavior: 'setting', value: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
50
+ (settings?: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
51
51
  }
52
52
 
53
53
  /**
package/types/index.d.ts CHANGED
@@ -30,34 +30,34 @@
30
30
  /// <reference path="fomantic-ui-visibility.d.ts" />
31
31
 
32
32
  interface JQuery {
33
- accordion: FomanticUI.Accordion;
34
- api: FomanticUI.API;
35
- calendar: FomanticUI.Calendar;
36
- checkbox: FomanticUI.Checkbox;
37
- dimmer: FomanticUI.Dimmer;
38
- dropdown: FomanticUI.Dropdown;
39
- embed: FomanticUI.Embed;
40
- flyout: FomanticUI.Flyout;
41
- form: FomanticUI.Form;
42
- modal: FomanticUI.Modal;
43
- nag: FomanticUI.Nag;
44
- popup: FomanticUI.Popup;
45
- progress: FomanticUI.Progress;
46
- rating: FomanticUI.Rating;
47
- search: FomanticUI.Search;
48
- shape: FomanticUI.Shape;
49
- sidebar: FomanticUI.Sidebar;
50
- slider: FomanticUI.Slider;
51
- sticky: FomanticUI.Sticky;
52
- tab: FomanticUI.Tab;
53
- toast: FomanticUI.Toast;
33
+ accordion: FomanticUI.Accordion;
34
+ api: FomanticUI.API;
35
+ calendar: FomanticUI.Calendar;
36
+ checkbox: FomanticUI.Checkbox;
37
+ dimmer: FomanticUI.Dimmer;
38
+ dropdown: FomanticUI.Dropdown;
39
+ embed: FomanticUI.Embed;
40
+ flyout: FomanticUI.Flyout;
41
+ form: FomanticUI.Form;
42
+ modal: FomanticUI.Modal;
43
+ nag: FomanticUI.Nag;
44
+ popup: FomanticUI.Popup;
45
+ progress: FomanticUI.Progress;
46
+ rating: FomanticUI.Rating;
47
+ search: FomanticUI.Search;
48
+ shape: FomanticUI.Shape;
49
+ sidebar: FomanticUI.Sidebar;
50
+ slider: FomanticUI.Slider;
51
+ sticky: FomanticUI.Sticky;
52
+ tab: FomanticUI.Tab;
53
+ toast: FomanticUI.Toast;
54
54
  transition: FomanticUI.Transition;
55
55
  visibility: FomanticUI.Visibility;
56
56
  }
57
57
 
58
58
  interface JQueryStatic {
59
- api: FomanticUI.API;
60
- flyout: FomanticUI.Flyout;
61
- modal: FomanticUI.Modal;
62
- toast: FomanticUI.Toast;
59
+ api: FomanticUI.API;
60
+ flyout: FomanticUI.Flyout;
61
+ modal: FomanticUI.Modal;
62
+ toast: FomanticUI.Toast;
63
63
  }