@mendylanda/ui 0.3.2-dev.56.581b055ea0a9 → 0.3.2-dev.58.0ef9785a4046
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 -0
- package/dist/calendar-locale.d.ts +7 -0
- package/dist/calendar-locale.js +31 -0
- package/dist/class-names.js +1 -1
- package/dist/customization.d.ts +6 -1
- package/dist/customization.js +20 -2
- package/dist/filters/filter-bar.d.ts +1 -1
- package/dist/filters/filter-bar.js +56 -30
- package/dist/filters/filter-collection.js +3 -1
- package/dist/filters/filter-date-editor.js +5 -3
- package/dist/filters/filter-definition.d.ts +3 -2
- package/dist/filters/filter-definition.js +5 -6
- package/dist/filters/filter-menu-focus.js +1 -1
- package/dist/filters/filter-menu-panel.js +13 -9
- package/dist/filters/filter-select-editor.js +6 -4
- package/dist/filters/filter-text-editor.js +5 -3
- package/dist/filters/filters.js +8 -5
- package/dist/filters/index.d.ts +3 -0
- package/dist/filters/index.js +2 -0
- package/dist/filters/use-filter-options.d.ts +1 -1
- package/dist/filters/use-filter-options.js +13 -7
- package/dist/filters/use-filters.js +6 -2
- package/dist/filters/use-url-filters.js +9 -7
- package/dist/locale-context.d.ts +29 -0
- package/dist/locale-context.js +8 -0
- package/dist/locale.d.ts +37 -0
- package/dist/locale.js +26 -0
- package/dist/locales/en.d.ts +113 -0
- package/dist/locales/en.js +112 -0
- package/dist/locales/he.d.ts +116 -0
- package/dist/locales/he.js +116 -0
- package/dist/primitives/calendar.d.ts +1 -1
- package/dist/primitives/calendar.js +15 -10
- package/dist/primitives/dropdown-menu.js +7 -5
- package/dist/primitives/popover.js +3 -1
- package/dist/styles.css +39 -39
- package/dist/styles.tailwind3.css +39 -39
- package/dist/table/table-column-settings.js +27 -13
- package/dist/table/table-controls.js +21 -8
- package/dist/table/table-feedback.js +6 -3
- package/dist/table/table-frame.js +3 -1
- package/dist/table/table-layout.d.ts +1 -1
- package/dist/table/table-layout.js +5 -5
- package/dist/table/table-loading.js +3 -1
- package/dist/table/table-parts.js +15 -11
- package/dist/table/table-view.js +6 -4
- package/dist/table/use-column-window.js +1 -1
- package/dist/table/use-data-table.js +3 -0
- package/dist/table/use-table-interaction.js +12 -8
- package/package.json +8 -2
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { MendyLocale } from "../locale.js";
|
|
2
|
+
export declare const englishMessages: {
|
|
3
|
+
readonly search: "Search";
|
|
4
|
+
readonly searchOrFilter: "Search or filter";
|
|
5
|
+
readonly clearSearch: "Clear search";
|
|
6
|
+
readonly openFilters: "Open filters";
|
|
7
|
+
readonly addFilter: "Add filter";
|
|
8
|
+
readonly filters: "Filters";
|
|
9
|
+
readonly filterTypes: "Filter types";
|
|
10
|
+
readonly findFilter: "Find a filter";
|
|
11
|
+
readonly findFilterPlaceholder: "Find a filter…";
|
|
12
|
+
readonly noMatchingFilters: "No matching filters.";
|
|
13
|
+
readonly noFilters: "No filters available.";
|
|
14
|
+
readonly filterApplied: "Filter applied";
|
|
15
|
+
readonly position: "{index} of {count}";
|
|
16
|
+
readonly clear: "Clear";
|
|
17
|
+
readonly clearAll: "Clear all";
|
|
18
|
+
readonly clearFilter: "Clear {label} filter";
|
|
19
|
+
readonly applyFilter: "Apply {label} filter";
|
|
20
|
+
readonly editFilter: "Edit {label} filter";
|
|
21
|
+
readonly removeFilter: "Remove {label} filter";
|
|
22
|
+
readonly filterLabel: "{label} filter";
|
|
23
|
+
readonly setFilter: "Set {label} filter";
|
|
24
|
+
readonly choose: "Choose {label}";
|
|
25
|
+
readonly searchField: "Search {label}";
|
|
26
|
+
readonly any: "Any";
|
|
27
|
+
readonly more: "{count} more";
|
|
28
|
+
readonly andMore: "{values} and {count} more";
|
|
29
|
+
readonly loadingSelected: "Loading selected values";
|
|
30
|
+
readonly useToken: "Use {token} as:";
|
|
31
|
+
readonly keepInSearch: "Keep in search";
|
|
32
|
+
readonly loadingOptions: "Loading options…";
|
|
33
|
+
readonly noOptions: "No options found.";
|
|
34
|
+
readonly retry: "Retry";
|
|
35
|
+
readonly loadMore: "Load more";
|
|
36
|
+
readonly invalidValue: "Enter a valid value.";
|
|
37
|
+
readonly invalidFilter: "This filter value is invalid.";
|
|
38
|
+
readonly minimum: "Minimum";
|
|
39
|
+
readonly maximum: "Maximum";
|
|
40
|
+
readonly saveHint: "Enter to save. Shift+Enter for a new line.";
|
|
41
|
+
readonly dateHint: "Pick a day, or two dates for a range.";
|
|
42
|
+
readonly clearDate: "Clear date";
|
|
43
|
+
readonly optionsError: "Options could not be loaded.";
|
|
44
|
+
readonly unavailable: "Unavailable ({id})";
|
|
45
|
+
readonly numberRangeError: "Minimum must not exceed maximum.";
|
|
46
|
+
readonly dateRangeError: "Start date must not follow end date.";
|
|
47
|
+
readonly persistError: "Filters could not be saved in this browser. Keep this page open to retain them.";
|
|
48
|
+
readonly clearPersistError: "Remembered filters could not be cleared in this browser.";
|
|
49
|
+
readonly urlError: "The URL could not be updated. Filters may not survive a reload.";
|
|
50
|
+
readonly missingSession: "This link refers to filters saved in another browser session. The full selection is unavailable.";
|
|
51
|
+
readonly sessionOnly: "This selection is saved in this browser session. The URL does not contain the full filters.";
|
|
52
|
+
readonly dataTable: "Data table";
|
|
53
|
+
readonly pagination: "Table pagination";
|
|
54
|
+
readonly page: "Page {page}";
|
|
55
|
+
readonly pageOf: "Page {page} of {count}";
|
|
56
|
+
readonly rowsPerPage: "{count} rows";
|
|
57
|
+
readonly previousPage: "Previous page";
|
|
58
|
+
readonly nextPage: "Next page";
|
|
59
|
+
readonly selectRows: "Select rows";
|
|
60
|
+
readonly selectLoaded: "Select loaded rows";
|
|
61
|
+
readonly selectRow: "Select row {id}";
|
|
62
|
+
readonly selectedActions: "Selected row actions";
|
|
63
|
+
readonly selectedCount: "{count} selected";
|
|
64
|
+
readonly clearSelection: "Clear selection";
|
|
65
|
+
readonly saveError: "Could not save changes.";
|
|
66
|
+
readonly savedViews: "Saved views";
|
|
67
|
+
readonly apply: "Apply";
|
|
68
|
+
readonly delete: "Delete";
|
|
69
|
+
readonly noSavedViews: "No saved views";
|
|
70
|
+
readonly newViewName: "New view name";
|
|
71
|
+
readonly saveView: "Save view";
|
|
72
|
+
readonly loadingRows: "Loading rows";
|
|
73
|
+
readonly refreshError: "Could not refresh rows.";
|
|
74
|
+
readonly loadRowsError: "Could not load rows.";
|
|
75
|
+
readonly noPageResults: "No results on this page.";
|
|
76
|
+
readonly firstPage: "Go to first page";
|
|
77
|
+
readonly noFilterResults: "No results match your filters.";
|
|
78
|
+
readonly clearFilters: "Clear filters";
|
|
79
|
+
readonly noRows: "No rows yet.";
|
|
80
|
+
readonly loadingMore: "Loading more…";
|
|
81
|
+
readonly retryMore: "Retry loading more";
|
|
82
|
+
readonly copied: "Selected cells copied";
|
|
83
|
+
readonly copyError: "Could not copy selected cells";
|
|
84
|
+
readonly columnSettings: "Column settings";
|
|
85
|
+
readonly columnSettingsHint: "Drag to reorder, toggle visibility, and pin columns.";
|
|
86
|
+
readonly hiddenColumns: "{count} hidden";
|
|
87
|
+
readonly pinnedLeft: "{count} pinned left";
|
|
88
|
+
readonly pinnedRight: "{count} pinned right";
|
|
89
|
+
readonly noChanges: "No changes";
|
|
90
|
+
readonly resetColumns: "Reset columns";
|
|
91
|
+
readonly reset: "Reset";
|
|
92
|
+
readonly pinLeft: "Pin {label} to left";
|
|
93
|
+
readonly pinRight: "Pin {label} to right";
|
|
94
|
+
readonly unpin: "Unpin {label}";
|
|
95
|
+
readonly reorder: "Reorder {label}";
|
|
96
|
+
readonly dragHint: "Drag to reorder. Press Space to move with arrow keys.";
|
|
97
|
+
readonly dragInstructions: "Press Space to pick up a column. Use Up and Down to move it, Space to drop, or Escape to cancel.";
|
|
98
|
+
readonly dragStart: "Column picked up at position {index}.";
|
|
99
|
+
readonly dragMove: "Column moved to position {index}.";
|
|
100
|
+
readonly dragEnd: "Column dropped at position {index}.";
|
|
101
|
+
readonly dragCancel: "Column move canceled.";
|
|
102
|
+
readonly showColumn: "Show {label}";
|
|
103
|
+
readonly resizeColumn: "Resize {label}";
|
|
104
|
+
readonly previousMonth: "Go to the Previous Month";
|
|
105
|
+
readonly nextMonth: "Go to the Next Month";
|
|
106
|
+
readonly monthDropdown: "Choose the Month";
|
|
107
|
+
readonly yearDropdown: "Choose the Year";
|
|
108
|
+
readonly weekNumber: "Week {week}";
|
|
109
|
+
readonly weekNumberHeader: "Week Number";
|
|
110
|
+
readonly today: "Today";
|
|
111
|
+
readonly selected: "Selected";
|
|
112
|
+
};
|
|
113
|
+
export declare const en: MendyLocale;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export const englishMessages = {
|
|
2
|
+
search: "Search",
|
|
3
|
+
searchOrFilter: "Search or filter",
|
|
4
|
+
clearSearch: "Clear search",
|
|
5
|
+
openFilters: "Open filters",
|
|
6
|
+
addFilter: "Add filter",
|
|
7
|
+
filters: "Filters",
|
|
8
|
+
filterTypes: "Filter types",
|
|
9
|
+
findFilter: "Find a filter",
|
|
10
|
+
findFilterPlaceholder: "Find a filter…",
|
|
11
|
+
noMatchingFilters: "No matching filters.",
|
|
12
|
+
noFilters: "No filters available.",
|
|
13
|
+
filterApplied: "Filter applied",
|
|
14
|
+
position: "{index} of {count}",
|
|
15
|
+
clear: "Clear",
|
|
16
|
+
clearAll: "Clear all",
|
|
17
|
+
clearFilter: "Clear {label} filter",
|
|
18
|
+
applyFilter: "Apply {label} filter",
|
|
19
|
+
editFilter: "Edit {label} filter",
|
|
20
|
+
removeFilter: "Remove {label} filter",
|
|
21
|
+
filterLabel: "{label} filter",
|
|
22
|
+
setFilter: "Set {label} filter",
|
|
23
|
+
choose: "Choose {label}",
|
|
24
|
+
searchField: "Search {label}",
|
|
25
|
+
any: "Any",
|
|
26
|
+
more: "{count} more",
|
|
27
|
+
andMore: "{values} and {count} more",
|
|
28
|
+
loadingSelected: "Loading selected values",
|
|
29
|
+
useToken: "Use {token} as:",
|
|
30
|
+
keepInSearch: "Keep in search",
|
|
31
|
+
loadingOptions: "Loading options…",
|
|
32
|
+
noOptions: "No options found.",
|
|
33
|
+
retry: "Retry",
|
|
34
|
+
loadMore: "Load more",
|
|
35
|
+
invalidValue: "Enter a valid value.",
|
|
36
|
+
invalidFilter: "This filter value is invalid.",
|
|
37
|
+
minimum: "Minimum",
|
|
38
|
+
maximum: "Maximum",
|
|
39
|
+
saveHint: "Enter to save. Shift+Enter for a new line.",
|
|
40
|
+
dateHint: "Pick a day, or two dates for a range.",
|
|
41
|
+
clearDate: "Clear date",
|
|
42
|
+
optionsError: "Options could not be loaded.",
|
|
43
|
+
unavailable: "Unavailable ({id})",
|
|
44
|
+
numberRangeError: "Minimum must not exceed maximum.",
|
|
45
|
+
dateRangeError: "Start date must not follow end date.",
|
|
46
|
+
persistError: "Filters could not be saved in this browser. Keep this page open to retain them.",
|
|
47
|
+
clearPersistError: "Remembered filters could not be cleared in this browser.",
|
|
48
|
+
urlError: "The URL could not be updated. Filters may not survive a reload.",
|
|
49
|
+
missingSession: "This link refers to filters saved in another browser session. The full selection is unavailable.",
|
|
50
|
+
sessionOnly: "This selection is saved in this browser session. The URL does not contain the full filters.",
|
|
51
|
+
dataTable: "Data table",
|
|
52
|
+
pagination: "Table pagination",
|
|
53
|
+
page: "Page {page}",
|
|
54
|
+
pageOf: "Page {page} of {count}",
|
|
55
|
+
rowsPerPage: "{count} rows",
|
|
56
|
+
previousPage: "Previous page",
|
|
57
|
+
nextPage: "Next page",
|
|
58
|
+
selectRows: "Select rows",
|
|
59
|
+
selectLoaded: "Select loaded rows",
|
|
60
|
+
selectRow: "Select row {id}",
|
|
61
|
+
selectedActions: "Selected row actions",
|
|
62
|
+
selectedCount: "{count} selected",
|
|
63
|
+
clearSelection: "Clear selection",
|
|
64
|
+
saveError: "Could not save changes.",
|
|
65
|
+
savedViews: "Saved views",
|
|
66
|
+
apply: "Apply",
|
|
67
|
+
delete: "Delete",
|
|
68
|
+
noSavedViews: "No saved views",
|
|
69
|
+
newViewName: "New view name",
|
|
70
|
+
saveView: "Save view",
|
|
71
|
+
loadingRows: "Loading rows",
|
|
72
|
+
refreshError: "Could not refresh rows.",
|
|
73
|
+
loadRowsError: "Could not load rows.",
|
|
74
|
+
noPageResults: "No results on this page.",
|
|
75
|
+
firstPage: "Go to first page",
|
|
76
|
+
noFilterResults: "No results match your filters.",
|
|
77
|
+
clearFilters: "Clear filters",
|
|
78
|
+
noRows: "No rows yet.",
|
|
79
|
+
loadingMore: "Loading more…",
|
|
80
|
+
retryMore: "Retry loading more",
|
|
81
|
+
copied: "Selected cells copied",
|
|
82
|
+
copyError: "Could not copy selected cells",
|
|
83
|
+
columnSettings: "Column settings",
|
|
84
|
+
columnSettingsHint: "Drag to reorder, toggle visibility, and pin columns.",
|
|
85
|
+
hiddenColumns: "{count} hidden",
|
|
86
|
+
pinnedLeft: "{count} pinned left",
|
|
87
|
+
pinnedRight: "{count} pinned right",
|
|
88
|
+
noChanges: "No changes",
|
|
89
|
+
resetColumns: "Reset columns",
|
|
90
|
+
reset: "Reset",
|
|
91
|
+
pinLeft: "Pin {label} to left",
|
|
92
|
+
pinRight: "Pin {label} to right",
|
|
93
|
+
unpin: "Unpin {label}",
|
|
94
|
+
reorder: "Reorder {label}",
|
|
95
|
+
dragHint: "Drag to reorder. Press Space to move with arrow keys.",
|
|
96
|
+
dragInstructions: "Press Space to pick up a column. Use Up and Down to move it, Space to drop, or Escape to cancel.",
|
|
97
|
+
dragStart: "Column picked up at position {index}.",
|
|
98
|
+
dragMove: "Column moved to position {index}.",
|
|
99
|
+
dragEnd: "Column dropped at position {index}.",
|
|
100
|
+
dragCancel: "Column move canceled.",
|
|
101
|
+
showColumn: "Show {label}",
|
|
102
|
+
resizeColumn: "Resize {label}",
|
|
103
|
+
previousMonth: "Go to the Previous Month",
|
|
104
|
+
nextMonth: "Go to the Next Month",
|
|
105
|
+
monthDropdown: "Choose the Month",
|
|
106
|
+
yearDropdown: "Choose the Year",
|
|
107
|
+
weekNumber: "Week {week}",
|
|
108
|
+
weekNumberHeader: "Week Number",
|
|
109
|
+
today: "Today",
|
|
110
|
+
selected: "Selected",
|
|
111
|
+
};
|
|
112
|
+
export const en = { code: "en-US", direction: "ltr", messages: englishMessages };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/** Hebrew (Israel). Kept separate so English consumers do not download it. */
|
|
2
|
+
export declare const he: {
|
|
3
|
+
code: string;
|
|
4
|
+
direction: "rtl";
|
|
5
|
+
messages: {
|
|
6
|
+
search: string;
|
|
7
|
+
searchOrFilter: string;
|
|
8
|
+
clearSearch: string;
|
|
9
|
+
openFilters: string;
|
|
10
|
+
addFilter: string;
|
|
11
|
+
filters: string;
|
|
12
|
+
filterTypes: string;
|
|
13
|
+
findFilter: string;
|
|
14
|
+
findFilterPlaceholder: string;
|
|
15
|
+
noMatchingFilters: string;
|
|
16
|
+
noFilters: string;
|
|
17
|
+
filterApplied: string;
|
|
18
|
+
position: string;
|
|
19
|
+
clear: string;
|
|
20
|
+
clearAll: string;
|
|
21
|
+
clearFilter: string;
|
|
22
|
+
applyFilter: string;
|
|
23
|
+
editFilter: string;
|
|
24
|
+
removeFilter: string;
|
|
25
|
+
filterLabel: string;
|
|
26
|
+
setFilter: string;
|
|
27
|
+
choose: string;
|
|
28
|
+
searchField: string;
|
|
29
|
+
any: string;
|
|
30
|
+
more: string;
|
|
31
|
+
andMore: string;
|
|
32
|
+
loadingSelected: string;
|
|
33
|
+
useToken: string;
|
|
34
|
+
keepInSearch: string;
|
|
35
|
+
loadingOptions: string;
|
|
36
|
+
noOptions: string;
|
|
37
|
+
retry: string;
|
|
38
|
+
loadMore: string;
|
|
39
|
+
invalidValue: string;
|
|
40
|
+
invalidFilter: string;
|
|
41
|
+
minimum: string;
|
|
42
|
+
maximum: string;
|
|
43
|
+
saveHint: string;
|
|
44
|
+
dateHint: string;
|
|
45
|
+
clearDate: string;
|
|
46
|
+
optionsError: string;
|
|
47
|
+
unavailable: string;
|
|
48
|
+
numberRangeError: string;
|
|
49
|
+
dateRangeError: string;
|
|
50
|
+
persistError: string;
|
|
51
|
+
clearPersistError: string;
|
|
52
|
+
urlError: string;
|
|
53
|
+
missingSession: string;
|
|
54
|
+
sessionOnly: string;
|
|
55
|
+
dataTable: string;
|
|
56
|
+
pagination: string;
|
|
57
|
+
page: string;
|
|
58
|
+
pageOf: string;
|
|
59
|
+
rowsPerPage: string;
|
|
60
|
+
previousPage: string;
|
|
61
|
+
nextPage: string;
|
|
62
|
+
selectRows: string;
|
|
63
|
+
selectLoaded: string;
|
|
64
|
+
selectRow: string;
|
|
65
|
+
selectedActions: string;
|
|
66
|
+
selectedCount: string;
|
|
67
|
+
clearSelection: string;
|
|
68
|
+
saveError: string;
|
|
69
|
+
savedViews: string;
|
|
70
|
+
apply: string;
|
|
71
|
+
delete: string;
|
|
72
|
+
noSavedViews: string;
|
|
73
|
+
newViewName: string;
|
|
74
|
+
saveView: string;
|
|
75
|
+
loadingRows: string;
|
|
76
|
+
refreshError: string;
|
|
77
|
+
loadRowsError: string;
|
|
78
|
+
noPageResults: string;
|
|
79
|
+
firstPage: string;
|
|
80
|
+
noFilterResults: string;
|
|
81
|
+
clearFilters: string;
|
|
82
|
+
noRows: string;
|
|
83
|
+
loadingMore: string;
|
|
84
|
+
retryMore: string;
|
|
85
|
+
copied: string;
|
|
86
|
+
copyError: string;
|
|
87
|
+
columnSettings: string;
|
|
88
|
+
columnSettingsHint: string;
|
|
89
|
+
hiddenColumns: string;
|
|
90
|
+
pinnedLeft: string;
|
|
91
|
+
pinnedRight: string;
|
|
92
|
+
noChanges: string;
|
|
93
|
+
resetColumns: string;
|
|
94
|
+
reset: string;
|
|
95
|
+
pinLeft: string;
|
|
96
|
+
pinRight: string;
|
|
97
|
+
unpin: string;
|
|
98
|
+
reorder: string;
|
|
99
|
+
dragHint: string;
|
|
100
|
+
dragInstructions: string;
|
|
101
|
+
dragStart: string;
|
|
102
|
+
dragMove: string;
|
|
103
|
+
dragEnd: string;
|
|
104
|
+
dragCancel: string;
|
|
105
|
+
showColumn: string;
|
|
106
|
+
resizeColumn: string;
|
|
107
|
+
previousMonth: string;
|
|
108
|
+
nextMonth: string;
|
|
109
|
+
monthDropdown: string;
|
|
110
|
+
yearDropdown: string;
|
|
111
|
+
weekNumber: string;
|
|
112
|
+
weekNumberHeader: string;
|
|
113
|
+
today: string;
|
|
114
|
+
selected: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/** Hebrew (Israel). Kept separate so English consumers do not download it. */
|
|
2
|
+
export const he = {
|
|
3
|
+
code: "he-IL",
|
|
4
|
+
direction: "rtl",
|
|
5
|
+
messages: {
|
|
6
|
+
search: "חיפוש",
|
|
7
|
+
searchOrFilter: "חיפוש או סינון",
|
|
8
|
+
clearSearch: "ניקוי החיפוש",
|
|
9
|
+
openFilters: "פתיחת מסננים",
|
|
10
|
+
addFilter: "הוספת מסנן",
|
|
11
|
+
filters: "מסננים",
|
|
12
|
+
filterTypes: "סוגי מסננים",
|
|
13
|
+
findFilter: "חיפוש מסנן",
|
|
14
|
+
findFilterPlaceholder: "חיפוש מסנן…",
|
|
15
|
+
noMatchingFilters: "לא נמצאו מסננים תואמים.",
|
|
16
|
+
noFilters: "אין מסננים זמינים.",
|
|
17
|
+
filterApplied: "המסנן פעיל",
|
|
18
|
+
position: "{index} מתוך {count}",
|
|
19
|
+
clear: "ניקוי",
|
|
20
|
+
clearAll: "ניקוי הכול",
|
|
21
|
+
clearFilter: "ניקוי המסנן {label}",
|
|
22
|
+
applyFilter: "החלת המסנן {label}",
|
|
23
|
+
editFilter: "עריכת המסנן {label}",
|
|
24
|
+
removeFilter: "הסרת המסנן {label}",
|
|
25
|
+
filterLabel: "מסנן {label}",
|
|
26
|
+
setFilter: "הגדרת המסנן {label}",
|
|
27
|
+
choose: "בחירת {label}",
|
|
28
|
+
searchField: "חיפוש {label}",
|
|
29
|
+
any: "ללא הגבלה",
|
|
30
|
+
more: "עוד {count}",
|
|
31
|
+
andMore: "{values} ועוד {count}",
|
|
32
|
+
loadingSelected: "טעינת הערכים שנבחרו",
|
|
33
|
+
useToken: "שימוש ב־{token} בתור:",
|
|
34
|
+
keepInSearch: "השארה בחיפוש",
|
|
35
|
+
loadingOptions: "טעינת אפשרויות…",
|
|
36
|
+
noOptions: "לא נמצאו אפשרויות.",
|
|
37
|
+
retry: "ניסיון נוסף",
|
|
38
|
+
loadMore: "טעינת פריטים נוספים",
|
|
39
|
+
invalidValue: "יש להזין ערך תקין.",
|
|
40
|
+
invalidFilter: "ערך המסנן אינו תקין.",
|
|
41
|
+
minimum: "מינימום",
|
|
42
|
+
maximum: "מקסימום",
|
|
43
|
+
saveHint: "Enter לשמירה. Shift+Enter לשורה חדשה.",
|
|
44
|
+
dateHint: "יש לבחור יום, או שני תאריכים לטווח.",
|
|
45
|
+
clearDate: "ניקוי התאריך",
|
|
46
|
+
optionsError: "לא ניתן לטעון את האפשרויות.",
|
|
47
|
+
unavailable: "לא זמין ({id})",
|
|
48
|
+
numberRangeError: "המינימום אינו יכול להיות גדול מהמקסימום.",
|
|
49
|
+
dateRangeError: "תאריך ההתחלה אינו יכול להיות מאוחר מתאריך הסיום.",
|
|
50
|
+
persistError: "לא ניתן לשמור את המסננים בדפדפן זה. יש להשאיר את הדף פתוח כדי לשמור על הבחירה.",
|
|
51
|
+
clearPersistError: "לא ניתן לנקות את המסננים השמורים בדפדפן זה.",
|
|
52
|
+
urlError: "לא ניתן לעדכן את כתובת הדף. ייתכן שהמסננים לא יישמרו לאחר טעינה מחדש.",
|
|
53
|
+
missingSession: "קישור זה מפנה למסננים שנשמרו בהפעלה אחרת של הדפדפן. הבחירה המלאה אינה זמינה.",
|
|
54
|
+
sessionOnly: "הבחירה נשמרת בהפעלה הנוכחית של הדפדפן. הכתובת אינה מכילה את כל המסננים.",
|
|
55
|
+
dataTable: "טבלת נתונים",
|
|
56
|
+
pagination: "ניווט בין דפי הטבלה",
|
|
57
|
+
page: "עמוד {page}",
|
|
58
|
+
pageOf: "עמוד {page} מתוך {count}",
|
|
59
|
+
rowsPerPage: "{count} שורות",
|
|
60
|
+
previousPage: "העמוד הקודם",
|
|
61
|
+
nextPage: "העמוד הבא",
|
|
62
|
+
selectRows: "בחירת שורות",
|
|
63
|
+
selectLoaded: "בחירת השורות שנטענו",
|
|
64
|
+
selectRow: "בחירת שורה {id}",
|
|
65
|
+
selectedActions: "פעולות על השורות שנבחרו",
|
|
66
|
+
selectedCount: "נבחרו: {count}",
|
|
67
|
+
clearSelection: "ניקוי הבחירה",
|
|
68
|
+
saveError: "לא ניתן לשמור את השינויים.",
|
|
69
|
+
savedViews: "תצוגות שמורות",
|
|
70
|
+
apply: "החלה",
|
|
71
|
+
delete: "מחיקה",
|
|
72
|
+
noSavedViews: "אין תצוגות שמורות",
|
|
73
|
+
newViewName: "שם התצוגה החדשה",
|
|
74
|
+
saveView: "שמירת תצוגה",
|
|
75
|
+
loadingRows: "טעינת שורות",
|
|
76
|
+
refreshError: "לא ניתן לרענן את השורות.",
|
|
77
|
+
loadRowsError: "לא ניתן לטעון את השורות.",
|
|
78
|
+
noPageResults: "אין תוצאות בעמוד זה.",
|
|
79
|
+
firstPage: "מעבר לעמוד הראשון",
|
|
80
|
+
noFilterResults: "אין תוצאות התואמות למסננים.",
|
|
81
|
+
clearFilters: "ניקוי המסננים",
|
|
82
|
+
noRows: "אין שורות עדיין.",
|
|
83
|
+
loadingMore: "טעינת פריטים נוספים…",
|
|
84
|
+
retryMore: "ניסיון נוסף לטעינת פריטים",
|
|
85
|
+
copied: "התאים שנבחרו הועתקו",
|
|
86
|
+
copyError: "לא ניתן להעתיק את התאים שנבחרו",
|
|
87
|
+
columnSettings: "הגדרות עמודות",
|
|
88
|
+
columnSettingsHint: "ניתן לגרור לשינוי הסדר, להציג או להסתיר עמודות ולהצמיד אותן.",
|
|
89
|
+
hiddenColumns: "מוסתרות: {count}",
|
|
90
|
+
pinnedLeft: "מוצמדות לשמאל: {count}",
|
|
91
|
+
pinnedRight: "מוצמדות לימין: {count}",
|
|
92
|
+
noChanges: "ללא שינויים",
|
|
93
|
+
resetColumns: "איפוס העמודות",
|
|
94
|
+
reset: "איפוס",
|
|
95
|
+
pinLeft: "הצמדת {label} לשמאל",
|
|
96
|
+
pinRight: "הצמדת {label} לימין",
|
|
97
|
+
unpin: "ביטול ההצמדה של {label}",
|
|
98
|
+
reorder: "שינוי הסדר של {label}",
|
|
99
|
+
dragHint: "ניתן לגרור לשינוי הסדר. יש ללחוץ על רווח כדי להזיז באמצעות מקשי החצים.",
|
|
100
|
+
dragInstructions: "יש ללחוץ על רווח כדי לבחור עמודה להזזה. החצים למעלה ולמטה משנים את המיקום, רווח מאשר ו־Escape מבטל.",
|
|
101
|
+
dragStart: "נבחרה עמודה להזזה במיקום {index}.",
|
|
102
|
+
dragMove: "העמודה הועברה למיקום {index}.",
|
|
103
|
+
dragEnd: "העמודה הוצבה במיקום {index}.",
|
|
104
|
+
dragCancel: "הזזת העמודה בוטלה.",
|
|
105
|
+
showColumn: "הצגת {label}",
|
|
106
|
+
resizeColumn: "שינוי הרוחב של {label}",
|
|
107
|
+
previousMonth: "מעבר לחודש הקודם",
|
|
108
|
+
nextMonth: "מעבר לחודש הבא",
|
|
109
|
+
monthDropdown: "בחירת חודש",
|
|
110
|
+
yearDropdown: "בחירת שנה",
|
|
111
|
+
weekNumber: "שבוע {week}",
|
|
112
|
+
weekNumberHeader: "מספר שבוע",
|
|
113
|
+
today: "היום",
|
|
114
|
+
selected: "נבחר",
|
|
115
|
+
},
|
|
116
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DayPicker, type DayButton } from "react-day-picker";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, labels, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useMendyLocale } from "../locale-context.js";
|
|
4
|
+
import { calendarLocale } from "../calendar-locale.js";
|
|
3
5
|
import * as React from "react";
|
|
4
6
|
import { format } from "date-fns";
|
|
5
7
|
import { cn } from "../utils.js";
|
|
6
8
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
7
9
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
8
10
|
import { Button, buttonVariants } from "./button.js";
|
|
9
|
-
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
11
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, labels, components, ...props }) {
|
|
12
|
+
const locale = useMendyLocale();
|
|
13
|
+
const localized = React.useMemo(() => calendarLocale(locale, props.timeZone), [locale, props.timeZone]);
|
|
10
14
|
const defaultClassNames = getDefaultClassNames();
|
|
11
|
-
return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("group/calendar mui-5b272f3c5076 mui-094f5333853b mui-d80b6593dae5 mui-b8293c91796c mui-8dd7e6b42262", "mui-13858191ca50", "mui-a324a7f99932", className), captionLayout: captionLayout, formatters: {
|
|
12
|
-
formatMonthDropdown: (date) => date.toLocaleString(
|
|
15
|
+
return (_jsx(DayPicker, { weekStartsOn: locale.weekStartsOn, firstWeekContainsDate: locale.firstWeekContainsDate, dir: locale.direction, lang: locale.code, showOutsideDays: showOutsideDays, className: cn("group/calendar mui-5b272f3c5076 mui-094f5333853b mui-d80b6593dae5 mui-b8293c91796c mui-8dd7e6b42262", "mui-13858191ca50", "mui-a324a7f99932", className), captionLayout: captionLayout, formatters: {
|
|
16
|
+
formatMonthDropdown: (date) => date.toLocaleString(locale.code, { month: "short" }),
|
|
17
|
+
...(locale.configured ? localized.formatters : {}),
|
|
13
18
|
...formatters,
|
|
14
|
-
}, classNames: {
|
|
19
|
+
}, labels: { ...(locale.configured ? localized.labels : {}), ...labels }, classNames: {
|
|
15
20
|
root: cn("mui-8cfb5a42ef9f", defaultClassNames.root),
|
|
16
21
|
months: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-302c0d124a94 mui-90fc3ec35a37 mui-56760b222da0", defaultClassNames.months),
|
|
17
22
|
month: cn("mui-222f930b8752 mui-58d0413dd93c mui-302c0d124a94 mui-90fc3ec35a37", defaultClassNames.month),
|
|
@@ -23,18 +28,18 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
23
28
|
dropdown_root: cn("mui-d2d9e1f13413 mui-3fa8c572949b mui-4f1a55de40bc mui-1267095cdeb7 mui-7de07d413c13 mui-7eb7501a2ef0 mui-d0449753ba7b mui-fc19c8471f34", defaultClassNames.dropdown_root),
|
|
24
29
|
dropdown: cn("mui-747355bdc2a2 mui-ce13093ad8c9 mui-e593c38256e0 mui-94f91922a10e", defaultClassNames.dropdown),
|
|
25
30
|
caption_label: cn("mui-daaac3fbf55e mui-78905c9e865c", captionLayout === "label"
|
|
26
|
-
? "mui-c74ab393b96d" : "mui-222f930b8752 mui-1fb07b38c63b mui-71556df3b421 mui-19e97f3f40e6 mui-3fa8c572949b mui-
|
|
31
|
+
? "mui-c74ab393b96d" : "mui-222f930b8752 mui-1fb07b38c63b mui-71556df3b421 mui-19e97f3f40e6 mui-3fa8c572949b mui-b15eee699c4b mui-6dd4e62564b2 mui-c74ab393b96d mui-eb740dd32318 mui-019fd73c95db", defaultClassNames.caption_label),
|
|
27
32
|
month_grid: cn("mui-58d0413dd93c mui-215061302c50", defaultClassNames.month_grid),
|
|
28
33
|
weekdays: cn("mui-222f930b8752", defaultClassNames.weekdays),
|
|
29
34
|
weekday: cn("mui-7bd5bab6d7f4 mui-3fa8c572949b mui-5f120ad4b50b mui-52101fc7d8bb mui-35f35c41d134 mui-78905c9e865c", defaultClassNames.weekday),
|
|
30
35
|
week: cn("mui-f28fea81a5cd mui-222f930b8752 mui-58d0413dd93c", defaultClassNames.week),
|
|
31
36
|
week_number_header: cn("mui-d48fe95d4da8 mui-78905c9e865c", defaultClassNames.week_number_header),
|
|
32
37
|
week_number: cn("mui-5f120ad4b50b mui-35f35c41d134 mui-78905c9e865c", defaultClassNames.week_number),
|
|
33
|
-
day: cn("mui-d9c5891363f9 mui-d2d9e1f13413 mui-129d6f9b1e07 mui-57c930dc1c31 mui-58d0413dd93c mui-04760bcd507f mui-05ab12448317 mui-78905c9e865c mui-
|
|
34
|
-
? "mui-
|
|
35
|
-
range_start: cn("mui-
|
|
38
|
+
day: cn("mui-d9c5891363f9 mui-d2d9e1f13413 mui-129d6f9b1e07 mui-57c930dc1c31 mui-58d0413dd93c mui-04760bcd507f mui-05ab12448317 mui-78905c9e865c mui-e9494a526550", props.showWeekNumber
|
|
39
|
+
? "mui-167d036894df" : "mui-9b9b154fb4bf", defaultClassNames.day),
|
|
40
|
+
range_start: cn("mui-7efd3a0ebfc6 mui-292affc1f780", defaultClassNames.range_start),
|
|
36
41
|
range_middle: cn("mui-52417259a4f5", defaultClassNames.range_middle),
|
|
37
|
-
range_end: cn("mui-
|
|
42
|
+
range_end: cn("mui-7f3780751c2e mui-292affc1f780", defaultClassNames.range_end),
|
|
38
43
|
today: cn("mui-3fa8c572949b mui-cc310a330231 mui-b7ff49878425 mui-d9bdd2c94504 mui-3cc0d07ef843", defaultClassNames.today),
|
|
39
44
|
outside: cn("mui-35f35c41d134 mui-7d900a71e5ba", defaultClassNames.outside),
|
|
40
45
|
disabled: cn("mui-35f35c41d134 mui-0b5a4d1257ab", defaultClassNames.disabled),
|
|
@@ -70,6 +75,6 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
70
75
|
return (_jsx(Button, { ref: ref, variant: "ghost", size: "icon", "data-day": format(day.date, "yyyy-MM-dd"), "data-selected-single": modifiers.selected &&
|
|
71
76
|
!modifiers.range_start &&
|
|
72
77
|
!modifiers.range_end &&
|
|
73
|
-
!modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("mui-222f930b8752 mui-129d6f9b1e07 mui-4dad94bd15e3 mui-58d0413dd93c mui-1458e495e3ae mui-302c0d124a94 mui-19e97f3f40e6 mui-761cdb81bddb mui-52101fc7d8bb mui-60052b901494 mui-3f96bf138f7b mui-d39eb62b8363 mui-5892a880410a mui-31b75c623c06 mui-96308b55e0d6 mui-
|
|
78
|
+
!modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("mui-222f930b8752 mui-129d6f9b1e07 mui-4dad94bd15e3 mui-58d0413dd93c mui-1458e495e3ae mui-302c0d124a94 mui-19e97f3f40e6 mui-761cdb81bddb mui-52101fc7d8bb mui-60052b901494 mui-3f96bf138f7b mui-d39eb62b8363 mui-5892a880410a mui-31b75c623c06 mui-96308b55e0d6 mui-35468f495139 mui-714051e55e8e mui-c764cebcd540 mui-05ec0700cd48 mui-5fb598fb06f4 mui-0813905aa141 mui-8020e31bff67 mui-6143f152715b mui-f5460d79341c mui-421a7d3e6631 mui-a39af81d518c mui-b6991ab170de mui-b2786f463a62 mui-ba417cf466b0 mui-829c8ef4f9c5", defaultClassNames.day, className), ...props }));
|
|
74
79
|
}
|
|
75
80
|
export { Calendar, CalendarDayButton };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMendyLocale } from "../locale-context.js";
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
import { useMendyUI } from "../customization.js";
|
|
5
6
|
import { cn } from "../utils.js";
|
|
@@ -16,13 +17,14 @@ function DropdownMenuTrigger({ ...props }) {
|
|
|
16
17
|
}
|
|
17
18
|
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
18
19
|
const { portalContainer } = useMendyUI();
|
|
19
|
-
|
|
20
|
+
const locale = useMendyLocale();
|
|
21
|
+
return (_jsx(DropdownMenuPrimitive.Portal, { container: portalContainer, children: _jsx(DropdownMenuPrimitive.Content, { "data-mendy-ui": "", "data-slot": "dropdown-menu-content", lang: locale.code, sideOffset: sideOffset, className: cn("mui-3eef1ce97dba mui-1f061e70178e mui-e9ab1547c94d mui-3a3774477287 mui-3b82279f859f mui-2368e909f3a5 mui-3fa8c572949b mui-4f1a55de40bc mui-e593c38256e0 mui-1dee6e3ec67d mui-5bd2afe89f0b mui-94ea94fde25f mui-89f6aab7a3f8 mui-3550f48d66b9 mui-7720fe004f5c mui-66b560f839de mui-0cb4489c3645 mui-bb5869ef903b mui-f4cf4be63707 mui-bae1e782f277 mui-45464a92c1f6 mui-9ca352480f25", className), ...props }) }));
|
|
20
22
|
}
|
|
21
23
|
function DropdownMenuGroup({ ...props }) {
|
|
22
24
|
return (_jsx(DropdownMenuPrimitive.Group, { "data-mendy-ui": "", "data-slot": "dropdown-menu-group", ...props }));
|
|
23
25
|
}
|
|
24
26
|
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
25
|
-
return (_jsx(DropdownMenuPrimitive.Item, { "data-mendy-ui": "", "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-
|
|
27
|
+
return (_jsx(DropdownMenuPrimitive.Item, { "data-mendy-ui": "", "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-1da7bb9a299c mui-f3f7a9c5e1b3 mui-e2bb4ac97190 mui-353a727facfd mui-98a28c2293f7 mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4 mui-8637dfd54fbb mui-82b114bbff3d", className), ...props }));
|
|
26
28
|
}
|
|
27
29
|
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
28
30
|
return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-mendy-ui": "", "data-slot": "dropdown-menu-checkbox-item", className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-a8c1dfb1d4ef mui-05d4103bd67f mui-078d945937da mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4", className), checked: checked, ...props, children: [_jsx("span", { className: "mui-33228ff7d583 mui-747355bdc2a2 mui-207bd0b3f259 mui-222f930b8752 mui-61c000c8a98a mui-71556df3b421 mui-a503dd374cca", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "mui-100c22d5776b" }) }) }), children] }));
|
|
@@ -34,19 +36,19 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
34
36
|
return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-mendy-ui": "", "data-slot": "dropdown-menu-radio-item", className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-a8c1dfb1d4ef mui-05d4103bd67f mui-078d945937da mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4", className), ...props, children: [_jsx("span", { className: "mui-33228ff7d583 mui-747355bdc2a2 mui-207bd0b3f259 mui-222f930b8752 mui-61c000c8a98a mui-71556df3b421 mui-a503dd374cca", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "mui-100c22d5776b" }) }) }), children] }));
|
|
35
37
|
}
|
|
36
38
|
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
37
|
-
return (_jsx(DropdownMenuPrimitive.Label, { "data-mendy-ui": "", "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-daaac3fbf55e mui-
|
|
39
|
+
return (_jsx(DropdownMenuPrimitive.Label, { "data-mendy-ui": "", "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-daaac3fbf55e mui-1da7bb9a299c", className), ...props }));
|
|
38
40
|
}
|
|
39
41
|
function DropdownMenuSeparator({ className, ...props }) {
|
|
40
42
|
return (_jsx(DropdownMenuPrimitive.Separator, { "data-mendy-ui": "", "data-slot": "dropdown-menu-separator", className: cn("mui-abba77319850 mui-d8747231f142 mui-ae2c4b060bb9 mui-a943bea85d66", className), ...props }));
|
|
41
43
|
}
|
|
42
44
|
function DropdownMenuShortcut({ className, ...props }) {
|
|
43
|
-
return (_jsx("span", { "data-mendy-ui": "", "data-slot": "dropdown-menu-shortcut", className: cn("mui-
|
|
45
|
+
return (_jsx("span", { "data-mendy-ui": "", "data-slot": "dropdown-menu-shortcut", className: cn("mui-5cf4ab3b6fa0 mui-3992de70b033 mui-e1683b3c030a mui-35f35c41d134", className), ...props }));
|
|
44
46
|
}
|
|
45
47
|
function DropdownMenuSub({ ...props }) {
|
|
46
48
|
return _jsx(DropdownMenuPrimitive.Sub, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub", ...props });
|
|
47
49
|
}
|
|
48
50
|
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
49
|
-
return (_jsxs(DropdownMenuPrimitive.SubTrigger, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-
|
|
51
|
+
return (_jsxs(DropdownMenuPrimitive.SubTrigger, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-1da7bb9a299c mui-4027d9c589b6 mui-1952cd5b00aa mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4 mui-8637dfd54fbb", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "mui-5cf4ab3b6fa0 mui-100c22d5776b mui-36b12e8339c7" })] }));
|
|
50
52
|
}
|
|
51
53
|
function DropdownMenuSubContent({ className, ...props }) {
|
|
52
54
|
return (_jsx(DropdownMenuPrimitive.SubContent, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub-content", className: cn("mui-3eef1ce97dba mui-e9ab1547c94d mui-3a3774477287 mui-d5111d0e9f48 mui-3fa8c572949b mui-4f1a55de40bc mui-e593c38256e0 mui-1dee6e3ec67d mui-5bd2afe89f0b mui-0d4ca75de41c mui-89f6aab7a3f8 mui-3550f48d66b9 mui-7720fe004f5c mui-66b560f839de mui-0cb4489c3645 mui-bb5869ef903b mui-f4cf4be63707 mui-bae1e782f277 mui-45464a92c1f6 mui-9ca352480f25", className), ...props }));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useMendyLocale } from "../locale-context.js";
|
|
3
4
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
5
|
import { useMendyUI } from "../customization.js";
|
|
5
6
|
import { cn } from "../utils.js";
|
|
6
7
|
export const Popover = PopoverPrimitive.Root;
|
|
7
8
|
export const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
8
9
|
export function PopoverContent({ className, align = "center", sideOffset = 8, ...props }) {
|
|
9
|
-
|
|
10
|
+
const locale = useMendyLocale();
|
|
11
|
+
return (_jsx(PopoverPrimitive.Portal, { container: useMendyUI().portalContainer, children: _jsx(PopoverPrimitive.Content, { "data-mendy-ui": "", "data-slot": "popover-content", dir: locale.direction, lang: locale.code, align: align, sideOffset: sideOffset, className: cn("mui-3eef1ce97dba mui-4d3f1304ebb2 mui-37535002f0f7 mui-34055e6f8c1b mui-d5111d0e9f48 mui-3fa8c572949b mui-4f1a55de40bc mui-e593c38256e0 mui-5bd2afe89f0b mui-94ea94fde25f mui-b30fc56058b6", className), ...props }) }));
|
|
10
12
|
}
|