@transferwise/components 0.0.0-experimental-c7da7db → 0.0.0-experimental-24a0a12
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/build/accordion/AccordionItem/AccordionItem.js +0 -1
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +0 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js +0 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs +0 -1
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js +0 -1
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs +0 -1
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +0 -1
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +0 -1
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js +0 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +0 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +0 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +0 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +0 -1
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +0 -1
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +0 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +0 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/button/Button.js +0 -1
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +0 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/button/LegacyButton.js +0 -1
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs +0 -1
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/button/classMap.js +0 -1
- package/build/button/classMap.js.map +1 -1
- package/build/button/classMap.mjs +0 -1
- package/build/button/classMap.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js +0 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs +0 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js +0 -1
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs +0 -1
- package/build/card/Card.mjs.map +1 -1
- package/build/checkbox/Checkbox.js +0 -1
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs +0 -1
- package/build/checkbox/Checkbox.mjs.map +1 -1
- package/build/chevron/Chevron.js +0 -1
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs +0 -1
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js +0 -1
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chip.mjs +0 -1
- package/build/chips/Chip.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +0 -1
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +0 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/locale/index.js +4 -9
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +4 -9
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js +56 -41
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs +61 -46
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js +0 -1
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +0 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +0 -1
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +0 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js +1 -1
- package/build/dateInput/DateInput.mjs +1 -1
- package/build/dateLookup/DateLookup.js +1 -1
- package/build/dateLookup/DateLookup.mjs +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js +0 -1
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +0 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/decision/Decision.js +0 -1
- package/build/decision/Decision.js.map +1 -1
- package/build/decision/Decision.mjs +0 -1
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js +0 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs +0 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js +0 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs +0 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/display/Display.js +0 -1
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs +0 -1
- package/build/display/Display.mjs.map +1 -1
- package/build/drawer/Drawer.js +0 -1
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs +0 -1
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +3 -4
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +3 -4
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/field/Field.js +5 -5
- package/build/field/Field.mjs +5 -5
- package/build/flowNavigation/FlowNavigation.js +0 -1
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs +0 -1
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/header/Header.js +0 -1
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +0 -1
- package/build/header/Header.mjs.map +1 -1
- package/build/i18n/en.json +2 -0
- package/build/i18n/en.json.js +2 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +2 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -0
- package/build/index.mjs.map +1 -1
- package/build/info/Info.js +0 -1
- package/build/info/Info.js.map +1 -1
- package/build/info/Info.mjs +0 -1
- package/build/info/Info.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js +0 -1
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs +0 -1
- package/build/inlineAlert/InlineAlert.mjs.map +1 -1
- package/build/inputs/SearchInput.js +0 -1
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs +0 -1
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/instructionsList/InstructionsList.js +0 -1
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/instructionsList/InstructionsList.mjs +0 -1
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- package/build/link/Link.js +0 -1
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs +0 -1
- package/build/link/Link.mjs.map +1 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +0 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -1
- package/build/listItem/ListItem.js +0 -1
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +0 -1
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js +5 -5
- package/build/listItem/Prompt/ListItemPrompt.mjs +5 -5
- package/build/loader/Loader.js +0 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs +0 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/main.css +130 -51
- package/build/markdown/Markdown.js +0 -1
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs +0 -1
- package/build/markdown/Markdown.mjs.map +1 -1
- package/build/modal/Modal.js +0 -1
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs +0 -1
- package/build/modal/Modal.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.js +12 -28
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +14 -30
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/moneyInput/currencyFormatting.js +2 -8
- package/build/moneyInput/currencyFormatting.js.map +1 -1
- package/build/moneyInput/currencyFormatting.mjs +4 -5
- package/build/moneyInput/currencyFormatting.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js +0 -1
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs +0 -1
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/nudge/Nudge.js +0 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +0 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js +0 -1
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs +0 -1
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/popover/Popover.js +0 -1
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs +0 -1
- package/build/popover/Popover.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js +0 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs +0 -1
- package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/progressBar/ProgressBar.js +0 -1
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/progressBar/ProgressBar.mjs +0 -1
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js +0 -1
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +0 -1
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js +0 -1
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs +0 -1
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.js +8 -41
- package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.mjs +8 -41
- package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.js +148 -0
- package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -0
- package/build/prompt/CriticalBanner/CriticalBanner.mjs +146 -0
- package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -0
- package/build/prompt/CriticalBanner/helpers.js +29 -0
- package/build/prompt/CriticalBanner/helpers.js.map +1 -0
- package/build/prompt/CriticalBanner/helpers.mjs +26 -0
- package/build/prompt/CriticalBanner/helpers.mjs.map +1 -0
- package/build/prompt/InfoPrompt/InfoPrompt.js +0 -1
- package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -1
- package/build/prompt/InfoPrompt/InfoPrompt.mjs +0 -1
- package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.js +0 -1
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs +0 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.js +2 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs +2 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
- package/build/prompt/common/Expander/Expander.js +47 -0
- package/build/prompt/common/Expander/Expander.js.map +1 -0
- package/build/prompt/common/Expander/Expander.messages.js +17 -0
- package/build/prompt/common/Expander/Expander.messages.js.map +1 -0
- package/build/prompt/common/Expander/Expander.messages.mjs +13 -0
- package/build/prompt/common/Expander/Expander.messages.mjs.map +1 -0
- package/build/prompt/common/Expander/Expander.mjs +44 -0
- package/build/prompt/common/Expander/Expander.mjs.map +1 -0
- package/build/prompt/helpers/promptMedia.js +52 -0
- package/build/prompt/helpers/promptMedia.js.map +1 -0
- package/build/prompt/helpers/promptMedia.mjs +50 -0
- package/build/prompt/helpers/promptMedia.mjs.map +1 -0
- package/build/radio/Radio.js +0 -1
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs +0 -1
- package/build/radio/Radio.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +0 -1
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs +0 -1
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js +0 -1
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +0 -1
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js +0 -1
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs +0 -1
- package/build/select/option/Option.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js +0 -1
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.mjs +0 -1
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js +0 -1
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs +0 -1
- package/build/stepper/Stepper.mjs.map +1 -1
- package/build/sticky/Sticky.js +0 -1
- package/build/sticky/Sticky.js.map +1 -1
- package/build/sticky/Sticky.mjs +0 -1
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/styles/css/neptune.css +22 -22
- package/build/styles/less/neptune-tokens.less +4 -4
- package/build/styles/main.css +130 -51
- package/build/styles/prompt/CriticalBanner/CriticalBanner.css +59 -0
- package/build/styles/prompt/common/Expander/Expander.css +8 -0
- package/build/styles/props/neptune-tokens.css +2 -2
- package/build/styles/styles/less/neptune.css +22 -22
- package/build/summary/Summary.js +0 -1
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.mjs +0 -1
- package/build/summary/Summary.mjs.map +1 -1
- package/build/table/Table.js +0 -1
- package/build/table/Table.js.map +1 -1
- package/build/table/Table.mjs +0 -1
- package/build/table/Table.mjs.map +1 -1
- package/build/table/TableRow.js +0 -1
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableRow.mjs +0 -1
- package/build/table/TableRow.mjs.map +1 -1
- package/build/table/TableStatusText.js +0 -1
- package/build/table/TableStatusText.js.map +1 -1
- package/build/table/TableStatusText.mjs +0 -1
- package/build/table/TableStatusText.mjs.map +1 -1
- package/build/tabs/Tabs.js +0 -1
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs +0 -1
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tile/Tile.js +0 -1
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs +0 -1
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js +0 -1
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs +0 -1
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js +50 -30
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs +51 -31
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +5 -5
- package/build/typeahead/Typeahead.mjs +5 -5
- package/build/types/common/locale/index.d.ts +1 -1
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/common/panel/Panel.d.ts.map +1 -1
- package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts +0 -6
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/moneyInput/currencyFormatting.d.ts +3 -4
- package/build/types/moneyInput/currencyFormatting.d.ts.map +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +2 -11
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
- package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +40 -0
- package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts.map +1 -0
- package/build/types/prompt/CriticalBanner/helpers.d.ts +18 -0
- package/build/types/prompt/CriticalBanner/helpers.d.ts.map +1 -0
- package/build/types/prompt/CriticalBanner/index.d.ts +3 -0
- package/build/types/prompt/CriticalBanner/index.d.ts.map +1 -0
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +8 -3
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
- package/build/types/prompt/common/Expander/Expander.d.ts +20 -0
- package/build/types/prompt/common/Expander/Expander.d.ts.map +1 -0
- package/build/types/prompt/common/Expander/Expander.messages.d.ts +14 -0
- package/build/types/prompt/common/Expander/Expander.messages.d.ts.map +1 -0
- package/build/types/prompt/helpers/promptMedia.d.ts +22 -0
- package/build/types/prompt/helpers/promptMedia.d.ts.map +1 -0
- package/build/types/prompt/index.d.ts +2 -0
- package/build/types/prompt/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +4 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/types/tooltip/Tooltip.d.ts.map +1 -1
- package/build/upload/Upload.js +0 -1
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.mjs +0 -1
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +0 -1
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +0 -1
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +0 -1
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +0 -1
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js +0 -1
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs +0 -1
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +0 -1
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +0 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js +0 -1
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs +0 -1
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +0 -1
- package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs +0 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/package.json +16 -14
- package/src/common/locale/index.test.ts +4 -13
- package/src/common/locale/index.ts +3 -9
- package/src/common/panel/Panel.tsx +50 -42
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -18
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.test.tsx +1 -119
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx +3 -4
- package/src/i18n/en.json +2 -0
- package/src/index.ts +2 -2
- package/src/main.css +130 -51
- package/src/main.less +3 -1
- package/src/moneyInput/MoneyInput.story.tsx +1 -10
- package/src/moneyInput/MoneyInput.test.story.tsx +1 -141
- package/src/moneyInput/MoneyInput.test.tsx +0 -45
- package/src/moneyInput/MoneyInput.tsx +3 -27
- package/src/moneyInput/currencyFormatting.ts +5 -11
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +9 -62
- package/src/prompt/CriticalBanner/CriticalBanner.accessibility.docs.mdx +131 -0
- package/src/prompt/CriticalBanner/CriticalBanner.css +59 -0
- package/src/prompt/CriticalBanner/CriticalBanner.less +64 -0
- package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +645 -0
- package/src/prompt/CriticalBanner/CriticalBanner.test.story.tsx +285 -0
- package/src/prompt/CriticalBanner/CriticalBanner.tsx +194 -0
- package/src/prompt/CriticalBanner/helpers.ts +39 -0
- package/src/prompt/CriticalBanner/index.ts +2 -0
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +9 -2
- package/src/prompt/common/Expander/Expander.css +8 -0
- package/src/prompt/common/Expander/Expander.less +9 -0
- package/src/prompt/common/Expander/Expander.messages.ts +14 -0
- package/src/prompt/common/Expander/Expander.test.tsx +167 -0
- package/src/prompt/common/Expander/Expander.tsx +83 -0
- package/src/prompt/helpers/promptMedia.tsx +79 -0
- package/src/prompt/index.ts +4 -0
- package/src/sentimentSurface/SentimentSurface.story.tsx +43 -17
- package/src/styles/less/neptune.css +22 -22
- package/src/tooltip/Tooltip.tsx +45 -26
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
arrow as arrowMiddleware,
|
|
3
|
-
autoUpdate,
|
|
4
|
-
flip as flipMiddleware,
|
|
5
|
-
offset,
|
|
6
|
-
type Placement,
|
|
7
|
-
shift,
|
|
8
|
-
useFloating,
|
|
9
|
-
} from '@floating-ui/react';
|
|
10
1
|
import { clsx } from 'clsx';
|
|
11
2
|
import {
|
|
12
3
|
CSSProperties,
|
|
@@ -16,19 +7,21 @@ import {
|
|
|
16
7
|
SyntheticEvent,
|
|
17
8
|
forwardRef,
|
|
18
9
|
useContext,
|
|
19
|
-
|
|
10
|
+
useEffect,
|
|
11
|
+
useState,
|
|
20
12
|
} from 'react';
|
|
13
|
+
import { usePopper } from 'react-popper';
|
|
21
14
|
|
|
22
15
|
import { Position, PositionBottom, PositionLeft, PositionRight, PositionTop } from '..';
|
|
23
16
|
import Dimmer from '../../dimmer';
|
|
24
17
|
import { OverlayIdContext } from '../../provider/overlay/OverlayIdProvider';
|
|
25
18
|
|
|
26
|
-
const POPOVER_OFFSET = 16;
|
|
19
|
+
const POPOVER_OFFSET = [0, 16];
|
|
27
20
|
|
|
28
21
|
// By default the flip positioning explores only the opposite alternative. So if left is passed and there's no enough space
|
|
29
22
|
// the right one gets chosen. If there's no space on both sides popover goes back to the initially chosen one left.
|
|
30
23
|
// This mapping forces popover to try the four available positions before going back to the initial chosen one.
|
|
31
|
-
const fallbackPlacements
|
|
24
|
+
const fallbackPlacements = {
|
|
32
25
|
[Position.TOP]: [Position.BOTTOM, Position.RIGHT, Position.LEFT],
|
|
33
26
|
[Position.BOTTOM]: [Position.TOP, Position.RIGHT, Position.LEFT],
|
|
34
27
|
[Position.LEFT]: [Position.RIGHT, Position.TOP, Position.BOTTOM],
|
|
@@ -64,43 +57,56 @@ const Panel = forwardRef<HTMLDivElement, PanelProps>(function Panel(
|
|
|
64
57
|
}: PanelProps,
|
|
65
58
|
reference,
|
|
66
59
|
) {
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
const middleware = [];
|
|
70
|
-
|
|
71
|
-
if (arrow) {
|
|
72
|
-
middleware.push(offset(POPOVER_OFFSET));
|
|
73
|
-
}
|
|
60
|
+
const [arrowElement, setArrowElement] = useState<HTMLDivElement | null>(null);
|
|
61
|
+
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);
|
|
74
62
|
|
|
75
|
-
|
|
76
|
-
middleware.push(
|
|
77
|
-
flipMiddleware({
|
|
78
|
-
fallbackPlacements: fallbackPlacements[position],
|
|
79
|
-
}),
|
|
80
|
-
);
|
|
81
|
-
}
|
|
63
|
+
const modifiers = [];
|
|
82
64
|
|
|
83
65
|
if (altAxis) {
|
|
84
|
-
|
|
66
|
+
modifiers.push({
|
|
67
|
+
// https://popper.js.org/docs/v2/modifiers/prevent-overflow
|
|
68
|
+
name: 'preventOverflow',
|
|
69
|
+
options: {
|
|
70
|
+
altAxis: true,
|
|
71
|
+
tether: false,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
85
74
|
}
|
|
86
75
|
|
|
87
76
|
if (arrow) {
|
|
88
|
-
|
|
77
|
+
modifiers.push({
|
|
78
|
+
name: 'arrow',
|
|
79
|
+
options: {
|
|
80
|
+
element: arrowElement,
|
|
81
|
+
options: {
|
|
82
|
+
padding: 8, // 8px from the edges of the popper
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
// This lets you displace a popper element from its reference element.
|
|
87
|
+
modifiers.push({ name: 'offset', options: { offset: POPOVER_OFFSET } });
|
|
88
|
+
}
|
|
89
|
+
if (flip && fallbackPlacements[position]) {
|
|
90
|
+
modifiers.push({
|
|
91
|
+
name: 'flip',
|
|
92
|
+
options: {
|
|
93
|
+
fallbackPlacements: fallbackPlacements[position],
|
|
94
|
+
},
|
|
95
|
+
});
|
|
89
96
|
}
|
|
90
97
|
|
|
91
|
-
const {
|
|
98
|
+
const { styles, attributes, forceUpdate } = usePopper(anchorRef.current, popperElement, {
|
|
92
99
|
placement: position,
|
|
93
|
-
|
|
94
|
-
elements: {
|
|
95
|
-
reference: anchorRef.current,
|
|
96
|
-
},
|
|
97
|
-
whileElementsMounted: open ? autoUpdate : undefined,
|
|
100
|
+
modifiers,
|
|
98
101
|
});
|
|
99
102
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
// If the trigger is not visible when the position is calculated, it will be incorrect. Because this can happen repeatedly (on resize for example),
|
|
104
|
+
// it is most simple just to always position before opening
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
if (open && forceUpdate) {
|
|
107
|
+
forceUpdate();
|
|
108
|
+
}
|
|
109
|
+
}, [open]);
|
|
104
110
|
|
|
105
111
|
const contentStyle: CSSProperties = {
|
|
106
112
|
...(anchorWidth ? { width: anchorRef.current?.clientWidth } : undefined),
|
|
@@ -113,16 +119,18 @@ const Panel = forwardRef<HTMLDivElement, PanelProps>(function Panel(
|
|
|
113
119
|
<div
|
|
114
120
|
id={overlayId}
|
|
115
121
|
{...rest}
|
|
116
|
-
ref={
|
|
122
|
+
ref={setPopperElement}
|
|
117
123
|
role="dialog"
|
|
118
|
-
style={
|
|
119
|
-
|
|
124
|
+
style={{ ...styles.popper }}
|
|
125
|
+
{...attributes.popper}
|
|
120
126
|
className={clsx('np-panel', { 'np-panel--open': open }, rest.className)}
|
|
121
127
|
>
|
|
122
128
|
<div ref={reference} style={contentStyle} className={clsx('np-panel__content')}>
|
|
123
129
|
{children}
|
|
124
130
|
{/* Arrow has to stay inside content to get the same animations as the "dialog" and to get hidden when panel is closed. */}
|
|
125
|
-
{arrow &&
|
|
131
|
+
{arrow && (
|
|
132
|
+
<div ref={setArrowElement} className={clsx('np-panel__arrow')} style={styles.arrow} />
|
|
133
|
+
)}
|
|
126
134
|
</div>
|
|
127
135
|
</div>
|
|
128
136
|
</Dimmer>
|
|
@@ -161,24 +161,6 @@ export const WithInlinePromptSentiment = {
|
|
|
161
161
|
},
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export const WithFormattedCurrencyCode = {
|
|
165
|
-
args: {
|
|
166
|
-
currency: 'USC',
|
|
167
|
-
currencySelector: {
|
|
168
|
-
...getCurrencySelectorProps({ logEvents: true }),
|
|
169
|
-
options: [
|
|
170
|
-
{
|
|
171
|
-
title: 'Popular',
|
|
172
|
-
currencies: [
|
|
173
|
-
{ code: 'USC', label: 'Digital Dollar', keywords: ['USDC', 'Digital Dollar'] },
|
|
174
|
-
{ code: 'USD', label: 'US Dollar', keywords: ['dollar', 'us'] },
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
|
|
182
164
|
export const WithSecondaryCurrencySelectorAvatar = {
|
|
183
165
|
args: {
|
|
184
166
|
currencySelector: getCurrencySelectorProps({ logEvents: true, secondAvatar: true }),
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mockMatchMedia,
|
|
3
|
-
mockResizeObserver,
|
|
4
|
-
render,
|
|
5
|
-
screen,
|
|
6
|
-
userEvent,
|
|
7
|
-
waitFor,
|
|
8
|
-
} from '../../test-utils';
|
|
1
|
+
import { mockMatchMedia, mockResizeObserver, render, screen, userEvent } from '../../test-utils';
|
|
9
2
|
|
|
10
3
|
import { CurrencySelector } from './CurrencySelector';
|
|
11
4
|
|
|
@@ -99,112 +92,6 @@ describe('CurrencySelector', () => {
|
|
|
99
92
|
expect(screen.getByRole('combobox')).toBeDisabled();
|
|
100
93
|
});
|
|
101
94
|
|
|
102
|
-
it('displays formatted currency code when the currency is selected', () => {
|
|
103
|
-
render(<CurrencySelector options={mockCurrencies} id="id" currency="USC" labelId="labelId" />);
|
|
104
|
-
|
|
105
|
-
expect(screen.getByRole('combobox', { name: 'Select currency' })).toHaveTextContent('USDC');
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
it('displays formatted currency code in the selected option content', async () => {
|
|
109
|
-
render(
|
|
110
|
-
<CurrencySelector
|
|
111
|
-
options={[
|
|
112
|
-
{
|
|
113
|
-
title: 'All',
|
|
114
|
-
currencies: [
|
|
115
|
-
{ code: 'USC', label: 'USDC', keywords: ['USDC'] },
|
|
116
|
-
{ code: 'EUR', label: 'Euro', keywords: ['EUR'] },
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
]}
|
|
120
|
-
id="id"
|
|
121
|
-
currency="USC"
|
|
122
|
-
labelId="labelId"
|
|
123
|
-
onChange={jest.fn()}
|
|
124
|
-
/>,
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
await userEvent.click(screen.getByRole('combobox'));
|
|
128
|
-
|
|
129
|
-
expect(screen.getByRole('option', { name: /^usdc/iu })).toHaveTextContent('USDC');
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
it('fires onChange with the raw currency code when selecting a formatted currency', async () => {
|
|
133
|
-
const onChange = jest.fn();
|
|
134
|
-
render(
|
|
135
|
-
<CurrencySelector
|
|
136
|
-
options={[
|
|
137
|
-
{
|
|
138
|
-
title: 'All',
|
|
139
|
-
currencies: [
|
|
140
|
-
{ code: 'USC', label: 'USDC', keywords: ['USC'] },
|
|
141
|
-
{ code: 'EUR', label: 'Euro', keywords: ['EUR'] },
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
]}
|
|
145
|
-
id="id"
|
|
146
|
-
currency="EUR"
|
|
147
|
-
labelId="labelId"
|
|
148
|
-
onChange={onChange}
|
|
149
|
-
/>,
|
|
150
|
-
);
|
|
151
|
-
|
|
152
|
-
await userEvent.click(screen.getByRole('combobox'));
|
|
153
|
-
await userEvent.click(screen.getByRole('option', { name: /^usdc/iu }));
|
|
154
|
-
|
|
155
|
-
expect(onChange).toHaveBeenCalledWith('USC');
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
it('returns USC option when searching by the formatted code USDC', async () => {
|
|
159
|
-
render(
|
|
160
|
-
<CurrencySelector
|
|
161
|
-
options={mockCurrencies}
|
|
162
|
-
id="id"
|
|
163
|
-
currency="USD"
|
|
164
|
-
labelId="labelId"
|
|
165
|
-
onChange={jest.fn()}
|
|
166
|
-
/>,
|
|
167
|
-
);
|
|
168
|
-
|
|
169
|
-
await userEvent.click(screen.getByRole('combobox', { name: 'Select currency' }));
|
|
170
|
-
|
|
171
|
-
await userEvent.type(
|
|
172
|
-
screen.getByRole('combobox', {
|
|
173
|
-
name: /type a currency \/ country/iu,
|
|
174
|
-
}),
|
|
175
|
-
'USDC',
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
await waitFor(() => {
|
|
179
|
-
expect(screen.getByRole('option', { name: /usdc/iu })).toBeInTheDocument();
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
it('does not return USDC option when searching by the raw code USC', async () => {
|
|
184
|
-
render(
|
|
185
|
-
<CurrencySelector
|
|
186
|
-
options={mockCurrencies}
|
|
187
|
-
id="id"
|
|
188
|
-
currency="USD"
|
|
189
|
-
labelId="labelId"
|
|
190
|
-
onChange={jest.fn()}
|
|
191
|
-
/>,
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
await userEvent.click(screen.getByRole('combobox', { name: 'Select currency' }));
|
|
195
|
-
|
|
196
|
-
await userEvent.type(
|
|
197
|
-
screen.getByRole('combobox', {
|
|
198
|
-
name: /type a currency \/ country/iu,
|
|
199
|
-
}),
|
|
200
|
-
'USC',
|
|
201
|
-
);
|
|
202
|
-
|
|
203
|
-
await waitFor(() => {
|
|
204
|
-
expect(screen.queryByRole('option')).not.toBeInTheDocument();
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
|
|
208
95
|
it('deduplicates currencies while searching', async () => {
|
|
209
96
|
render(
|
|
210
97
|
<CurrencySelector
|
|
@@ -268,11 +155,6 @@ const mockCurrencies = [
|
|
|
268
155
|
label: 'Australian Dollar',
|
|
269
156
|
keywords: ['AUD', 'australia'],
|
|
270
157
|
},
|
|
271
|
-
{
|
|
272
|
-
code: 'USC',
|
|
273
|
-
label: 'Digital Dollar',
|
|
274
|
-
keywords: ['USDC', 'Digital Dollar'],
|
|
275
|
-
},
|
|
276
158
|
],
|
|
277
159
|
},
|
|
278
160
|
];
|
|
@@ -19,7 +19,6 @@ import { useIntl } from 'react-intl';
|
|
|
19
19
|
|
|
20
20
|
import messages from '../ExpressiveMoneyInput.messages';
|
|
21
21
|
import { getLocaleCurrencyName } from '../../common';
|
|
22
|
-
import { formatCurrencyCode } from '@transferwise/formatting';
|
|
23
22
|
|
|
24
23
|
export interface CurrencyOption {
|
|
25
24
|
label?: string;
|
|
@@ -100,7 +99,7 @@ export const CurrencySelector = ({
|
|
|
100
99
|
renderValue={({ code, label }) => {
|
|
101
100
|
return (
|
|
102
101
|
<SelectInputOptionContent
|
|
103
|
-
title={
|
|
102
|
+
title={code}
|
|
104
103
|
note={label}
|
|
105
104
|
icon={<Flag code={code} intrinsicSize={24} />}
|
|
106
105
|
/>
|
|
@@ -129,7 +128,7 @@ export const CurrencySelector = ({
|
|
|
129
128
|
onClick={(event) => handleTriggerClick(event)}
|
|
130
129
|
>
|
|
131
130
|
<>
|
|
132
|
-
<span aria-hidden>{
|
|
131
|
+
<span aria-hidden>{currency}</span>
|
|
133
132
|
<span className="sr-only">{getLocaleCurrencyName(intl, currency)}</span>
|
|
134
133
|
</>
|
|
135
134
|
</SelectInputTriggerButton>
|
|
@@ -204,7 +203,7 @@ const filterAndSortCurrenciesForQuery = (
|
|
|
204
203
|
currencies
|
|
205
204
|
.filter((currency) => {
|
|
206
205
|
return (
|
|
207
|
-
|
|
206
|
+
currency.code.toLowerCase().includes(query) ||
|
|
208
207
|
(currency.label ?? '').toLowerCase().includes(query) ||
|
|
209
208
|
currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))
|
|
210
209
|
);
|
package/src/i18n/en.json
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"neptune.DateLookup.selected": "selected",
|
|
17
17
|
"neptune.DateLookup.twentyYears": "20 years",
|
|
18
18
|
"neptune.DateLookup.year": "year",
|
|
19
|
+
"neptune.Expander.collapseAriaLabel": "Collapse",
|
|
20
|
+
"neptune.Expander.expandAriaLabel": "Expand",
|
|
19
21
|
"neptune.ExpressiveMoneyInput.currency.search.placeholder": "Type a currency / country",
|
|
20
22
|
"neptune.ExpressiveMoneyInput.currency.select.currency": "Select currency",
|
|
21
23
|
"neptune.FlowNavigation.back": "back to previous step",
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type { HeaderProps } from './header';
|
|
|
35
35
|
export type { EmphasisProps } from './emphasis';
|
|
36
36
|
export type { FieldProps } from './field/Field';
|
|
37
37
|
export type { InfoProps } from './info';
|
|
38
|
-
export type { InlinePromptProps, ActionPromptProps } from './prompt';
|
|
38
|
+
export type { InlinePromptProps, ActionPromptProps, CriticalBannerProps } from './prompt';
|
|
39
39
|
export type { InfoPromptProps, InfoPromptAction, InfoPromptMedia } from './prompt';
|
|
40
40
|
export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
|
|
41
41
|
export type { InputProps } from './inputs/Input';
|
|
@@ -173,7 +173,7 @@ export { default as Header } from './header';
|
|
|
173
173
|
export { default as Image } from './image';
|
|
174
174
|
export { default as Info } from './info';
|
|
175
175
|
export { default as InlineAlert } from './inlineAlert';
|
|
176
|
-
export { InfoPrompt, InlinePrompt, ActionPrompt } from './prompt';
|
|
176
|
+
export { InfoPrompt, InlinePrompt, ActionPrompt, CriticalBanner } from './prompt';
|
|
177
177
|
export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
|
|
178
178
|
export { Input } from './inputs/Input';
|
|
179
179
|
export { InputGroup } from './inputs/InputGroup';
|
package/src/main.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Do not edit directly
|
|
146
|
-
* Generated on
|
|
145
|
+
* Do not edit directly
|
|
146
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
149
|
.np-theme-personal {
|
|
@@ -391,8 +391,8 @@
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
|
-
* Do not edit directly
|
|
395
|
-
* Generated on
|
|
394
|
+
* Do not edit directly
|
|
395
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
396
396
|
*/
|
|
397
397
|
|
|
398
398
|
.np-theme-personal--forest-green {
|
|
@@ -640,8 +640,8 @@
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
/**
|
|
643
|
-
* Do not edit directly
|
|
644
|
-
* Generated on
|
|
643
|
+
* Do not edit directly
|
|
644
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
645
645
|
*/
|
|
646
646
|
|
|
647
647
|
.np-theme-personal--bright-green {
|
|
@@ -889,8 +889,8 @@
|
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
/**
|
|
892
|
-
* Do not edit directly
|
|
893
|
-
* Generated on
|
|
892
|
+
* Do not edit directly
|
|
893
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
894
894
|
*/
|
|
895
895
|
|
|
896
896
|
.np-theme-personal--dark {
|
|
@@ -1138,8 +1138,8 @@
|
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
/**
|
|
1141
|
-
* Do not edit directly
|
|
1142
|
-
* Generated on
|
|
1141
|
+
* Do not edit directly
|
|
1142
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
1143
1143
|
*/
|
|
1144
1144
|
|
|
1145
1145
|
.np-theme-platform {
|
|
@@ -1321,8 +1321,8 @@
|
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
/**
|
|
1324
|
-
* Do not edit directly
|
|
1325
|
-
* Generated on
|
|
1324
|
+
* Do not edit directly
|
|
1325
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
1326
1326
|
*/
|
|
1327
1327
|
|
|
1328
1328
|
.np-theme-platform--forest-green {
|
|
@@ -1504,8 +1504,8 @@
|
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
1506
|
/**
|
|
1507
|
-
* Do not edit directly
|
|
1508
|
-
* Generated on
|
|
1507
|
+
* Do not edit directly
|
|
1508
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
1509
1509
|
*/
|
|
1510
1510
|
|
|
1511
1511
|
.np-theme-business {
|
|
@@ -1688,8 +1688,8 @@
|
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
/**
|
|
1691
|
-
* Do not edit directly
|
|
1692
|
-
* Generated on
|
|
1691
|
+
* Do not edit directly
|
|
1692
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
1693
1693
|
*/
|
|
1694
1694
|
|
|
1695
1695
|
.np-theme-business--dark {
|
|
@@ -1872,8 +1872,8 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
/**
|
|
1875
|
-
* Do not edit directly
|
|
1876
|
-
* Generated on
|
|
1875
|
+
* Do not edit directly
|
|
1876
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
1877
1877
|
*/
|
|
1878
1878
|
|
|
1879
1879
|
.np-theme-business--forest-green {
|
|
@@ -2056,8 +2056,8 @@
|
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
2058
|
/**
|
|
2059
|
-
* Do not edit directly
|
|
2060
|
-
* Generated on
|
|
2059
|
+
* Do not edit directly
|
|
2060
|
+
* Generated on Wed, 07 Jan 2026 11:56:15 GMT
|
|
2061
2061
|
*/
|
|
2062
2062
|
|
|
2063
2063
|
.np-theme-business--bright-green {
|
|
@@ -32176,6 +32176,114 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
32176
32176
|
padding: 0;
|
|
32177
32177
|
}
|
|
32178
32178
|
|
|
32179
|
+
.wds-action-prompt {
|
|
32180
|
+
--Prompt-padding: var(--size-16);
|
|
32181
|
+
--Prompt-actions-gap: var(--size-8);
|
|
32182
|
+
--Prompt-gap: var(--size-10) var(--size-16);
|
|
32183
|
+
--Prompt-border-radius: var(--radius-large);
|
|
32184
|
+
}
|
|
32185
|
+
|
|
32186
|
+
.wds-action-prompt--media-image {
|
|
32187
|
+
width: 48px;
|
|
32188
|
+
width: var(--size-48);
|
|
32189
|
+
height: 48px;
|
|
32190
|
+
height: var(--size-48);
|
|
32191
|
+
-o-object-fit: contain;
|
|
32192
|
+
object-fit: contain;
|
|
32193
|
+
}
|
|
32194
|
+
|
|
32195
|
+
@media (max-width: 767px) {
|
|
32196
|
+
.wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
32197
|
+
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
32198
|
+
min-width: -moz-fit-content;
|
|
32199
|
+
min-width: fit-content;
|
|
32200
|
+
}
|
|
32201
|
+
}
|
|
32202
|
+
|
|
32203
|
+
.wds-action-prompt__content {
|
|
32204
|
+
max-width: calc(48px * 10);
|
|
32205
|
+
max-width: calc(var(--size-48) * 10);
|
|
32206
|
+
}
|
|
32207
|
+
|
|
32208
|
+
.wds-critical-banner {
|
|
32209
|
+
--Prompt-padding: var(--size-16);
|
|
32210
|
+
--Prompt-actions-gap: var(--size-8);
|
|
32211
|
+
--Prompt-gap: var(--size-10) var(--size-16);
|
|
32212
|
+
--Prompt-border-radius: 0;
|
|
32213
|
+
/* Override PrimitivePrompt's --screen-sm-max actions behaviour:
|
|
32214
|
+
actions only go full-width below 480px (--screen-xs) */
|
|
32215
|
+
}
|
|
32216
|
+
|
|
32217
|
+
.wds-critical-banner__mobile--collapsed {
|
|
32218
|
+
max-height: 30vh;
|
|
32219
|
+
}
|
|
32220
|
+
|
|
32221
|
+
.wds-critical-banner--media-image {
|
|
32222
|
+
width: 48px;
|
|
32223
|
+
width: var(--size-48);
|
|
32224
|
+
height: 48px;
|
|
32225
|
+
height: var(--size-48);
|
|
32226
|
+
-o-object-fit: contain;
|
|
32227
|
+
object-fit: contain;
|
|
32228
|
+
}
|
|
32229
|
+
|
|
32230
|
+
.wds-critical-banner__title--collapsed {
|
|
32231
|
+
display: -webkit-box;
|
|
32232
|
+
-webkit-line-clamp: 2;
|
|
32233
|
+
line-clamp: 2;
|
|
32234
|
+
-webkit-box-orient: vertical;
|
|
32235
|
+
overflow: hidden;
|
|
32236
|
+
}
|
|
32237
|
+
|
|
32238
|
+
.wds-critical-banner__description--collapsed {
|
|
32239
|
+
display: -webkit-box;
|
|
32240
|
+
-webkit-line-clamp: 2;
|
|
32241
|
+
line-clamp: 2;
|
|
32242
|
+
-webkit-box-orient: vertical;
|
|
32243
|
+
overflow: hidden;
|
|
32244
|
+
}
|
|
32245
|
+
|
|
32246
|
+
.wds-critical-banner .wds-prompt__content-wrapper {
|
|
32247
|
+
grid-template-columns: auto 1fr auto;
|
|
32248
|
+
align-items: flex-start;
|
|
32249
|
+
}
|
|
32250
|
+
|
|
32251
|
+
.wds-critical-banner__text-wrapper {
|
|
32252
|
+
min-width: 0;
|
|
32253
|
+
max-width: 480px;
|
|
32254
|
+
height: 100%;
|
|
32255
|
+
}
|
|
32256
|
+
|
|
32257
|
+
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
32258
|
+
grid-column-start: 2;
|
|
32259
|
+
grid-column-end: 3;
|
|
32260
|
+
}
|
|
32261
|
+
|
|
32262
|
+
@media not (min-width: 480px) {
|
|
32263
|
+
.wds-critical-banner .wds-prompt__actions-wrapper {
|
|
32264
|
+
grid-column: span 3;
|
|
32265
|
+
width: 100%;
|
|
32266
|
+
}
|
|
32267
|
+
}
|
|
32268
|
+
|
|
32269
|
+
@media not (min-width: 480px) {
|
|
32270
|
+
.wds-critical-banner--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
32271
|
+
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
32272
|
+
min-width: -moz-fit-content;
|
|
32273
|
+
min-width: fit-content;
|
|
32274
|
+
}
|
|
32275
|
+
}
|
|
32276
|
+
|
|
32277
|
+
.wds-expander-toggle {
|
|
32278
|
+
align-self: flex-start;
|
|
32279
|
+
flex-shrink: 0;
|
|
32280
|
+
transition: transform 0.2s ease-in-out;
|
|
32281
|
+
}
|
|
32282
|
+
|
|
32283
|
+
.wds-expander-toggle--collapsed {
|
|
32284
|
+
transform: rotate(180deg);
|
|
32285
|
+
}
|
|
32286
|
+
|
|
32179
32287
|
.wds-radio-group .np-radio:last-child label {
|
|
32180
32288
|
margin-bottom: 0;
|
|
32181
32289
|
}
|
|
@@ -34600,32 +34708,3 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
34600
34708
|
.np-list-item__action {
|
|
34601
34709
|
flex-shrink: 0;
|
|
34602
34710
|
}
|
|
34603
|
-
|
|
34604
|
-
.wds-action-prompt {
|
|
34605
|
-
--Prompt-padding: var(--size-16);
|
|
34606
|
-
--Prompt-actions-gap: var(--size-8);
|
|
34607
|
-
--Prompt-gap: var(--size-10) var(--size-16);
|
|
34608
|
-
--Prompt-border-radius: var(--radius-large);
|
|
34609
|
-
}
|
|
34610
|
-
|
|
34611
|
-
.wds-action-prompt--media-image {
|
|
34612
|
-
width: 48px;
|
|
34613
|
-
width: var(--size-48);
|
|
34614
|
-
height: 48px;
|
|
34615
|
-
height: var(--size-48);
|
|
34616
|
-
-o-object-fit: contain;
|
|
34617
|
-
object-fit: contain;
|
|
34618
|
-
}
|
|
34619
|
-
|
|
34620
|
-
@media (max-width: 767px) {
|
|
34621
|
-
.wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
|
|
34622
|
-
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
34623
|
-
min-width: -moz-fit-content;
|
|
34624
|
-
min-width: fit-content;
|
|
34625
|
-
}
|
|
34626
|
-
}
|
|
34627
|
-
|
|
34628
|
-
.wds-action-prompt__content {
|
|
34629
|
-
max-width: calc(48px * 10);
|
|
34630
|
-
max-width: calc(var(--size-48) * 10);
|
|
34631
|
-
}
|
package/src/main.less
CHANGED
|
@@ -66,6 +66,9 @@
|
|
|
66
66
|
@import "./prompt/PrimitivePrompt/PrimitivePrompt.less";
|
|
67
67
|
@import "./prompt/InlinePrompt/InlinePrompt.less";
|
|
68
68
|
@import "./prompt/InfoPrompt/InfoPrompt.less";
|
|
69
|
+
@import "./prompt/ActionPrompt/ActionPrompt.less";
|
|
70
|
+
@import "./prompt/CriticalBanner/CriticalBanner.less";
|
|
71
|
+
@import "./prompt/common/Expander/Expander.less";
|
|
69
72
|
@import "./radioGroup/RadioGroup.less";
|
|
70
73
|
@import "./section/Section.less";
|
|
71
74
|
@import "./slidingPanel/SlidingPanel.less";
|
|
@@ -90,7 +93,6 @@
|
|
|
90
93
|
@import "./progress/Progress.less";
|
|
91
94
|
@import "./progressBar/ProgressBar.less";
|
|
92
95
|
@import "./legacylistItem/LegacyListItem.less";
|
|
93
|
-
@import "./prompt/ActionPrompt/ActionPrompt.less";
|
|
94
96
|
|
|
95
97
|
// List all less files in src in alphabetical order: find -s src -type f -name '*.less' ! -name 'main.less'
|
|
96
98
|
// Make sure you are not referencing main.less itself in this file!
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { within, userEvent
|
|
2
|
+
import { within, userEvent } from 'storybook/test';
|
|
3
3
|
import { Lock } from '@transferwise/icons';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
@@ -155,15 +155,6 @@ export const BalanceCurrencies: Story = {
|
|
|
155
155
|
},
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
export const WithDecimals: Story = {
|
|
159
|
-
args: {
|
|
160
|
-
currencies: [],
|
|
161
|
-
selectedCurrency: exampleCurrency.eur,
|
|
162
|
-
decimals: 4,
|
|
163
|
-
amount: 1234.1412,
|
|
164
|
-
},
|
|
165
|
-
};
|
|
166
|
-
|
|
167
158
|
export const OpenedInput: Story = {
|
|
168
159
|
...MultipleCurrencies,
|
|
169
160
|
play: async ({ canvasElement }) => {
|