@geotab/zenith 3.9.2 → 3.10.0-beta.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/README.md +15 -3
- package/dist/absolute/absolute.d.ts +7 -1
- package/dist/absolute/absolute.js +8 -4
- package/dist/alertRaw/alertRaw.js +4 -4
- package/dist/alertRaw/components/alertAnimation.js +2 -2
- package/dist/banner/bannerMultipLine.js +4 -4
- package/dist/banner/bannerSingleLine.js +4 -4
- package/dist/betaPill/betaPill.d.ts +4 -9
- package/dist/betaPill/betaPill.js +7 -8
- package/dist/bookmark/bookmark.d.ts +2 -1
- package/dist/bookmark/bookmark.js +4 -2
- package/dist/card/components/cardButton/cardButton.d.ts +2 -1
- package/dist/card/components/cardButton/cardButton.js +3 -3
- package/dist/checkbox/checkbox.js +2 -2
- package/dist/commonStyles/rangeFieldMixin.less +9 -9
- package/dist/controlledPopup/controlledPopup.d.ts +2 -1
- package/dist/controlledPopup/controlledPopup.js +2 -2
- package/dist/dataFeed/hooks/useVisibleColumns.js +1 -1
- package/dist/dataGrid/extensions/toBasicColumn.js +2 -1
- package/dist/dataGrid/listColumn.d.ts +1 -0
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +2 -2
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +5 -5
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +15 -6
- package/dist/dialog/dialogContent.js +4 -4
- package/dist/dropdownRaw/dropdownHelper.d.ts +4 -1
- package/dist/dropdownRaw/dropdownHelper.js +2 -1
- package/dist/dropdownRaw/dropdownRaw.js +2 -2
- package/dist/dropdownRaw/dropdownTrigger.d.ts +1 -1
- package/dist/dropdownRaw/dropdownTrigger.js +1 -1
- package/dist/fileUpload/components/uploadedFilesSection.js +3 -3
- package/dist/filters/components/filtersSavedChipComponent.js +3 -3
- package/dist/filters/components/filtersSearchItemData.js +3 -3
- package/dist/filters/components/filtersSidePanel.js +4 -4
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +4 -4
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +13 -13
- package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -1
- package/dist/headerTitle/headerTitle.d.ts +3 -9
- package/dist/headerTitle/headerTitle.js +2 -3
- package/dist/icons/iconAlignLeft.js +3 -1
- package/dist/icons/iconAlignmentLeft.js +3 -1
- package/dist/icons/iconAlignmentRight.js +3 -1
- package/dist/icons/iconArrowBottomLeft.js +3 -1
- package/dist/icons/iconArrowBottomRight.js +3 -1
- package/dist/icons/iconArrowLeftPath.js +3 -1
- package/dist/icons/iconArrowRight.js +3 -1
- package/dist/icons/iconArrowRightCircle.js +3 -1
- package/dist/icons/iconArrowRightPath.js +3 -1
- package/dist/icons/iconArrowTopLeft.js +3 -1
- package/dist/icons/iconArrowTopRight.js +3 -1
- package/dist/icons/iconChevronDoubleRight.js +3 -1
- package/dist/icons/iconChevronRight.js +3 -1
- package/dist/icons/iconChevronRightSmall.js +3 -1
- package/dist/icons/iconCornerDownLeft.js +3 -1
- package/dist/icons/iconCornerDownRight.js +3 -1
- package/dist/icons/iconCornerLeftDown.js +3 -1
- package/dist/icons/iconCornerLeftUp.js +3 -1
- package/dist/icons/iconCornerRightDown.js +3 -1
- package/dist/icons/iconCornerRightUp.js +3 -1
- package/dist/icons/iconCornerUpLeft.js +3 -1
- package/dist/icons/iconCornerUpRight.js +3 -1
- package/dist/icons/iconLayoutSidebar.js +3 -1
- package/dist/icons/iconPinFilled.d.ts +3 -0
- package/dist/icons/iconPinFilled.js +12 -0
- package/dist/icons/iconSidebar.js +3 -1
- package/dist/icons/iconUndock.js +3 -1
- package/dist/index.css +556 -504
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -6
- package/dist/list/listItem/listItem.d.ts +3 -1
- package/dist/list/listItem/listItem.js +4 -2
- package/dist/menu/controlledMenu.d.ts +1 -0
- package/dist/menu/controlledMenu.js +2 -2
- package/dist/mobileSheet/mobileSheet.js +4 -4
- package/dist/modal/modal.js +4 -4
- package/dist/nav/nav.d.ts +7 -1
- package/dist/nav/nav.js +11 -6
- package/dist/nav/navEmpty/navEmpty.d.ts +10 -0
- package/dist/nav/navEmpty/navEmpty.js +7 -0
- package/dist/notification/notification.js +4 -4
- package/dist/notification/pushNotification/pushNotification.js +1 -1
- package/dist/pill/components/pillNonActionable/pillNonActionable.js +4 -4
- package/dist/pillExpandable/pillExpandable.js +4 -4
- package/dist/table/detailPanel/detailPanelHeader.js +4 -4
- package/dist/table/flexible/columnsList.d.ts +1 -2
- package/dist/table/flexible/columnsList.js +6 -5
- package/dist/table/flexible/columnsPopup.js +0 -3
- package/dist/table/flexible/useFlexibleColumns.d.ts +1 -0
- package/dist/table/flexible/useFlexibleColumns.js +4 -3
- package/dist/table/loading/useLoading.d.ts +1 -0
- package/dist/table/loading/useLoading.js +1 -1
- package/dist/table/nested/useNestedRows.d.ts +1 -0
- package/dist/table/selectable/useSelectableRows.js +23 -5
- package/dist/table/table.d.ts +1 -0
- package/dist/table/table.js +7 -2
- package/dist/tabs/tabItem/tabItem.d.ts +2 -1
- package/dist/tabs/tabItem/tabItem.js +4 -2
- package/dist/tabs/tabs.d.ts +1 -0
- package/dist/tabs/tabs.js +2 -1
- package/dist/toastRaw/components/toastAnimation.js +2 -2
- package/dist/toastRaw/toastRaw.js +4 -4
- package/dist/toggleButtonRaw/toggleButtonRaw.js +13 -13
- package/dist/tooltip/tooltip.js +4 -4
- package/dist/utils/localization/flipAlignment.d.ts +2 -0
- package/dist/utils/localization/flipAlignment.js +19 -0
- package/dist/utils/localization/makeLanguageWrapper.d.ts +8 -0
- package/dist/utils/localization/makeLanguageWrapper.js +11 -0
- package/dist/utils/localization/translations/cs.json +2 -2
- package/dist/utils/localization/translations/da-DK.json +2 -2
- package/dist/utils/localization/translations/es.json +2 -2
- package/dist/utils/localization/translations/fi-FI.json +1 -1
- package/dist/utils/localization/translations/hu-HU.json +2 -2
- package/dist/utils/localization/translations/ko-KR.json +2 -2
- package/dist/utils/localization/translations/ms.json +1 -1
- package/dist/utils/localization/translations/nb-NO.json +1 -1
- package/dist/utils/localization/translations/pt-BR.json +2 -2
- package/dist/utils/localization/translations/pt-PT.json +3 -3
- package/dist/utils/localization/translations/ro-RO.json +5 -5
- package/dist/utils/localization/translations/sk-SK.json +1 -1
- package/dist/utils/localization/translations/zh-Hans.json +1 -1
- package/dist/utils/localization/useIsRTL.d.ts +1 -0
- package/dist/utils/localization/useIsRTL.js +6 -0
- package/dist/utils/localization/useRTLAlignment.d.ts +2 -0
- package/dist/utils/localization/useRTLAlignment.js +10 -0
- package/esm/absolute/absolute.d.ts +7 -1
- package/esm/absolute/absolute.js +8 -4
- package/esm/alertRaw/alertRaw.js +4 -4
- package/esm/alertRaw/components/alertAnimation.js +2 -2
- package/esm/banner/bannerMultipLine.js +4 -4
- package/esm/banner/bannerSingleLine.js +4 -4
- package/esm/betaPill/betaPill.d.ts +4 -9
- package/esm/betaPill/betaPill.js +7 -8
- package/esm/bookmark/bookmark.d.ts +2 -1
- package/esm/bookmark/bookmark.js +4 -2
- package/esm/card/components/cardButton/cardButton.d.ts +2 -1
- package/esm/card/components/cardButton/cardButton.js +3 -3
- package/esm/checkbox/checkbox.js +2 -2
- package/esm/controlledPopup/controlledPopup.d.ts +2 -1
- package/esm/controlledPopup/controlledPopup.js +2 -2
- package/esm/dataFeed/hooks/useVisibleColumns.js +1 -1
- package/esm/dataGrid/extensions/toBasicColumn.js +2 -1
- package/esm/dataGrid/listColumn.d.ts +1 -0
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.d.ts +2 -2
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +5 -5
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +15 -6
- package/esm/dialog/dialogContent.js +4 -4
- package/esm/dropdownRaw/dropdownHelper.d.ts +4 -1
- package/esm/dropdownRaw/dropdownHelper.js +2 -1
- package/esm/dropdownRaw/dropdownRaw.js +2 -2
- package/esm/dropdownRaw/dropdownTrigger.d.ts +1 -1
- package/esm/dropdownRaw/dropdownTrigger.js +1 -1
- package/esm/fileUpload/components/uploadedFilesSection.js +3 -3
- package/esm/filters/components/filtersSavedChipComponent.js +3 -3
- package/esm/filters/components/filtersSearchItemData.js +3 -3
- package/esm/filters/components/filtersSidePanel.js +4 -4
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +4 -4
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +13 -13
- package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -1
- package/esm/headerTitle/headerTitle.d.ts +3 -9
- package/esm/headerTitle/headerTitle.js +2 -3
- package/esm/icons/iconAlignLeft.js +3 -1
- package/esm/icons/iconAlignmentLeft.js +3 -1
- package/esm/icons/iconAlignmentRight.js +3 -1
- package/esm/icons/iconArrowBottomLeft.js +3 -1
- package/esm/icons/iconArrowBottomRight.js +3 -1
- package/esm/icons/iconArrowLeftPath.js +3 -1
- package/esm/icons/iconArrowRight.js +3 -1
- package/esm/icons/iconArrowRightCircle.js +3 -1
- package/esm/icons/iconArrowRightPath.js +3 -1
- package/esm/icons/iconArrowTopLeft.js +3 -1
- package/esm/icons/iconArrowTopRight.js +3 -1
- package/esm/icons/iconChevronDoubleRight.js +3 -1
- package/esm/icons/iconChevronRight.js +3 -1
- package/esm/icons/iconChevronRightSmall.js +3 -1
- package/esm/icons/iconCornerDownLeft.js +3 -1
- package/esm/icons/iconCornerDownRight.js +3 -1
- package/esm/icons/iconCornerLeftDown.js +3 -1
- package/esm/icons/iconCornerLeftUp.js +3 -1
- package/esm/icons/iconCornerRightDown.js +3 -1
- package/esm/icons/iconCornerRightUp.js +3 -1
- package/esm/icons/iconCornerUpLeft.js +3 -1
- package/esm/icons/iconCornerUpRight.js +3 -1
- package/esm/icons/iconLayoutSidebar.js +3 -1
- package/esm/icons/iconPinFilled.d.ts +3 -0
- package/esm/icons/iconPinFilled.js +8 -0
- package/esm/icons/iconSidebar.js +3 -1
- package/esm/icons/iconUndock.js +3 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/list/listItem/listItem.d.ts +3 -1
- package/esm/list/listItem/listItem.js +4 -2
- package/esm/menu/controlledMenu.d.ts +1 -0
- package/esm/menu/controlledMenu.js +2 -2
- package/esm/mobileSheet/mobileSheet.js +4 -4
- package/esm/modal/modal.js +4 -4
- package/esm/nav/nav.d.ts +7 -1
- package/esm/nav/nav.js +11 -6
- package/esm/nav/navEmpty/navEmpty.d.ts +10 -0
- package/esm/nav/navEmpty/navEmpty.js +3 -0
- package/esm/notification/notification.js +4 -4
- package/esm/notification/pushNotification/pushNotification.js +1 -1
- package/esm/pill/components/pillNonActionable/pillNonActionable.js +4 -4
- package/esm/pillExpandable/pillExpandable.js +4 -4
- package/esm/table/detailPanel/detailPanelHeader.js +4 -4
- package/esm/table/flexible/columnsList.d.ts +1 -2
- package/esm/table/flexible/columnsList.js +6 -5
- package/esm/table/flexible/columnsPopup.js +0 -3
- package/esm/table/flexible/useFlexibleColumns.d.ts +1 -0
- package/esm/table/flexible/useFlexibleColumns.js +4 -3
- package/esm/table/loading/useLoading.d.ts +1 -0
- package/esm/table/loading/useLoading.js +1 -1
- package/esm/table/nested/useNestedRows.d.ts +1 -0
- package/esm/table/selectable/useSelectableRows.js +23 -5
- package/esm/table/table.d.ts +1 -0
- package/esm/table/table.js +7 -2
- package/esm/tabs/tabItem/tabItem.d.ts +2 -1
- package/esm/tabs/tabItem/tabItem.js +4 -2
- package/esm/tabs/tabs.d.ts +1 -0
- package/esm/tabs/tabs.js +2 -1
- package/esm/toastRaw/components/toastAnimation.js +2 -2
- package/esm/toastRaw/toastRaw.js +4 -4
- package/esm/toggleButtonRaw/toggleButtonRaw.js +13 -13
- package/esm/tooltip/tooltip.js +4 -4
- package/esm/utils/localization/flipAlignment.d.ts +2 -0
- package/esm/utils/localization/flipAlignment.js +15 -0
- package/esm/utils/localization/makeLanguageWrapper.d.ts +8 -0
- package/esm/utils/localization/makeLanguageWrapper.js +7 -0
- package/esm/utils/localization/translations/cs.json +2 -2
- package/esm/utils/localization/translations/da-DK.json +2 -2
- package/esm/utils/localization/translations/es.json +2 -2
- package/esm/utils/localization/translations/fi-FI.json +1 -1
- package/esm/utils/localization/translations/hu-HU.json +2 -2
- package/esm/utils/localization/translations/ko-KR.json +2 -2
- package/esm/utils/localization/translations/ms.json +1 -1
- package/esm/utils/localization/translations/nb-NO.json +1 -1
- package/esm/utils/localization/translations/pt-BR.json +2 -2
- package/esm/utils/localization/translations/pt-PT.json +3 -3
- package/esm/utils/localization/translations/ro-RO.json +5 -5
- package/esm/utils/localization/translations/sk-SK.json +1 -1
- package/esm/utils/localization/translations/zh-Hans.json +1 -1
- package/esm/utils/localization/useIsRTL.d.ts +1 -0
- package/esm/utils/localization/useIsRTL.js +2 -0
- package/esm/utils/localization/useRTLAlignment.d.ts +2 -0
- package/esm/utils/localization/useRTLAlignment.js +6 -0
- package/package.json +1 -1
package/dist/table/table.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface IListColumn<T extends IRowEntity<N>, N extends IEntityWithId =
|
|
|
41
41
|
wrappers?: IListColumnWrapper<T, N>[];
|
|
42
42
|
sortable?: boolean;
|
|
43
43
|
draggable?: boolean;
|
|
44
|
+
alwaysVisible?: boolean;
|
|
44
45
|
colspan?: undefined | number | ((entity: T | N) => number | undefined);
|
|
45
46
|
group?: string;
|
|
46
47
|
visible?: boolean;
|
package/dist/table/table.js
CHANGED
|
@@ -16,6 +16,7 @@ const useSortableColumns_1 = require("./sortable/useSortableColumns");
|
|
|
16
16
|
const useFlexibleColumns_1 = require("./flexible/useFlexibleColumns");
|
|
17
17
|
const useActions_1 = require("./actions/useActions");
|
|
18
18
|
const useLoading_1 = require("./loading/useLoading");
|
|
19
|
+
const emptySearchList_1 = require("../dataGrid/emptySearchList/emptySearchList");
|
|
19
20
|
const entitiesListActions_1 = require("../dataGrid/entitiesListActions/entitiesListActions");
|
|
20
21
|
const dataFeedSelectPanel_1 = require("../dataFeed/dataFeedSelectPanel/dataFeedSelectPanel");
|
|
21
22
|
const columnsListButton_1 = require("../dataGrid/entitiesListActions/actions/columnsListButton");
|
|
@@ -193,7 +194,8 @@ const TableInner = ({
|
|
|
193
194
|
} = (0, useSortableColumns_1.useSortableColumns)(selectableColumns, sortable, isMobile);
|
|
194
195
|
const {
|
|
195
196
|
flexibleColumns,
|
|
196
|
-
columnsPopup
|
|
197
|
+
columnsPopup,
|
|
198
|
+
allColumnsHidden
|
|
197
199
|
} = (0, useFlexibleColumns_1.useFlexibleColumns)(sortableColumns, flexible, gridRef, columnsPopupRef, isMobile);
|
|
198
200
|
const {
|
|
199
201
|
columnsWithActions,
|
|
@@ -300,7 +302,10 @@ const TableInner = ({
|
|
|
300
302
|
className: "zen-table__content",
|
|
301
303
|
children: [(0, jsx_runtime_1.jsx)("div", {
|
|
302
304
|
className: "zen-table__table",
|
|
303
|
-
children:
|
|
305
|
+
children: allColumnsHidden ? (0, jsx_runtime_1.jsx)("div", {
|
|
306
|
+
className: "zen-data-grid__empty",
|
|
307
|
+
children: (0, jsx_runtime_1.jsx)(emptySearchList_1.EmptySearchList, {})
|
|
308
|
+
}) : isMobile ? (0, jsx_runtime_1.jsxs)(dataFeed_1.DataFeed, {
|
|
304
309
|
columns: loadingColumns,
|
|
305
310
|
feedWrappers: [nestedFeedWrapper, selectableFeedWrapper],
|
|
306
311
|
entities: loadingEntities,
|
|
@@ -9,5 +9,6 @@ export interface ITabItem extends IZenComponentProps {
|
|
|
9
9
|
active: boolean;
|
|
10
10
|
ariaControl?: string;
|
|
11
11
|
handleButtonClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
12
|
+
dataAnalyticsId?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const TabItem: ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity }: ITabItem) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const TabItem: ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity, dataAnalyticsId }: ITabItem) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,9 +5,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
6
6
|
const useDriveClassName_1 = require("../../utils/theme/useDriveClassName");
|
|
7
7
|
const useMobileClassName_1 = require("../../utils/theme/useMobileClassName");
|
|
8
|
-
const
|
|
8
|
+
const toKebabCase_1 = require("../../utils/toKebabCase");
|
|
9
|
+
const TabItem = ({ tabId, tabName, icon, active, handleButtonClick, ariaControl, quantity, dataAnalyticsId }) => {
|
|
9
10
|
const driveClassname = (0, useDriveClassName_1.useDriveClassName)("zen-tab-item");
|
|
10
11
|
const mobileClassname = (0, useMobileClassName_1.useMobileClassName)("zen-tab-item");
|
|
11
|
-
|
|
12
|
+
const analyticsId = dataAnalyticsId || `tab-${(0, toKebabCase_1.toKebabCase)(tabName)}`;
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("button", { id: tabId, type: "button", className: (0, classNames_1.classNames)(["zen-tab-item", driveClassname || mobileClassname || "", active ? "zen-tab-item--active" : ""]), role: "tab", "aria-controls": ariaControl, "aria-selected": active ? "true" : "false", "aria-label": tabName, title: tabName, onClick: handleButtonClick, "data-analytics-id": analyticsId, children: (0, jsx_runtime_1.jsxs)("div", { className: "zen-tab-item__content", children: [icon && ((0, jsx_runtime_1.jsx)("span", { className: (0, classNames_1.classNames)(["zen-tab-item__content-icon", active ? "zen-tab-item__content-icon--active" : ""]), children: icon })), (0, jsx_runtime_1.jsx)("span", { className: "zen-tab-item__content-text", children: tabName }), quantity && (0, jsx_runtime_1.jsx)("div", { className: "zen-tab-item__content-quantity", children: quantity })] }) }));
|
|
12
14
|
};
|
|
13
15
|
exports.TabItem = TabItem;
|
package/dist/tabs/tabs.d.ts
CHANGED
package/dist/tabs/tabs.js
CHANGED
|
@@ -243,7 +243,8 @@ const Tabs = ({
|
|
|
243
243
|
quantity: tab.quantity,
|
|
244
244
|
active: activeTabId === tab.id,
|
|
245
245
|
ariaControl: `panel-${tab.id}`,
|
|
246
|
-
handleButtonClick: handleButtonClick
|
|
246
|
+
handleButtonClick: handleButtonClick,
|
|
247
|
+
dataAnalyticsId: tab.dataAnalyticsId
|
|
247
248
|
}, tab.id))
|
|
248
249
|
})
|
|
249
250
|
}), scrollButtonType === "end" || scrollButtonType === "both" ? (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, {
|
|
@@ -33,7 +33,7 @@ const ToastAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
if (animation === "left-right") {
|
|
36
|
-
ref.current.animate([{
|
|
36
|
+
ref.current.animate([{ insetInlineStart: "0%" }, { insetInlineStart: "120%" }], {
|
|
37
37
|
duration: 300,
|
|
38
38
|
iterations: 1,
|
|
39
39
|
delay: 0,
|
|
@@ -43,7 +43,7 @@ const ToastAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
43
43
|
};
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
ref.current.animate([{
|
|
46
|
+
ref.current.animate([{ insetInlineStart: "120%" }, { insetInlineStart: "0%" }], {
|
|
47
47
|
duration: 300,
|
|
48
48
|
iterations: 1,
|
|
49
49
|
delay: 0
|
|
@@ -13,10 +13,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
13
13
|
injectString("de", "Close", "Schlie\xDFen");
|
|
14
14
|
injectString("en", "Close", "Close");
|
|
15
15
|
injectString("es", "Close", "Cerrar");
|
|
16
|
-
injectString("fi-FI", "Close", "
|
|
16
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
17
17
|
injectString("fr", "Close", "Fermer");
|
|
18
18
|
injectString("fr-FR", "Close", "Fermer");
|
|
19
|
-
injectString("hu-HU", "Close", "
|
|
19
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
20
20
|
injectString("id", "Close", "Tutup");
|
|
21
21
|
injectString("it", "Close", "Chiudere");
|
|
22
22
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -27,13 +27,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
27
27
|
injectString("pl", "Close", "Zamknij");
|
|
28
28
|
injectString("pt-BR", "Close", "Fechar");
|
|
29
29
|
injectString("pt-PT", "Close", "Fechar");
|
|
30
|
-
injectString("sk-SK", "Close", "
|
|
30
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
31
31
|
injectString("sv", "Close", "St\xE4ng");
|
|
32
32
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
33
33
|
injectString("tr", "Close", "Kapat");
|
|
34
34
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
35
35
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
36
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
36
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
37
37
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
38
38
|
const toastAnimation_1 = require("./components/toastAnimation");
|
|
39
39
|
const iconCheckRadio_1 = require("../icons/iconCheckRadio");
|
|
@@ -39,11 +39,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
39
39
|
});
|
|
40
40
|
exports.ToggleButtonRaw = void 0;
|
|
41
41
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
-
injectString("cs", "On", "
|
|
43
|
-
injectString("da-DK", "On", "
|
|
42
|
+
injectString("cs", "On", "Zapnuto");
|
|
43
|
+
injectString("da-DK", "On", "T\xE6ndt");
|
|
44
44
|
injectString("de", "On", "Ein");
|
|
45
45
|
injectString("en", "On", "On");
|
|
46
|
-
injectString("es", "On", "
|
|
46
|
+
injectString("es", "On", "Activado");
|
|
47
47
|
injectString("fi-FI", "On", "P\xE4\xE4lle");
|
|
48
48
|
injectString("fr", "On", "Activ\xE9");
|
|
49
49
|
injectString("fr-FR", "On", "On");
|
|
@@ -51,26 +51,26 @@ injectString("hu-HU", "On", "Bekapcsolva");
|
|
|
51
51
|
injectString("id", "On", "Aktif");
|
|
52
52
|
injectString("it", "On", "On");
|
|
53
53
|
injectString("ja", "On", "\u30AA\u30F3");
|
|
54
|
-
injectString("ko-KR", "On", "
|
|
54
|
+
injectString("ko-KR", "On", "\uCF1C\uC9D0");
|
|
55
55
|
injectString("ms", "On", "Hidup");
|
|
56
56
|
injectString("nb-NO", "On", "P\xE5");
|
|
57
57
|
injectString("nl", "On", "Aan");
|
|
58
58
|
injectString("pl", "On", "W\u0142.");
|
|
59
|
-
injectString("pt-BR", "On", "
|
|
60
|
-
injectString("pt-PT", "On", "
|
|
59
|
+
injectString("pt-BR", "On", "Ativar");
|
|
60
|
+
injectString("pt-PT", "On", "Ligado");
|
|
61
61
|
injectString("sk-SK", "On", "Zapnut\xE9");
|
|
62
62
|
injectString("sv", "On", "P\xE5");
|
|
63
63
|
injectString("th", "On", "\u0E40\u0E1B\u0E34\u0E14");
|
|
64
64
|
injectString("tr", "On", "A\xE7\u0131k");
|
|
65
65
|
injectString("zh-Hans", "On", "\u5F00\u542F");
|
|
66
66
|
injectString("zh-TW", "On", "\u958B\u555F");
|
|
67
|
-
injectString("ro-RO", "On", "
|
|
67
|
+
injectString("ro-RO", "On", "Pe");
|
|
68
68
|
injectString("ar-SA", "On", "\u062A\u0634\u063A\u064A\u0644");
|
|
69
|
-
injectString("cs", "Off", "
|
|
69
|
+
injectString("cs", "Off", "Vypnuto");
|
|
70
70
|
injectString("da-DK", "Off", "Slukket");
|
|
71
71
|
injectString("de", "Off", "Aus");
|
|
72
72
|
injectString("en", "Off", "Off");
|
|
73
|
-
injectString("es", "Off", "
|
|
73
|
+
injectString("es", "Off", "Deshabilitado");
|
|
74
74
|
injectString("fi-FI", "Off", "Pois");
|
|
75
75
|
injectString("fr", "Off", "D\xE9sactiv\xE9");
|
|
76
76
|
injectString("fr-FR", "Off", "Off");
|
|
@@ -78,20 +78,20 @@ injectString("hu-HU", "Off", "Kikapcsolva");
|
|
|
78
78
|
injectString("id", "Off", "Nonaktif");
|
|
79
79
|
injectString("it", "Off", "Off");
|
|
80
80
|
injectString("ja", "Off", "\u30AA\u30D5");
|
|
81
|
-
injectString("ko-KR", "Off", "\
|
|
81
|
+
injectString("ko-KR", "Off", "\uAEBC\uC9D0");
|
|
82
82
|
injectString("ms", "Off", "Mati");
|
|
83
83
|
injectString("nb-NO", "Off", "Av");
|
|
84
84
|
injectString("nl", "Off", "Uit");
|
|
85
85
|
injectString("pl", "Off", "Wy\u0142.");
|
|
86
|
-
injectString("pt-BR", "Off", "
|
|
87
|
-
injectString("pt-PT", "Off", "
|
|
86
|
+
injectString("pt-BR", "Off", "Desativar");
|
|
87
|
+
injectString("pt-PT", "Off", "Desligado");
|
|
88
88
|
injectString("sk-SK", "Off", "Vypnut\xE9");
|
|
89
89
|
injectString("sv", "Off", "Av");
|
|
90
90
|
injectString("th", "Off", "\u0E1B\u0E34\u0E14");
|
|
91
91
|
injectString("tr", "Off", "Kapal\u0131");
|
|
92
92
|
injectString("zh-Hans", "Off", "\u5173\u95ED");
|
|
93
93
|
injectString("zh-TW", "Off", "\u95DC\u9589");
|
|
94
|
-
injectString("ro-RO", "Off", "
|
|
94
|
+
injectString("ro-RO", "Off", "Off");
|
|
95
95
|
injectString("ar-SA", "Off", "\u0625\u064A\u0642\u0627\u0641");
|
|
96
96
|
const react_1 = __importStar(require("react"));
|
|
97
97
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -71,10 +71,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
71
71
|
injectString("de", "Close", "Schlie\xDFen");
|
|
72
72
|
injectString("en", "Close", "Close");
|
|
73
73
|
injectString("es", "Close", "Cerrar");
|
|
74
|
-
injectString("fi-FI", "Close", "
|
|
74
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
75
75
|
injectString("fr", "Close", "Fermer");
|
|
76
76
|
injectString("fr-FR", "Close", "Fermer");
|
|
77
|
-
injectString("hu-HU", "Close", "
|
|
77
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
78
78
|
injectString("id", "Close", "Tutup");
|
|
79
79
|
injectString("it", "Close", "Chiudere");
|
|
80
80
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -85,13 +85,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
85
85
|
injectString("pl", "Close", "Zamknij");
|
|
86
86
|
injectString("pt-BR", "Close", "Fechar");
|
|
87
87
|
injectString("pt-PT", "Close", "Fechar");
|
|
88
|
-
injectString("sk-SK", "Close", "
|
|
88
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
89
89
|
injectString("sv", "Close", "St\xE4ng");
|
|
90
90
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
91
91
|
injectString("tr", "Close", "Kapat");
|
|
92
92
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
93
93
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
94
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
94
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
95
95
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
96
96
|
const react_1 = __importStar(require("react"));
|
|
97
97
|
const useResize_1 = require("../commonHelpers/hooks/useResize");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flipAlignment = void 0;
|
|
4
|
+
const RTL_ALIGNMENT_MAP = {
|
|
5
|
+
top: "top",
|
|
6
|
+
"top-left": "top-right",
|
|
7
|
+
"top-right": "top-left",
|
|
8
|
+
left: "right",
|
|
9
|
+
"left-top": "right-top",
|
|
10
|
+
"left-bottom": "right-bottom",
|
|
11
|
+
right: "left",
|
|
12
|
+
"right-top": "left-top",
|
|
13
|
+
"right-bottom": "left-bottom",
|
|
14
|
+
bottom: "bottom",
|
|
15
|
+
"bottom-left": "bottom-right",
|
|
16
|
+
"bottom-right": "bottom-left"
|
|
17
|
+
};
|
|
18
|
+
const flipAlignment = (alignment) => RTL_ALIGNMENT_MAP[alignment];
|
|
19
|
+
exports.flipAlignment = flipAlignment;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TSupportedLanguage } from "./getSupportedLanguage";
|
|
3
|
+
export declare const makeLanguageWrapper: (language: TSupportedLanguage) => {
|
|
4
|
+
({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeLanguageWrapper = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const languageProvider_1 = require("./languageProvider");
|
|
6
|
+
const makeLanguageWrapper = (language) => {
|
|
7
|
+
const Wrapper = ({ children }) => (0, jsx_runtime_1.jsx)(languageProvider_1.LanguageProvider, { language: language, children: children });
|
|
8
|
+
Wrapper.displayName = "TestLanguageWrapper";
|
|
9
|
+
return Wrapper;
|
|
10
|
+
};
|
|
11
|
+
exports.makeLanguageWrapper = makeLanguageWrapper;
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"Select visible columns": "Vyberte viditelné sloupce",
|
|
238
238
|
"Selected": "Vybráno",
|
|
239
239
|
"This field is required.": "Toto pole je povinné.",
|
|
240
|
-
"On": "
|
|
241
|
-
"Off": "
|
|
240
|
+
"On": "Zapnuto",
|
|
241
|
+
"Off": "Vypnuto",
|
|
242
242
|
"Scroll left": "Přejít doleva",
|
|
243
243
|
"Scroll right": "Přejít doprava",
|
|
244
244
|
"Send feedback": "Odeslat zpětnou vazbu",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"Close filter": "Luk filter",
|
|
236
236
|
"No data available": "Ingen data tilgængelige",
|
|
237
237
|
"Save": "Spare",
|
|
238
|
-
"Remove": "
|
|
238
|
+
"Remove": "Fjern",
|
|
239
239
|
"Confirm": "Bekræfte",
|
|
240
240
|
"Clear all": "Ryd alt",
|
|
241
241
|
"Selected": "Valgt",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"Sat": "Lør",
|
|
255
255
|
"Sun": "Sol",
|
|
256
256
|
"This field is required.": "Dette felt er påkrævet.",
|
|
257
|
-
"On": "
|
|
257
|
+
"On": "Tændt",
|
|
258
258
|
"Off": "Slukket",
|
|
259
259
|
"Reload": "Genindlæs",
|
|
260
260
|
"View details": "Se detaljer",
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"Select visible columns": "Seleccionar columnas visibles",
|
|
238
238
|
"Selected": "Seleccionado",
|
|
239
239
|
"This field is required.": "Este campo es obligatorio.",
|
|
240
|
-
"On": "
|
|
241
|
-
"Off": "
|
|
240
|
+
"On": "Activado",
|
|
241
|
+
"Off": "Deshabilitado",
|
|
242
242
|
"Scroll left": "Desplazarse a la izquierda",
|
|
243
243
|
"Scroll right": "Desplazarse a la derecha",
|
|
244
244
|
"Send feedback": "Enviar comentarios",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"And": "És",
|
|
12
12
|
"Or": "Vagy",
|
|
13
13
|
"Expand": "Bővítsd ki",
|
|
14
|
-
"View all": "
|
|
14
|
+
"View all": "Összes megtekintése",
|
|
15
15
|
"Beta": "Beta",
|
|
16
16
|
"Add page to bookmarks": "Tedd a lapot a könyvjelzőid közé.",
|
|
17
17
|
"Remove page from bookmarks": "Távolítsd el az oldalt a könyvjelzőid közül.",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"Clear": "Töröld.",
|
|
51
51
|
"Reset": "Állítsd vissza.",
|
|
52
52
|
"Apply": "Alkalmazd.",
|
|
53
|
-
"Close": "
|
|
53
|
+
"Close": "Bezárás",
|
|
54
54
|
"Deselect all": "Ne válassz ki semmit.",
|
|
55
55
|
"Back": "Vissza",
|
|
56
56
|
"No data": "Nincs adat",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"Time": "Masa",
|
|
253
253
|
"Apply filter": "Gunakan penyaring",
|
|
254
254
|
"Remove filter": "Keluarkan penyaring",
|
|
255
|
-
"Results": "
|
|
255
|
+
"Results": "Hasil",
|
|
256
256
|
"Choose end date": "Choose end date",
|
|
257
257
|
"Choose start date": "Choose start date",
|
|
258
258
|
"Sort Options": "Sort Options",
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"Select visible columns": "Selecionar colunas visíveis",
|
|
238
238
|
"Selected": "Selecionado",
|
|
239
239
|
"This field is required.": "Este campo é obrigatório.",
|
|
240
|
-
"On": "
|
|
241
|
-
"Off": "
|
|
240
|
+
"On": "Ativar",
|
|
241
|
+
"Off": "Desativar",
|
|
242
242
|
"Scroll left": "Rolar para a esquerda",
|
|
243
243
|
"Scroll right": "Rolar para a direita",
|
|
244
244
|
"Send feedback": "Enviar feedback",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"And": "E",
|
|
12
12
|
"Or": "Ou",
|
|
13
13
|
"Expand": "Expandir",
|
|
14
|
-
"View all": "
|
|
14
|
+
"View all": "Ver tudo",
|
|
15
15
|
"Beta": "Beta",
|
|
16
16
|
"Add page to bookmarks": "Adicionar página aos favoritos",
|
|
17
17
|
"Remove page from bookmarks": "Remover página dos favoritos",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"Open setting conditions popup": "Abrir pop-up de condições de configuração",
|
|
281
281
|
"Close setting conditions popup": "Fechar o pop-up de condições de configuração",
|
|
282
282
|
"This field is required.": "Este campo é obrigatório.",
|
|
283
|
-
"On": "
|
|
284
|
-
"Off": "
|
|
283
|
+
"On": "Ligado",
|
|
284
|
+
"Off": "Desligado",
|
|
285
285
|
"Sub-options are not active.": "Subopções não estão ativas.",
|
|
286
286
|
"Reload": "Recarregar",
|
|
287
287
|
"Could not load field data": "Não foi possível carregar os dados do campo",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"And": "Și",
|
|
12
12
|
"Or": "Sau",
|
|
13
13
|
"Expand": "Extindeți",
|
|
14
|
-
"View all": "
|
|
14
|
+
"View all": "Vezi tot",
|
|
15
15
|
"Beta": "Beta",
|
|
16
16
|
"Add page to bookmarks": "Adăugați pagina la marcaje",
|
|
17
17
|
"Remove page from bookmarks": "Eliminați pagina din marcaje",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"Clear": "Ștergeți",
|
|
53
53
|
"Reset": "Resetați",
|
|
54
54
|
"Apply": "Aplicați",
|
|
55
|
-
"Close": "
|
|
55
|
+
"Close": "Închide",
|
|
56
56
|
"Deselect all": "Deselectați tot",
|
|
57
57
|
"Back": "Înapoi",
|
|
58
58
|
"No data": "Nu există date",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"Search page": "Căutați pagina",
|
|
251
251
|
"Search by": "Căutați după",
|
|
252
252
|
"Save": "Salvați",
|
|
253
|
-
"Remove": "
|
|
253
|
+
"Remove": "Elimină",
|
|
254
254
|
"Save filters": "Salvați filtrele",
|
|
255
255
|
"Remove saved {name} filter?": "Doriți să eliminați filtrul {name} salvat?",
|
|
256
256
|
"Saved filters": "Filtre salvate",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"Open setting conditions popup": "Deschideți pop-up-ul cu condiții de setare",
|
|
281
281
|
"Close setting conditions popup": "Închideți pop-up-ul cu condiții de setare",
|
|
282
282
|
"This field is required.": "Acest câmp este obligatoriu.",
|
|
283
|
-
"On": "
|
|
284
|
-
"Off": "
|
|
283
|
+
"On": "Pe",
|
|
284
|
+
"Off": "Off",
|
|
285
285
|
"Sub-options are not active.": "Nu sunt active opțiuni secundare.",
|
|
286
286
|
"Reload": "Reîncărcați",
|
|
287
287
|
"Could not load field data": "Nu s-au putut încărca datele din câmp",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsRTL: () => boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRTLAlignment = void 0;
|
|
4
|
+
const useDirection_1 = require("./useDirection");
|
|
5
|
+
const flipAlignment_1 = require("./flipAlignment");
|
|
6
|
+
const useRTLAlignment = (alignment) => {
|
|
7
|
+
const direction = (0, useDirection_1.useDirection)();
|
|
8
|
+
return direction === "rtl" ? (0, flipAlignment_1.flipAlignment)(alignment) : alignment;
|
|
9
|
+
};
|
|
10
|
+
exports.useRTLAlignment = useRTLAlignment;
|
|
@@ -22,8 +22,14 @@ export interface IAbsolute extends IZenComponentProps {
|
|
|
22
22
|
ariaLabelledby?: string;
|
|
23
23
|
alignmentsFn?: IAlignment;
|
|
24
24
|
recalculateOnScroll?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When true, closes the popup on scroll instead of repositioning it.
|
|
27
|
+
* Mutually exclusive with `recalculateOnScroll` — setting both causes a
|
|
28
|
+
* wasted position recalculation before the popup closes.
|
|
29
|
+
*/
|
|
30
|
+
closeOnScroll?: boolean;
|
|
25
31
|
recalculateTrigger?: boolean;
|
|
26
32
|
/** Whether to focus the first focusable element when popup opens. Default: true */
|
|
27
33
|
focusOnOpen?: boolean;
|
|
28
34
|
}
|
|
29
|
-
export declare const Absolute: ({ isOpen, id, paddingX, paddingY, className, children, triggerRef, alignment, inline, onOpenChange, useTrapFocusWithTrigger, shouldHoldScroll, stateFullChilds, role, ariaLabel, ariaLabelledby, alignmentsFn, recalculateOnScroll, recalculateTrigger, focusOnOpen }: IAbsolute) => import("react/jsx-runtime").JSX.Element | "" | null;
|
|
35
|
+
export declare const Absolute: ({ isOpen, id, paddingX, paddingY, className, children, triggerRef, alignment, inline, onOpenChange, useTrapFocusWithTrigger, shouldHoldScroll, stateFullChilds, role, ariaLabel, ariaLabelledby, alignmentsFn, recalculateOnScroll, closeOnScroll, recalculateTrigger, focusOnOpen }: IAbsolute) => import("react/jsx-runtime").JSX.Element | "" | null;
|
package/esm/absolute/absolute.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useScroll } from "../commonHelpers/hooks/useScroll";
|
|
|
16
16
|
import { getScrollableParent } from "../utils/getScrollableParent";
|
|
17
17
|
import { useClientReady } from "../commonHelpers/hooks/useClientReady";
|
|
18
18
|
import { zen } from "../utils/zen";
|
|
19
|
-
export const Absolute = ({ isOpen, id, paddingX, paddingY, className, children, triggerRef, alignment, inline, onOpenChange, useTrapFocusWithTrigger = "off", shouldHoldScroll, stateFullChilds, role, ariaLabel, ariaLabelledby, alignmentsFn, recalculateOnScroll, recalculateTrigger = true, focusOnOpen = true }) => {
|
|
19
|
+
export const Absolute = ({ isOpen, id, paddingX, paddingY, className, children, triggerRef, alignment, inline, onOpenChange, useTrapFocusWithTrigger = "off", shouldHoldScroll, stateFullChilds, role, ariaLabel, ariaLabelledby, alignmentsFn, recalculateOnScroll, closeOnScroll, recalculateTrigger = true, focusOnOpen = true }) => {
|
|
20
20
|
const popupRef = useRef(null);
|
|
21
21
|
const prevScroll = useRef(0);
|
|
22
22
|
const { dark } = useContext(themeContext);
|
|
@@ -44,14 +44,18 @@ export const Absolute = ({ isOpen, id, paddingX, paddingY, className, children,
|
|
|
44
44
|
return "";
|
|
45
45
|
};
|
|
46
46
|
const parent = useMemo(() => {
|
|
47
|
-
if (!isOpen || !recalculateOnScroll) {
|
|
47
|
+
if (!isOpen || (!recalculateOnScroll && !closeOnScroll)) {
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
return getScrollableParent(triggerRef.current);
|
|
51
|
-
}, [triggerRef, isOpen, recalculateOnScroll]);
|
|
51
|
+
}, [triggerRef, isOpen, recalculateOnScroll, closeOnScroll]);
|
|
52
52
|
const calculatePosition = useCallback(() => calculatePos(triggerRef, popupRef, paddingX, paddingY, inline, alignment, alignmentsFn, parent ? parent : undefined), [triggerRef, paddingX, paddingY, inline, alignment, alignmentsFn, popupRef, parent]);
|
|
53
|
+
const handleCloseOnScroll = useCallback(() => {
|
|
54
|
+
onOpenChange(false);
|
|
55
|
+
}, [onOpenChange]);
|
|
53
56
|
useResize(calculatePosition, isOpen);
|
|
54
|
-
useScroll(calculatePosition, isOpen, parent);
|
|
57
|
+
useScroll(calculatePosition, isOpen && !!recalculateOnScroll, parent);
|
|
58
|
+
useScroll(handleCloseOnScroll, isOpen && !!closeOnScroll, parent);
|
|
55
59
|
useLayoutEffect(calculatePosition, [isOpen, children, recalculateTrigger, calculatePosition]);
|
|
56
60
|
function handleEscape() {
|
|
57
61
|
onOpenChange(false);
|
package/esm/alertRaw/alertRaw.js
CHANGED
|
@@ -20,10 +20,10 @@ injectString("da-DK", "Close", "Luk");
|
|
|
20
20
|
injectString("de", "Close", "Schlie\xDFen");
|
|
21
21
|
injectString("en", "Close", "Close");
|
|
22
22
|
injectString("es", "Close", "Cerrar");
|
|
23
|
-
injectString("fi-FI", "Close", "
|
|
23
|
+
injectString("fi-FI", "Close", "Sulkea");
|
|
24
24
|
injectString("fr", "Close", "Fermer");
|
|
25
25
|
injectString("fr-FR", "Close", "Fermer");
|
|
26
|
-
injectString("hu-HU", "Close", "
|
|
26
|
+
injectString("hu-HU", "Close", "Bez\xE1r\xE1s");
|
|
27
27
|
injectString("id", "Close", "Tutup");
|
|
28
28
|
injectString("it", "Close", "Chiudere");
|
|
29
29
|
injectString("ja", "Close", "\u9589\u3058\u308B");
|
|
@@ -34,13 +34,13 @@ injectString("nl", "Close", "Sluiten");
|
|
|
34
34
|
injectString("pl", "Close", "Zamknij");
|
|
35
35
|
injectString("pt-BR", "Close", "Fechar");
|
|
36
36
|
injectString("pt-PT", "Close", "Fechar");
|
|
37
|
-
injectString("sk-SK", "Close", "
|
|
37
|
+
injectString("sk-SK", "Close", "Zatvori\u0165");
|
|
38
38
|
injectString("sv", "Close", "St\xE4ng");
|
|
39
39
|
injectString("th", "Close", "\u0E1B\u0E34\u0E14");
|
|
40
40
|
injectString("tr", "Close", "Kapat");
|
|
41
41
|
injectString("zh-Hans", "Close", "\u5173\u95ED");
|
|
42
42
|
injectString("zh-TW", "Close", "\u95DC\u9589");
|
|
43
|
-
injectString("ro-RO", "Close", "\xCEnchide
|
|
43
|
+
injectString("ro-RO", "Close", "\xCEnchide");
|
|
44
44
|
injectString("ar-SA", "Close", "\u0625\u063A\u0644\u0627\u0642");
|
|
45
45
|
const typedIcons = {
|
|
46
46
|
error: IconException,
|
|
@@ -32,7 +32,7 @@ export const AlertAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
if (animation === "left-right") {
|
|
35
|
-
ref.current.animate([{
|
|
35
|
+
ref.current.animate([{ insetInlineStart: "0%" }, { insetInlineStart: "120%" }], {
|
|
36
36
|
duration: 300,
|
|
37
37
|
iterations: 1,
|
|
38
38
|
delay: 0,
|
|
@@ -43,7 +43,7 @@ export const AlertAnimation = ({ id, children, isOpen, animation }) => {
|
|
|
43
43
|
};
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
ref.current.animate([{
|
|
46
|
+
ref.current.animate([{ insetInlineStart: "120%" }, { insetInlineStart: "0%" }], {
|
|
47
47
|
duration: 300,
|
|
48
48
|
iterations: 1,
|
|
49
49
|
delay: 0,
|