@pushwoosh/smart-components-kit 1.21.2 → 1.22.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/PickerSort/components/PickerSortMenu/PickerSortMenu.d.ts +1 -1
- package/PickerSort/components/PickerSortMenu/PickerSortMenu.js +7 -7
- package/PickerSort/polyglot/index.d.ts +1 -1
- package/PickerSort/polyglot/messages_ar.js +4 -3
- package/PickerSort/polyglot/messages_bn.js +4 -3
- package/PickerSort/polyglot/messages_de.js +3 -2
- package/PickerSort/polyglot/messages_en.js +4 -3
- package/PickerSort/polyglot/messages_es.js +4 -3
- package/PickerSort/polyglot/messages_fr.js +4 -3
- package/PickerSort/polyglot/messages_he.js +4 -3
- package/PickerSort/polyglot/messages_hi.js +4 -3
- package/PickerSort/polyglot/messages_ja.js +4 -3
- package/PickerSort/polyglot/messages_ko.js +4 -3
- package/PickerSort/polyglot/messages_pt.js +4 -3
- package/PickerSort/polyglot/messages_ru.js +4 -3
- package/PickerSort/polyglot/messages_th.js +3 -2
- package/PickerSort/polyglot/messages_zh.js +3 -2
- package/PickerSort/polyglot/types.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type PickerSortMenuProps } from './types';
|
|
3
|
-
/** Compact "⇅ <order>
|
|
3
|
+
/** Compact "⇅ Sort: <order>" button that lets the user pick the order of a picker list. */
|
|
4
4
|
export declare const PickerSortMenu: FC<PickerSortMenuProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DropdownMenuButton, DropdownMenuItem, DropdownMenuSection } from '@pushwoosh/dumb-components';
|
|
3
|
-
import {
|
|
3
|
+
import { SortIcon } from '@pushwoosh/kit-icons';
|
|
4
4
|
import { PICKER_SORT_ORDERS } from '../../constants';
|
|
5
5
|
import { ORDER_MESSAGES, useLang } from '../../polyglot';
|
|
6
|
-
/** Compact "⇅ <order>
|
|
6
|
+
/** Compact "⇅ Sort: <order>" button that lets the user pick the order of a picker list. */
|
|
7
7
|
export const PickerSortMenu = ({
|
|
8
8
|
value,
|
|
9
9
|
onChange,
|
|
@@ -11,6 +11,9 @@ export const PickerSortMenu = ({
|
|
|
11
11
|
isDisabled
|
|
12
12
|
}) => {
|
|
13
13
|
const lang = useLang();
|
|
14
|
+
const order = lang({
|
|
15
|
+
message: ORDER_MESSAGES[value]
|
|
16
|
+
});
|
|
14
17
|
return _jsx(DropdownMenuButton, {
|
|
15
18
|
color: "secondary",
|
|
16
19
|
view: "ghost",
|
|
@@ -19,12 +22,9 @@ export const PickerSortMenu = ({
|
|
|
19
22
|
size: "small",
|
|
20
23
|
type: "not-sorted"
|
|
21
24
|
}),
|
|
22
|
-
rightIcon: _jsx(DropdownIcon, {
|
|
23
|
-
direction: "down",
|
|
24
|
-
size: "small"
|
|
25
|
-
}),
|
|
26
25
|
label: lang({
|
|
27
|
-
message:
|
|
26
|
+
message: 'SMART.PICKER_SORT.LABEL',
|
|
27
|
+
order
|
|
28
28
|
}),
|
|
29
29
|
isDisabled: isDisabled,
|
|
30
30
|
menuPlacement: "bottom-end",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type PickerSortOrder } from '../types';
|
|
2
2
|
import { type PickerSortMessages } from './types';
|
|
3
3
|
export declare const Lang: import("react").FC<import("@pushwoosh/dumb-components/polyglot").LangProps<PickerSortMessages>>, useLang: () => (props: import("@pushwoosh/dumb-components/polyglot").LangProps<PickerSortMessages>) => string;
|
|
4
|
-
export declare const ORDER_MESSAGES: Record<PickerSortOrder, keyof PickerSortMessages
|
|
4
|
+
export declare const ORDER_MESSAGES: Record<PickerSortOrder, Extract<keyof PickerSortMessages, `SMART.PICKER_SORT.ORDER.${string}`>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'ترتيب حسب',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'الترتيب: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'الأحدث أولاً',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'الأقدم أولاً',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'آخر تحديث',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'أ-ي',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'ي-أ'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'সাজান',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'সাজানো: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'নতুন আগে',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'পুরনো আগে',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'সর্বশেষ আপডেট',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Sortieren nach',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Sortierung: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Neueste zuerst',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Älteste zuerst',
|
|
5
6
|
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Zuletzt aktualisiert',
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Sort by',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Sort: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Newest first',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Oldest first',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Last updated',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Ordenar por',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Orden: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Más recientes primero',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Más antiguos primero',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Última actualización',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Trier par',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Tri : {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Plus récents d’abord',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Plus anciens d’abord',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Dernière modification',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'מיון לפי',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'מיון: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'החדשים קודם',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'הישנים קודם',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'עודכן לאחרונה',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'א-ת',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'ת-א'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'क्रमबद्ध करें',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'क्रम: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'नए पहले',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'पुराने पहले',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'अंतिम अपडेट',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': '並べ替え',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': '並べ替え: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': '新しい順',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': '古い順',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '最終更新',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': '정렬',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': '정렬: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': '최신순',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': '오래된순',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '최종 업데이트',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Ordenar por',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Ordem: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Mais recentes primeiro',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Mais antigos primeiro',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Última atualização',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'Сортировка',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'Сортировка: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'Сначала новые',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'Сначала старые',
|
|
5
|
-
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
6
|
+
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'Последнее изменение',
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'А-Я',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Я-А'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': 'เรียงตาม',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': 'เรียง: {{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': 'ใหม่สุดก่อน',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': 'เก่าสุดก่อน',
|
|
5
6
|
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': 'อัปเดตล่าสุด',
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const messages = {
|
|
2
2
|
'SMART.PICKER_SORT.TITLE': '排序方式',
|
|
3
|
+
'SMART.PICKER_SORT.LABEL': '排序:{{order}}',
|
|
3
4
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': '最新优先',
|
|
4
5
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': '最早优先',
|
|
5
6
|
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': '最近更新',
|
|
6
|
-
'SMART.PICKER_SORT.ORDER.NAME_ASC': '
|
|
7
|
-
'SMART.PICKER_SORT.ORDER.NAME_DESC': '
|
|
7
|
+
'SMART.PICKER_SORT.ORDER.NAME_ASC': 'A-Z',
|
|
8
|
+
'SMART.PICKER_SORT.ORDER.NAME_DESC': 'Z-A'
|
|
8
9
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { NoParams } from '@pushwoosh/dumb-components/polyglot';
|
|
2
2
|
export type PickerSortMessages = {
|
|
3
3
|
'SMART.PICKER_SORT.TITLE': NoParams;
|
|
4
|
+
'SMART.PICKER_SORT.LABEL': {
|
|
5
|
+
order: string;
|
|
6
|
+
};
|
|
4
7
|
'SMART.PICKER_SORT.ORDER.CREATED_DESC': NoParams;
|
|
5
8
|
'SMART.PICKER_SORT.ORDER.CREATED_ASC': NoParams;
|
|
6
9
|
'SMART.PICKER_SORT.ORDER.UPDATED_DESC': NoParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/smart-components-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Stateful, data-connected React components shared by Pushwoosh micro-frontends",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@floating-ui/react-dom": "^2.1.2",
|
|
20
|
-
"@pushwoosh/dumb-components": "^3.
|
|
20
|
+
"@pushwoosh/dumb-components": "^3.4.0",
|
|
21
21
|
"@pushwoosh/kit-constants": "^2.1.1",
|
|
22
22
|
"@pushwoosh/kit-helpers": "^4.16.0",
|
|
23
23
|
"@pushwoosh/kit-icons": "^2.3.10",
|