fomantic-ui 2.9.4-beta.24 → 2.9.4-beta.26

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 (189) hide show
  1. package/.eslintrc.js +16 -0
  2. package/dist/components/accordion.css +1 -1
  3. package/dist/components/accordion.js +1 -1
  4. package/dist/components/accordion.min.css +1 -1
  5. package/dist/components/accordion.min.js +1 -1
  6. package/dist/components/ad.css +1 -1
  7. package/dist/components/ad.min.css +1 -1
  8. package/dist/components/api.js +1 -1
  9. package/dist/components/api.min.js +1 -1
  10. package/dist/components/breadcrumb.css +1 -1
  11. package/dist/components/breadcrumb.min.css +1 -1
  12. package/dist/components/button.css +19 -3
  13. package/dist/components/button.min.css +2 -2
  14. package/dist/components/calendar.css +1 -1
  15. package/dist/components/calendar.js +1 -1
  16. package/dist/components/calendar.min.css +1 -1
  17. package/dist/components/calendar.min.js +1 -1
  18. package/dist/components/card.css +1 -1
  19. package/dist/components/card.min.css +1 -1
  20. package/dist/components/checkbox.css +1 -1
  21. package/dist/components/checkbox.js +1 -1
  22. package/dist/components/checkbox.min.css +1 -1
  23. package/dist/components/checkbox.min.js +1 -1
  24. package/dist/components/comment.css +1 -1
  25. package/dist/components/comment.min.css +1 -1
  26. package/dist/components/container.css +1 -1
  27. package/dist/components/container.min.css +1 -1
  28. package/dist/components/dimmer.css +1 -1
  29. package/dist/components/dimmer.js +1 -1
  30. package/dist/components/dimmer.min.css +1 -1
  31. package/dist/components/dimmer.min.js +1 -1
  32. package/dist/components/divider.css +1 -1
  33. package/dist/components/divider.min.css +1 -1
  34. package/dist/components/dropdown.css +1 -1
  35. package/dist/components/dropdown.js +5 -3
  36. package/dist/components/dropdown.min.css +1 -1
  37. package/dist/components/dropdown.min.js +2 -2
  38. package/dist/components/embed.css +1 -1
  39. package/dist/components/embed.js +1 -1
  40. package/dist/components/embed.min.css +1 -1
  41. package/dist/components/embed.min.js +1 -1
  42. package/dist/components/emoji.css +1 -1
  43. package/dist/components/emoji.min.css +1 -1
  44. package/dist/components/feed.css +1 -1
  45. package/dist/components/feed.min.css +1 -1
  46. package/dist/components/flag.css +1 -1
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/flyout.css +1 -1
  49. package/dist/components/flyout.js +1 -1
  50. package/dist/components/flyout.min.css +1 -1
  51. package/dist/components/flyout.min.js +1 -1
  52. package/dist/components/form.css +1 -1
  53. package/dist/components/form.js +1 -1
  54. package/dist/components/form.min.css +1 -1
  55. package/dist/components/form.min.js +1 -1
  56. package/dist/components/grid.css +1 -1
  57. package/dist/components/grid.min.css +1 -1
  58. package/dist/components/header.css +1 -1
  59. package/dist/components/header.min.css +1 -1
  60. package/dist/components/icon.css +1 -1
  61. package/dist/components/icon.min.css +1 -1
  62. package/dist/components/image.css +1 -1
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +1 -1
  65. package/dist/components/input.min.css +1 -1
  66. package/dist/components/item.css +1 -1
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +1 -1
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +1 -1
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +1 -1
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/menu.css +1 -1
  75. package/dist/components/menu.min.css +1 -1
  76. package/dist/components/message.css +1 -1
  77. package/dist/components/message.min.css +1 -1
  78. package/dist/components/modal.css +1 -1
  79. package/dist/components/modal.js +1 -1
  80. package/dist/components/modal.min.css +1 -1
  81. package/dist/components/modal.min.js +1 -1
  82. package/dist/components/nag.css +1 -1
  83. package/dist/components/nag.js +1 -1
  84. package/dist/components/nag.min.css +1 -1
  85. package/dist/components/nag.min.js +1 -1
  86. package/dist/components/placeholder.css +1 -1
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +1 -1
  89. package/dist/components/popup.js +1 -1
  90. package/dist/components/popup.min.css +1 -1
  91. package/dist/components/popup.min.js +1 -1
  92. package/dist/components/progress.css +1 -1
  93. package/dist/components/progress.js +1 -1
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +1 -1
  96. package/dist/components/rail.css +1 -1
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +1 -1
  99. package/dist/components/rating.js +1 -1
  100. package/dist/components/rating.min.css +1 -1
  101. package/dist/components/rating.min.js +1 -1
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +1 -1
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +1 -1
  107. package/dist/components/search.js +1 -1
  108. package/dist/components/search.min.css +1 -1
  109. package/dist/components/search.min.js +1 -1
  110. package/dist/components/segment.css +1 -1
  111. package/dist/components/segment.min.css +1 -1
  112. package/dist/components/shape.css +1 -1
  113. package/dist/components/shape.js +1 -1
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +1 -1
  116. package/dist/components/sidebar.css +1 -1
  117. package/dist/components/sidebar.js +1 -1
  118. package/dist/components/sidebar.min.css +1 -1
  119. package/dist/components/sidebar.min.js +1 -1
  120. package/dist/components/site.css +1 -1
  121. package/dist/components/site.js +1 -1
  122. package/dist/components/site.min.css +1 -1
  123. package/dist/components/site.min.js +1 -1
  124. package/dist/components/slider.css +1 -1
  125. package/dist/components/slider.js +1 -1
  126. package/dist/components/slider.min.css +1 -1
  127. package/dist/components/slider.min.js +1 -1
  128. package/dist/components/state.js +1 -1
  129. package/dist/components/state.min.js +1 -1
  130. package/dist/components/statistic.css +1 -1
  131. package/dist/components/statistic.min.css +1 -1
  132. package/dist/components/step.css +1 -1
  133. package/dist/components/step.min.css +1 -1
  134. package/dist/components/sticky.css +1 -1
  135. package/dist/components/sticky.js +1 -1
  136. package/dist/components/sticky.min.css +1 -1
  137. package/dist/components/sticky.min.js +1 -1
  138. package/dist/components/tab.css +1 -1
  139. package/dist/components/tab.js +1 -1
  140. package/dist/components/tab.min.css +1 -1
  141. package/dist/components/tab.min.js +1 -1
  142. package/dist/components/table.css +1 -1
  143. package/dist/components/table.min.css +1 -1
  144. package/dist/components/text.css +1 -1
  145. package/dist/components/text.min.css +1 -1
  146. package/dist/components/toast.css +1 -1
  147. package/dist/components/toast.js +1 -1
  148. package/dist/components/toast.min.css +1 -1
  149. package/dist/components/toast.min.js +1 -1
  150. package/dist/components/transition.css +1 -1
  151. package/dist/components/transition.js +1 -1
  152. package/dist/components/transition.min.css +1 -1
  153. package/dist/components/transition.min.js +1 -1
  154. package/dist/components/visibility.js +1 -1
  155. package/dist/components/visibility.min.js +1 -1
  156. package/dist/semantic.css +76 -55
  157. package/dist/semantic.js +30 -28
  158. package/dist/semantic.min.css +2 -2
  159. package/dist/semantic.min.js +2 -2
  160. package/package.json +3 -3
  161. package/src/definitions/elements/button.less +25 -3
  162. package/src/definitions/modules/dropdown.js +4 -2
  163. package/src/themes/default/elements/button.variables +2 -0
  164. package/types/fomantic-ui-accordion.d.ts +1 -1
  165. package/types/fomantic-ui-api.d.ts +1 -1
  166. package/types/fomantic-ui-calendar.d.ts +4 -4
  167. package/types/fomantic-ui-dimmer.d.ts +1 -1
  168. package/types/fomantic-ui-dropdown.d.ts +18 -18
  169. package/types/fomantic-ui-embed.d.ts +1 -1
  170. package/types/fomantic-ui-flyout.d.ts +3 -3
  171. package/types/fomantic-ui-form.d.ts +16 -3
  172. package/types/fomantic-ui-modal.d.ts +3 -3
  173. package/types/fomantic-ui-nag.d.ts +3 -3
  174. package/types/fomantic-ui-popup.d.ts +3 -3
  175. package/types/fomantic-ui-progress.d.ts +6 -6
  176. package/types/fomantic-ui-rating.d.ts +1 -1
  177. package/types/fomantic-ui-search.d.ts +1 -1
  178. package/types/fomantic-ui-shape.d.ts +2 -2
  179. package/types/fomantic-ui-sidebar.d.ts +4 -4
  180. package/types/fomantic-ui-slider.d.ts +1 -1
  181. package/types/fomantic-ui-sticky.d.ts +1 -1
  182. package/types/fomantic-ui-tab.d.ts +4 -4
  183. package/types/fomantic-ui-toast.d.ts +1 -1
  184. package/types/fomantic-ui-transition.d.ts +1 -1
  185. package/types/fomantic-ui-visibility.d.ts +1 -1
  186. package/types/index.d.ts +25 -25
  187. package/types/tests.ts +188 -0
  188. package/types/tsconfig.json +1 -1
  189. package/types/fomantic-ui-tests.ts +0 -187
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fomantic-ui",
3
- "version": "2.9.4-beta.24+392a95f",
3
+ "version": "2.9.4-beta.26+e4ff553",
4
4
  "description": "Fomantic empowers designers and developers by creating a shared vocabulary for UI.",
