fomantic-ui 2.9.3-beta.45 → 2.9.3-beta.47
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.
- package/README.md +5 -2
- package/SECURITY.md +2 -1
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -1
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +53 -53
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +1 -1
- package/types/fomantic-ui-accordion.d.ts +166 -172
- package/types/fomantic-ui-api.d.ts +418 -470
- package/types/fomantic-ui-calendar.d.ts +425 -479
- package/types/fomantic-ui-checkbox.d.ts +148 -194
- package/types/fomantic-ui-dimmer.d.ts +188 -265
- package/types/fomantic-ui-dropdown.d.ts +447 -666
- package/types/fomantic-ui-embed.d.ts +243 -289
- package/types/fomantic-ui-flyout.d.ts +259 -292
- package/types/fomantic-ui-form.d.ts +478 -607
- package/types/fomantic-ui-modal.d.ts +389 -471
- package/types/fomantic-ui-nag.d.ts +228 -277
- package/types/fomantic-ui-popup.d.ts +438 -534
- package/types/fomantic-ui-progress.d.ts +278 -352
- package/types/fomantic-ui-rating.d.ts +137 -168
- package/types/fomantic-ui-search.d.ts +359 -453
- package/types/fomantic-ui-shape.d.ts +152 -194
- package/types/fomantic-ui-sidebar.d.ts +315 -391
- package/types/fomantic-ui-slider.d.ts +259 -322
- package/types/fomantic-ui-sticky.d.ts +198 -244
- package/types/fomantic-ui-tab.d.ts +284 -350
- package/types/fomantic-ui-tests.ts +4 -2
- package/types/fomantic-ui-toast.d.ts +318 -424
- package/types/fomantic-ui-transition.d.ts +223 -273
- package/types/fomantic-ui-visibility.d.ts +286 -353
- package/types/index.d.ts +0 -1
@@ -102,214 +102,172 @@ declare namespace FomanticUI {
|
|
102
102
|
*/
|
103
103
|
(behavior: 'destroy'): JQuery;
|
104
104
|
|
105
|
-
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined): ShapeSettings
|
106
|
-
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings
|
107
|
-
(behavior: 'setting', value: ShapeSettings): JQuery;
|
108
|
-
(settings?: ShapeSettings): JQuery;
|
105
|
+
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ShapeSettings, keyof ShapeSettings>>;
|
106
|
+
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings[K]): JQuery;
|
107
|
+
(behavior: 'setting', value: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
|
108
|
+
(settings?: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
|
109
109
|
}
|
110
110
|
|
111
111
|
/**
|
112
112
|
* @see {@link https://fomantic-ui.com/modules/shape.html#/settings}
|
113
113
|
*/
|
114
|
-
|
115
|
-
|
116
|
-
namespace ShapeSettings {
|
117
|
-
type Param = (
|
118
|
-
| Pick<_Impl, 'duration'>
|
119
|
-
| Pick<_Impl, 'width'>
|
120
|
-
| Pick<_Impl, 'height'>
|
121
|
-
| Pick<_Impl, 'jitter'>
|
122
|
-
| Pick<_Impl, 'allowRepeats'>
|
123
|
-
| Pick<_Impl, 'onBeforeChange'>
|
124
|
-
| Pick<_Impl, 'onChange'>
|
125
|
-
| Pick<_Impl, 'selector'>
|
126
|
-
| Pick<_Impl, 'className'>
|
127
|
-
| Pick<_Impl, 'name'>
|
128
|
-
| Pick<_Impl, 'namespace'>
|
129
|
-
| Pick<_Impl, 'silent'>
|
130
|
-
| Pick<_Impl, 'debug'>
|
131
|
-
| Pick<_Impl, 'performance'>
|
132
|
-
| Pick<_Impl, 'verbose'>
|
133
|
-
| Pick<_Impl, 'error'>
|
134
|
-
) &
|
135
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
136
|
-
|
137
|
-
interface _Impl {
|
138
|
-
// region Shape Settings
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Duration of side change animation.
|
142
|
-
* @default false
|
143
|
-
*/
|
144
|
-
duration: false | string;
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Width during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
148
|
-
* @default 'initial'
|
149
|
-
*/
|
150
|
-
width: 'auto' | 'initial' | 'next' | number;
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Height during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
154
|
-
* @default 'initial'
|
155
|
-
*/
|
156
|
-
height: 'auto' | 'initial' | 'next' | number;
|
157
|
-
|
158
|
-
/**
|
159
|
-
* Fudge factor in pixels when swapping from 2d to 3d (can be useful to correct rounding errors).
|
160
|
-
* @default 0
|
161
|
-
*/
|
162
|
-
jitter: number;
|
163
|
-
|
164
|
-
/**
|
165
|
-
* Allow animation to same side.
|
166
|
-
* @default false
|
167
|
-
*/
|
168
|
-
allowRepeats: boolean;
|
169
|
-
|
170
|
-
// endregion
|
171
|
-
|
172
|
-
// region Callbacks
|
173
|
-
|
174
|
-
/**
|
175
|
-
* Is called before side change.
|
176
|
-
*/
|
177
|
-
onBeforeChange(this: JQuery): void;
|
178
|
-
|
179
|
-
/**
|
180
|
-
* Is called after visible side change.
|
181
|
-
*/
|
182
|
-
onChange(this: JQuery): void;
|
183
|
-
|
184
|
-
// endregion
|
185
|
-
|
186
|
-
// region DOM Settings
|
187
|
-
|
188
|
-
/**
|
189
|
-
* DOM Selectors used internally.
|
190
|
-
* Selectors used to find parts of a module.
|
191
|
-
*/
|
192
|
-
selector: Shape.SelectorSettings;
|
193
|
-
|
194
|
-
/**
|
195
|
-
* Class names used to determine element state.
|
196
|
-
*/
|
197
|
-
className: Shape.ClassNameSettings;
|
198
|
-
|
199
|
-
// endregion
|
200
|
-
|
201
|
-
// region Debug Settings
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Name used in log statements
|
205
|
-
* @default 'Shape'
|
206
|
-
*/
|
207
|
-
name: string;
|
208
|
-
|
209
|
-
/**
|
210
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
211
|
-
* @default 'shape'
|
212
|
-
*/
|
213
|
-
namespace: string;
|
214
|
-
|
215
|
-
/**
|
216
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
217
|
-
* @default false
|
218
|
-
*/
|
219
|
-
silent: boolean;
|
220
|
-
|
221
|
-
/**
|
222
|
-
* Debug output to console
|
223
|
-
* @default false
|
224
|
-
*/
|
225
|
-
debug: boolean;
|
226
|
-
|
227
|
-
/**
|
228
|
-
* Show console.table output with performance metrics
|
229
|
-
* @default true
|
230
|
-
*/
|
231
|
-
performance: boolean;
|
232
|
-
|
233
|
-
/**
|
234
|
-
* Debug output includes all internal behaviors
|
235
|
-
* @default false
|
236
|
-
*/
|
237
|
-
verbose: boolean;
|
238
|
-
|
239
|
-
error: Shape.ErrorSettings;
|
240
|
-
|
241
|
-
// endregion
|
242
|
-
}
|
114
|
+
interface ShapeSettings {
|
115
|
+
// region Shape Settings
|
243
116
|
|
244
|
-
|
245
|
-
|
117
|
+
/**
|
118
|
+
* Duration of side change animation.
|
119
|
+
* @default false
|
120
|
+
*/
|
121
|
+
duration: false | string;
|
246
122
|
|
247
|
-
|
248
|
-
|
123
|
+
/**
|
124
|
+
* Width during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
125
|
+
* @default 'initial'
|
126
|
+
*/
|
127
|
+
width: 'auto' | 'initial' | 'next' | number;
|
249
128
|
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
129
|
+
/**
|
130
|
+
* Height during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
131
|
+
* @default 'initial'
|
132
|
+
*/
|
133
|
+
height: 'auto' | 'initial' | 'next' | number;
|
255
134
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
}
|
135
|
+
/**
|
136
|
+
* Fudge factor in pixels when swapping from 2d to 3d (can be useful to correct rounding errors).
|
137
|
+
* @default 0
|
138
|
+
*/
|
139
|
+
jitter: number;
|
262
140
|
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
*/
|
293
|
-
active: string;
|
294
|
-
}
|
295
|
-
}
|
141
|
+
/**
|
142
|
+
* Allow animation to same side.
|
143
|
+
* @default false
|
144
|
+
*/
|
145
|
+
allowRepeats: boolean;
|
146
|
+
|
147
|
+
// endregion
|
148
|
+
|
149
|
+
// region Callbacks
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Is called before side change.
|
153
|
+
*/
|
154
|
+
onBeforeChange(this: JQuery): void;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Is called after visible side change.
|
158
|
+
*/
|
159
|
+
onChange(this: JQuery): void;
|
160
|
+
|
161
|
+
// endregion
|
162
|
+
|
163
|
+
// region DOM Settings
|
164
|
+
|
165
|
+
/**
|
166
|
+
* DOM Selectors used internally.
|
167
|
+
* Selectors used to find parts of a module.
|
168
|
+
*/
|
169
|
+
selector: Shape.SelectorSettings;
|
296
170
|
|
297
|
-
|
171
|
+
/**
|
172
|
+
* Class names used to determine element state.
|
173
|
+
*/
|
174
|
+
className: Shape.ClassNameSettings;
|
175
|
+
|
176
|
+
// endregion
|
177
|
+
|
178
|
+
// region Debug Settings
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Name used in log statements
|
182
|
+
* @default 'Shape'
|
183
|
+
*/
|
184
|
+
name: string;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
188
|
+
* @default 'shape'
|
189
|
+
*/
|
190
|
+
namespace: string;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
194
|
+
* @default false
|
195
|
+
*/
|
196
|
+
silent: boolean;
|
298
197
|
|
299
|
-
|
300
|
-
|
198
|
+
/**
|
199
|
+
* Debug output to console
|
200
|
+
* @default false
|
201
|
+
*/
|
202
|
+
debug: boolean;
|
301
203
|
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
204
|
+
/**
|
205
|
+
* Show console.table output with performance metrics
|
206
|
+
* @default true
|
207
|
+
*/
|
208
|
+
performance: boolean;
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Debug output includes all internal behaviors
|
212
|
+
* @default false
|
213
|
+
*/
|
214
|
+
verbose: boolean;
|
307
215
|
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
216
|
+
error: Shape.ErrorSettings;
|
217
|
+
|
218
|
+
// endregion
|
219
|
+
}
|
220
|
+
|
221
|
+
namespace Shape {
|
222
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
223
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
224
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
225
|
+
|
226
|
+
namespace Settings {
|
227
|
+
interface Selectors {
|
228
|
+
/**
|
229
|
+
* @default '.sides'
|
230
|
+
*/
|
231
|
+
sides: string;
|
232
|
+
|
233
|
+
/**
|
234
|
+
* @default '.side'
|
235
|
+
*/
|
236
|
+
side: string;
|
237
|
+
}
|
238
|
+
|
239
|
+
interface ClassNames {
|
240
|
+
/**
|
241
|
+
* @default 'animating'
|
242
|
+
*/
|
243
|
+
animating: string;
|
244
|
+
|
245
|
+
/**
|
246
|
+
* @default 'hidden'
|
247
|
+
*/
|
248
|
+
hidden: string;
|
249
|
+
|
250
|
+
/**
|
251
|
+
* @default 'loading'
|
252
|
+
*/
|
253
|
+
loading: string;
|
254
|
+
|
255
|
+
/**
|
256
|
+
* @default 'active'
|
257
|
+
*/
|
258
|
+
active: string;
|
259
|
+
}
|
260
|
+
|
261
|
+
interface Errors {
|
262
|
+
/**
|
263
|
+
* @default 'You tried to switch to a side that does not exist.'
|
264
|
+
*/
|
265
|
+
side: string;
|
266
|
+
|
267
|
+
/**
|
268
|
+
* @default 'The method you called is not defined'
|
269
|
+
*/
|
270
|
+
method: string;
|
313
271
|
}
|
314
272
|
}
|
315
273
|
}
|