@jobber/components 8.15.0 → 8.16.0
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/dist/Card/index.cjs +1 -1
- package/dist/Card/index.mjs +1 -1
- package/dist/DataDump/index.cjs +1 -1
- package/dist/DataDump/index.mjs +1 -1
- package/dist/InputNumberExperimental-cjs.js +16 -16
- package/dist/InputNumberExperimental-es.js +1 -1
- package/dist/Menu/index.cjs +1 -1
- package/dist/Menu/index.mjs +1 -1
- package/dist/MenuSubmenuTrigger-cjs.js +1060 -1060
- package/dist/MenuSubmenuTrigger-es.js +928 -928
- package/dist/NumberFieldInput-cjs.js +53 -53
- package/dist/NumberFieldInput-es.js +1 -1
- package/dist/Page/index.cjs +1 -1
- package/dist/Page/index.mjs +1 -1
- package/dist/ScrollAreaViewport-cjs.js +4436 -4436
- package/dist/ScrollAreaViewport-es.js +4372 -4372
- package/dist/{useValueChanged-cjs.js → clamp-cjs.js} +594 -592
- package/dist/{useValueChanged-es.js → clamp-es.js} +595 -594
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/primitives/BottomSheet/index.cjs +2 -2
- package/dist/primitives/BottomSheet/index.mjs +2 -2
- package/dist/primitives/InputNumberExperimental/index.cjs +2 -2
- package/dist/primitives/InputNumberExperimental/index.mjs +2 -2
- package/dist/primitives/index.cjs +2 -2
- package/dist/primitives/index.mjs +2 -2
- package/dist/unstyledPrimitives/index.cjs +6271 -6134
- package/dist/unstyledPrimitives/index.d.ts +1 -0
- package/dist/unstyledPrimitives/index.mjs +6318 -6182
- package/dist/useRenderElement-cjs.js +30 -30
- package/dist/useRenderElement-es.js +30 -30
- package/package.json +2 -2
|
@@ -217,32 +217,6 @@ function isSyntheticEvent(event) {
|
|
|
217
217
|
return event != null && typeof event === 'object' && 'nativeEvent' in event;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
/**
|
|
221
|
-
* Creates a formatErrorMessage function with a custom URL and prefix.
|
|
222
|
-
* @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')
|
|
223
|
-
* @param prefix - The prefix for the error message (e.g., 'Base UI')
|
|
224
|
-
* @returns A function that formats error messages with the given URL and prefix
|
|
225
|
-
*/
|
|
226
|
-
function createFormatErrorMessage(baseUrl, prefix) {
|
|
227
|
-
return function formatErrorMessage(code, ...args) {
|
|
228
|
-
const url = new URL(baseUrl);
|
|
229
|
-
url.searchParams.set('code', code.toString());
|
|
230
|
-
args.forEach(arg => url.searchParams.append('args[]', arg));
|
|
231
|
-
return `${prefix} error #${code}; visit ${url} for the full message.`;
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* WARNING: Don't import this directly. It's imported by the code generated by
|
|
237
|
-
* `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`
|
|
238
|
-
* constructors to ensure the plugin works as expected. Supported patterns include:
|
|
239
|
-
* throw new Error('My message');
|
|
240
|
-
* throw new Error(`My message: ${foo}`);
|
|
241
|
-
* throw new Error(`My message: ${foo}` + 'another string');
|
|
242
|
-
* ...
|
|
243
|
-
*/
|
|
244
|
-
const formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');
|
|
245
|
-
|
|
246
220
|
const UNINITIALIZED = {};
|
|
247
221
|
|
|
248
222
|
/**
|
|
@@ -366,11 +340,41 @@ function update(forkRef, refs) {
|
|
|
366
340
|
};
|
|
367
341
|
}
|
|
368
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Creates a formatErrorMessage function with a custom URL and prefix.
|
|
345
|
+
* @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')
|
|
346
|
+
* @param prefix - The prefix for the error message (e.g., 'Base UI')
|
|
347
|
+
* @returns A function that formats error messages with the given URL and prefix
|
|
348
|
+
*/
|
|
349
|
+
function createFormatErrorMessage(baseUrl, prefix) {
|
|
350
|
+
return function formatErrorMessage(code, ...args) {
|
|
351
|
+
const url = new URL(baseUrl);
|
|
352
|
+
url.searchParams.set('code', code.toString());
|
|
353
|
+
args.forEach(arg => url.searchParams.append('args[]', arg));
|
|
354
|
+
return `${prefix} error #${code}; visit ${url} for the full message.`;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* WARNING: Don't import this directly. It's imported by the code generated by
|
|
360
|
+
* `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`
|
|
361
|
+
* constructors to ensure the plugin works as expected. Supported patterns include:
|
|
362
|
+
* throw new Error('My message');
|
|
363
|
+
* throw new Error(`My message: ${foo}`);
|
|
364
|
+
* throw new Error(`My message: ${foo}` + 'another string');
|
|
365
|
+
* ...
|
|
366
|
+
*/
|
|
367
|
+
const formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');
|
|
368
|
+
|
|
369
369
|
const majorVersion = parseInt(React__namespace.version, 10);
|
|
370
370
|
function isReactVersionAtLeast(reactVersionToCheck) {
|
|
371
371
|
return majorVersion >= reactVersionToCheck;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
+
function NOOP() {}
|
|
375
|
+
const EMPTY_ARRAY = Object.freeze([]);
|
|
376
|
+
const EMPTY_OBJECT = Object.freeze({});
|
|
377
|
+
|
|
374
378
|
/**
|
|
375
379
|
* Extracts the `ref` from a React element, handling different React versions.
|
|
376
380
|
*/
|
|
@@ -441,10 +445,6 @@ function resolveStyle(style, state) {
|
|
|
441
445
|
return typeof style === 'function' ? style(state) : style;
|
|
442
446
|
}
|
|
443
447
|
|
|
444
|
-
function NOOP() {}
|
|
445
|
-
const EMPTY_ARRAY = Object.freeze([]);
|
|
446
|
-
const EMPTY_OBJECT = Object.freeze({});
|
|
447
|
-
|
|
448
448
|
/**
|
|
449
449
|
* Renders a Base UI element.
|
|
450
450
|
*
|
|
@@ -197,32 +197,6 @@ function isSyntheticEvent(event) {
|
|
|
197
197
|
return event != null && typeof event === 'object' && 'nativeEvent' in event;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
/**
|
|
201
|
-
* Creates a formatErrorMessage function with a custom URL and prefix.
|
|
202
|
-
* @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')
|
|
203
|
-
* @param prefix - The prefix for the error message (e.g., 'Base UI')
|
|
204
|
-
* @returns A function that formats error messages with the given URL and prefix
|
|
205
|
-
*/
|
|
206
|
-
function createFormatErrorMessage(baseUrl, prefix) {
|
|
207
|
-
return function formatErrorMessage(code, ...args) {
|
|
208
|
-
const url = new URL(baseUrl);
|
|
209
|
-
url.searchParams.set('code', code.toString());
|
|
210
|
-
args.forEach(arg => url.searchParams.append('args[]', arg));
|
|
211
|
-
return `${prefix} error #${code}; visit ${url} for the full message.`;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* WARNING: Don't import this directly. It's imported by the code generated by
|
|
217
|
-
* `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`
|
|
218
|
-
* constructors to ensure the plugin works as expected. Supported patterns include:
|
|
219
|
-
* throw new Error('My message');
|
|
220
|
-
* throw new Error(`My message: ${foo}`);
|
|
221
|
-
* throw new Error(`My message: ${foo}` + 'another string');
|
|
222
|
-
* ...
|
|
223
|
-
*/
|
|
224
|
-
const formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');
|
|
225
|
-
|
|
226
200
|
const UNINITIALIZED = {};
|
|
227
201
|
|
|
228
202
|
/**
|
|
@@ -346,11 +320,41 @@ function update(forkRef, refs) {
|
|
|
346
320
|
};
|
|
347
321
|
}
|
|
348
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Creates a formatErrorMessage function with a custom URL and prefix.
|
|
325
|
+
* @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')
|
|
326
|
+
* @param prefix - The prefix for the error message (e.g., 'Base UI')
|
|
327
|
+
* @returns A function that formats error messages with the given URL and prefix
|
|
328
|
+
*/
|
|
329
|
+
function createFormatErrorMessage(baseUrl, prefix) {
|
|
330
|
+
return function formatErrorMessage(code, ...args) {
|
|
331
|
+
const url = new URL(baseUrl);
|
|
332
|
+
url.searchParams.set('code', code.toString());
|
|
333
|
+
args.forEach(arg => url.searchParams.append('args[]', arg));
|
|
334
|
+
return `${prefix} error #${code}; visit ${url} for the full message.`;
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* WARNING: Don't import this directly. It's imported by the code generated by
|
|
340
|
+
* `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`
|
|
341
|
+
* constructors to ensure the plugin works as expected. Supported patterns include:
|
|
342
|
+
* throw new Error('My message');
|
|
343
|
+
* throw new Error(`My message: ${foo}`);
|
|
344
|
+
* throw new Error(`My message: ${foo}` + 'another string');
|
|
345
|
+
* ...
|
|
346
|
+
*/
|
|
347
|
+
const formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');
|
|
348
|
+
|
|
349
349
|
const majorVersion = parseInt(React.version, 10);
|
|
350
350
|
function isReactVersionAtLeast(reactVersionToCheck) {
|
|
351
351
|
return majorVersion >= reactVersionToCheck;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
+
function NOOP() {}
|
|
355
|
+
const EMPTY_ARRAY = Object.freeze([]);
|
|
356
|
+
const EMPTY_OBJECT = Object.freeze({});
|
|
357
|
+
|
|
354
358
|
/**
|
|
355
359
|
* Extracts the `ref` from a React element, handling different React versions.
|
|
356
360
|
*/
|
|
@@ -421,10 +425,6 @@ function resolveStyle(style, state) {
|
|
|
421
425
|
return typeof style === 'function' ? style(state) : style;
|
|
422
426
|
}
|
|
423
427
|
|
|
424
|
-
function NOOP() {}
|
|
425
|
-
const EMPTY_ARRAY = Object.freeze([]);
|
|
426
|
-
const EMPTY_OBJECT = Object.freeze({});
|
|
427
|
-
|
|
428
428
|
/**
|
|
429
429
|
* Renders a Base UI element.
|
|
430
430
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -546,5 +546,5 @@
|
|
|
546
546
|
"> 1%",
|
|
547
547
|
"IE 10"
|
|
548
548
|
],
|
|
549
|
-
"gitHead": "
|
|
549
|
+
"gitHead": "4e229c9d1f28566fb9117dd4b199efd2cbcebf9f"
|
|
550
550
|
}
|