5
5
  "keywords": [
6
6
  "fomantic-ui",
@@ -27,8 +27,8 @@
27
27
  "scripts": {
28
28
  "build": "gulp build",
29
29
  "changelog": "auto-changelog -p",
30
- "lint": "eslint --ext .js . && stylelint \"**/*.{css,less,overrides,variables}\"",
31
- "lint-fix": "eslint --ext .js . --fix && stylelint \"**/*.{css,less,overrides,variables}\" --fix"
30
+ "lint": "eslint --ext .js,.ts . && stylelint \"**/*.{css,less,overrides,variables}\"",
31
+ "lint-fix": "eslint --ext .js,.ts . --fix && stylelint \"**/*.{css,less,overrides,variables}\" --fix"
32
32
  },
33
33
  "dependencies": {
34
34
  "@actions/core": "^1.6.0",
@@ -885,7 +885,7 @@
885
885
  border-top: @basicGroupBorder;
886
886
  }
887
887
 
888
- .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
888
+ .ui.basic.vertical.buttons:not(.spaced):not(.circular) .button:first-child {
889
889
  border-top: none;
890
890
  }
891
891
  }
@@ -1095,8 +1095,8 @@
1095
1095
  /* --------------
1096
1096
  Circular
1097
1097
  --------------- */
