@jobber/components 6.36.1 → 6.37.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/Banner-cjs.js +1 -1
- package/dist/Banner-es.js +2 -2
- package/dist/Button/Button.d.ts +742 -6
- package/dist/Button/index.cjs +1 -1
- package/dist/Button-cjs.js +30 -13
- package/dist/Button-es.js +31 -14
- package/dist/ButtonDismiss-cjs.js +1 -1
- package/dist/ButtonDismiss-es.js +2 -2
- package/dist/Card-cjs.js +2 -2
- package/dist/Card-es.js +3 -3
- package/dist/Chip/Chip.d.ts +3 -2
- package/dist/Chip/Chip.types.d.ts +64 -0
- package/dist/Chip/index.cjs +1 -1
- package/dist/Chip-cjs.js +48 -23
- package/dist/Chip-es.js +49 -24
- package/dist/ChipDismissible-cjs.js +4 -4
- package/dist/ChipDismissible-es.js +5 -5
- package/dist/ComboboxActivator-cjs.js +1 -1
- package/dist/ComboboxActivator-es.js +3 -3
- package/dist/ComboboxContentHeader-cjs.js +1 -1
- package/dist/ComboboxContentHeader-es.js +2 -2
- package/dist/ComboboxTrigger-cjs.js +1 -1
- package/dist/ComboboxTrigger-es.js +2 -2
- package/dist/DataListActions-cjs.js +2 -2
- package/dist/DataListActions-es.js +3 -3
- package/dist/DataListEmptyState-cjs.js +1 -1
- package/dist/DataListEmptyState-es.js +2 -2
- package/dist/DataListHeader-cjs.js +1 -1
- package/dist/DataListHeader-es.js +2 -2
- package/dist/DataListItemActionsOverflow-cjs.js +1 -1
- package/dist/DataListItemActionsOverflow-es.js +2 -2
- package/dist/DataListLoadMore-cjs.js +1 -1
- package/dist/DataListLoadMore-es.js +2 -2
- package/dist/DataListSearch-cjs.js +1 -1
- package/dist/DataListSearch-es.js +2 -2
- package/dist/DataListSort-cjs.js +1 -1
- package/dist/DataListSort-es.js +2 -2
- package/dist/DataTable-cjs.js +2 -2
- package/dist/DataTable-es.js +3 -3
- package/dist/DatePicker-cjs.js +3 -3
- package/dist/DatePicker-es.js +4 -4
- package/dist/FeatureSwitch-cjs.js +1 -1
- package/dist/FeatureSwitch-es.js +2 -2
- package/dist/FormField-cjs.js +1 -1
- package/dist/FormField-es.js +2 -2
- package/dist/FormatFile-cjs.js +1 -1
- package/dist/FormatFile-es.js +2 -2
- package/dist/Gallery-cjs.js +1 -1
- package/dist/Gallery-es.js +2 -2
- package/dist/InputAvatar-cjs.js +1 -1
- package/dist/InputAvatar-es.js +2 -2
- package/dist/InputFile-cjs.js +1 -1
- package/dist/InputFile-es.js +2 -2
- package/dist/InternalChipDismissible-cjs.js +4 -4
- package/dist/InternalChipDismissible-es.js +6 -6
- package/dist/LightBox-cjs.js +2 -2
- package/dist/LightBox-es.js +3 -3
- package/dist/Menu-cjs.js +1 -1
- package/dist/Menu-es.js +2 -2
- package/dist/Modal-cjs.js +3 -3
- package/dist/Modal-es.js +4 -4
- package/dist/Page-cjs.js +2 -2
- package/dist/Page-es.js +3 -3
- package/dist/SideDrawer-cjs.js +2 -2
- package/dist/SideDrawer-es.js +3 -3
- package/dist/index.cjs +2 -2
- package/dist/showToast-cjs.js +2 -2
- package/dist/showToast-es.js +3 -3
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { Children, isValidElement } from 'react';
|
|
2
2
|
import { T as Tooltip } from './Tooltip-es.js';
|
|
3
|
-
import { B as
|
|
3
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import { b as getExposedActions } from './DataList.utils-es.js';
|
|
6
6
|
import { u as useDataListLayoutActionsContext } from './DataListLayoutContext-es2.js';
|
|
@@ -29,13 +29,13 @@ function DataListActions({ children, itemsToExpose = 2, }) {
|
|
|
29
29
|
const actionLabel = getActionLabel();
|
|
30
30
|
// If the action is always visible, we don't want a tooltip.
|
|
31
31
|
if (props.alwaysVisible) {
|
|
32
|
-
return (React__default.createElement(
|
|
32
|
+
return (React__default.createElement(ButtonNamespace, { ariaLabel: actionLabel, key: props.label, icon: props.icon, label: actionLabel, onClick: () => {
|
|
33
33
|
var _a;
|
|
34
34
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, activeItem);
|
|
35
35
|
}, type: "secondary", variation: "subtle" }));
|
|
36
36
|
}
|
|
37
37
|
return (React__default.createElement(Tooltip, { key: actionLabel, message: actionLabel },
|
|
38
|
-
React__default.createElement(
|
|
38
|
+
React__default.createElement(ButtonNamespace, { icon: props.icon, ariaLabel: actionLabel, onClick: () => {
|
|
39
39
|
var _a, _b;
|
|
40
40
|
if (activeItem) {
|
|
41
41
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, activeItem);
|
|
@@ -38,7 +38,7 @@ function InternalDataListEmptyState() {
|
|
|
38
38
|
}
|
|
39
39
|
function renderButton(action) {
|
|
40
40
|
if (action) {
|
|
41
|
-
if (action.type === Button.
|
|
41
|
+
if (action.type === Button.ButtonNamespace) {
|
|
42
42
|
return React.cloneElement(action, {
|
|
43
43
|
variation: action.props.variation || "subtle",
|
|
44
44
|
});
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from './tslib.es6-es.js';
|
|
|
2
2
|
import React__default, { useContext, cloneElement } from 'react';
|
|
3
3
|
import { D as DataListContext } from './DataListContext-es.js';
|
|
4
4
|
import { T as Text } from './Text-es.js';
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import { E as EMPTY_FILTER_RESULTS_MESSAGE, c as EMPTY_RESULTS_MESSAGE, d as EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR } from './DataList.const-es.js';
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@ function InternalDataListEmptyState() {
|
|
|
36
36
|
}
|
|
37
37
|
function renderButton(action) {
|
|
38
38
|
if (action) {
|
|
39
|
-
if (action.type ===
|
|
39
|
+
if (action.type === ButtonNamespace) {
|
|
40
40
|
return cloneElement(action, {
|
|
41
41
|
variation: action.props.variation || "subtle",
|
|
42
42
|
});
|
|
@@ -34,7 +34,7 @@ function DataListHeaderCheckbox({ children }) {
|
|
|
34
34
|
Boolean(selectedCount) && React.createElement(Text.Text, null,
|
|
35
35
|
selectedCount,
|
|
36
36
|
" selected"),
|
|
37
|
-
React.createElement(Button.
|
|
37
|
+
React.createElement(Button.ButtonNamespace, { label: deselectText, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect([]), type: "tertiary" })),
|
|
38
38
|
React.createElement(DataListBulkActions.InternalDataListBulkActions, null)) })));
|
|
39
39
|
function isIndeterminate() {
|
|
40
40
|
if (isSelectAll)
|
|
@@ -5,7 +5,7 @@ import { u as useResponsiveSizing } from './useResponsiveSizing-es.js';
|
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { A as AnimatedSwitcher } from './AnimatedSwitcher-es.js';
|
|
7
7
|
import { T as Text } from './Text-es.js';
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
9
9
|
import { Checkbox } from './Checkbox/index.mjs';
|
|
10
10
|
import { s as styles } from './DataList.module-es.js';
|
|
11
11
|
import { I as InternalDataListBulkActions } from './DataListBulkActions-es.js';
|
|
@@ -32,7 +32,7 @@ function DataListHeaderCheckbox({ children }) {
|
|
|
32
32
|
Boolean(selectedCount) && React__default.createElement(Text, null,
|
|
33
33
|
selectedCount,
|
|
34
34
|
" selected"),
|
|
35
|
-
React__default.createElement(
|
|
35
|
+
React__default.createElement(ButtonNamespace, { label: deselectText, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect([]), type: "tertiary" })),
|
|
36
36
|
React__default.createElement(InternalDataListBulkActions, null)) })));
|
|
37
37
|
function isIndeterminate() {
|
|
38
38
|
if (isSelectAll)
|
|
@@ -13,7 +13,7 @@ function DataListItemActionsOverflow({ actions, }) {
|
|
|
13
13
|
return null;
|
|
14
14
|
return (React.createElement(React.Fragment, null,
|
|
15
15
|
React.createElement(Tooltip.Tooltip, { message: "More actions" },
|
|
16
|
-
React.createElement(Button.
|
|
16
|
+
React.createElement(Button.ButtonNamespace, { icon: "more", ariaLabel: "More actions", type: "tertiary", variation: "subtle", onClick: handleMoreClick })),
|
|
17
17
|
React.createElement(DataListActionsMenu.DataListActionsMenu, { visible: showMenu, position: menuPosition, onRequestClose: handleClose }, actions)));
|
|
18
18
|
function handleMoreClick(event) {
|
|
19
19
|
// Prevent firing the parent's onClick event when it is nested
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState } from 'react';
|
|
2
|
-
import { B as
|
|
2
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import { T as Tooltip } from './Tooltip-es.js';
|
|
5
5
|
import { D as DataListActionsMenu } from './DataListActionsMenu-es.js';
|
|
@@ -11,7 +11,7 @@ function DataListItemActionsOverflow({ actions, }) {
|
|
|
11
11
|
return null;
|
|
12
12
|
return (React__default.createElement(React__default.Fragment, null,
|
|
13
13
|
React__default.createElement(Tooltip, { message: "More actions" },
|
|
14
|
-
React__default.createElement(
|
|
14
|
+
React__default.createElement(ButtonNamespace, { icon: "more", ariaLabel: "More actions", type: "tertiary", variation: "subtle", onClick: handleMoreClick })),
|
|
15
15
|
React__default.createElement(DataListActionsMenu, { visible: showMenu, position: menuPosition, onRequestClose: handleClose }, actions)));
|
|
16
16
|
function handleMoreClick(event) {
|
|
17
17
|
// Prevent firing the parent's onClick event when it is nested
|
|
@@ -28,7 +28,7 @@ function DataListLoadMore({ onBackToTop }) {
|
|
|
28
28
|
loadingState === "loadingMore" && (React.createElement("div", { "data-testid": DataList_const.DATA_LIST_LOADING_MORE_SPINNER_TEST_ID, className: styles.loadingMore },
|
|
29
29
|
React.createElement(Spinner.Spinner, { size: "small" }))),
|
|
30
30
|
showBackToTop && (React.createElement("div", { className: styles.backToTop },
|
|
31
|
-
React.createElement(Button.
|
|
31
|
+
React.createElement(Button.ButtonNamespace, { label: "Back to top", onClick: onBackToTop, size: "small", variation: "subtle" })))));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
exports.DataListLoadMore = DataListLoadMore;
|
|
@@ -3,7 +3,7 @@ import { u as useInView_2 } from './useInView-es.js';
|
|
|
3
3
|
import { u as useDataListContext } from './DataListContext-es.js';
|
|
4
4
|
import { g as DATA_LOAD_MORE_TEST_ID, h as DATA_LIST_LOADING_MORE_SPINNER_TEST_ID } from './DataList.const-es.js';
|
|
5
5
|
import { S as Spinner } from './Spinner-es.js';
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
|
|
9
9
|
var styles = {"trigger":"aJIHa8Q-WbY-","loadingMore":"lLYWNAYcURY-","backToTop":"qA8J2KI6khc-","fadeIn":"WKPuBJINNCg-","spinning":"mZH3CAkfppI-"};
|
|
@@ -26,7 +26,7 @@ function DataListLoadMore({ onBackToTop }) {
|
|
|
26
26
|
loadingState === "loadingMore" && (React__default.createElement("div", { "data-testid": DATA_LIST_LOADING_MORE_SPINNER_TEST_ID, className: styles.loadingMore },
|
|
27
27
|
React__default.createElement(Spinner, { size: "small" }))),
|
|
28
28
|
showBackToTop && (React__default.createElement("div", { className: styles.backToTop },
|
|
29
|
-
React__default.createElement(
|
|
29
|
+
React__default.createElement(ButtonNamespace, { label: "Back to top", onClick: onBackToTop, size: "small", variation: "subtle" })))));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export { DataListLoadMore as D, MAX_DATA_COUNT as M };
|
|
@@ -43,7 +43,7 @@ function InternalDataListSearch() {
|
|
|
43
43
|
? searchComponent.props.onSearch
|
|
44
44
|
: debouncedSearch, prefix: { icon: "search" }, clearable: "always" })),
|
|
45
45
|
React.createElement("div", { className: styles.searchButton },
|
|
46
|
-
React.createElement(AnimatedSwitcher.AnimatedSwitcher, { switched: visible, initialChild: React.createElement(Button.
|
|
46
|
+
React.createElement(AnimatedSwitcher.AnimatedSwitcher, { switched: visible, initialChild: React.createElement(Button.ButtonNamespace, { variation: "subtle", icon: "search", ariaLabel: "Search", onClick: toggleSearch }), switchTo: React.createElement(Button.ButtonNamespace, { variation: "subtle", icon: "remove", ariaLabel: "Close search bar", onClick: toggleSearch }) }))));
|
|
47
47
|
function getPlaceholder() {
|
|
48
48
|
if (placeholder)
|
|
49
49
|
return placeholder;
|
|
@@ -5,7 +5,7 @@ import { tokens } from '@jobber/design';
|
|
|
5
5
|
import { InputText } from './InputText/index.mjs';
|
|
6
6
|
import { u as useDataListContext } from './DataListContext-es.js';
|
|
7
7
|
import { S as SEARCH_DEBOUNCE_DELAY } from './DataList.const-es.js';
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
9
9
|
import { A as AnimatedSwitcher } from './AnimatedSwitcher-es.js';
|
|
10
10
|
|
|
11
11
|
var styles = {"wrapper":"S2Bu0Rv4w-E-","searchInput":"N8dyu-defmc-","searchInputVisible":"UhMQC1SZUns-","searchButton":"zQPIm20aF50-","withNoFilters":"oOqZupWkemo-","spinning":"Wq63M3dVuYs-"};
|
|
@@ -41,7 +41,7 @@ function InternalDataListSearch() {
|
|
|
41
41
|
? searchComponent.props.onSearch
|
|
42
42
|
: debouncedSearch, prefix: { icon: "search" }, clearable: "always" })),
|
|
43
43
|
React__default.createElement("div", { className: styles.searchButton },
|
|
44
|
-
React__default.createElement(AnimatedSwitcher, { switched: visible, initialChild: React__default.createElement(
|
|
44
|
+
React__default.createElement(AnimatedSwitcher, { switched: visible, initialChild: React__default.createElement(ButtonNamespace, { variation: "subtle", icon: "search", ariaLabel: "Search", onClick: toggleSearch }), switchTo: React__default.createElement(ButtonNamespace, { variation: "subtle", icon: "remove", ariaLabel: "Close search bar", onClick: toggleSearch }) }))));
|
|
45
45
|
function getPlaceholder() {
|
|
46
46
|
if (placeholder)
|
|
47
47
|
return placeholder;
|
package/dist/DataListSort-cjs.js
CHANGED
|
@@ -21,7 +21,7 @@ function DataListSort() {
|
|
|
21
21
|
},
|
|
22
22
|
] },
|
|
23
23
|
React.createElement(Combobox.Combobox.Activator, null,
|
|
24
|
-
React.createElement(Chip.
|
|
24
|
+
React.createElement(Chip.ChipNamespace, { heading: "Sort", label: getButtonLabel(), variation: state ? "base" : "subtle" }, !state && (React.createElement(Chip.ChipNamespace.Suffix, null,
|
|
25
25
|
React.createElement(Icon.Icon, { name: "arrowDown", size: "small" }))))),
|
|
26
26
|
sortByOptions.map(({ label, value }) => (React.createElement(Combobox.Combobox.Option, { key: value, id: value, label: label })))));
|
|
27
27
|
function getSortByOptions() {
|
package/dist/DataListSort-es.js
CHANGED
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import { u as useDataListContext } from './DataListContext-es.js';
|
|
3
3
|
import { C as Combobox } from './Combobox-es.js';
|
|
4
4
|
import './ComboboxProvider-es.js';
|
|
5
|
-
import { C as
|
|
5
|
+
import { C as ChipNamespace } from './Chip-es.js';
|
|
6
6
|
import './tslib.es6-es.js';
|
|
7
7
|
import { I as Icon } from './Icon-es.js';
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ function DataListSort() {
|
|
|
19
19
|
},
|
|
20
20
|
] },
|
|
21
21
|
React__default.createElement(Combobox.Activator, null,
|
|
22
|
-
React__default.createElement(
|
|
22
|
+
React__default.createElement(ChipNamespace, { heading: "Sort", label: getButtonLabel(), variation: state ? "base" : "subtle" }, !state && (React__default.createElement(ChipNamespace.Suffix, null,
|
|
23
23
|
React__default.createElement(Icon, { name: "arrowDown", size: "small" }))))),
|
|
24
24
|
sortByOptions.map(({ label, value }) => (React__default.createElement(Combobox.Option, { key: value, id: value, label: label })))));
|
|
25
25
|
function getSortByOptions() {
|
package/dist/DataTable-cjs.js
CHANGED
|
@@ -115,11 +115,11 @@ function Pagination({ table, itemsPerPage, totalItems, loading, onPageChange, })
|
|
|
115
115
|
}, size: "small" }, itemsPerPageOptions.map(numOfPages => (React.createElement(Option.SelectOption, { key: numOfPages, value: numOfPages }, numOfPages)))),
|
|
116
116
|
React.createElement("span", { className: styles$2.paginationSelectLabel }, "per page")),
|
|
117
117
|
React.createElement("div", { className: styles$2.paginationButtons },
|
|
118
|
-
React.createElement(Button.
|
|
118
|
+
React.createElement(Button.ButtonNamespace, { type: "secondary", variation: "subtle", icon: "arrowLeft", ariaLabel: "arrowLeft", onClick: () => {
|
|
119
119
|
table.previousPage();
|
|
120
120
|
onPageChange();
|
|
121
121
|
}, disabled: !table.getCanPreviousPage() }),
|
|
122
|
-
React.createElement(Button.
|
|
122
|
+
React.createElement(Button.ButtonNamespace, { type: "secondary", variation: "subtle", icon: "arrowRight", ariaLabel: "arrowRight", onClick: () => {
|
|
123
123
|
table.nextPage();
|
|
124
124
|
onPageChange();
|
|
125
125
|
}, disabled: !table.getCanNextPage() })))));
|
package/dist/DataTable-es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { u as useResizeObserver } from './useResizeObserver-es.js';
|
|
|
5
5
|
import { G as Glimmer } from './Glimmer-es.js';
|
|
6
6
|
import { _ as __rest } from './tslib.es6-es.js';
|
|
7
7
|
import { S as Select, a as SelectOption } from './Option-es.js';
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
9
9
|
import { T as Text } from './Text-es.js';
|
|
10
10
|
|
|
11
11
|
var styles$3 = {"dataTableContainer":"_3IHK46TSBOI-","tableContainer":"_8CMtSx4qamA-","table":"bNYpzdn5rPc-","pinFirstColumn":"lKXqbcsnCFs-","emptyStateCell":"i-x8vss2hcI-","stickyHeader":"eWffzdKfJH0-","pinFirstHeaderSortable":"aGF6t8l8iUk-","sortableColumn":"W0kYDUxPkqI-","clickableRow":"vWFyXrAaFtQ-","emptyState":"_8L7icG7E530-","spinning":"O1cxELzWgmM-"};
|
|
@@ -113,11 +113,11 @@ function Pagination({ table, itemsPerPage, totalItems, loading, onPageChange, })
|
|
|
113
113
|
}, size: "small" }, itemsPerPageOptions.map(numOfPages => (React__default.createElement(SelectOption, { key: numOfPages, value: numOfPages }, numOfPages)))),
|
|
114
114
|
React__default.createElement("span", { className: styles$2.paginationSelectLabel }, "per page")),
|
|
115
115
|
React__default.createElement("div", { className: styles$2.paginationButtons },
|
|
116
|
-
React__default.createElement(
|
|
116
|
+
React__default.createElement(ButtonNamespace, { type: "secondary", variation: "subtle", icon: "arrowLeft", ariaLabel: "arrowLeft", onClick: () => {
|
|
117
117
|
table.previousPage();
|
|
118
118
|
onPageChange();
|
|
119
119
|
}, disabled: !table.getCanPreviousPage() }),
|
|
120
|
-
React__default.createElement(
|
|
120
|
+
React__default.createElement(ButtonNamespace, { type: "secondary", variation: "subtle", icon: "arrowRight", ariaLabel: "arrowRight", onClick: () => {
|
|
121
121
|
table.nextPage();
|
|
122
122
|
onPageChange();
|
|
123
123
|
}, disabled: !table.getCanNextPage() })))));
|
package/dist/DatePicker-cjs.js
CHANGED
|
@@ -7243,13 +7243,13 @@ var styles = {"react-datepicker__month--selecting-range":"-Nzs5104Tmw-","datePic
|
|
|
7243
7243
|
|
|
7244
7244
|
function DatePickerCustomHeader({ monthDate, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, }) {
|
|
7245
7245
|
return (React.createElement("div", { className: styles.header },
|
|
7246
|
-
React.createElement(Button.
|
|
7246
|
+
React.createElement(Button.ButtonNamespace, { onClick: decreaseMonth, disabled: prevMonthButtonDisabled, icon: "arrowLeft", ariaLabel: "Previous Month", variation: "work", type: "tertiary" }),
|
|
7247
7247
|
React.createElement("div", { className: styles.month },
|
|
7248
7248
|
React.createElement(Typography.Typography, { element: "span", fontFamily: "display", size: "large" }, monthDate.toLocaleString("en-US", {
|
|
7249
7249
|
month: "long",
|
|
7250
7250
|
year: "numeric",
|
|
7251
7251
|
}))),
|
|
7252
|
-
React.createElement(Button.
|
|
7252
|
+
React.createElement(Button.ButtonNamespace, { onClick: increaseMonth, disabled: nextMonthButtonDisabled, icon: "arrowRight", ariaLabel: "Next Month", variation: "work", type: "tertiary" })));
|
|
7253
7253
|
}
|
|
7254
7254
|
|
|
7255
7255
|
const DatePickerActivator = React.forwardRef(InternalActivator);
|
|
@@ -7274,7 +7274,7 @@ function InternalActivator(props, ref) {
|
|
|
7274
7274
|
else {
|
|
7275
7275
|
return (
|
|
7276
7276
|
// @ts-expect-error - we need to desctructure the newActivatorProps with more care to XOR prop types.
|
|
7277
|
-
React.createElement(Button.
|
|
7277
|
+
React.createElement(Button.ButtonNamespace, Object.assign({ variation: "work", type: "tertiary", icon: "calendar", ariaLabel: "Open Datepicker", fullWidth: fullWidth }, newActivatorProps)));
|
|
7278
7278
|
}
|
|
7279
7279
|
}
|
|
7280
7280
|
|
package/dist/DatePicker-es.js
CHANGED
|
@@ -5,7 +5,7 @@ import ReactDOM__default from 'react-dom';
|
|
|
5
5
|
import { Popper, Manager, Reference } from 'react-popper';
|
|
6
6
|
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
|
|
7
7
|
import { T as Typography } from './Typography-es.js';
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
9
9
|
import { o as omit } from './omit-es.js';
|
|
10
10
|
import { u as useAtlantisContext } from './AtlantisContext-es.js';
|
|
11
11
|
|
|
@@ -7241,13 +7241,13 @@ var styles = {"react-datepicker__month--selecting-range":"-Nzs5104Tmw-","datePic
|
|
|
7241
7241
|
|
|
7242
7242
|
function DatePickerCustomHeader({ monthDate, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, }) {
|
|
7243
7243
|
return (React__default.createElement("div", { className: styles.header },
|
|
7244
|
-
React__default.createElement(
|
|
7244
|
+
React__default.createElement(ButtonNamespace, { onClick: decreaseMonth, disabled: prevMonthButtonDisabled, icon: "arrowLeft", ariaLabel: "Previous Month", variation: "work", type: "tertiary" }),
|
|
7245
7245
|
React__default.createElement("div", { className: styles.month },
|
|
7246
7246
|
React__default.createElement(Typography, { element: "span", fontFamily: "display", size: "large" }, monthDate.toLocaleString("en-US", {
|
|
7247
7247
|
month: "long",
|
|
7248
7248
|
year: "numeric",
|
|
7249
7249
|
}))),
|
|
7250
|
-
React__default.createElement(
|
|
7250
|
+
React__default.createElement(ButtonNamespace, { onClick: increaseMonth, disabled: nextMonthButtonDisabled, icon: "arrowRight", ariaLabel: "Next Month", variation: "work", type: "tertiary" })));
|
|
7251
7251
|
}
|
|
7252
7252
|
|
|
7253
7253
|
const DatePickerActivator = forwardRef(InternalActivator);
|
|
@@ -7272,7 +7272,7 @@ function InternalActivator(props, ref) {
|
|
|
7272
7272
|
else {
|
|
7273
7273
|
return (
|
|
7274
7274
|
// @ts-expect-error - we need to desctructure the newActivatorProps with more care to XOR prop types.
|
|
7275
|
-
React__default.createElement(
|
|
7275
|
+
React__default.createElement(ButtonNamespace, Object.assign({ variation: "work", type: "tertiary", icon: "calendar", ariaLabel: "Open Datepicker", fullWidth: fullWidth }, newActivatorProps)));
|
|
7276
7276
|
}
|
|
7277
7277
|
}
|
|
7278
7278
|
|
|
@@ -37,7 +37,7 @@ function FeatureSwitch({ children, description, disabled = false, enabled, exter
|
|
|
37
37
|
(children || onEdit) && (React.createElement("div", { className: styles.container },
|
|
38
38
|
children && (React.createElement("div", { className: featureContentClassnames }, children)),
|
|
39
39
|
onEdit && (React.createElement("div", { className: styles.action },
|
|
40
|
-
React.createElement(Button.
|
|
40
|
+
React.createElement(Button.ButtonNamespace, { label: "Edit", type: "tertiary", onClick: onEdit })))))));
|
|
41
41
|
function shouldShowSavedIndicator() {
|
|
42
42
|
// Check if the component is mounted
|
|
43
43
|
const [didMount, setDidMount] = React.useState(false);
|
package/dist/FeatureSwitch-es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { H as Heading } from './Heading-es.js';
|
|
|
5
5
|
import { T as Text } from './Text-es.js';
|
|
6
6
|
import { C as Content } from './Content-es.js';
|
|
7
7
|
import { S as Switch } from './Switch-es.js';
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
9
9
|
import { E as Emphasis } from './Emphasis-es.js';
|
|
10
10
|
import { M as Markdown } from './Markdown-es.js';
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ function FeatureSwitch({ children, description, disabled = false, enabled, exter
|
|
|
35
35
|
(children || onEdit) && (React__default.createElement("div", { className: styles.container },
|
|
36
36
|
children && (React__default.createElement("div", { className: featureContentClassnames }, children)),
|
|
37
37
|
onEdit && (React__default.createElement("div", { className: styles.action },
|
|
38
|
-
React__default.createElement(
|
|
38
|
+
React__default.createElement(ButtonNamespace, { label: "Edit", type: "tertiary", onClick: onEdit })))))));
|
|
39
39
|
function shouldShowSavedIndicator() {
|
|
40
40
|
// Check if the component is mounted
|
|
41
41
|
const [didMount, setDidMount] = useState(false);
|
package/dist/FormField-cjs.js
CHANGED
|
@@ -54,7 +54,7 @@ function AffixIcon({ icon, onClick, ariaLabel, variation = "prefix", size, }) {
|
|
|
54
54
|
const iconSize = size === "small" ? "small" : "base";
|
|
55
55
|
if (!icon)
|
|
56
56
|
return null;
|
|
57
|
-
return (React.createElement("div", { className: affixIconClass }, onClick ? (React.createElement(Button.
|
|
57
|
+
return (React.createElement("div", { className: affixIconClass }, onClick ? (React.createElement(Button.ButtonNamespace
|
|
58
58
|
/**
|
|
59
59
|
* We can cast the ariaLabel here as a `Suffix`
|
|
60
60
|
* requires an ariaLabel if there is an action
|
package/dist/FormField-es.js
CHANGED
|
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useImperativeHandle, useId
|
|
|
2
2
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
3
3
|
import { tokens } from '@jobber/design';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
6
6
|
import { I as Icon } from './Icon-es.js';
|
|
7
7
|
import { T as Text } from './Text-es.js';
|
|
8
8
|
import { u as useFormFieldFocus } from './useFormFieldFocus-es.js';
|
|
@@ -52,7 +52,7 @@ function AffixIcon({ icon, onClick, ariaLabel, variation = "prefix", size, }) {
|
|
|
52
52
|
const iconSize = size === "small" ? "small" : "base";
|
|
53
53
|
if (!icon)
|
|
54
54
|
return null;
|
|
55
|
-
return (React__default.createElement("div", { className: affixIconClass }, onClick ? (React__default.createElement(
|
|
55
|
+
return (React__default.createElement("div", { className: affixIconClass }, onClick ? (React__default.createElement(ButtonNamespace
|
|
56
56
|
/**
|
|
57
57
|
* We can cast the ariaLabel here as a `Suffix`
|
|
58
58
|
* requires an ariaLabel if there is an action
|
package/dist/FormatFile-cjs.js
CHANGED
|
@@ -17,7 +17,7 @@ function FormatFileDeleteButton({ size, onDelete }) {
|
|
|
17
17
|
const buttonSize = size === "base" ? "small" : "base";
|
|
18
18
|
const [deleteConfirmationOpen, setDeleteConfirmationOpen] = React.useState(false);
|
|
19
19
|
return (React.createElement("div", { className: styles$2.deleteButton },
|
|
20
|
-
React.createElement(Button.
|
|
20
|
+
React.createElement(Button.ButtonNamespace, { onClick: () => setDeleteConfirmationOpen(true), variation: "destructive", type: "tertiary", icon: "trash", ariaLabel: "Delete File", size: buttonSize }),
|
|
21
21
|
React.createElement(ConfirmationModal.ConfirmationModal, { title: "Confirm Deletion", message: `Are you sure you want to delete this file?`, confirmLabel: "Delete", variation: "destructive", open: deleteConfirmationOpen, onConfirm: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(), onRequestClose: () => setDeleteConfirmationOpen(false) })));
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/FormatFile-es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import getHumanReadableFileSize from 'filesize';
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
5
5
|
import { C as ConfirmationModal } from './ConfirmationModal-es.js';
|
|
6
6
|
import { G as Glimmer } from './Glimmer-es.js';
|
|
7
7
|
import { I as Icon } from './Icon-es.js';
|
|
@@ -15,7 +15,7 @@ function FormatFileDeleteButton({ size, onDelete }) {
|
|
|
15
15
|
const buttonSize = size === "base" ? "small" : "base";
|
|
16
16
|
const [deleteConfirmationOpen, setDeleteConfirmationOpen] = useState(false);
|
|
17
17
|
return (React__default.createElement("div", { className: styles$2.deleteButton },
|
|
18
|
-
React__default.createElement(
|
|
18
|
+
React__default.createElement(ButtonNamespace, { onClick: () => setDeleteConfirmationOpen(true), variation: "destructive", type: "tertiary", icon: "trash", ariaLabel: "Delete File", size: buttonSize }),
|
|
19
19
|
React__default.createElement(ConfirmationModal, { title: "Confirm Deletion", message: `Are you sure you want to delete this file?`, confirmLabel: "Delete", variation: "destructive", open: deleteConfirmationOpen, onConfirm: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(), onRequestClose: () => setDeleteConfirmationOpen(false) })));
|
|
20
20
|
}
|
|
21
21
|
|
package/dist/Gallery-cjs.js
CHANGED
|
@@ -30,7 +30,7 @@ function Gallery({ files, size = "base", max, onDelete }) {
|
|
|
30
30
|
}, onDelete: onDelete ? () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(file) : undefined }));
|
|
31
31
|
}),
|
|
32
32
|
max && files.length > max && !displayPastMax && (React.createElement("div", { className: classnames(styles.showMoreButton, styles[`${size}ShowMoreButton`]) },
|
|
33
|
-
React.createElement(Button.
|
|
33
|
+
React.createElement(Button.ButtonNamespace, { type: "tertiary", size: size, label: `+ ${files.length - max}`, fullWidth: true, onClick: () => {
|
|
34
34
|
setDisplayPastMax(true);
|
|
35
35
|
} })))),
|
|
36
36
|
React.createElement(LightBox.LightBox, { open: lightboxOpen, images: images, imageIndex: lightboxIndex, onRequestClose: handleLightboxClose })));
|
package/dist/Gallery-es.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { useState } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { L as LightBox } from './LightBox-es.js';
|
|
5
5
|
import { F as FormatFile, i as isSafari } from './FormatFile-es.js';
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
7
7
|
|
|
8
8
|
var styles = {"gallery":"_6UhvrmKZdns-","galleryLarge":"f0hnJ8v-iHE-","showMoreButton":"EvHA4-Q7O9g-","baseShowMoreButton":"VWW-3mSlumg-","largeShowMoreButton":"DNhegGxB75M-","spinning":"aqCoXiyvGKw-"};
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@ function Gallery({ files, size = "base", max, onDelete }) {
|
|
|
28
28
|
}, onDelete: onDelete ? () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(file) : undefined }));
|
|
29
29
|
}),
|
|
30
30
|
max && files.length > max && !displayPastMax && (React__default.createElement("div", { className: classnames(styles.showMoreButton, styles[`${size}ShowMoreButton`]) },
|
|
31
|
-
React__default.createElement(
|
|
31
|
+
React__default.createElement(ButtonNamespace, { type: "tertiary", size: size, label: `+ ${files.length - max}`, fullWidth: true, onClick: () => {
|
|
32
32
|
setDisplayPastMax(true);
|
|
33
33
|
} })))),
|
|
34
34
|
React__default.createElement(LightBox, { open: lightboxOpen, images: images, imageIndex: lightboxIndex, onRequestClose: handleLightboxClose })));
|
package/dist/InputAvatar-cjs.js
CHANGED
|
@@ -20,7 +20,7 @@ function InputAvatar(_a) {
|
|
|
20
20
|
React.createElement(Centered, null,
|
|
21
21
|
React.createElement(ProgressBar.ProgressBar, { size: "small", currentStep: progress * 100, totalSteps: 100 }))))),
|
|
22
22
|
React.createElement(InputFile.InputFile, { variation: "button", buttonLabel: avatarProps.imageUrl ? "Change Image" : undefined, size: "small", allowedTypes: "images", getUploadParams: getUploadParams, onUploadStart: handleChange, onUploadProgress: handleUpload, onUploadComplete: handleUploadComplete }),
|
|
23
|
-
avatarProps.imageUrl != undefined && progress === 1 && (React.createElement(Button.
|
|
23
|
+
avatarProps.imageUrl != undefined && progress === 1 && (React.createElement(Button.ButtonNamespace, { label: "Remove", size: "small", type: "secondary", variation: "destructive", onClick: clearAvatar }))));
|
|
24
24
|
function handleChange(newFile) {
|
|
25
25
|
onChange && onChange(newFile);
|
|
26
26
|
handleUpload(newFile);
|
package/dist/InputAvatar-es.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { useState } from 'react';
|
|
|
3
3
|
import { A as Avatar } from './Avatar-es.js';
|
|
4
4
|
import { I as InputFile } from './InputFile-es.js';
|
|
5
5
|
import { P as ProgressBar } from './ProgressBar-es.js';
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
|
|
9
9
|
var styles = {"inputAvatar":"CMahTsC0SPE-","preview":"VOVr4KEFeVk-","centered":"HzGL7-Sfok4-","overlay":"Cflv-yL6aVQ-","spinning":"aeMMyPDHQho-"};
|
|
@@ -18,7 +18,7 @@ function InputAvatar(_a) {
|
|
|
18
18
|
React__default.createElement(Centered, null,
|
|
19
19
|
React__default.createElement(ProgressBar, { size: "small", currentStep: progress * 100, totalSteps: 100 }))))),
|
|
20
20
|
React__default.createElement(InputFile, { variation: "button", buttonLabel: avatarProps.imageUrl ? "Change Image" : undefined, size: "small", allowedTypes: "images", getUploadParams: getUploadParams, onUploadStart: handleChange, onUploadProgress: handleUpload, onUploadComplete: handleUploadComplete }),
|
|
21
|
-
avatarProps.imageUrl != undefined && progress === 1 && (React__default.createElement(
|
|
21
|
+
avatarProps.imageUrl != undefined && progress === 1 && (React__default.createElement(ButtonNamespace, { label: "Remove", size: "small", type: "secondary", variation: "destructive", onClick: clearAvatar }))));
|
|
22
22
|
function handleChange(newFile) {
|
|
23
23
|
onChange && onChange(newFile);
|
|
24
24
|
handleUpload(newFile);
|
package/dist/InputFile-cjs.js
CHANGED
|
@@ -1518,7 +1518,7 @@ function InputFileDescription(_a) {
|
|
|
1518
1518
|
function InputFileButton(_a) {
|
|
1519
1519
|
var { label, size, fullWidth = false } = _a, buttonProps = tslib_es6.__rest(_a, ["label", "size", "fullWidth"]);
|
|
1520
1520
|
const { buttonLabel: contextLabel, size: contextSize } = useInputFileContentContext();
|
|
1521
|
-
return (React.createElement(Button.
|
|
1521
|
+
return (React.createElement(Button.ButtonNamespace, Object.assign({}, buttonProps, { label: label || contextLabel, size: size !== null && size !== void 0 ? size : contextSize, type: "secondary", fullWidth: fullWidth })));
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
1524
|
function InputFileDropzoneWrapper({ children, }) {
|
package/dist/InputFile-es.js
CHANGED
|
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { P as PropTypes } from './index-es.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { T as Text } from './Text-es.js';
|
|
7
|
-
import { B as
|
|
7
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
8
8
|
import { I as InputValidation } from './InputValidation-es.js';
|
|
9
9
|
import { C as Content } from './Content-es.js';
|
|
10
10
|
|
|
@@ -1516,7 +1516,7 @@ function InputFileDescription(_a) {
|
|
|
1516
1516
|
function InputFileButton(_a) {
|
|
1517
1517
|
var { label, size, fullWidth = false } = _a, buttonProps = __rest(_a, ["label", "size", "fullWidth"]);
|
|
1518
1518
|
const { buttonLabel: contextLabel, size: contextSize } = useInputFileContentContext();
|
|
1519
|
-
return (React__default.createElement(
|
|
1519
|
+
return (React__default.createElement(ButtonNamespace, Object.assign({}, buttonProps, { label: label || contextLabel, size: size !== null && size !== void 0 ? size : contextSize, type: "secondary", fullWidth: fullWidth })));
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
1522
|
function InputFileDropzoneWrapper({ children, }) {
|
|
@@ -15,15 +15,15 @@ var Chip = require('./Chip-cjs.js');
|
|
|
15
15
|
require('./tslib.es6-cjs.js');
|
|
16
16
|
|
|
17
17
|
function InternalChip({ label, active = false, disabled = false, invalid = false, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }) {
|
|
18
|
-
return (React.createElement(Chip.
|
|
19
|
-
prefix && React.createElement(Chip.
|
|
20
|
-
suffix && React.createElement(Chip.
|
|
18
|
+
return (React.createElement(Chip.ChipNamespace, { disabled: disabled, invalid: invalid, onKeyDown: onKeyDown, testID: "ATL-InternalChip", ariaLabel: ariaLabel, tabIndex: tabIndex, variation: active ? "base" : "subtle", role: tabIndex !== undefined ? "option" : undefined, onClick: onClick ? (_, ev) => onClick(ev) : undefined, label: label },
|
|
19
|
+
prefix && React.createElement(Chip.ChipNamespace.Prefix, null, prefix),
|
|
20
|
+
suffix && React.createElement(Chip.ChipNamespace.Suffix, null, suffix)));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
var styles = {"wrapper":"XRnU90M2-fs-","input":"Dq-yFHd1zK0-","menu":"F7CpurjKzBI-","menuList":"J8USVG1tjPs-","menuListOption":"_9SAK31TqNDY-","loadingIndicator":"s5vFJVv0t0Q-","activeOption":"_8d0w-JzgzS4-","spinning":"hDJGLX6kE-U-"};
|
|
24
24
|
|
|
25
25
|
function InternalChipDismissibleInput(props) {
|
|
26
|
-
const { activator = React.createElement(Button.
|
|
26
|
+
const { activator = React.createElement(Button.ButtonNamespace, { icon: "add", type: "secondary", ariaLabel: "Add" }), attachTo, isLoadingMore = false, onLoadMore, options, } = props;
|
|
27
27
|
const { activeIndex, allOptions, hasAvailableOptions, inputRef, menuId, menuOpen, searchValue, generateDescendantId, handleBlur, handleOpenMenu, handleSearchChange, handleCancelBlur, handleEnableBlur, handleSetActiveOnMouseOver, handleKeyDown, handleSelectOption, handleDebouncedSearch, } = useScrollToActive.useInternalChipDismissibleInput(props);
|
|
28
28
|
const menuRef = useScrollToActive.useScrollToActive(activeIndex);
|
|
29
29
|
const { ref: visibleChildRef, isInView } = useScrollToActive.useInView();
|
|
@@ -7,21 +7,21 @@ import { d as debounce } from './debounce-es.js';
|
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { u as useSafeLayoutEffect_1 } from './useSafeLayoutEffect-es.js';
|
|
9
9
|
import { T as Text } from './Text-es.js';
|
|
10
|
-
import { B as
|
|
10
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
11
11
|
import { S as Spinner } from './Spinner-es.js';
|
|
12
|
-
import { C as
|
|
12
|
+
import { C as ChipNamespace, I as InternalChipButton } from './Chip-es.js';
|
|
13
13
|
import './tslib.es6-es.js';
|
|
14
14
|
|
|
15
15
|
function InternalChip({ label, active = false, disabled = false, invalid = false, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }) {
|
|
16
|
-
return (React__default.createElement(
|
|
17
|
-
prefix && React__default.createElement(
|
|
18
|
-
suffix && React__default.createElement(
|
|
16
|
+
return (React__default.createElement(ChipNamespace, { disabled: disabled, invalid: invalid, onKeyDown: onKeyDown, testID: "ATL-InternalChip", ariaLabel: ariaLabel, tabIndex: tabIndex, variation: active ? "base" : "subtle", role: tabIndex !== undefined ? "option" : undefined, onClick: onClick ? (_, ev) => onClick(ev) : undefined, label: label },
|
|
17
|
+
prefix && React__default.createElement(ChipNamespace.Prefix, null, prefix),
|
|
18
|
+
suffix && React__default.createElement(ChipNamespace.Suffix, null, suffix)));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
var styles = {"wrapper":"XRnU90M2-fs-","input":"Dq-yFHd1zK0-","menu":"F7CpurjKzBI-","menuList":"J8USVG1tjPs-","menuListOption":"_9SAK31TqNDY-","loadingIndicator":"s5vFJVv0t0Q-","activeOption":"_8d0w-JzgzS4-","spinning":"hDJGLX6kE-U-"};
|
|
22
22
|
|
|
23
23
|
function InternalChipDismissibleInput(props) {
|
|
24
|
-
const { activator = React__default.createElement(
|
|
24
|
+
const { activator = React__default.createElement(ButtonNamespace, { icon: "add", type: "secondary", ariaLabel: "Add" }), attachTo, isLoadingMore = false, onLoadMore, options, } = props;
|
|
25
25
|
const { activeIndex, allOptions, hasAvailableOptions, inputRef, menuId, menuOpen, searchValue, generateDescendantId, handleBlur, handleOpenMenu, handleSearchChange, handleCancelBlur, handleEnableBlur, handleSetActiveOnMouseOver, handleKeyDown, handleSelectOption, handleDebouncedSearch, } = useInternalChipDismissibleInput(props);
|
|
26
26
|
const menuRef = useScrollToActive(activeIndex);
|
|
27
27
|
const { ref: visibleChildRef, isInView } = useInView();
|
package/dist/LightBox-cjs.js
CHANGED
|
@@ -211,12 +211,12 @@ function LightBox({ boxSizing = "content-box", open, images, imageIndex = 0, onR
|
|
|
211
211
|
function PreviousButton({ onClick, hideButton }) {
|
|
212
212
|
const { mediumAndUp } = useBreakpoints.useBreakpoints();
|
|
213
213
|
return (React.createElement("div", { className: `${styles.prev} ${hideButton ? styles.buttonHidden : styles.buttonVisible}` },
|
|
214
|
-
React.createElement(Button.
|
|
214
|
+
React.createElement(Button.ButtonNamespace, { size: mediumAndUp ? "large" : "small", variation: "subtle", type: "secondary", icon: "arrowLeft", ariaLabel: "Previous image", onClick: onClick })));
|
|
215
215
|
}
|
|
216
216
|
function NextButton({ onClick, hideButton }) {
|
|
217
217
|
const { mediumAndUp } = useBreakpoints.useBreakpoints();
|
|
218
218
|
return (React.createElement("div", { className: `${styles.next} ${hideButton ? styles.buttonHidden : styles.buttonVisible}` },
|
|
219
|
-
React.createElement(Button.
|
|
219
|
+
React.createElement(Button.ButtonNamespace, { size: mediumAndUp ? "large" : "small", variation: "subtle", type: "secondary", icon: "arrowRight", ariaLabel: "Next image", onClick: onClick })));
|
|
220
220
|
}
|
|
221
221
|
function togglePrintStyles(open) {
|
|
222
222
|
try {
|
package/dist/LightBox-es.js
CHANGED
|
@@ -9,7 +9,7 @@ import classnames from 'classnames';
|
|
|
9
9
|
import { u as useDebounce } from './useDebounce-es.js';
|
|
10
10
|
import { B as ButtonDismiss } from './ButtonDismiss-es.js';
|
|
11
11
|
import { T as Text } from './Text-es.js';
|
|
12
|
-
import { B as
|
|
12
|
+
import { B as ButtonNamespace } from './Button-es.js';
|
|
13
13
|
import { H as Heading } from './Heading-es.js';
|
|
14
14
|
import { A as AtlantisThemeContextProvider } from './AtlantisThemeContext-es.js';
|
|
15
15
|
|
|
@@ -209,12 +209,12 @@ function LightBox({ boxSizing = "content-box", open, images, imageIndex = 0, onR
|
|
|
209
209
|
function PreviousButton({ onClick, hideButton }) {
|
|
210
210
|
const { mediumAndUp } = useBreakpoints.useBreakpoints();
|
|
211
211
|
return (React__default.createElement("div", { className: `${styles.prev} ${hideButton ? styles.buttonHidden : styles.buttonVisible}` },
|
|
212
|
-
React__default.createElement(
|
|
212
|
+
React__default.createElement(ButtonNamespace, { size: mediumAndUp ? "large" : "small", variation: "subtle", type: "secondary", icon: "arrowLeft", ariaLabel: "Previous image", onClick: onClick })));
|
|
213
213
|
}
|
|
214
214
|
function NextButton({ onClick, hideButton }) {
|
|
215
215
|
const { mediumAndUp } = useBreakpoints.useBreakpoints();
|
|
216
216
|
return (React__default.createElement("div", { className: `${styles.next} ${hideButton ? styles.buttonHidden : styles.buttonVisible}` },
|
|
217
|
-
React__default.createElement(
|
|
217
|
+
React__default.createElement(ButtonNamespace, { size: mediumAndUp ? "large" : "small", variation: "subtle", type: "secondary", icon: "arrowRight", ariaLabel: "Next image", onClick: onClick })));
|
|
218
218
|
}
|
|
219
219
|
function togglePrintStyles(open) {
|
|
220
220
|
try {
|
package/dist/Menu-cjs.js
CHANGED
|
@@ -98,7 +98,7 @@ function Menu({ activator, items }) {
|
|
|
98
98
|
const positionAttributes = width >= SMALL_SCREEN_BREAKPOINT
|
|
99
99
|
? Object.assign(Object.assign({}, attributes.popper), { style: popperStyles.popper }) : {};
|
|
100
100
|
if (!activator) {
|
|
101
|
-
activator = (React.createElement(Button.
|
|
101
|
+
activator = (React.createElement(Button.ButtonNamespace, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
102
102
|
}
|
|
103
103
|
return (React.createElement("div", { className: wrapperClasses, onClick: handleParentClick },
|
|
104
104
|
React.createElement("div", { ref: popperRef }, React.cloneElement(activator, {
|