@jobber/components 9.16.0 → 9.16.1
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/Chip/index.cjs +0 -1
- package/dist/Chip/index.mjs +0 -1
- package/dist/Chips/InternalChipDismissible/index.cjs +0 -1
- package/dist/Chips/InternalChipDismissible/index.mjs +0 -1
- package/dist/Chips/index.cjs +0 -1
- package/dist/Chips/index.mjs +0 -1
- package/dist/DataList/components/DataListActions/index.cjs +1 -1
- package/dist/DataList/components/DataListActions/index.mjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.mjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -1
- package/dist/FilterPicker/components/FilterPickerActivator/index.cjs +0 -1
- package/dist/FilterPicker/components/FilterPickerActivator/index.mjs +0 -1
- package/dist/FilterPicker/components/FilterPickerTrigger/index.cjs +0 -1
- package/dist/FilterPicker/components/FilterPickerTrigger/index.mjs +0 -1
- package/dist/Tooltip/index.cjs +0 -1
- package/dist/Tooltip/index.mjs +0 -1
- package/dist/Tooltip-cjs.js +2 -11
- package/dist/Tooltip-es.js +2 -11
- package/dist/docs/InputFile/InputFile.md +11 -0
- package/dist/styles.css +22 -0
- package/package.json +2 -2
package/dist/Chip/index.cjs
CHANGED
package/dist/Chip/index.mjs
CHANGED
package/dist/Chips/index.cjs
CHANGED
package/dist/Chips/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ require('classnames');
|
|
|
7
7
|
require('../../../floating-ui.react-cjs.js');
|
|
8
8
|
require('react/jsx-runtime');
|
|
9
9
|
require('react-dom');
|
|
10
|
-
require('framer-motion');
|
|
11
10
|
require('@jobber/hooks');
|
|
12
11
|
require('../../../Button-cjs.js');
|
|
13
12
|
require('../../../tslib.es6-cjs.js');
|
|
@@ -32,6 +31,7 @@ require('../../../Heading-cjs.js');
|
|
|
32
31
|
require('../../../DataListLayoutContext-cjs2.js');
|
|
33
32
|
require('../../../DataListItemActionsOverflow-cjs.js');
|
|
34
33
|
require('../../../DataListActionsMenu-cjs.js');
|
|
34
|
+
require('framer-motion');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -5,7 +5,6 @@ import 'classnames';
|
|
|
5
5
|
import '../../../floating-ui.react-es.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import 'framer-motion';
|
|
9
8
|
import '@jobber/hooks';
|
|
10
9
|
import '../../../Button-es.js';
|
|
11
10
|
import '../../../tslib.es6-es.js';
|
|
@@ -30,3 +29,4 @@ import '../../../Heading-es.js';
|
|
|
30
29
|
import '../../../DataListLayoutContext-es2.js';
|
|
31
30
|
import '../../../DataListItemActionsOverflow-es.js';
|
|
32
31
|
import '../../../DataListActionsMenu-es.js';
|
|
32
|
+
import 'framer-motion';
|
|
@@ -11,7 +11,6 @@ require('classnames');
|
|
|
11
11
|
require('../../../floating-ui.react-cjs.js');
|
|
12
12
|
require('react/jsx-runtime');
|
|
13
13
|
require('react-dom');
|
|
14
|
-
require('framer-motion');
|
|
15
14
|
require('@jobber/hooks');
|
|
16
15
|
require('../../../Button-cjs.js');
|
|
17
16
|
require('../../../tslib.es6-cjs.js');
|
|
@@ -33,6 +32,7 @@ require('../../../Heading-cjs.js');
|
|
|
33
32
|
require('../../../DataListLayoutContext-cjs2.js');
|
|
34
33
|
require('../../../DataListItemActionsOverflow-cjs.js');
|
|
35
34
|
require('../../../DataListActionsMenu-cjs.js');
|
|
35
|
+
require('framer-motion');
|
|
36
36
|
require('../../../useResponsiveSizing-cjs.js');
|
|
37
37
|
|
|
38
38
|
|
|
@@ -9,7 +9,6 @@ import 'classnames';
|
|
|
9
9
|
import '../../../floating-ui.react-es.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import 'framer-motion';
|
|
13
12
|
import '@jobber/hooks';
|
|
14
13
|
import '../../../Button-es.js';
|
|
15
14
|
import '../../../tslib.es6-es.js';
|
|
@@ -31,4 +30,5 @@ import '../../../Heading-es.js';
|
|
|
31
30
|
import '../../../DataListLayoutContext-es2.js';
|
|
32
31
|
import '../../../DataListItemActionsOverflow-es.js';
|
|
33
32
|
import '../../../DataListActionsMenu-es.js';
|
|
33
|
+
import 'framer-motion';
|
|
34
34
|
import '../../../useResponsiveSizing-es.js';
|
|
@@ -13,9 +13,9 @@ require('../../../Tooltip-cjs.js');
|
|
|
13
13
|
require('../../../floating-ui.react-cjs.js');
|
|
14
14
|
require('react/jsx-runtime');
|
|
15
15
|
require('react-dom');
|
|
16
|
-
require('framer-motion');
|
|
17
16
|
require('@jobber/hooks');
|
|
18
17
|
require('../../../DataListActionsMenu-cjs.js');
|
|
18
|
+
require('framer-motion');
|
|
19
19
|
require('../../../DataList.const-cjs.js');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -11,7 +11,7 @@ import '../../../Tooltip-es.js';
|
|
|
11
11
|
import '../../../floating-ui.react-es.js';
|
|
12
12
|
import 'react/jsx-runtime';
|
|
13
13
|
import 'react-dom';
|
|
14
|
-
import 'framer-motion';
|
|
15
14
|
import '@jobber/hooks';
|
|
16
15
|
import '../../../DataListActionsMenu-es.js';
|
|
16
|
+
import 'framer-motion';
|
|
17
17
|
import '../../../DataList.const-es.js';
|
|
@@ -18,9 +18,9 @@ require('../../../Tooltip-cjs.js');
|
|
|
18
18
|
require('../../../floating-ui.react-cjs.js');
|
|
19
19
|
require('react/jsx-runtime');
|
|
20
20
|
require('react-dom');
|
|
21
|
-
require('framer-motion');
|
|
22
21
|
require('@jobber/hooks');
|
|
23
22
|
require('../../../DataListActionsMenu-cjs.js');
|
|
23
|
+
require('framer-motion');
|
|
24
24
|
require('../../../DataList.const-cjs.js');
|
|
25
25
|
require('../../../Glimmer-cjs.js');
|
|
26
26
|
require('../../../Content-cjs.js');
|
|
@@ -16,9 +16,9 @@ import '../../../Tooltip-es.js';
|
|
|
16
16
|
import '../../../floating-ui.react-es.js';
|
|
17
17
|
import 'react/jsx-runtime';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import 'framer-motion';
|
|
20
19
|
import '@jobber/hooks';
|
|
21
20
|
import '../../../DataListActionsMenu-es.js';
|
|
21
|
+
import 'framer-motion';
|
|
22
22
|
import '../../../DataList.const-es.js';
|
|
23
23
|
import '../../../Glimmer-es.js';
|
|
24
24
|
import '../../../Content-es.js';
|
|
@@ -20,7 +20,6 @@ require('../../../Tooltip-cjs.js');
|
|
|
20
20
|
require('../../../floating-ui.react-cjs.js');
|
|
21
21
|
require('react/jsx-runtime');
|
|
22
22
|
require('react-dom');
|
|
23
|
-
require('framer-motion');
|
|
24
23
|
require('../../../FilterPickerProvider-cjs.js');
|
|
25
24
|
require('../../../constants-cjs.js');
|
|
26
25
|
|
|
@@ -18,7 +18,6 @@ require('../../../Tooltip-cjs.js');
|
|
|
18
18
|
require('../../../floating-ui.react-cjs.js');
|
|
19
19
|
require('react/jsx-runtime');
|
|
20
20
|
require('react-dom');
|
|
21
|
-
require('framer-motion');
|
|
22
21
|
require('../../../FilterPickerProvider-cjs.js');
|
|
23
22
|
require('../../../FilterPicker.messages-cjs.js');
|
|
24
23
|
|
package/dist/Tooltip/index.cjs
CHANGED
package/dist/Tooltip/index.mjs
CHANGED
package/dist/Tooltip-cjs.js
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var floatingUi_react = require('./floating-ui.react-cjs.js');
|
|
6
|
-
var framerMotion = require('framer-motion');
|
|
7
6
|
var jobberHooks = require('@jobber/hooks');
|
|
8
7
|
|
|
9
|
-
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
8
|
+
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","tooltipFadeIn":"lVdPVB1BJ3s-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
10
9
|
|
|
11
10
|
const TOOLTIP_SHIFT_PADDING = 8;
|
|
12
11
|
const TOOLTIP_ARROW_PADDING = 6;
|
|
@@ -51,10 +50,6 @@ function useTooltipPositioning({ preferredPlacement, }) {
|
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
const variation = {
|
|
55
|
-
startOrStop: { opacity: 0 },
|
|
56
|
-
done: { opacity: 1 },
|
|
57
|
-
};
|
|
58
53
|
function Tooltip({ message, children, preferredPlacement = "top", setTabIndex = true, }) {
|
|
59
54
|
var _a, _b, _c, _d;
|
|
60
55
|
const [show, setShow] = React.useState(false);
|
|
@@ -76,11 +71,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
|
|
|
76
71
|
React.createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
77
72
|
children,
|
|
78
73
|
React.createElement(TooltipPortal, null, show && Boolean(message) && (React.createElement("div", { className: toolTipClassNames, style: floatingStyles.float, ref: setTooltipRef, role: "tooltip", hidden: isHidden, "data-placement": placement },
|
|
79
|
-
React.createElement(
|
|
80
|
-
ease: "easeOut",
|
|
81
|
-
duration: 0.15,
|
|
82
|
-
delay: 0.3,
|
|
83
|
-
} },
|
|
74
|
+
React.createElement("div", { className: styles.tooltip },
|
|
84
75
|
React.createElement("p", { className: styles.tooltipMessage }, message),
|
|
85
76
|
React.createElement("div", { ref: setArrowRef, style: arrowStyles, className: styles.arrow })))))));
|
|
86
77
|
function initializeListeners() {
|
package/dist/Tooltip-es.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { u as useFloating, s as shift, f as flip, a as arrow, h as hide, b as autoUpdate, l as limitShift, F as FloatingPortal } from './floating-ui.react-es.js';
|
|
4
|
-
import { motion } from 'framer-motion';
|
|
5
4
|
import { useSafeLayoutEffect, useIsMounted } from '@jobber/hooks';
|
|
6
5
|
|
|
7
|
-
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
6
|
+
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","tooltipFadeIn":"lVdPVB1BJ3s-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
8
7
|
|
|
9
8
|
const TOOLTIP_SHIFT_PADDING = 8;
|
|
10
9
|
const TOOLTIP_ARROW_PADDING = 6;
|
|
@@ -49,10 +48,6 @@ function useTooltipPositioning({ preferredPlacement, }) {
|
|
|
49
48
|
};
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
const variation = {
|
|
53
|
-
startOrStop: { opacity: 0 },
|
|
54
|
-
done: { opacity: 1 },
|
|
55
|
-
};
|
|
56
51
|
function Tooltip({ message, children, preferredPlacement = "top", setTabIndex = true, }) {
|
|
57
52
|
var _a, _b, _c, _d;
|
|
58
53
|
const [show, setShow] = useState(false);
|
|
@@ -74,11 +69,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
|
|
|
74
69
|
React__default.createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
75
70
|
children,
|
|
76
71
|
React__default.createElement(TooltipPortal, null, show && Boolean(message) && (React__default.createElement("div", { className: toolTipClassNames, style: floatingStyles.float, ref: setTooltipRef, role: "tooltip", hidden: isHidden, "data-placement": placement },
|
|
77
|
-
React__default.createElement(
|
|
78
|
-
ease: "easeOut",
|
|
79
|
-
duration: 0.15,
|
|
80
|
-
delay: 0.3,
|
|
81
|
-
} },
|
|
72
|
+
React__default.createElement("div", { className: styles.tooltip },
|
|
82
73
|
React__default.createElement("p", { className: styles.tooltipMessage }, message),
|
|
83
74
|
React__default.createElement("div", { ref: setArrowRef, style: arrowStyles, className: styles.arrow })))))));
|
|
84
75
|
function initializeListeners() {
|
|
@@ -221,6 +221,17 @@ For complete control over the layout, you can provide custom children:
|
|
|
221
221
|
</InputFile>
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
+
InputFile renders its built-in validation messages directly below the field, and
|
|
225
|
+
that placement is not configurable. If InputFile is part of a larger composed
|
|
226
|
+
input layout, consumers who need the validation message to align with that
|
|
227
|
+
layout should manage that rule themselves and render
|
|
228
|
+
[InputValidation](../InputValidation/InputValidation.md) from the surrounding UI.
|
|
229
|
+
|
|
230
|
+
In practice, that usually means validating in `getUploadParams` or at the form
|
|
231
|
+
level, and avoiding `maxFilesValidation`, `allowedTypes`, or `validator` for the
|
|
232
|
+
same rule, since those use InputFile's built-in validation flow and will still
|
|
233
|
+
render the default message below the field.
|
|
234
|
+
|
|
224
235
|
### Available subcomponents
|
|
225
236
|
|
|
226
237
|
1. `InputFile.Button`: Upload button
|
package/dist/styles.css
CHANGED
|
@@ -7267,6 +7267,8 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
7267
7267
|
border-radius: 8px;
|
|
7268
7268
|
border-radius: var(--radius-base);
|
|
7269
7269
|
background-color: var(--tooltip--surface);
|
|
7270
|
+
-webkit-animation: lVdPVB1BJ3s- 0.15s ease-out 0.3s both;
|
|
7271
|
+
animation: lVdPVB1BJ3s- 0.15s ease-out 0.3s both;
|
|
7270
7272
|
}
|
|
7271
7273
|
|
|
7272
7274
|
.Q1YfFqI71cw- .ZP3ev-wT-OI-,
|
|
@@ -7356,6 +7358,26 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
7356
7358
|
display: none;
|
|
7357
7359
|
}
|
|
7358
7360
|
|
|
7361
|
+
@-webkit-keyframes lVdPVB1BJ3s- {
|
|
7362
|
+
from {
|
|
7363
|
+
opacity: 0;
|
|
7364
|
+
}
|
|
7365
|
+
|
|
7366
|
+
to {
|
|
7367
|
+
opacity: 1;
|
|
7368
|
+
}
|
|
7369
|
+
}
|
|
7370
|
+
|
|
7371
|
+
@keyframes lVdPVB1BJ3s- {
|
|
7372
|
+
from {
|
|
7373
|
+
opacity: 0;
|
|
7374
|
+
}
|
|
7375
|
+
|
|
7376
|
+
to {
|
|
7377
|
+
opacity: 1;
|
|
7378
|
+
}
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7359
7381
|
@-webkit-keyframes bobYmlUMnuY- {
|
|
7360
7382
|
from {
|
|
7361
7383
|
-webkit-transform: rotate(0deg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "9.16.
|
|
3
|
+
"version": "9.16.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -548,5 +548,5 @@
|
|
|
548
548
|
"> 1%",
|
|
549
549
|
"IE 10"
|
|
550
550
|
],
|
|
551
|
-
"gitHead": "
|
|
551
|
+
"gitHead": "a307f2e7c79aa2126e687918ef072701b4152357"
|
|
552
552
|
}
|