1098
-
1099
- .ui.circular.button {
1098
+ .ui.ui.circular.buttons .button,
1099
+ .ui.ui.ui.ui.circular.button {
1100
1100
  border-radius: @circularBorderRadius;
1101
1101
  }
1102
1102
 
@@ -1104,6 +1104,28 @@
1104
1104
  width: @circularIconWidth;
1105
1105
  vertical-align: baseline;
1106
1106
  }
1107
+
1108
+ .ui.circular.buttons:not(.vertical) .button {
1109
+ margin-right: @circularGroupMargin;
1110
+ }
1111
+
1112
+ & when (@variationButtonVertical) {
1113
+ .ui.vertical.circular.buttons .button {
1114
+ margin-bottom: @circularVerticalGroupMargin;
1115
+ }
1116
+ }
1117
+
1118
+ & when (@variationButtonBasic) {
1119
+ .ui.circular.basic.buttons {
1120
+ border: none;
1121
+ & .button {
1122
+ border: @basicGroupBorder;
1123
+ &.basic {
1124
+ border: none;
1125
+ }
1126
+ }
1127
+ }
1128
+ }
1107
1129
  }
1108
1130
 
1109
1131
  & when (@variationButtonOr) {
@@ -1413,7 +1413,9 @@
1413
1413
  module.remove.userAddition();
1414
1414
  }
1415
1415
  if (!settings.keepSearchTerm) {
1416
- module.remove.filteredItem();
1416
+ if (module.is.multiple()) {
1417
+ module.remove.filteredItem();
1418
+ }
1417
1419
  module.remove.searchTerm();
1418
1420
  }
1419
1421
  if (!module.is.visible() && $target.length > 0) {
@@ -2587,7 +2589,7 @@
2587
2589
  } else {
2588
2590
  $combo.text(text);
2589
2591
  }
