@jobber/components 4.85.3 → 4.85.4-CJS-to-ESM.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/index.cjs.js +6721 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.esm.js +6603 -0
- package/package.json +371 -3
- package/rollup.config.js +21 -77
- package/.eslintrc.js +0 -10
- package/dist/AnimatedPresence/index.js +0 -12
- package/dist/AnimatedPresence-20a02aaa.js +0 -104
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/AnimatedSwitcher-3d45ec5d.js +0 -96
- package/dist/Autocomplete/index.js +0 -209
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-76a799fa.js +0 -78
- package/dist/Banner/index.js +0 -110
- package/dist/Button/index.js +0 -16
- package/dist/Button-b73a5e01.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-350af163.js +0 -14
- package/dist/Card/colors.css.d.ts +0 -89
- package/dist/Card/index.js +0 -24
- package/dist/Card-e3144022.js +0 -93
- package/dist/Checkbox/index.js +0 -18
- package/dist/Checkbox-787e2e47.js +0 -63
- package/dist/Chip/index.js +0 -41
- package/dist/Chip-3d1bfddc.js +0 -89
- package/dist/Chips/index.js +0 -524
- package/dist/Combobox/index.js +0 -40
- package/dist/Combobox-a24c8241.js +0 -479
- package/dist/ConfirmationModal/index.js +0 -31
- package/dist/ConfirmationModal-52e16873.js +0 -100
- package/dist/Content/Spacing.css.d.ts +0 -13
- package/dist/Content/index.js +0 -12
- package/dist/Content-e3f7b6fc.js +0 -24
- package/dist/Countdown/index.js +0 -72
- package/dist/DataDump/index.js +0 -37
- package/dist/DataList/index.js +0 -1335
- package/dist/DataTable/index.js +0 -301
- package/dist/DatePicker/index.js +0 -20
- package/dist/DatePicker-64c5ab1a.js +0 -134
- package/dist/DescriptionList/index.js +0 -24
- package/dist/Disclosure/index.js +0 -46
- package/dist/Divider/index.js +0 -29
- package/dist/Drawer/index.js +0 -49
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-bda56d3b.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -70
- package/dist/Flex/index.js +0 -12
- package/dist/Flex-d490c4db.js +0 -38
- package/dist/Form/index.js +0 -56
- package/dist/FormField/index.js +0 -24
- package/dist/FormField-6ff183f8.js +0 -253
- package/dist/FormatDate/index.js +0 -11
- package/dist/FormatDate-70ea5b43.js +0 -34
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -36
- package/dist/FormatFile-f036902d.js +0 -162
- package/dist/FormatRelativeDateTime/index.js +0 -72
- package/dist/FormatTime/index.js +0 -36
- package/dist/Gallery/Gallery.css.d.ts +0 -9
- package/dist/Gallery/index.js +0 -99
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer/style/Shape.css.d.ts +0 -9
- package/dist/Glimmer/style/Sizes.css.d.ts +0 -10
- package/dist/Glimmer/style/Timing.css.d.ts +0 -6
- package/dist/Glimmer-84dee1ed.js +0 -77
- package/dist/Grid/GridAlign.css.d.ts +0 -8
- package/dist/Grid/index.js +0 -76
- package/dist/Heading/index.js +0 -14
- package/dist/Heading-1e8e4bd3.js +0 -55
- package/dist/Icon/index.js +0 -11
- package/dist/Icon-405a216c.js +0 -40
- package/dist/InlineLabel/index.js +0 -13
- package/dist/InlineLabel-a6557829.js +0 -28
- package/dist/InputAvatar/index.js +0 -70
- package/dist/InputDate/index.js +0 -57
- package/dist/InputEmail/index.js +0 -43
- package/dist/InputFile/index.js +0 -25
- package/dist/InputFile-bb945071.js +0 -190
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputGroup-8d4fd4eb.js +0 -33
- package/dist/InputNumber/index.js +0 -25
- package/dist/InputNumber-d451b52e.js +0 -62
- package/dist/InputPassword/index.js +0 -41
- package/dist/InputPhoneNumber/index.js +0 -116
- package/dist/InputText/index.js +0 -26
- package/dist/InputText-55b6cb65.js +0 -102
- package/dist/InputTime/index.js +0 -209
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-05e839fa.js +0 -29
- package/dist/LightBox/index.js +0 -24
- package/dist/LightBox-a89d8863.js +0 -117
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -93
- package/dist/Markdown/index.js +0 -19
- package/dist/Markdown-f7c55304.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-083fc4c4.js +0 -139
- package/dist/Modal/Sizes.css.d.ts +0 -6
- package/dist/Modal/index.js +0 -25
- package/dist/Modal-c336cac6.js +0 -71
- package/dist/MultiSelect/index.js +0 -182
- package/dist/Option-3c4d377e.js +0 -19
- package/dist/Page/index.js +0 -78
- package/dist/Popover/index.js +0 -61
- package/dist/ProgressBar/Sizes.css.d.ts +0 -7
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-b68edc8f.js +0 -43
- package/dist/RadioGroup/index.js +0 -15
- package/dist/RadioGroup-17b67ade.js +0 -46
- package/dist/RecurringSelect/index.js +0 -227
- package/dist/Select/index.js +0 -26
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-9d8fc7ff.js +0 -24
- package/dist/StatusIndicator/index.js +0 -11
- package/dist/StatusIndicator-b179d06e.js +0 -18
- package/dist/StatusLabel/index.js +0 -29
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-7d4aa7c3.js +0 -56
- package/dist/Table/index.js +0 -66
- package/dist/Tabs/index.js +0 -80
- package/dist/Text/index.js +0 -13
- package/dist/Text-259af966.js +0 -31
- package/dist/Toast/index.js +0 -111
- package/dist/Tooltip/index.js +0 -16
- package/dist/Tooltip-ef3d6ef4.js +0 -112
- package/dist/Typography/css/Emphasis.css.d.ts +0 -6
- package/dist/Typography/css/FontFamilies.css.d.ts +0 -6
- package/dist/Typography/css/FontSizes.css.d.ts +0 -12
- package/dist/Typography/css/FontWeights.css.d.ts +0 -10
- package/dist/Typography/css/TextAlignment.css.d.ts +0 -7
- package/dist/Typography/css/TextCases.css.d.ts +0 -7
- package/dist/Typography/css/TextColors.css.d.ts +0 -22
- package/dist/Typography/css/Truncate.css.d.ts +0 -5
- package/dist/Typography/css/Typography.css.d.ts +0 -5
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-c45bf216.js +0 -62
- package/dist/getAtlantisConfig-0f3e8af2.js +0 -13
- package/dist/style-inject.es-9d2f5f4e.js +0 -30
- package/dist/tslib.es6-754e2961.js +0 -46
package/dist/Content-e3f7b6fc.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
10
|
-
|
|
11
|
-
var css_248z$1 = "._340SlNuzSDQ- > :not(:last-child) {\n margin-bottom: calc(16px / 16);\n margin-bottom: var(--space-minuscule);\n}\n\n.H1BK-YSBQBQ- > :not(:last-child) {\n margin-bottom: calc(16px / 8);\n margin-bottom: var(--space-smallest);\n}\n\n.xUe31mY0kro- > :not(:last-child) {\n margin-bottom: calc(16px / 4);\n margin-bottom: var(--space-smaller);\n}\n\n.rDJFaGPzCbE- > :not(:last-child) {\n margin-bottom: calc(16px / 2);\n margin-bottom: var(--space-small);\n}\n\n.SRYe3DkjH1c- > :not(:last-child) {\n margin-bottom: calc(16px * 1);\n margin-bottom: var(--space-base);\n}\n\n._7TZ4MI3kr4Y- > :not(:last-child) {\n margin-bottom: calc(16px * 1.5);\n margin-bottom: var(--space-large);\n}\n\n.jvPl3aAN9PA- > :not(:last-child) {\n margin-bottom: calc(16px * 2);\n margin-bottom: var(--space-larger);\n}\n\n.fFTgb4ra1X0- > :not(:last-child) {\n margin-bottom: calc(16px * 3);\n margin-bottom: var(--space-largest);\n}\n\n.kKnfL37LO6A- > :not(:last-child) {\n margin-bottom: calc(16px * 4);\n margin-bottom: var(--space-extravagant);\n}\n";
|
|
12
|
-
var spacings = {"minuscule":"_340SlNuzSDQ-","smallest":"H1BK-YSBQBQ-","smaller":"xUe31mY0kro-","small":"rDJFaGPzCbE-","base":"SRYe3DkjH1c-","large":"_7TZ4MI3kr4Y-","larger":"jvPl3aAN9PA-","largest":"fFTgb4ra1X0-","extravagant":"kKnfL37LO6A-"};
|
|
13
|
-
styleInject_es.styleInject(css_248z$1);
|
|
14
|
-
|
|
15
|
-
var css_248z = "._4On2F-4nWuY- {\n padding: 0;\n padding: var(--public-content--padding, 0);\n}\n";
|
|
16
|
-
var styles = {"padded":"_4On2F-4nWuY-"};
|
|
17
|
-
styleInject_es.styleInject(css_248z);
|
|
18
|
-
|
|
19
|
-
function Content({ children, spacing = "base", type = "div", }) {
|
|
20
|
-
const className = classnames__default["default"](styles.padded, spacings[spacing]);
|
|
21
|
-
return React.createElement(type, { className }, children);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
exports.Content = Content;
|
package/dist/Countdown/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var temporal = require('@std-proposal/temporal');
|
|
7
|
-
var ReactCountdown = require('react-countdown');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
-
var ReactCountdown__default = /*#__PURE__*/_interopDefaultLegacy(ReactCountdown);
|
|
13
|
-
|
|
14
|
-
function computeTimeUnit(remainder, unit) {
|
|
15
|
-
return parseInt(remainder, 10) !== 1 ? `${unit}s` : unit;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function Countdown({ date: inputDate, onComplete, showUnits, granularity = "dhms", }) {
|
|
19
|
-
const date = React.useMemo(() => {
|
|
20
|
-
let initDate;
|
|
21
|
-
if (inputDate instanceof temporal.CivilDate) {
|
|
22
|
-
initDate = new Date(inputDate.year, inputDate.month - 1, inputDate.day);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
initDate = new Date(inputDate);
|
|
26
|
-
}
|
|
27
|
-
return initDate;
|
|
28
|
-
}, [inputDate]);
|
|
29
|
-
return (React__default["default"].createElement(ReactCountdown__default["default"], { date: date, zeroPadTime: 2, renderer: (props) => (React__default["default"].createElement(RenderedCountdown, Object.assign({}, props, { granularity: granularity, showUnits: showUnits }))), onComplete: onComplete }));
|
|
30
|
-
}
|
|
31
|
-
function RenderedCountdown({ formatted, granularity = "dhms", showUnits, }) {
|
|
32
|
-
const { days, hours, minutes, seconds } = formatted;
|
|
33
|
-
return React__default["default"].createElement(React__default["default"].Fragment, null, buildTime());
|
|
34
|
-
function buildTime() {
|
|
35
|
-
const totalHours = 24 * Number(days) + Number(hours);
|
|
36
|
-
const totalMinutes = 60 * totalHours + Number(minutes);
|
|
37
|
-
const totalSeconds = 60 * totalMinutes + Number(seconds);
|
|
38
|
-
const times = {
|
|
39
|
-
d: { total: days, remainder: days, unit: computeTimeUnit(days, "day") },
|
|
40
|
-
h: {
|
|
41
|
-
total: totalHours,
|
|
42
|
-
remainder: hours,
|
|
43
|
-
unit: computeTimeUnit(hours, "hour"),
|
|
44
|
-
},
|
|
45
|
-
m: {
|
|
46
|
-
total: totalMinutes,
|
|
47
|
-
remainder: minutes,
|
|
48
|
-
unit: computeTimeUnit(minutes, "minute"),
|
|
49
|
-
},
|
|
50
|
-
s: {
|
|
51
|
-
total: totalSeconds,
|
|
52
|
-
remainder: seconds,
|
|
53
|
-
unit: computeTimeUnit(seconds, "second"),
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
return timeFormatter(times, granularity, showUnits);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function timeFormatter(times, granularity, showUnits) {
|
|
60
|
-
let substr = "";
|
|
61
|
-
granularity.split("").forEach((unit, i) => {
|
|
62
|
-
if (i == 0) {
|
|
63
|
-
substr += `${times[unit].total}${showUnits ? ` ${times[unit].unit}` : ""}`;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
substr += ` : ${times[unit].remainder}${showUnits ? ` ${times[unit].unit}` : ""}`;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return substr;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
exports.Countdown = Countdown;
|
package/dist/DataDump/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var Card = require('../Card-e3144022.js');
|
|
7
|
-
var Content = require('../Content-e3f7b6fc.js');
|
|
8
|
-
var Emphasis = require('../Emphasis-bda56d3b.js');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
11
|
-
require('../Heading-1e8e4bd3.js');
|
|
12
|
-
require('../Typography-c45bf216.js');
|
|
13
|
-
require('../getAtlantisConfig-0f3e8af2.js');
|
|
14
|
-
require('../Button-b73a5e01.js');
|
|
15
|
-
require('react-router-dom');
|
|
16
|
-
require('../Icon-405a216c.js');
|
|
17
|
-
require('@jobber/design');
|
|
18
|
-
require('../Menu-083fc4c4.js');
|
|
19
|
-
require('framer-motion');
|
|
20
|
-
require('@jobber/hooks/useOnKeyDown');
|
|
21
|
-
require('@jobber/hooks/useRefocusOnActivator');
|
|
22
|
-
require('@jobber/hooks/useSafeLayoutEffect');
|
|
23
|
-
|
|
24
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
|
-
|
|
26
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
-
|
|
28
|
-
function DataDump({ label = "Raw Data", defaultOpen = false, data, }) {
|
|
29
|
-
return (React__default["default"].createElement(Card.Card, { accent: "yellow" },
|
|
30
|
-
React__default["default"].createElement(Content.Content, null,
|
|
31
|
-
React__default["default"].createElement("details", { open: defaultOpen },
|
|
32
|
-
React__default["default"].createElement("summary", null,
|
|
33
|
-
React__default["default"].createElement(Emphasis.Emphasis, { variation: "bold" }, label)),
|
|
34
|
-
React__default["default"].createElement("pre", null, JSON.stringify(data, undefined, 2))))));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.DataDump = DataDump;
|