@kaizen/components 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/TitleBlock/TitleBlock.cjs +7 -1
- package/dist/cjs/src/TitleBlock/subcomponents/MainActions.cjs +15 -4
- package/dist/cjs/src/TitleBlock/subcomponents/SecondaryActions.cjs +24 -6
- package/dist/esm/src/TitleBlock/TitleBlock.mjs +7 -1
- package/dist/esm/src/TitleBlock/subcomponents/MainActions.mjs +15 -4
- package/dist/esm/src/TitleBlock/subcomponents/SecondaryActions.mjs +24 -6
- package/dist/styles.css +1 -1
- package/locales/ar.json +24 -4
- package/locales/bg.json +24 -4
- package/locales/cs.json +24 -4
- package/locales/cy.json +24 -4
- package/locales/da.json +24 -4
- package/locales/de.json +24 -4
- package/locales/el.json +24 -4
- package/locales/en-GB.json +24 -4
- package/locales/en.json +24 -4
- package/locales/es-419.json +24 -4
- package/locales/es.json +24 -4
- package/locales/et.json +24 -4
- package/locales/fi.json +24 -4
- package/locales/fr-CA.json +24 -4
- package/locales/fr.json +24 -4
- package/locales/he.json +24 -4
- package/locales/hi.json +24 -4
- package/locales/ht.json +24 -4
- package/locales/hu.json +24 -4
- package/locales/id.json +24 -4
- package/locales/it.json +24 -4
- package/locales/ja.json +24 -4
- package/locales/km-KH.json +24 -4
- package/locales/ko.json +24 -4
- package/locales/lt.json +24 -4
- package/locales/lv.json +24 -4
- package/locales/mi.json +24 -4
- package/locales/ms.json +24 -4
- package/locales/nb.json +24 -4
- package/locales/nl.json +24 -4
- package/locales/pl.json +24 -4
- package/locales/pt-BR.json +24 -4
- package/locales/pt.json +24 -4
- package/locales/ro.json +24 -4
- package/locales/ru.json +24 -4
- package/locales/si-LK.json +24 -4
- package/locales/sk.json +24 -4
- package/locales/sr.json +24 -4
- package/locales/sv.json +24 -4
- package/locales/th.json +24 -4
- package/locales/tl.json +24 -4
- package/locales/tr.json +24 -4
- package/locales/uk.json +24 -4
- package/locales/vi.json +24 -4
- package/locales/zh-TW.json +24 -4
- package/locales/zh.json +24 -4
- package/package.json +1 -1
- package/src/TitleBlock/TitleBlock.module.scss +1 -1
- package/src/TitleBlock/TitleBlock.tsx +8 -1
- package/src/TitleBlock/_docs/TitleBlock.stories.tsx +24 -0
- package/src/TitleBlock/subcomponents/MainActions.tsx +17 -3
- package/src/TitleBlock/subcomponents/SecondaryActions.tsx +35 -3
package/locales/sr.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Sakrij informacije:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Otvori kombinovani sekundarni i meni sa dodatnim radnjama"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Otvori podrazumevani meni dodatnih radnji"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Otvori meni"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Otvara meni sa dodatnim radnjama"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Meni"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Otvori sekundarni i meni sa dodatnim radnjama"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "Prikaži predloge za {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "Obriši izbor: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Dodatne radnje"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/sv.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Dölj information:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Öppna kombinerad sekundär- och överflödesmeny"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Öppna överflödesmeny för standardåtgärd"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Öppna meny"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Öppnar överflödesmeny"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Meny"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Öppna sekundär meny och överflödesmeny"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "Visa förslag för {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "Rensa val: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Ytterligare åtgärder"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/th.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "ซ่อนข้อมูล:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "เปิดเมนูรองและโอเวอร์โฟลว์รวมกัน"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "เปิดเมนูโอเวอร์โฟลว์การดําเนินการเริ่มต้น"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "เปิดเมนู"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "เปิดเมนูโอเวอร์โฟลว์"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "เมนู"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "เปิดเมนูรองและโอเวอร์โฟลว์"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "แสดงคำแนะนำสำหรับ {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "ล้างรายการที่เลือก: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "การดำเนินการเพิ่มเติม"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/tl.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Itago ang impormasyon:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Buksan ang pinagsamang sekundaryong menu at overflow menu"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Buksan ang default na overflow menu ng aksyon"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Buksan ang menu"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Binubuksan ang overflow menu"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Menu"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Buksan ang sekundaryong menu at overflow menu"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "Ipakita ang mga mungkahi para sa {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "I-clear ang napili: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Karagdagang mga aksiyon"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/tr.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Bilgileri gizleyin:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Birleşik ikincil ve taşma menüsünü açın"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Varsayılan işlem taşma menüsünü açın"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Menüyü aç"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Taşma menüsünü açar"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Menü"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "İkincil ve taşma menüsünü açın"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "{field} için önerileri göster"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "Seçimi temizle: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Ek eylemler"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/uk.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Приховати інформацію:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Відкрити об'єднане додаткове меню та меню переповнення"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Відкрити меню дій за замовчуванням"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Відкрити меню"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Відкрити меню переповнення"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Меню"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Відкрити додаткове меню та меню переповнення"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "Показати пропозиції для {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "Скасувати виділення: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Додаткові дії"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/vi.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "Ẩn thông tin:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Mở menu phụ và menu tùy chọn kết hợp"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Mở menu tùy chọn hành động mặc định"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Mở menu"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Mở menu tùy chọn"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Menu"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Mở menu phụ và menu tùy chọn"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "Hiển thị gợi ý cho {field}"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "Xóa lựa chọn: {field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "Các hành động bổ sung"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/zh-TW.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "隱藏資訊:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "開啟複合副選單和溢出選單"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "開啟預設動作溢出選單"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "開啟功能表"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "開啟溢出選單"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "功能表"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "開啟副選單和溢出選單"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "顯示對 {field} 的建議"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "清除選擇:{field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "其他行動"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/locales/zh.json
CHANGED
|
@@ -220,6 +220,30 @@
|
|
|
220
220
|
"description" : "Prompts user to interact with button to hide information",
|
|
221
221
|
"message" : "隐藏信息:"
|
|
222
222
|
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "打开组合式二级菜单和溢出菜单"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "打开默认操作溢出菜单"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "打开菜单"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "打开溢出菜单"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "菜单"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "打开二级菜单和溢出菜单"
|
|
246
|
+
},
|
|
223
247
|
"singleSelect.chevronButton" : {
|
|
224
248
|
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
225
249
|
"message" : "显示{field}的建议"
|
|
@@ -227,9 +251,5 @@
|
|
|
227
251
|
"singleSelect.clearButtonAlt_v2" : {
|
|
228
252
|
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
229
253
|
"message" : "清除选择:{field}"
|
|
230
|
-
},
|
|
231
|
-
"splitButton.dropdownButton.label" : {
|
|
232
|
-
"description" : "Label for a dropdown menu holding additional actions",
|
|
233
|
-
"message" : "附加操作"
|
|
234
254
|
}
|
|
235
255
|
}
|
package/package.json
CHANGED
|
@@ -277,7 +277,6 @@
|
|
|
277
277
|
display: none;
|
|
278
278
|
align-self: self-start;
|
|
279
279
|
box-sizing: border-box;
|
|
280
|
-
overflow: hidden;
|
|
281
280
|
height: $ca-grid * 2;
|
|
282
281
|
width: $ca-grid * 2;
|
|
283
282
|
|
|
@@ -288,6 +287,7 @@
|
|
|
288
287
|
}
|
|
289
288
|
|
|
290
289
|
&.withBorder {
|
|
290
|
+
overflow: hidden;
|
|
291
291
|
border: 3px solid $color-white;
|
|
292
292
|
border-radius: 50%;
|
|
293
293
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react'
|
|
2
|
+
import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
2
3
|
import classnames from 'classnames'
|
|
3
4
|
import { Avatar } from '~components/Avatar'
|
|
4
5
|
import { IconButton } from '~components/ButtonV1'
|
|
@@ -266,6 +267,7 @@ export const TitleBlock = ({
|
|
|
266
267
|
queries: { isSmall, isMedium },
|
|
267
268
|
} = useMediaQueries()
|
|
268
269
|
const isSmallOrMediumViewport = isMedium || isSmall
|
|
270
|
+
const { formatMessage } = useIntl()
|
|
269
271
|
return (
|
|
270
272
|
<>
|
|
271
273
|
<div
|
|
@@ -305,7 +307,12 @@ export const TitleBlock = ({
|
|
|
305
307
|
<IconButton
|
|
306
308
|
onClick={handleHamburgerClick}
|
|
307
309
|
icon={<Icon name="menu" isPresentational />}
|
|
308
|
-
label=
|
|
310
|
+
label={formatMessage({
|
|
311
|
+
id: 'kzTitleBlock.hamburgerMenuLabel',
|
|
312
|
+
defaultMessage: 'Open menu',
|
|
313
|
+
description:
|
|
314
|
+
'Label for the dropdown menu which displays navigation items',
|
|
315
|
+
})}
|
|
309
316
|
reversed={isReversed(variant)}
|
|
310
317
|
/>
|
|
311
318
|
</div>
|
|
@@ -302,6 +302,29 @@ export const StickerSheetVariants: Story = {
|
|
|
302
302
|
</StickerSheet>
|
|
303
303
|
),
|
|
304
304
|
}
|
|
305
|
+
export const StickerSheetWithDefaultAvatar: Story = {
|
|
306
|
+
name: 'Sticker Sheet (DefaultAvatar)',
|
|
307
|
+
render: () => (
|
|
308
|
+
<StickerSheet title="TitleBlock Variants With Default Avatar">
|
|
309
|
+
<StickerSheet.Row header="Default (Purple background)">
|
|
310
|
+
<TitleBlock title="Default Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
311
|
+
</StickerSheet.Row>
|
|
312
|
+
<StickerSheet.Row header="Education (Blue background)">
|
|
313
|
+
<TitleBlock
|
|
314
|
+
variant="education"
|
|
315
|
+
title="Education Variant"
|
|
316
|
+
avatar={{ fullName: 'Blanca Wheeler' }}
|
|
317
|
+
/>
|
|
318
|
+
</StickerSheet.Row>
|
|
319
|
+
<StickerSheet.Row header="Admin (White background)">
|
|
320
|
+
<TitleBlock variant="admin" title="Admin Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
321
|
+
</StickerSheet.Row>
|
|
322
|
+
<StickerSheet.Row header="Light (White background)">
|
|
323
|
+
<TitleBlock variant="light" title="Light Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
324
|
+
</StickerSheet.Row>
|
|
325
|
+
</StickerSheet>
|
|
326
|
+
),
|
|
327
|
+
}
|
|
305
328
|
export const StickerSheetVariantsWithSection: Story = {
|
|
306
329
|
name: 'Sticker Sheet (Variants With Section)',
|
|
307
330
|
render: () => (
|
|
@@ -651,6 +674,7 @@ export const WithTitleCollapseNavigationAreaWhenPossible: Story = {
|
|
|
651
674
|
collapseNavigationAreaWhenPossible: true,
|
|
652
675
|
},
|
|
653
676
|
}
|
|
677
|
+
|
|
654
678
|
export const WithOnlySecondaryActions: Story = {
|
|
655
679
|
parameters: {
|
|
656
680
|
viewport: viewports,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
2
3
|
import { Button, IconButton } from '~components/ButtonV1'
|
|
3
4
|
import { Icon } from '~components/Icon'
|
|
4
5
|
import { Menu, MenuList } from '~components/MenuV1'
|
|
@@ -24,6 +25,7 @@ type MainActionsProps = {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
const renderSecondaryAndOverflowMenu = (
|
|
28
|
+
secondaryAndOverflowMenuLabel: string,
|
|
27
29
|
secondaryOverflowMenuItems?: TitleBlockMenuItemProps[],
|
|
28
30
|
reversed?: boolean,
|
|
29
31
|
): JSX.Element | undefined => {
|
|
@@ -33,7 +35,7 @@ const renderSecondaryAndOverflowMenu = (
|
|
|
33
35
|
align="right"
|
|
34
36
|
button={
|
|
35
37
|
<IconButton
|
|
36
|
-
label={
|
|
38
|
+
label={secondaryAndOverflowMenuLabel}
|
|
37
39
|
reversed={reversed}
|
|
38
40
|
icon={<Icon name="more_horiz" isPresentational />}
|
|
39
41
|
id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
|
|
@@ -57,6 +59,13 @@ export const MainActions = ({
|
|
|
57
59
|
secondaryOverflowMenuItems,
|
|
58
60
|
reversed = false,
|
|
59
61
|
}: MainActionsProps): JSX.Element => {
|
|
62
|
+
const { formatMessage } = useIntl()
|
|
63
|
+
|
|
64
|
+
const secondaryAndOverflowMenuLabel = formatMessage({
|
|
65
|
+
id: 'kzTitleBlock.secondaryAndOverflowMenuLabel',
|
|
66
|
+
defaultMessage: 'Open secondary and overflow menu',
|
|
67
|
+
description: 'Label for the dropdown menu which displays additional actions',
|
|
68
|
+
})
|
|
60
69
|
let items
|
|
61
70
|
|
|
62
71
|
// Build combined secondary + overflow menu items once, to be spread into the toolbar items
|
|
@@ -97,7 +106,7 @@ export const MainActions = ({
|
|
|
97
106
|
if (allMenuItems.length > 0) {
|
|
98
107
|
secondaryAndOverflowMenu.push({
|
|
99
108
|
key: 'overflowMenu',
|
|
100
|
-
node: renderSecondaryAndOverflowMenu(allMenuItems, reversed)!,
|
|
109
|
+
node: renderSecondaryAndOverflowMenu(secondaryAndOverflowMenuLabel, allMenuItems, reversed)!,
|
|
101
110
|
})
|
|
102
111
|
}
|
|
103
112
|
|
|
@@ -130,7 +139,12 @@ export const MainActions = ({
|
|
|
130
139
|
align="right"
|
|
131
140
|
button={
|
|
132
141
|
<IconButton
|
|
133
|
-
label={
|
|
142
|
+
label={formatMessage({
|
|
143
|
+
id: 'kzTitleBlock.defaultActionMinimizedOverflowMenuLabel',
|
|
144
|
+
defaultMessage: 'Open default action overflow menu',
|
|
145
|
+
description:
|
|
146
|
+
'Label for the dropdown menu which displays the default action item',
|
|
147
|
+
})}
|
|
134
148
|
reversed={reversed}
|
|
135
149
|
icon={<Icon name="more_horiz" isPresentational />}
|
|
136
150
|
id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
2
3
|
import { Button, IconButton } from '~components/ButtonV1'
|
|
3
4
|
import { Icon } from '~components/Icon'
|
|
4
5
|
import { Menu, MenuList } from '~components/MenuV1'
|
|
@@ -16,6 +17,8 @@ type Props = {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const renderSecondaryOverflowMenu = (
|
|
20
|
+
menuAriaLabel: string,
|
|
21
|
+
menuLabel: string,
|
|
19
22
|
secondaryOverflowMenuItems?: TitleBlockMenuItemProps[],
|
|
20
23
|
reversed?: boolean,
|
|
21
24
|
): JSX.Element | undefined => {
|
|
@@ -28,7 +31,8 @@ const renderSecondaryOverflowMenu = (
|
|
|
28
31
|
<Button
|
|
29
32
|
secondary
|
|
30
33
|
reversed={reversed}
|
|
31
|
-
label=
|
|
34
|
+
label={menuLabel}
|
|
35
|
+
aria-label={menuAriaLabel}
|
|
32
36
|
data-automation-id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
|
|
33
37
|
data-testid={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
|
|
34
38
|
icon={<Icon name="keyboard_arrow_down" isPresentational />}
|
|
@@ -48,6 +52,7 @@ const renderSecondaryOverflowMenu = (
|
|
|
48
52
|
|
|
49
53
|
// New: combined overflow menu (secondary actions converted + overflow menu items)
|
|
50
54
|
const renderCombinedSecondaryOverflowMenu = (
|
|
55
|
+
combinedMenuLabel: string,
|
|
51
56
|
secondaryActions?: SecondaryActionsProps,
|
|
52
57
|
secondaryOverflowMenuItems?: TitleBlockMenuItemProps[],
|
|
53
58
|
reversed?: boolean,
|
|
@@ -66,7 +71,7 @@ const renderCombinedSecondaryOverflowMenu = (
|
|
|
66
71
|
align="right"
|
|
67
72
|
button={
|
|
68
73
|
<IconButton
|
|
69
|
-
label=
|
|
74
|
+
label={combinedMenuLabel}
|
|
70
75
|
reversed={reversed}
|
|
71
76
|
icon={<Icon name="more_horiz" isPresentational />}
|
|
72
77
|
id={`${TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}__combined`}
|
|
@@ -92,8 +97,29 @@ export const SecondaryActions = ({
|
|
|
92
97
|
secondaryOverflowMenuItems,
|
|
93
98
|
reversed = false,
|
|
94
99
|
}: Props): JSX.Element | null => {
|
|
100
|
+
const { formatMessage } = useIntl()
|
|
101
|
+
|
|
95
102
|
if (!secondaryActions && !secondaryOverflowMenuItems) return null
|
|
96
103
|
|
|
104
|
+
const menuLabel = formatMessage({
|
|
105
|
+
id: 'kzTitleBlock.overflowMenuLabel',
|
|
106
|
+
defaultMessage: 'Menu',
|
|
107
|
+
description: 'Label for the dropdown menu which displays additional action items',
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
const menuAriaLabel = formatMessage({
|
|
111
|
+
id: 'kzTitleBlock.overflowMenuAriaLabel',
|
|
112
|
+
defaultMessage: 'Opens overflow menu',
|
|
113
|
+
description: 'Aria Label for the dropdown menu which displays additional action items',
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
const combinedMenuLabel = formatMessage({
|
|
117
|
+
id: 'kzTitleBlock.combinedOverflowMenuLabel',
|
|
118
|
+
defaultMessage: 'Open combined secondary and overflow menu',
|
|
119
|
+
description:
|
|
120
|
+
'Label for the dropdown menu which displays additional action items and secondary actions',
|
|
121
|
+
})
|
|
122
|
+
|
|
97
123
|
const secondaryActionsAsToolbarItems = secondaryActions
|
|
98
124
|
? secondaryActions.map((action, i) => {
|
|
99
125
|
if ('menuItems' in action) {
|
|
@@ -148,8 +174,14 @@ export const SecondaryActions = ({
|
|
|
148
174
|
})
|
|
149
175
|
: []
|
|
150
176
|
|
|
151
|
-
const overflowMenu = renderSecondaryOverflowMenu(
|
|
177
|
+
const overflowMenu = renderSecondaryOverflowMenu(
|
|
178
|
+
menuAriaLabel,
|
|
179
|
+
menuLabel,
|
|
180
|
+
secondaryOverflowMenuItems,
|
|
181
|
+
reversed,
|
|
182
|
+
)
|
|
152
183
|
const combinedOverflowMenu = renderCombinedSecondaryOverflowMenu(
|
|
184
|
+
combinedMenuLabel,
|
|
153
185
|
secondaryActions,
|
|
154
186
|
secondaryOverflowMenuItems,
|
|
155
187
|
reversed,
|