@skyscanner/backpack-web 42.9.0 → 42.10.0-dev-v24443725500.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/bpk-component-ai-blurb/src/BpkAiBlurb.module.css +1 -1
- package/bpk-component-ai-blurb/src/BpkAiBlurbFeedback.js +13 -21
- package/bpk-component-bubble/src/BpkBubble.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarNav.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarNav.js +0 -1
- package/bpk-component-chatbot-input/index.d.ts +1 -2
- package/bpk-component-chatbot-input/src/BpkChatbotInput.d.ts +13 -3
- package/bpk-component-chatbot-input/src/BpkChatbotInput.js +18 -98
- package/bpk-component-chatbot-input/src/BpkChatbotInput.module.css +1 -1
- package/bpk-component-chatbot-input/src/BpkChatbotInputContext.d.ts +9 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputContext.js +26 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputInput.d.ts +3 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputInput.js +125 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputRoot.d.ts +3 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputRoot.js +77 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputToolbar.d.ts +3 -0
- package/bpk-component-chatbot-input/src/BpkChatbotInputToolbar.js +33 -0
- package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.d.ts +1 -0
- package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.js +5 -1
- package/bpk-component-chatbot-input/src/common-types.d.ts +23 -3
- package/bpk-component-chatbot-input/src/hooks/useChatbotInput.d.ts +2 -1
- package/bpk-component-chatbot-input/src/hooks/useChatbotInput.js +3 -1
- package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.d.ts +2 -1
- package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.js +19 -6
- package/bpk-component-layout/src/resolveTextStyle.d.ts +13 -0
- package/bpk-component-layout/src/resolveTextStyle.js +265 -0
- package/bpk-component-layout/src/theme.js +29 -252
- package/bpk-component-layout/src/tokenUtils.js +31 -9
- package/bpk-component-select/index.d.ts +5 -0
- package/bpk-component-select/index.js +3 -1
- package/bpk-component-select/src/BpkSelect.d.ts +18 -0
- package/bpk-component-select/src/BpkSelect.js +3 -28
- package/bpk-component-select/src/themeAttributes.d.ts +2 -0
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -1
- package/bpk-scrim-utils/src/focusScope.d.ts +5 -0
- package/bpk-scrim-utils/src/focusScope.js +88 -0
- package/bpk-scrim-utils/src/focusStore.d.ts +6 -0
- package/bpk-scrim-utils/src/focusStore.js +74 -0
- package/bpk-scrim-utils/src/withScrim.js +2 -5
- package/bpk-stylesheets/base.css +1 -1
- package/bpk-stylesheets/font.css +1 -1
- package/bpk-stylesheets/font.scss +80 -1
- package/bpk-stylesheets/larken.css +1 -1
- package/bpk-stylesheets/larken.scss +63 -1
- package/package.json +3 -5
- package/bpk-component-chatbot-input/src/SendButton/SendButton.d.ts +0 -9
- package/bpk-component-chatbot-input/src/SendButton/SendButton.js +0 -47
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@font-face{font-family:larken;font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Light-8371ea16.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Light-39e53c9a.woff') format('woff')}@font-face{font-family:larken;font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Regular-3d9dfe29.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Regular-626ee28c.woff') format('woff')}@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-e77dc47a.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-ea83f673.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-b2ff05f9.ttf') format('ttf')}@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-15a84e58.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-a2985c7a.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-471fde3d.ttf') format('ttf')}@font-face{font-family:"Noto Serif Hebrew";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-24198867.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-7d94eb62.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-320a7a43.ttf') format('ttf')}@font-face{font-family:"Noto Serif Hebrew";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-a9e2c102.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-41b2944d.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-e8471015.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-46d7aaea.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-412a21b9.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-9dbdd5d2.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:italic;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-3df46bf3.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-b235c828.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-1a288873.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-f9cc92ed.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-ea07f3b6.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-c8fe04e5.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:italic;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-132f7557.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-ceeb7a6f.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-25dbfc26.ttf') format('ttf')}@font-face{font-family:"Noto Serif Devanagari";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-6f8c3ec2.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-9e5b16f1.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-d396b2f0.ttf') format('ttf')}@font-face{font-family:"Noto Serif Devanagari";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-05c8f8c5.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-7b432355.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-49b7fded.ttf') format('ttf')}@font-face{font-family:"Noto Serif Thai";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-c19b05eb.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-c8dd8e9a.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-7503fb65.ttf') format('ttf')}@font-face{font-family:"Noto Serif Thai";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-807f25ca.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-4930d4b0.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-619e0cdd.ttf') format('ttf')}@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-340f3714.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-0cad7edb.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-4a0300b1.ttf') format('ttf')}@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-81b3cace.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-861a6d77.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-e6f67c70.ttf') format('ttf')}@font-face{font-family:"Noto Serif TC";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-d06d870d.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-e7d41ebf.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-a575e20b.ttf') format('ttf')}@font-face{font-family:"Noto Serif TC";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-ba80e9e3.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-24d6fd67.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-81f7cfa9.ttf') format('ttf')}@font-face{font-family:"Noto Serif JP";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-300342ba.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-908de8db.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-4fdde149.ttf') format('ttf')}@font-face{font-family:"Noto Serif JP";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-04cd06e8.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-5ec4849d.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-5926d365.ttf') format('ttf')}@font-face{font-family:"Noto Serif KR";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-cafbe1fe.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-60488ca3.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-4149d2b6.ttf') format('ttf')}@font-face{font-family:"Noto Serif KR";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-f6377da5.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-a5cc7c23.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-2fa19520.ttf') format('ttf')}[lang=ja-JP],:lang(ja-JP){--bpk-larken-font-stack: larken, "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", "Noto Serif KR", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=zh-TW],:lang(zh-TW){--bpk-larken-font-stack: larken, "Noto Serif TC", "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}
|
|
18
|
+
@font-face{font-family:larken;font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Light-8371ea16.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Light-39e53c9a.woff') format('woff')}@font-face{font-family:larken;font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Regular-3d9dfe29.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/Larken-Regular-626ee28c.woff') format('woff')}@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-e77dc47a.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-ea83f673.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Light-b2ff05f9.ttf') format('ttf')}@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-15a84e58.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-a2985c7a.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSansArabic-Regular-471fde3d.ttf') format('ttf')}@font-face{font-family:"Noto Serif Hebrew";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-24198867.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-7d94eb62.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Light-320a7a43.ttf') format('ttf')}@font-face{font-family:"Noto Serif Hebrew";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-a9e2c102.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-41b2944d.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifHebrew-Regular-e8471015.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-46d7aaea.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-412a21b9.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Light-9dbdd5d2.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:italic;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-3df46bf3.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-b235c828.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-LightItalic-1a288873.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-f9cc92ed.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-ea07f3b6.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Regular-c8fe04e5.ttf') format('ttf')}@font-face{font-family:"Noto Serif";font-style:italic;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-132f7557.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-ceeb7a6f.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerif-Italic-25dbfc26.ttf') format('ttf')}@font-face{font-family:"Noto Serif Devanagari";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-6f8c3ec2.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-9e5b16f1.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Light-d396b2f0.ttf') format('ttf')}@font-face{font-family:"Noto Serif Devanagari";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-05c8f8c5.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-7b432355.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifDevanagari-Regular-49b7fded.ttf') format('ttf')}@font-face{font-family:"Noto Serif Thai";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-c19b05eb.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-c8dd8e9a.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Light-7503fb65.ttf') format('ttf')}@font-face{font-family:"Noto Serif Thai";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-807f25ca.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-4930d4b0.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifThai-Regular-619e0cdd.ttf') format('ttf')}@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-340f3714.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-0cad7edb.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Light-4a0300b1.ttf') format('ttf')}@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-81b3cace.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-861a6d77.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifSC-Regular-e6f67c70.ttf') format('ttf')}@font-face{font-family:"Noto Serif TC";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-d06d870d.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-e7d41ebf.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Light-a575e20b.ttf') format('ttf')}@font-face{font-family:"Noto Serif TC";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-ba80e9e3.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-24d6fd67.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifTC-Regular-81f7cfa9.ttf') format('ttf')}@font-face{font-family:"Noto Serif JP";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-300342ba.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-908de8db.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Light-4fdde149.ttf') format('ttf')}@font-face{font-family:"Noto Serif JP";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-04cd06e8.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-5ec4849d.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifJP-Regular-5926d365.ttf') format('ttf')}@font-face{font-family:"Noto Serif KR";font-style:normal;font-weight:300;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-cafbe1fe.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-60488ca3.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Light-4149d2b6.ttf') format('ttf')}@font-face{font-family:"Noto Serif KR";font-style:normal;font-weight:400;src:url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-f6377da5.woff2') format('woff2'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-a5cc7c23.woff') format('woff'), url('https://js.skyscnr.com/sttc/bpk-fonts/NotoSerifKR-Regular-2fa19520.ttf') format('ttf')}[lang=ja-JP],:lang(ja-JP){--bpk-larken-font-stack: larken, "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", "Noto Serif KR", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=zh-TW],:lang(zh-TW),[lang=zh-HK],:lang(zh-HK){--bpk-larken-font-stack: larken, "Noto Serif TC", "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=zh-CN],:lang(zh-CN){--bpk-larken-font-stack: larken, "Noto Serif SC", "Noto Serif TC", "Noto Serif JP", "Noto Serif KR", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=ko-KR],:lang(ko-KR){--bpk-larken-font-stack: larken, "Noto Serif KR", "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=th-TH],:lang(th-TH){--bpk-larken-font-stack: larken, "Noto Serif Thai", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", sans-serif}[lang=hi-IN],:lang(hi-IN){--bpk-larken-font-stack: larken, "Noto Serif Devanagari", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Thai", sans-serif}[lang=ar],:lang(ar){--bpk-larken-font-stack: larken, "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=he],:lang(he){--bpk-larken-font-stack: larken, "Noto Serif Hebrew", "Noto Sans Arabic", "Noto Serif", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}[lang=el-GR],:lang(el-GR),[lang=ru-RU],:lang(ru-RU),[lang=uk-UA],:lang(uk-UA),[lang=bg-BG],:lang(bg-BG),[lang=vi-VN],:lang(vi-VN){--bpk-larken-font-stack: larken, "Noto Serif", "Noto Sans Arabic", "Noto Serif Hebrew", "Noto Serif Devanagari", "Noto Serif Thai", sans-serif}
|
|
@@ -283,6 +283,7 @@ $bpk-fonts: (
|
|
|
283
283
|
|
|
284
284
|
// Language-specific font stacks to prefer the right script-specific faces.
|
|
285
285
|
// We use a CSS Variable to make this scalable across all components using Larken.
|
|
286
|
+
|
|
286
287
|
[lang='ja-JP'],
|
|
287
288
|
:lang(ja-JP) {
|
|
288
289
|
--bpk-larken-font-stack:
|
|
@@ -292,9 +293,70 @@ $bpk-fonts: (
|
|
|
292
293
|
}
|
|
293
294
|
|
|
294
295
|
[lang='zh-TW'],
|
|
295
|
-
:lang(zh-TW)
|
|
296
|
+
:lang(zh-TW),
|
|
297
|
+
[lang='zh-HK'],
|
|
298
|
+
:lang(zh-HK) {
|
|
296
299
|
--bpk-larken-font-stack:
|
|
297
300
|
larken, 'Noto Serif TC', 'Noto Serif SC', 'Noto Serif JP', 'Noto Serif KR',
|
|
298
301
|
'Noto Sans Arabic', 'Noto Serif Hebrew', 'Noto Serif',
|
|
299
302
|
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
300
303
|
}
|
|
304
|
+
|
|
305
|
+
[lang='zh-CN'],
|
|
306
|
+
:lang(zh-CN) {
|
|
307
|
+
--bpk-larken-font-stack:
|
|
308
|
+
larken, 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif JP', 'Noto Serif KR',
|
|
309
|
+
'Noto Sans Arabic', 'Noto Serif Hebrew', 'Noto Serif',
|
|
310
|
+
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
[lang='ko-KR'],
|
|
314
|
+
:lang(ko-KR) {
|
|
315
|
+
--bpk-larken-font-stack:
|
|
316
|
+
larken, 'Noto Serif KR', 'Noto Serif JP', 'Noto Serif SC', 'Noto Serif TC',
|
|
317
|
+
'Noto Sans Arabic', 'Noto Serif Hebrew', 'Noto Serif',
|
|
318
|
+
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
[lang='th-TH'],
|
|
322
|
+
:lang(th-TH) {
|
|
323
|
+
--bpk-larken-font-stack:
|
|
324
|
+
larken, 'Noto Serif Thai', 'Noto Sans Arabic', 'Noto Serif Hebrew',
|
|
325
|
+
'Noto Serif', 'Noto Serif Devanagari', sans-serif;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
[lang='hi-IN'],
|
|
329
|
+
:lang(hi-IN) {
|
|
330
|
+
--bpk-larken-font-stack:
|
|
331
|
+
larken, 'Noto Serif Devanagari', 'Noto Sans Arabic', 'Noto Serif Hebrew',
|
|
332
|
+
'Noto Serif', 'Noto Serif Thai', sans-serif;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
[lang='ar'],
|
|
336
|
+
:lang(ar) {
|
|
337
|
+
--bpk-larken-font-stack:
|
|
338
|
+
larken, 'Noto Sans Arabic', 'Noto Serif Hebrew', 'Noto Serif',
|
|
339
|
+
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
[lang='he'],
|
|
343
|
+
:lang(he) {
|
|
344
|
+
--bpk-larken-font-stack:
|
|
345
|
+
larken, 'Noto Serif Hebrew', 'Noto Sans Arabic', 'Noto Serif',
|
|
346
|
+
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
[lang='el-GR'],
|
|
350
|
+
:lang(el-GR),
|
|
351
|
+
[lang='ru-RU'],
|
|
352
|
+
:lang(ru-RU),
|
|
353
|
+
[lang='uk-UA'],
|
|
354
|
+
:lang(uk-UA),
|
|
355
|
+
[lang='bg-BG'],
|
|
356
|
+
:lang(bg-BG),
|
|
357
|
+
[lang='vi-VN'],
|
|
358
|
+
:lang(vi-VN) {
|
|
359
|
+
--bpk-larken-font-stack:
|
|
360
|
+
larken, 'Noto Serif', 'Noto Sans Arabic', 'Noto Serif Hebrew',
|
|
361
|
+
'Noto Serif Devanagari', 'Noto Serif Thai', sans-serif;
|
|
362
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "42.
|
|
3
|
+
"version": "42.10.0-dev-v24443725500.1",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,14 +25,12 @@
|
|
|
25
25
|
"@ark-ui/react": "^5.34.1",
|
|
26
26
|
"@chakra-ui/react": "^3.33.0",
|
|
27
27
|
"@floating-ui/react": "^0.26.12",
|
|
28
|
-
"@popperjs/core": "^2.11.8",
|
|
29
28
|
"@radix-ui/react-compose-refs": "^1.1.1",
|
|
30
29
|
"@radix-ui/react-slider": "1.3.5",
|
|
31
30
|
"@react-google-maps/api": "^2.19.3",
|
|
32
|
-
"@skyscanner/bpk-foundations-web": "^24.4.
|
|
31
|
+
"@skyscanner/bpk-foundations-web": "^24.4.1",
|
|
33
32
|
"@skyscanner/bpk-svgs": "^20.11.0",
|
|
34
|
-
"
|
|
35
|
-
"a11y-focus-store": "^1.0.0",
|
|
33
|
+
"tabbable": "^6.4.0",
|
|
36
34
|
"d3-path": "^3.1.0",
|
|
37
35
|
"d3-scale": "^4.0.2",
|
|
38
36
|
"downshift": "^9.0.10",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface SendButtonProps {
|
|
2
|
-
ariaLabel: string;
|
|
3
|
-
isCars?: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const SendButton: ({ ariaLabel, disabled, isCars, isLoading, onClick, }: SendButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default SendButton;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Backpack - Skyscanner's Design System
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2016 Skyscanner Ltd
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import BpkButton, { BUTTON_TYPES, SIZE_TYPES } from "../../../bpk-component-button";
|
|
20
|
-
import { withRtlSupport, withButtonAlignment } from "../../../bpk-component-icon";
|
|
21
|
-
import ArrowRightIcon from "../../../bpk-component-icon/sm/long-arrow-right";
|
|
22
|
-
import ArrowUpIcon from "../../../bpk-component-icon/sm/long-arrow-up";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
const AlignedArrowRightIcon = withButtonAlignment(withRtlSupport(ArrowRightIcon));
|
|
25
|
-
const AlignedArrowUpIcon = withButtonAlignment(ArrowUpIcon);
|
|
26
|
-
const SendButton = ({
|
|
27
|
-
ariaLabel,
|
|
28
|
-
disabled = false,
|
|
29
|
-
isCars = true,
|
|
30
|
-
isLoading = false,
|
|
31
|
-
onClick
|
|
32
|
-
}) => {
|
|
33
|
-
const buttonType = isCars ? BUTTON_TYPES.featured : BUTTON_TYPES.primary;
|
|
34
|
-
const Icon = isCars ? AlignedArrowRightIcon : AlignedArrowUpIcon;
|
|
35
|
-
return /*#__PURE__*/_jsx(BpkButton, {
|
|
36
|
-
type: buttonType,
|
|
37
|
-
size: SIZE_TYPES.small,
|
|
38
|
-
iconOnly: true,
|
|
39
|
-
loading: isLoading,
|
|
40
|
-
onClick: onClick,
|
|
41
|
-
disabled: disabled,
|
|
42
|
-
"aria-label": ariaLabel,
|
|
43
|
-
"data-testid": isLoading ? 'bpk-chatbot-input-loading' : 'bpk-chatbot-input-send',
|
|
44
|
-
children: /*#__PURE__*/_jsx(Icon, {})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
export default SendButton;
|