2590
- } else if (settings.action === 'activate') {
2592
+ } else if (settings.action === 'activate' || isFunction(settings.action)) {
2591
2593
  if (text !== module.get.placeholderText() || isNotPlaceholder) {
2592
2594
  $text.removeClass(className.placeholder);
2593
2595
  }
@@ -394,6 +394,8 @@
394
394
  /* Circular */
395
395
  @circularBorderRadius: 10em;
396
396
  @circularIconWidth: 1em;
397
+ @circularGroupMargin: 0.25em;
398
+ @circularVerticalGroupMargin: @circularGroupMargin;
397
399
 
398
400
  /* Spaced */
399
401
  @spacedMargin: 1em;
@@ -28,7 +28,7 @@ declare namespace FomanticUI {
28
28
  (behavior: 'toggle', index: number): JQuery;
29
29
 
30
30
  (behavior: 'destroy'): JQuery;
31
- <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<AccordionSettings, keyof AccordionSettings>>;
31
+ <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<AccordionSettings, keyof AccordionSettings>>;
32
32
  <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value: AccordionSettings[K]): JQuery;
33
33
  (behavior: 'setting', value: Partial<Pick<AccordionSettings, keyof AccordionSettings>>): JQuery;
34
34
  (settings?: Partial<Pick<AccordionSettings, keyof AccordionSettings>>): JQuery;
@@ -107,7 +107,7 @@ declare namespace FomanticUI {
107
107
  */
108
108
  (behavior: 'destroy'): JQuery;
109
109
 
110
- <K extends keyof APISettings | JQueryAjaxSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>;
110
+ <K extends keyof APISettings | JQueryAjaxSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>;
111
111
  <K extends keyof APISettings>(behavior: 'setting', name: K, value: APISettings[K]): JQuery;
112
112
  (behavior: 'setting', value: Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>): JQuery;
113
113
  (settings?: Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>): JQuery;
@@ -522,7 +522,7 @@ declare namespace FomanticUI {
522
522
 
523
523
  interface Formatters {
524
524
  /**
525
- *
525
+ *
526
526
  */
527
527
  yearHeader(date: Date, settings?: CalendarSettings): string;
528
528
 
@@ -580,14 +580,14 @@ declare namespace FomanticUI {
580
580
  * @default 'YYYY'
581
581
  */
582
582
  year: string;
583
-
583
+
584
584
  /**
585
- *
585
+ *
586
586
  */
587
587
  today(settings: CalendarSettings): string;
588
588
 
589
589
  /**
590
- *
590
+ *
591
591
  */
592
592
  cell(cell: string, date: Date, cellOptions: any): any
593
593
  }
@@ -113,7 +113,7 @@ declare namespace FomanticUI {
113
113
  (behavior: 'set disabled'): JQuery;
114
114
 
115
115
  (behavior: 'destroy'): JQuery;
116
- <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
116
+ <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
117
117
  <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value: DimmerSettings[K]): JQuery;
118
118
  (behavior: 'setting', value: Partial<Pick<DimmerSettings, keyof DimmerSettings>>): JQuery;
119
119
  (settings?: Partial<Pick<DimmerSettings, keyof DimmerSettings>>): JQuery;
@@ -210,7 +210,7 @@ declare namespace FomanticUI {
210
210
  (behavior: 'get placeholder text'): string;
211
211
 
212
212
  (behavior: 'destroy'): JQuery;
213
- <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<DropdownSettings, keyof DropdownSettings>>;
213
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<DropdownSettings, keyof DropdownSettings>>;
214
214
  <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value: DropdownSettings[K]): JQuery;
215
215
  (behavior: 'setting', value: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
216
216
  (settings?: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
@@ -345,7 +345,7 @@ declare namespace FomanticUI {
345
345
  *
346
346
  * @default 'auto'
347
347
  */
348
- placeholder: 'auto' | String | false;
348
+ placeholder: 'auto' | string | false;
349
349
 
350
350
  /**
351
351
  * Whether HTML included in dropdown values should be preserved.
@@ -577,22 +577,22 @@ declare namespace FomanticUI {
577
577
  message: Dropdown.MessageSettings;
578
578
 
579
579
  /**
580
- *
580
+ *
581
581
  */
582
582
  regExp: Dropdown.RegExpSettings;
583
583
 
584
584
  /**
585
- *
585
+ *
586
586
  */
587
587
  metadata: Dropdown.MetadataSettings;
588
588
 
589
589
  /**
590
- *
590
+ *
591
591
  */
592
592
  fields: Dropdown.FieldsSettings;
593
593
 
594
594
  /**
595
- *
595
+ *
596
596
  */
597
597
  keys: Dropdown.KeysSettings;
598
598
 
@@ -738,7 +738,7 @@ declare namespace FomanticUI {
738
738
  */
739
739
  clearIcon: string;
740
740
  }
741
-
741
+
742
742
  interface ClassNames {
743
743
  /**
744
744
  * @default 'active'
@@ -915,7 +915,7 @@ declare namespace FomanticUI {
915
915
  */
916
916
  actionable: string;
917
917
  }
918
-
918
+
919
919
  interface Messages {
920
920
  /**
921
921
  * @default 'Add <b>{term}</b>'
@@ -947,9 +947,9 @@ declare namespace FomanticUI {
947
947
  /**
948
948
  * @default '/[-[\]{}()*+?.,\\^$|#\s]/g'
949
949
  */
950
- escape: string;
950
+ escape: string;
951
951
  }
952
-
952
+
953
953
  interface Metadatas {
954
954
  /**
955
955
  * @default 'defaultText'
@@ -959,24 +959,24 @@ declare namespace FomanticUI {
959
959
  /**
960
960
  * @default 'defaultValue'
961
961
  */
962
- defaultValue: string;
962
+ defaultValue: string;
963
963
 
964
964
  /**
965
965
  * @default 'placeholderText'
966
966
  */
967
- placeholderText: string;
967
+ placeholderText: string;
968
968
 
969
969
  /**
970
970
  * @default 'text'
971
971
  */
972
- text: string;
972
+ text: string;
973
973
 
974
974
  /**
975
975
  * @default 'value'
976
976
  */
977
- value: string;
977
+ value: string;
978
978
  }
979
-
979
+
980
980
  interface Fields {
981
981
  /**
982
982
  * Grouping for api results
@@ -988,13 +988,13 @@ declare namespace FomanticUI {
988
988
  * Grouping for all dropdown values
989
989
  * @default 'values'
990
990
  */
991
- values: string;
991
+ values: string;
992
992
 
993
993
  /**
994
994
  * Whether value should be disabled
995
995
  * @default 'disabled'
996
996
  */
997
- disabled: string;
997
+ disabled: string;
998
998
 
999
999
  /**
1000
1000
  * Displayed dropdown text
@@ -1074,7 +1074,7 @@ declare namespace FomanticUI {
1074
1074
  */
1075
1075
  actionable: string;
1076
1076
  }
1077
-
1077
+
1078
1078
  interface Keys {
1079
1079
  /**
1080
1080
  * @default 8
@@ -57,7 +57,7 @@ declare namespace FomanticUI {
57
57
  */
58
58
  (behavior: 'destroy'): JQuery;
59
59
 
60
- <K extends keyof EmbedSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<EmbedSettings, keyof EmbedSettings>>;
60
+ <K extends keyof EmbedSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<EmbedSettings, keyof EmbedSettings>>;
61
61
  <K extends keyof EmbedSettings>(behavior: 'setting', name: K, value: EmbedSettings[K]): JQuery;
62
62
  (behavior: 'setting', value: Partial<Pick<EmbedSettings, keyof EmbedSettings>>): JQuery;
63
63
  (settings?: Partial<Pick<EmbedSettings, keyof EmbedSettings>>): JQuery;
@@ -54,7 +54,7 @@ declare namespace FomanticUI {
54
54
  (behavior: keyof Flyout.TemplatesSettings, ...args: any): Partial<Pick<FlyoutSettings, keyof FlyoutSettings>>;
55
55
 
56
56
  (behavior: 'destroy'): JQuery;
57
- <K extends keyof FlyoutSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<FlyoutSettings, keyof FlyoutSettings>>;
57
+ <K extends keyof FlyoutSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<FlyoutSettings, keyof FlyoutSettings>>;
58
58
  <K extends keyof FlyoutSettings>(behavior: 'setting', name: K, value: FlyoutSettings[K]): JQuery;
59
59
  (behavior: 'setting', value: Partial<Pick<FlyoutSettings, keyof FlyoutSettings>>): JQuery;
60
60
  (settings?: Partial<Pick<FlyoutSettings, keyof FlyoutSettings>>): JQuery;
@@ -372,7 +372,7 @@ declare namespace FomanticUI {
372
372
  */
373
373
  deny: string;
374
374
  }
375
-
375
+
376
376
  interface ClassNames {
377
377
  /**
378
378
  * @default 'ui flyout'
@@ -489,7 +489,7 @@ declare namespace FomanticUI {
489
489
  */
490
490
  prompt: string;
491
491
  }
492
-
492
+
493
493
  interface RegExps {
494
494
  /**
495
495
  * @default /(iPad|iPhone|iPod)/g
@@ -145,7 +145,7 @@ declare namespace FomanticUI {
145
145
  (behavior: 'set as clean'): JQuery;
146
146
 
147
147
  /**
148
- * Automatically adds the "empty" rule or automatically checks a checkbox for all fields with classname or attribute 'required'.
148
+ * Automatically adds the "notEmpty" rule or automatically checks a checkbox for all fields with classname or attribute 'required'.
149
149
  */
150
150
  (behavior: 'set auto check'): void;
151
151
 
@@ -158,7 +158,7 @@ declare namespace FomanticUI {
158
158
  * Destroys instance and removes all events.
159
159
  */
160
160
  (behavior: 'destroy'): JQuery;
161
- <K extends keyof FormSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<FormSettings, keyof FormSettings>>;
161
+ <K extends keyof FormSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<FormSettings, keyof FormSettings>>;
162
162
  <K extends keyof FormSettings>(behavior: 'setting', name: K, value: FormSettings[K]): JQuery;
163
163
  (behavior: 'setting', value: Partial<Pick<FormSettings, keyof FormSettings>>): JQuery;
164
164
  (settings?: Partial<Pick<FormSettings, keyof FormSettings>>): JQuery;
@@ -256,7 +256,7 @@ declare namespace FomanticUI {
256
256
  preventLeaving: boolean;
257
257
 
258
258
  /**
259
- * Whether fields with classname or attribute 'required' should automatically add the "empty" rule or automatically checks checkbox fields.
259
+ * Whether fields with classname or attribute 'required' should automatically add the "notEmpty" rule or automatically checks checkbox fields.
260
260
  * @default false
261
261
  */
262
262
  autoCheckRequired: boolean;
@@ -273,6 +273,12 @@ declare namespace FomanticUI {
273
273
  */
274
274
  errorLimit: number;
275
275
 
276
+ /**
277
+ *
278
+ * @default false
279
+ */
280
+ noNativeValidation: boolean;
281
+
276
282
  // endregion
277
283
 
278
284
  // region Form Prompts
@@ -440,9 +446,15 @@ declare namespace FomanticUI {
440
446
 
441
447
  /**
442
448
  * @default '{name} must have a value'
449
+ * @deprecated Use notEmpty instead
443
450
  */
444
451
  empty: string;
445
452
 
453
+ /**
454
+ * @default '{name} must have a value'
455
+ */
456
+ notEmpty: string;
457
+
446
458
  /**
447
459
  * @default '{name} must be checked'
448
460
  */
@@ -574,6 +586,7 @@ declare namespace FomanticUI {
574
586
 
575
587
  interface Rules {
576
588
  empty(value: unknown): boolean;
589
+ notEmpty(value: unknown): boolean;
577
590
  checked(): boolean;
578
591
  email(value: unknown): boolean;
579
592
  url(value: unknown): boolean;
@@ -68,7 +68,7 @@ declare namespace FomanticUI {
68
68
  (behavior: keyof Modal.TemplatesSettings, ...args: any): Partial<Pick<ModalSettings, keyof ModalSettings>>;
69
69
 
70
70
  (behavior: 'destroy'): JQuery;
71
- <K extends keyof ModalSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ModalSettings, keyof ModalSettings>>;
71
+ <K extends keyof ModalSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ModalSettings, keyof ModalSettings>>;
72
72
  <K extends keyof ModalSettings>(behavior: 'setting', name: K, value: ModalSettings[K]): JQuery;
73
73
  (behavior: 'setting', value: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
74
74
  (settings?: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
@@ -244,13 +244,13 @@ declare namespace FomanticUI {
244
244
  closeIcon: boolean;
245
245
 
246
246
  /**
247
- *
247
+ *
248
248
  * @default false
249
249
  */
250
250
  actions: any;
251
251
 
252
252
  /**
253
- *
253
+ *
254
254
  * @default true
255
255
  */
256
256
  preserveHTML: boolean;
@@ -23,7 +23,7 @@ declare namespace FomanticUI {
23
23
  (behavior: 'clear'): JQuery;
24
24
 
25
25
  (behavior: 'destroy'): JQuery;
26
- <K extends keyof NagSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<NagSettings, keyof NagSettings>>;
26
+ <K extends keyof NagSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<NagSettings, keyof NagSettings>>;
27
27
  <K extends keyof NagSettings>(behavior: 'setting', name: K, value: NagSettings[K]): JQuery;
28
28
  (behavior: 'setting', value: Partial<Pick<NagSettings, keyof NagSettings>>): JQuery;
29
29
  (settings?: Partial<Pick<NagSettings, keyof NagSettings>>): JQuery;
@@ -231,7 +231,7 @@ declare namespace FomanticUI {
231
231
  */
232
232
  close: string;
233
233
  }
234
-
234
+
235
235
  interface ClassNames {
236
236
  /**
237
237
  * @default 'bottom'
@@ -243,7 +243,7 @@ declare namespace FomanticUI {
243
243
  */
244
244
  fixed: string;
245
245
  }
246
-
246
+
247
247
  interface Errors {
248
248
  /**
249
249
  * @default 'Unsupported storage method'
@@ -67,7 +67,7 @@ declare namespace FomanticUI {
67
67
  */
68
68
  (behavior: 'destroy'): JQuery;
69
69
 
70
- <K extends keyof PopupSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<PopupSettings, keyof PopupSettings>>;
70
+ <K extends keyof PopupSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<PopupSettings, keyof PopupSettings>>;
71
71
  <K extends keyof PopupSettings>(behavior: 'setting', name: K, value: PopupSettings[K]): JQuery;
72
72
  (behavior: 'setting', value: Partial<Pick<PopupSettings, keyof PopupSettings>>): JQuery;
73
73
  (settings?: Partial<Pick<PopupSettings, keyof PopupSettings>>): JQuery;
@@ -402,7 +402,7 @@ declare namespace FomanticUI {
402
402
  */
403
403
  popup: string;
404
404
  }
405
-
405
+
406
406
  interface Metadatas {
407
407
  /**
408
408
  * @default 'activator'
@@ -439,7 +439,7 @@ declare namespace FomanticUI {
439
439
  */
440
440
  variation: string;
441
441
  }
442
-
442
+
443
443
  interface ClassNames {
444
444
  /**
445
445
  * @default 'active'
@@ -158,7 +158,7 @@ declare namespace FomanticUI {
158
158
  */
159
159
  (behavior: 'destroy'): JQuery;
160
160
 
161
- <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ProgressSettings, keyof ProgressSettings>>;
161
+ <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ProgressSettings, keyof ProgressSettings>>;
162
162
  <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings[K]): JQuery;
163
163
  (behavior: 'setting', value: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
164
164
  (settings?: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
@@ -355,7 +355,7 @@ declare namespace FomanticUI {
355
355
  */
356
356
  progress: string;
357
357
  }
358
-
358
+
359
359
  interface ClassNames {
360
360
  /**
361
361
  * @default 'active'
@@ -377,7 +377,7 @@ declare namespace FomanticUI {
377
377
  */
378
378
  warning: string;
379
379
  }
380
-
380
+
381
381
  interface Texts {
382
382
  /**
383
383
  * @default false
@@ -414,14 +414,14 @@ declare namespace FomanticUI {
414
414
  */
415
415
  bars: string[];
416
416
  }
417
-
417
+
418
418
  interface RegExps {
419
419
  /**
420
420
  * @default /\{\$*[A-z0-9]+\}/g
421
421
  */
422
422
  variable: RegExp;
423
423
  }
424
-
424
+
425
425
  interface Metadatas {
426
426
  /**
427
427
  * @default 'percent'
@@ -438,7 +438,7 @@ declare namespace FomanticUI {
438
438
  */
439
439
  value: string;
440
440
  }
441
-
441
+
442
442
  interface Errors {
443
443
  /**
444
444
  * @default 'The method you called is not defined.'
@@ -28,7 +28,7 @@ declare namespace FomanticUI {
28
28
  (behavior: 'clear rating'): JQuery;
29
29
 
30
30
  (behavior: 'destroy'): JQuery;
31
- <K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<RatingSettings, keyof RatingSettings>>;
31
+ <K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<RatingSettings, keyof RatingSettings>>;
32
32
  <K extends keyof RatingSettings>(behavior: 'setting', name: K, value: RatingSettings[K]): JQuery;
33
33
  (behavior: 'setting', value: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
34
34
  (settings?: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
@@ -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;
@@ -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;
@@ -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'