@transferwise/components 0.0.0-experimental-033dd15 → 0.0.0-experimental-64ea603
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/Accordion.js +4 -2
- package/build/accordion/Accordion.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.js +6 -4
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/actionButton/ActionButton.js +3 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionOption/ActionOption.js +5 -3
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/alert/Alert.js +4 -4
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +4 -2
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/avatar/Avatar.js +3 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.js +5 -3
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarView/AvatarView.js +9 -7
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/NotificationDot.js +3 -1
- package/build/avatarView/NotificationDot.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +8 -6
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +1 -1
- package/build/avatarWrapper/index.js +3 -1
- package/build/avatarWrapper/index.js.map +1 -1
- package/build/badge/Badge.js +3 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js +9 -7
- package/build/badge/BadgeAssets.js.map +1 -1
- package/build/badge/BadgeAssets.mjs +2 -2
- package/build/badge/BadgeAssets.mjs.map +1 -1
- package/build/body/Body.js +3 -1
- package/build/body/Body.js.map +1 -1
- package/build/button/Button.js +8 -6
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.resolver.js +5 -3
- package/build/button/Button.resolver.js.map +1 -1
- package/build/button/LegacyButton.js +5 -5
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs +0 -2
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/card/Card.js +6 -4
- package/build/card/Card.js.map +1 -1
- package/build/carousel/Carousel.js +8 -8
- package/build/carousel/Carousel.js.map +1 -1
- package/build/carousel/Carousel.mjs +1 -3
- package/build/carousel/Carousel.mjs.map +1 -1
- package/build/checkbox/Checkbox.js +6 -4
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs.map +1 -1
- package/build/checkboxButton/CheckboxButton.js +4 -2
- package/build/checkboxButton/CheckboxButton.js.map +1 -1
- package/build/checkboxButton/CheckboxButton.mjs +1 -1
- package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
- package/build/checkboxOption/CheckboxOption.js +5 -3
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/chevron/Chevron.js +3 -1
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chips/Chip.js +4 -2
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chips.js +5 -3
- package/build/chips/Chips.js.map +1 -1
- package/build/chips/Chips.messages.js +3 -1
- package/build/chips/Chips.messages.js.map +1 -1
- package/build/circularButton/CircularButton.js +5 -3
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/common/Option/Option.js +7 -5
- package/build/common/Option/Option.js.map +1 -1
- package/build/common/Option/Option.mjs +2 -2
- package/build/common/Option/Option.mjs.map +1 -1
- package/build/common/RadioButton/RadioButton.js +3 -1
- package/build/common/RadioButton/RadioButton.js.map +1 -1
- package/build/common/action/Action.js +2 -2
- package/build/common/action/Action.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.js +4 -2
- package/build/common/bottomSheet/BottomSheet.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/card/Card.js +3 -1
- package/build/common/card/Card.js.map +1 -1
- package/build/common/circle/Circle.js +3 -1
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/closeButton/CloseButton.js +1 -1
- package/build/common/closeButton/CloseButton.js.map +1 -1
- package/build/common/closeButton/CloseButton.messages.js +3 -1
- package/build/common/closeButton/CloseButton.messages.js.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.js +3 -3
- package/build/common/dateUtils/isDateValid/isDateValid.js.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.mjs +3 -3
- package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +1 -1
- package/build/common/flowHeader/FlowHeader.js +3 -1
- package/build/common/flowHeader/FlowHeader.js.map +1 -1
- package/build/common/focusBoundary/FocusBoundary.js +3 -1
- package/build/common/focusBoundary/FocusBoundary.js.map +1 -1
- package/build/common/historyNavigator/historyNavigator.js +3 -1
- package/build/common/historyNavigator/historyNavigator.js.map +1 -1
- package/build/common/locale/index.js +0 -24
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +0 -24
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js +6 -9
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs +3 -8
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js +5 -3
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js +4 -2
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +1 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +4 -2
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +1 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +4 -2
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +2 -2
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +3 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js +3 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +3 -1
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/dateInput/DateInput.js +15 -13
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.messages.js +3 -1
- package/build/dateInput/DateInput.messages.js.map +1 -1
- package/build/dateInput/DateInput.mjs +3 -3
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +8 -6
- package/build/dateLookup/DateLookup.js.map +1 -1
- package/build/dateLookup/DateLookup.messages.js +3 -1
- package/build/dateLookup/DateLookup.messages.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js +33 -26
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +27 -22
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +8 -6
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js +4 -2
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs +2 -2
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs +2 -2
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
- package/build/dateLookup/dayCalendar/DayCalendar.js +6 -4
- package/build/dateLookup/dayCalendar/DayCalendar.js.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +4 -2
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.js +6 -4
- package/build/dateLookup/monthCalendar/MonthCalendar.js.map +1 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js +4 -2
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +1 -1
- package/build/dateLookup/tableLink/TableLink.js +4 -2
- package/build/dateLookup/tableLink/TableLink.js.map +1 -1
- package/build/dateLookup/yearCalendar/YearCalendar.js +6 -4
- package/build/dateLookup/yearCalendar/YearCalendar.js.map +1 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js +4 -2
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +1 -1
- package/build/decision/Decision.js +2 -2
- package/build/decision/Decision.js.map +1 -1
- package/build/definitionList/DefinitionList.js +4 -2
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/dimmer/Dimmer.js +3 -3
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.js +3 -1
- package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
- package/build/display/Display.js +3 -1
- package/build/display/Display.js.map +1 -1
- package/build/divider/Divider.js +35 -0
- package/build/divider/Divider.js.map +1 -0
- package/build/divider/Divider.mjs +31 -0
- package/build/divider/Divider.mjs.map +1 -0
- package/build/drawer/Drawer.js +4 -2
- package/build/drawer/Drawer.js.map +1 -1
- package/build/dropFade/DropFade.js +3 -1
- package/build/dropFade/DropFade.js.map +1 -1
- package/build/dropFade/DropFade.mjs.map +1 -1
- package/build/emphasis/Emphasis.js +4 -2
- package/build/emphasis/Emphasis.js.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.js +3 -1
- package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
- package/build/field/Field.js +1 -1
- package/build/field/Field.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.js +8 -6
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.messages.js +3 -1
- package/build/flowNavigation/FlowNavigation.messages.js.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js +5 -3
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
- package/build/header/Header.js +83 -42
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +76 -38
- package/build/header/Header.mjs.map +1 -1
- package/build/i18n/commonMessages/Button.messages.js +3 -1
- package/build/i18n/commonMessages/Button.messages.js.map +1 -1
- package/build/i18n/cs.json +22 -5
- package/build/i18n/cs.json.js +25 -6
- package/build/i18n/cs.json.js.map +1 -1
- package/build/i18n/cs.json.mjs +22 -5
- package/build/i18n/cs.json.mjs.map +1 -1
- package/build/i18n/de.json.js +3 -1
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/en.json.js +3 -1
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/es.json.js +3 -1
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/fr.json.js +3 -1
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/hu.json.js +3 -1
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/id.json.js +3 -1
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/index.js +22 -20
- package/build/i18n/index.js.map +1 -1
- package/build/i18n/it.json.js +3 -1
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/ja.json.js +3 -1
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/nl.json +73 -0
- package/build/i18n/pl.json.js +3 -1
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pt.json.js +3 -1
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/ro.json.js +3 -1
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ru.json.js +3 -1
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/th.json.js +3 -1
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/tr.json.js +3 -1
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/uk.json.js +3 -1
- package/build/i18n/uk.json.js.map +1 -1
- package/build/i18n/zh-CN.json.js +3 -1
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-HK.json.js +3 -1
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/iconButton/IconButton.js +5 -3
- package/build/iconButton/IconButton.js.map +1 -1
- package/build/index.js +85 -84
- package/build/index.js.map +1 -1
- package/build/index.mjs +5 -4
- package/build/index.mjs.map +1 -1
- package/build/info/Info.js +13 -17
- package/build/info/Info.js.map +1 -1
- package/build/info/Info.messages.js +3 -1
- package/build/info/Info.messages.js.map +1 -1
- package/build/info/Info.mjs +7 -13
- package/build/info/Info.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js +5 -3
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js +4 -2
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
- package/build/inputs/Input.js +1 -3
- package/build/inputs/Input.js.map +1 -1
- package/build/inputs/Input.mjs +1 -3
- package/build/inputs/Input.mjs.map +1 -1
- package/build/inputs/SelectInput.js +5 -7
- package/build/inputs/SelectInput.js.map +1 -1
- package/build/inputs/SelectInput.messages.js +3 -1
- package/build/inputs/SelectInput.messages.js.map +1 -1
- package/build/inputs/SelectInput.mjs +4 -6
- package/build/inputs/SelectInput.mjs.map +1 -1
- package/build/inputs/_ButtonInput.js +1 -3
- package/build/inputs/_ButtonInput.js.map +1 -1
- package/build/inputs/_ButtonInput.mjs +1 -3
- package/build/inputs/_ButtonInput.mjs.map +1 -1
- package/build/inputs/_Popover.js +1 -3
- package/build/inputs/_Popover.js.map +1 -1
- package/build/inputs/_Popover.mjs +1 -3
- package/build/inputs/_Popover.mjs.map +1 -1
- package/build/instructionsList/InstructionsList.js +4 -2
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/label/Label.js +3 -3
- package/build/label/Label.js.map +1 -1
- package/build/label/Label.messages.js +3 -1
- package/build/label/Label.messages.js.map +1 -1
- package/build/link/Link.js +5 -3
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.messages.js +3 -1
- package/build/link/Link.messages.js.map +1 -1
- package/build/listItem/ListItem.js +6 -4
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +1 -1
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/loader/Loader.js +3 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/main.css +55 -102
- package/build/markdown/Markdown.js +3 -1
- package/build/markdown/Markdown.js.map +1 -1
- package/build/modal/Modal.js +5 -3
- package/build/modal/Modal.js.map +1 -1
- package/build/money/Money.js +3 -1
- package/build/money/Money.js.map +1 -1
- package/build/moneyInput/MoneyInput.js +7 -5
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.messages.js +3 -1
- package/build/moneyInput/MoneyInput.messages.js.map +1 -1
- package/build/moneyInput/currencyFormatting.js +2 -2
- package/build/moneyInput/currencyFormatting.js.map +1 -1
- package/build/moneyInput/currencyFormatting.mjs +2 -2
- package/build/moneyInput/currencyFormatting.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js +5 -3
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js +3 -1
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/nudge/Nudge.js +2 -4
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +0 -2
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js +4 -2
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +5 -3
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js +3 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
- package/build/phoneNumberInput/data/countries.js +3 -1
- package/build/phoneNumberInput/data/countries.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
- package/build/popover/Popover.js +5 -3
- package/build/popover/Popover.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js +3 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.js +4 -2
- package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.js +3 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/progress/Progress.js +3 -1
- package/build/progress/Progress.js.map +1 -1
- package/build/progressBar/ProgressBar.js +7 -5
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/promoCard/PromoCard.js +8 -6
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCardContext.js +0 -1
- package/build/promoCard/PromoCardContext.js.map +1 -1
- package/build/promoCard/PromoCardContext.mjs +0 -1
- package/build/promoCard/PromoCardContext.mjs.map +1 -1
- package/build/promoCard/PromoCardGroup.js +3 -2
- package/build/promoCard/PromoCardGroup.js.map +1 -1
- package/build/promoCard/PromoCardGroup.mjs +0 -1
- package/build/promoCard/PromoCardGroup.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js +5 -3
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/provider/Provider.js +4 -2
- package/build/provider/Provider.js.map +1 -1
- package/build/radio/Radio.js +6 -4
- package/build/radio/Radio.js.map +1 -1
- package/build/radioGroup/RadioGroup.js +4 -2
- package/build/radioGroup/RadioGroup.js.map +1 -1
- package/build/radioOption/RadioOption.js +5 -3
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/section/Section.js +3 -1
- package/build/section/Section.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +5 -3
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/select/Select.js +31 -35
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.messages.js +3 -1
- package/build/select/Select.messages.js.map +1 -1
- package/build/select/Select.mjs +19 -25
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js +9 -5
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs +3 -1
- package/build/select/option/Option.mjs.map +1 -1
- package/build/select/option/index.js +3 -1
- package/build/select/option/index.js.map +1 -1
- package/build/select/searchBox/SearchBox.js +3 -1
- package/build/select/searchBox/SearchBox.js.map +1 -1
- package/build/selectOption/SelectOption.js +11 -9
- package/build/selectOption/SelectOption.js.map +1 -1
- package/build/selectOption/SelectOption.messages.js +3 -1
- package/build/selectOption/SelectOption.messages.js.map +1 -1
- package/build/selectOption/SelectOption.mjs +1 -1
- package/build/snackbar/Snackbar.js +3 -3
- package/build/snackbar/Snackbar.js.map +1 -1
- package/build/snackbar/SnackbarProvider.js +3 -1
- package/build/snackbar/SnackbarProvider.js.map +1 -1
- package/build/snackbar/useSnackbar.js +3 -1
- package/build/snackbar/useSnackbar.js.map +1 -1
- package/build/statusIcon/StatusIcon.js +12 -10
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.messages.js +3 -1
- package/build/statusIcon/StatusIcon.messages.js.map +1 -1
- package/build/stepper/Stepper.js +4 -2
- package/build/stepper/Stepper.js.map +1 -1
- package/build/sticky/Sticky.js +3 -1
- package/build/sticky/Sticky.js.map +1 -1
- package/build/styles/button/Button.css +2 -2
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +0 -5
- package/build/styles/divider/Divider.css +24 -0
- package/build/styles/header/Header.css +28 -11
- package/build/styles/info/Info.css +0 -23
- package/build/styles/main.css +55 -102
- package/build/summary/Summary.js +11 -9
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.messages.js +3 -1
- package/build/summary/Summary.messages.js.map +1 -1
- package/build/summary/Summary.mjs +2 -2
- package/build/summary/Summary.mjs.map +1 -1
- package/build/switch/Switch.js +3 -1
- package/build/switch/Switch.js.map +1 -1
- package/build/switchOption/SwitchOption.js +5 -3
- package/build/switchOption/SwitchOption.js.map +1 -1
- package/build/table/Table.js +17 -17
- package/build/table/Table.js.map +1 -1
- package/build/table/Table.messages.js +3 -1
- package/build/table/Table.messages.js.map +1 -1
- package/build/table/Table.mjs +1 -3
- package/build/table/Table.mjs.map +1 -1
- package/build/table/TableCell.js +9 -7
- package/build/table/TableCell.js.map +1 -1
- package/build/table/TableHeader.js +6 -4
- package/build/table/TableHeader.js.map +1 -1
- package/build/table/TableRow.js +6 -4
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableStatusText.js +4 -2
- package/build/table/TableStatusText.js.map +1 -1
- package/build/tabs/Tab.js +3 -1
- package/build/tabs/Tab.js.map +1 -1
- package/build/tabs/TabList.js +3 -1
- package/build/tabs/TabList.js.map +1 -1
- package/build/tabs/TabPanel.js +3 -1
- package/build/tabs/TabPanel.js.map +1 -1
- package/build/tabs/Tabs.js +6 -4
- package/build/tabs/Tabs.js.map +1 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +4 -2
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
- package/build/tile/Tile.js +5 -3
- package/build/tile/Tile.js.map +1 -1
- package/build/title/Title.js +9 -5
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs +6 -4
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js +5 -7
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs +2 -6
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +8 -6
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.messages.js +3 -1
- package/build/typeahead/Typeahead.messages.js.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js +3 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.js +5 -3
- package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/typeahead/util/highlight.js +3 -1
- package/build/typeahead/util/highlight.js.map +1 -1
- package/build/types/badge/Badge.d.ts +1 -1
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/badge/BadgeAssets.d.ts.map +1 -1
- package/build/types/button/LegacyButton.d.ts.map +1 -1
- package/build/types/carousel/Carousel.d.ts.map +1 -1
- package/build/types/checkbox/Checkbox.d.ts.map +1 -1
- package/build/types/checkboxOption/CheckboxOption.d.ts +1 -2
- package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
- 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/dateInput/DateInput.d.ts +1 -1
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts +1 -1
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts.map +1 -1
- package/build/types/divider/Divider.d.ts +29 -0
- package/build/types/divider/Divider.d.ts.map +1 -0
- package/build/types/divider/index.d.ts +3 -0
- package/build/types/divider/index.d.ts.map +1 -0
- package/build/types/dropFade/DropFade.d.ts.map +1 -1
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +2 -2
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -1
- package/build/types/header/Header.d.ts +28 -11
- package/build/types/header/Header.d.ts.map +1 -1
- package/build/types/header/index.d.ts +1 -0
- package/build/types/header/index.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/info/Info.d.ts.map +1 -1
- package/build/types/inputs/Input.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_ButtonInput.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/build/types/nudge/Nudge.d.ts.map +1 -1
- package/build/types/promoCard/PromoCardContext.d.ts.map +1 -1
- package/build/types/promoCard/PromoCardGroup.d.ts.map +1 -1
- package/build/types/select/Select.d.ts.map +1 -1
- package/build/types/select/option/Option.d.ts +2 -1
- package/build/types/select/option/Option.d.ts.map +1 -1
- package/build/types/table/Table.d.ts.map +1 -1
- package/build/types/title/Title.d.ts +3 -4
- package/build/types/title/Title.d.ts.map +1 -1
- package/build/types/tooltip/Tooltip.d.ts.map +1 -1
- package/build/types/upload/Upload.d.ts.map +1 -1
- package/build/upload/Upload.js +20 -18
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.messages.js +3 -1
- package/build/upload/Upload.messages.js.map +1 -1
- package/build/upload/Upload.mjs +3 -1
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +30 -6
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +24 -2
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +6 -4
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +5 -3
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/uploadInput/UploadInput.js +13 -11
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.messages.js +3 -1
- package/build/uploadInput/UploadInput.messages.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +8 -8
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js +3 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +3 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +12 -12
- package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.js +3 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +19 -17
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withId/withId.js +3 -1
- package/build/withId/withId.js.map +1 -1
- package/build/withNextPortal/withNextPortal.js +3 -1
- package/build/withNextPortal/withNextPortal.js.map +1 -1
- package/package.json +12 -10
- package/src/accordion/Accordion.story.tsx +2 -2
- package/src/accordion/AccordionItem/__snapshots__/AccordionItem.spec.js.snap +6 -2
- package/src/alert/Alert.story.tsx +2 -2
- package/src/alert/Alert.tests.story.tsx +1 -1
- package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +12 -4
- package/src/badge/Badge.tsx +1 -1
- package/src/badge/BadgeAssets.tsx +2 -2
- package/src/button/Button.css +2 -2
- package/src/button/Button.less +2 -2
- package/src/button/LegacyButton.tsx +0 -2
- package/src/carousel/Carousel.spec.tsx +0 -4
- package/src/carousel/Carousel.tsx +0 -1
- package/src/checkbox/Checkbox.tsx +0 -1
- package/src/checkboxButton/CheckboxButton.story.tsx +0 -2
- package/src/checkboxButton/CheckboxButton.tsx +1 -1
- package/src/checkboxOption/CheckboxOption.tsx +1 -2
- package/src/chips/__snapshots__/Chips.spec.tsx.snap +1 -1
- package/src/common/Option/Option.css +1 -1
- package/src/common/Option/Option.less +2 -2
- package/src/common/Option/Option.tsx +1 -1
- package/src/common/bottomSheet/BottomSheet.spec.tsx +0 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +1 -1
- package/src/common/bottomSheet/BottomSheet.tsx +0 -1
- package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +1 -1
- package/src/common/closeButton/__snapshots__/CloseButton.spec.tsx.snap +1 -1
- package/src/common/dateUtils/isDateValid/isDateValid.ts +5 -3
- package/src/common/hooks/useHasIntersected/useHasIntersected.spec.js +0 -2
- package/src/common/locale/index.ts +1 -1
- package/src/common/panel/Panel.tsx +2 -13
- package/src/dateInput/DateInput.tsx +7 -1
- package/src/dateLookup/DateLookup.css +0 -5
- package/src/dateLookup/DateLookup.less +0 -4
- package/src/dateLookup/dateHeader/DateHeader.tsx +24 -26
- package/src/dimmer/Dimmer.story.tsx +0 -1
- package/src/dimmer/dimmerManager/DimmerManager.ts +1 -1
- package/src/display/Display.story.tsx +0 -2
- package/src/divider/Divider.accessibility.docs.mdx +61 -0
- package/src/divider/Divider.css +24 -0
- package/src/divider/Divider.less +31 -0
- package/src/divider/Divider.spec.tsx +60 -0
- package/src/divider/Divider.story.tsx +130 -0
- package/src/divider/Divider.tsx +54 -0
- package/src/divider/index.ts +2 -0
- package/src/dropFade/DropFade.story.tsx +0 -1
- package/src/dropFade/DropFade.tsx +0 -1
- package/src/emphasis/EmphasisHtmlTransformer.spec.tsx +4 -4
- package/src/emphasis/EmphasisHtmlTransformer.ts +2 -2
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +5 -3
- package/src/header/Header.accessibility.docs.mdx +85 -0
- package/src/header/Header.css +28 -11
- package/src/header/Header.less +29 -7
- package/src/header/Header.spec.tsx +68 -50
- package/src/header/Header.story.tsx +184 -39
- package/src/header/Header.tsx +123 -69
- package/src/header/index.ts +1 -0
- package/src/i18n/cs.json +22 -5
- package/src/i18n/nl.json +73 -0
- package/src/index.ts +3 -2
- package/src/info/Info.css +0 -23
- package/src/info/Info.less +0 -28
- package/src/info/Info.tsx +8 -14
- package/src/inputs/Input.tsx +0 -1
- package/src/inputs/SelectInput.tsx +1 -7
- package/src/inputs/_ButtonInput.tsx +0 -1
- package/src/inputs/_Popover.tsx +0 -1
- package/src/link/Link.story.tsx +0 -1
- package/src/listItem/ListItem.story.tsx +4 -11
- package/src/listItem/ListItem.tests.story.tsx +52 -0
- package/src/listItem/ListItem.tsx +1 -1
- package/src/main.css +55 -102
- package/src/main.less +1 -1
- package/src/markdown/Markdown.spec.tsx +0 -1
- package/src/modal/Modal.story.tsx +1 -1
- package/src/moneyInput/currencyFormatting.ts +3 -3
- package/src/nudge/Nudge.tsx +0 -2
- package/src/overlayHeader/__snapshots__/OverlayHeader.spec.tsx.snap +1 -1
- package/src/promoCard/PromoCardContext.tsx +0 -1
- package/src/promoCard/PromoCardGroup.story.tsx +3 -15
- package/src/promoCard/PromoCardGroup.tsx +0 -1
- package/src/provider/theme/ThemeProvider.story.tsx +3 -5
- package/src/select/Select.spec.tsx +0 -1
- package/src/select/Select.tsx +0 -3
- package/src/select/option/Option.spec.tsx +51 -0
- package/src/select/option/Option.tsx +3 -1
- package/src/selectOption/SelectOption.story.tsx +1 -2
- package/src/summary/Summary.tests.story.tsx +55 -0
- package/src/summary/Summary.tsx +2 -2
- package/src/table/Table.tsx +0 -1
- package/src/test-utils/jest.setup.ts +0 -1
- package/src/title/Title.tsx +25 -11
- package/src/tooltip/Tooltip.tsx +0 -2
- package/src/upload/Upload.spec.tsx +295 -0
- package/src/upload/Upload.tsx +5 -1
- package/src/upload/steps/completeStep/completeStep.spec.tsx +51 -0
- package/src/upload/steps/completeStep/completeStep.tsx +1 -1
- package/src/upload/steps/processingStep/processingStep.spec.tsx +59 -0
- package/src/upload/steps/uploadImageStep/uploadImageStep.spec.tsx +79 -0
- package/build/styles/item/Item.css +0 -60
- package/build/types/item/Item.d.ts +0 -39
- package/build/types/item/Item.d.ts.map +0 -1
- package/build/types/item/ItemAdditionalInfo.d.ts +0 -7
- package/build/types/item/ItemAdditionalInfo.d.ts.map +0 -1
- package/build/types/item/ItemCheckbox.d.ts +0 -4
- package/build/types/item/ItemCheckbox.d.ts.map +0 -1
- package/build/types/item/ItemIconButton.d.ts +0 -4
- package/build/types/item/ItemIconButton.d.ts.map +0 -1
- package/build/types/item/ItemImage.d.ts +0 -4
- package/build/types/item/ItemImage.d.ts.map +0 -1
- package/build/types/item/ItemNavigation.d.ts +0 -4
- package/build/types/item/ItemNavigation.d.ts.map +0 -1
- package/build/types/item/index.d.ts +0 -5
- package/build/types/item/index.d.ts.map +0 -1
- package/src/item/Item.css +0 -60
- package/src/item/Item.less +0 -60
- package/src/item/Item.story.tsx +0 -39
- package/src/item/Item.tsx +0 -153
- package/src/item/ItemAdditionalInfo.tsx +0 -14
- package/src/item/ItemCheckbox.tsx +0 -16
- package/src/item/ItemIconButton.tsx +0 -15
- package/src/item/ItemImage.tsx +0 -11
- package/src/item/ItemNavigation.tsx +0 -16
- package/src/item/index.ts +0 -4
- package/src/select/option/Option.spec.js +0 -43
- package/src/upload/Upload.events.spec.js +0 -49
- package/src/upload/Upload.spec.js +0 -305
- package/src/upload/steps/completeStep/completeStep.spec.js +0 -51
- package/src/upload/steps/processingStep/processingStep.spec.js +0 -55
- package/src/upload/steps/uploadImageStep/uploadImageStep.spec.js +0 -91
|
@@ -1,53 +1,198 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Header, { HeaderProps } from './Header';
|
|
3
|
+
import { storyConfig } from '../test-utils';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const withContainer = (Story: any) => (
|
|
6
|
+
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
|
7
|
+
<Story />
|
|
8
|
+
</div>
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Not all stories need access to all controls as it causes unnecessary UI noise.
|
|
13
|
+
*/
|
|
14
|
+
const hideControls = (args: string[]) =>
|
|
15
|
+
Object.fromEntries(args.map((item) => [item, { table: { disable: true } }]));
|
|
7
16
|
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Reusable render logic for wrapping `Header` in a `<fieldset>` if `as` is `legend`.
|
|
19
|
+
*/
|
|
20
|
+
const renderHeader = (args: HeaderProps) => {
|
|
21
|
+
if (args.as === 'legend') {
|
|
22
|
+
return (
|
|
23
|
+
<fieldset style={{ width: '100%' }}>
|
|
24
|
+
<Header {...args} />
|
|
25
|
+
</fieldset>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
return <Header {...args} />;
|
|
10
29
|
};
|
|
11
30
|
|
|
12
|
-
|
|
13
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Helper to generate variants for `AllVariants` story.
|
|
33
|
+
*/
|
|
34
|
+
const renderVariants = () => (
|
|
35
|
+
<div
|
|
36
|
+
className="header-variants"
|
|
37
|
+
style={{ display: 'flex', flexWrap: 'wrap', gap: '16px', maxWidth: '1200px' }}
|
|
38
|
+
>
|
|
39
|
+
{(['h1', 'h2', 'h3', 'legend'] as const).map((as) => (
|
|
40
|
+
<Header key={as} as={as} title={`Header as ${as}`} />
|
|
41
|
+
))}
|
|
42
|
+
{(['section', 'group'] as const).map((level) => (
|
|
43
|
+
<Header key={level} level={level} title={`Header level ${level}`} />
|
|
44
|
+
))}
|
|
14
45
|
<Header
|
|
15
|
-
|
|
46
|
+
as="h2"
|
|
47
|
+
title="Header with Action"
|
|
16
48
|
action={{
|
|
17
|
-
'aria-label': '
|
|
18
|
-
text: '
|
|
19
|
-
onClick: () => alert('Action!'),
|
|
49
|
+
'aria-label': 'Action',
|
|
50
|
+
text: 'Action',
|
|
51
|
+
onClick: () => alert('Action clicked!'),
|
|
20
52
|
}}
|
|
21
53
|
/>
|
|
22
|
-
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The stories below document the `Header` component, which is used to structure content and convey hierarchy. <br />
|
|
59
|
+
* For more details, refer to the [design documentation](https://wise.design/components/header).
|
|
60
|
+
*/
|
|
61
|
+
const meta: Meta<typeof Header> = {
|
|
62
|
+
component: Header,
|
|
63
|
+
title: 'Typography/Header',
|
|
64
|
+
argTypes: {
|
|
65
|
+
level: {
|
|
66
|
+
type: {
|
|
67
|
+
name: 'enum',
|
|
68
|
+
value: ['section', 'group'],
|
|
69
|
+
},
|
|
70
|
+
table: {
|
|
71
|
+
type: {
|
|
72
|
+
summary: 'HeaderLevel',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
description: 'Defines the hierarchical level of the header.',
|
|
76
|
+
},
|
|
77
|
+
as: {
|
|
78
|
+
type: {
|
|
79
|
+
name: 'enum',
|
|
80
|
+
value: ['h1', 'h2', 'h3', 'legend'],
|
|
81
|
+
},
|
|
82
|
+
table: {
|
|
83
|
+
type: {
|
|
84
|
+
summary: 'HeaderAs',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
description:
|
|
88
|
+
'Defines which HTML element the Header will render as. Use `legend` only as the first child of a `<fieldset>` — otherwise a warning will appear. The `action` prop is not supported with `legend`. You can also use heading tags like `h1`, `h2`, `h3`, or `header`.',
|
|
89
|
+
},
|
|
90
|
+
action: {
|
|
91
|
+
table: {
|
|
92
|
+
type: {
|
|
93
|
+
summary: 'HeaderAction',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
description: 'Defines an optional action (e.g., button or link) associated with the header.',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
args: {
|
|
100
|
+
title: 'Default Header',
|
|
101
|
+
level: 'group',
|
|
102
|
+
as: 'h1',
|
|
103
|
+
action: undefined,
|
|
104
|
+
},
|
|
105
|
+
tags: ['autodocs'],
|
|
106
|
+
decorators: [withContainer],
|
|
107
|
+
parameters: {
|
|
108
|
+
docs: {
|
|
109
|
+
toc: true,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
23
112
|
};
|
|
24
113
|
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
114
|
+
export default meta;
|
|
115
|
+
|
|
116
|
+
type Story = StoryObj<typeof Header>;
|
|
117
|
+
|
|
118
|
+
export const Playground: Story = {
|
|
119
|
+
render: renderHeader,
|
|
120
|
+
args: {
|
|
121
|
+
title: 'Playground Header',
|
|
122
|
+
level: 'group',
|
|
123
|
+
as: 'h2',
|
|
124
|
+
action: {
|
|
125
|
+
'aria-label': 'Action',
|
|
126
|
+
text: 'Click me',
|
|
127
|
+
onClick: () => alert('Action clicked!'),
|
|
128
|
+
},
|
|
129
|
+
},
|
|
35
130
|
};
|
|
36
131
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Demonstrates a `Header` with an associated action.
|
|
134
|
+
*/
|
|
135
|
+
export const Action: Story = {
|
|
136
|
+
args: {
|
|
137
|
+
title: 'Header with Action',
|
|
138
|
+
action: {
|
|
139
|
+
'aria-label': 'Action',
|
|
140
|
+
text: 'Action',
|
|
141
|
+
onClick: () => alert('Action clicked!'),
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
argTypes: hideControls(['as', 'className', 'level', 'title', 'testId']),
|
|
145
|
+
};
|
|
46
146
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Demonstrates a `Header` with an associated action as a link.
|
|
149
|
+
*/
|
|
150
|
+
export const ActionAsLink: Story = {
|
|
151
|
+
args: {
|
|
152
|
+
title: 'Header with Action as Link',
|
|
153
|
+
action: {
|
|
154
|
+
'aria-label': 'Learn more about this section',
|
|
155
|
+
text: 'Learn more',
|
|
156
|
+
href: 'https://wise.com',
|
|
157
|
+
target: '_blank',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
argTypes: hideControls(['as', 'className', 'level', 'title', 'testId']),
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Demonstrates a `Header` rendered as a custom HTML element.
|
|
165
|
+
*/
|
|
166
|
+
export const CustomElement: Story = {
|
|
167
|
+
render: renderHeader,
|
|
168
|
+
args: {
|
|
169
|
+
title: 'Legend Header',
|
|
170
|
+
as: 'legend',
|
|
171
|
+
},
|
|
172
|
+
argTypes: hideControls(['action', 'className', 'level', 'testId']),
|
|
53
173
|
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Demonstrates a `Header` with a specific hierarchical level.
|
|
177
|
+
*/
|
|
178
|
+
export const SectionLevel: Story = {
|
|
179
|
+
args: {
|
|
180
|
+
title: 'Section Header',
|
|
181
|
+
level: 'section',
|
|
182
|
+
},
|
|
183
|
+
argTypes: hideControls(['action', 'as', 'className', 'title', 'testId']),
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Displays all variants of the `Header` component, including different levels, tags, and actions.
|
|
188
|
+
*/
|
|
189
|
+
export const AllVariants = storyConfig(
|
|
190
|
+
{
|
|
191
|
+
tags: ['!autodocs'],
|
|
192
|
+
parameters: {
|
|
193
|
+
padding: '0',
|
|
194
|
+
},
|
|
195
|
+
render: renderVariants,
|
|
196
|
+
},
|
|
197
|
+
{ variants: ['default', 'dark', 'bright-green', 'forest-green', 'rtl'] },
|
|
198
|
+
);
|
package/src/header/Header.tsx
CHANGED
|
@@ -1,102 +1,156 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
|
|
3
|
-
import { ActionButtonProps } from '../actionButton/ActionButton';
|
|
4
|
-
import Button from '../button';
|
|
5
3
|
import { AriaLabelProperty, CommonProps, Heading, LinkProps, Typography } from '../common';
|
|
6
4
|
import Link from '../link';
|
|
5
|
+
import Button from '../button';
|
|
7
6
|
import Title from '../title';
|
|
8
|
-
import {
|
|
7
|
+
import React, { useEffect, useRef, FunctionComponent } from 'react';
|
|
9
8
|
|
|
10
9
|
type ActionProps = AriaLabelProperty & {
|
|
11
10
|
text: string;
|
|
11
|
+
onClick?: () => void;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
type ButtonActionProps = ActionProps
|
|
15
|
-
|
|
14
|
+
type ButtonActionProps = ActionProps;
|
|
16
15
|
type LinkActionProps = ActionProps & LinkProps;
|
|
17
16
|
|
|
18
|
-
export
|
|
17
|
+
export interface HeaderProps extends CommonProps {
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
19
|
+
* Optional prop to define the action for the header. If the `href` property
|
|
20
|
+
* is provided, a `Link` will be rendered instead of a `Button`.
|
|
21
21
|
*/
|
|
22
22
|
action?: ButtonActionProps | LinkActionProps;
|
|
23
|
+
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* Option prop to specify DOM render element of the title
|
|
26
|
+
*
|
|
27
|
+
* - When `as="legend"`, the `Header` will render as a `<legend>` element.
|
|
28
|
+
* **Note:** `<legend>` elements must be the first child of a `<fieldset>` to comply with HTML semantics.
|
|
29
|
+
* If this condition is not met, a warning will be logged to the console.
|
|
30
|
+
* Additionally, the `action` prop is not supported when `as="legend"`.
|
|
25
31
|
*
|
|
26
|
-
*
|
|
32
|
+
* - Other valid values include standard heading tags (`h1` to `h6`) or `header`.
|
|
27
33
|
*/
|
|
28
34
|
as?: Heading | 'legend' | 'header';
|
|
35
|
+
|
|
36
|
+
/** Required prop to set the title of the Header. */
|
|
29
37
|
title: string;
|
|
30
|
-
} & Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'id'>;
|
|
31
38
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'aria-label': action['aria-label'],
|
|
35
|
-
};
|
|
39
|
+
/** Optional prop to specify the level of the Header */
|
|
40
|
+
level?: 'section' | 'group';
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{action.text}
|
|
41
|
-
</Link>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<Button
|
|
47
|
-
className="np-header__button"
|
|
48
|
-
priority="tertiary"
|
|
49
|
-
size="sm"
|
|
50
|
-
onClick={action.onClick}
|
|
51
|
-
{...props}
|
|
52
|
-
>
|
|
53
|
-
{action.text}
|
|
54
|
-
</Button>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
42
|
+
className?: string;
|
|
43
|
+
testId?: string;
|
|
44
|
+
}
|
|
57
45
|
|
|
58
46
|
/**
|
|
47
|
+
* Renders a header action which can be either a button or a link.
|
|
59
48
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
49
|
+
* @param {Object} props - The properties object.
|
|
50
|
+
* @param {ButtonActionProps | LinkActionProps} props.action - The action object which can be either a button or a link.
|
|
51
|
+
* @returns {JSX.Element} The rendered header action component.
|
|
62
52
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
53
|
+
const HeaderAction = React.forwardRef(
|
|
54
|
+
(
|
|
55
|
+
{ action }: { action: ButtonActionProps | LinkActionProps },
|
|
56
|
+
ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,
|
|
57
|
+
) => {
|
|
58
|
+
const { 'aria-label': ariaLabel, text, onClick } = action;
|
|
59
|
+
|
|
60
|
+
if ('href' in action) {
|
|
61
|
+
const { href, target, onClick: linkOnClick } = action;
|
|
62
|
+
return (
|
|
63
|
+
<Link
|
|
64
|
+
ref={ref as React.Ref<HTMLAnchorElement>}
|
|
65
|
+
className="np-header__link"
|
|
66
|
+
href={href}
|
|
67
|
+
target={target}
|
|
68
|
+
aria-label={ariaLabel}
|
|
69
|
+
onClick={linkOnClick}
|
|
70
|
+
>
|
|
71
|
+
{text}
|
|
72
|
+
</Link>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
return (
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
<Button
|
|
78
|
+
ref={ref as React.Ref<HTMLButtonElement>}
|
|
79
|
+
className="np-header__button"
|
|
80
|
+
priority="tertiary"
|
|
81
|
+
size="sm"
|
|
82
|
+
aria-label={ariaLabel}
|
|
83
|
+
onClick={onClick}
|
|
79
84
|
>
|
|
80
|
-
{
|
|
81
|
-
</
|
|
85
|
+
{text}
|
|
86
|
+
</Button>
|
|
82
87
|
);
|
|
83
|
-
}
|
|
88
|
+
},
|
|
89
|
+
);
|
|
84
90
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
HeaderAction.displayName = 'HeaderAction';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @param {ButtonActionProps | LinkActionProps} [action] - Optional prop to specify the action button or link.
|
|
95
|
+
* @param {Heading | 'legend'} [as='h5'] - Optional prop to override the heading element rendered for the title.
|
|
96
|
+
* @param {string} title - Required prop to set the title of the section header.
|
|
97
|
+
* @param {'group' | 'section'} [level='group'] - Optional prop to specify the level of the section header.
|
|
98
|
+
* @param {string} [className]
|
|
99
|
+
* @param {string} [testId]
|
|
100
|
+
*
|
|
101
|
+
* @see {@link Header } for further information.
|
|
102
|
+
* @see {@link https://storybook.wise.design/?path=/docs/typography-header--docs|Storybook Wise Design}
|
|
103
|
+
*/
|
|
104
|
+
const Header: FunctionComponent<HeaderProps> = React.forwardRef(
|
|
105
|
+
(
|
|
106
|
+
{ as = 'h5', action, className, testId, title, level = 'group', ...props },
|
|
107
|
+
ref: React.Ref<HTMLDivElement | HTMLHeadingElement | HTMLLegendElement>,
|
|
108
|
+
) => {
|
|
109
|
+
const internalRef = useRef<HTMLLegendElement>(null);
|
|
110
|
+
const levelTypography =
|
|
111
|
+
level === 'section' ? Typography.TITLE_SUBSECTION : Typography.TITLE_GROUP;
|
|
112
|
+
const headerClasses = clsx('np-header', className, {
|
|
113
|
+
'np-header--section': level === 'section',
|
|
114
|
+
'np-header__title': !action || as === 'legend',
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
const commonProps = {
|
|
118
|
+
className: headerClasses,
|
|
119
|
+
'data-testid': testId,
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
if (as === 'legend' && internalRef.current) {
|
|
124
|
+
const { parentElement } = internalRef.current;
|
|
125
|
+
if (!parentElement || parentElement.tagName.toLowerCase() !== 'fieldset') {
|
|
126
|
+
console.warn(
|
|
127
|
+
'Legends should be the first child in a fieldset, and this is not possible when including an action',
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, [as]);
|
|
132
|
+
|
|
133
|
+
if (!action || as === 'legend') {
|
|
134
|
+
return (
|
|
135
|
+
<Title ref={internalRef} as={as} type={levelTypography} {...commonProps} {...props}>
|
|
136
|
+
{title}
|
|
137
|
+
</Title>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const actionRef = React.createRef<HTMLButtonElement | HTMLAnchorElement>();
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<div {...commonProps} {...props} ref={ref as React.Ref<HTMLDivElement>}>
|
|
145
|
+
<Title as={as} type={levelTypography} className="np-header__title">
|
|
146
|
+
{title}
|
|
147
|
+
</Title>
|
|
148
|
+
<HeaderAction ref={actionRef} action={action} />
|
|
149
|
+
</div>
|
|
89
150
|
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<Title as={as} type={Typography.TITLE_GROUP} id={id} className="np-header__title">
|
|
95
|
-
{title}
|
|
96
|
-
</Title>
|
|
97
|
-
<HeaderAction action={action} />
|
|
98
|
-
</div>
|
|
99
|
-
);
|
|
100
|
-
};
|
|
151
|
+
},
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
Header.displayName = 'Header';
|
|
101
155
|
|
|
102
156
|
export default Header;
|
package/src/header/index.ts
CHANGED
package/src/i18n/cs.json
CHANGED
|
@@ -9,35 +9,52 @@
|
|
|
9
9
|
"neptune.DateInput.year.label": "Rok",
|
|
10
10
|
"neptune.DateInput.year.placeholder": "RRRR",
|
|
11
11
|
"neptune.DateLookup.day": "den",
|
|
12
|
-
"neptune.DateLookup.goTo20YearView": "
|
|
12
|
+
"neptune.DateLookup.goTo20YearView": "Přejít na zobrazení 20 let",
|
|
13
13
|
"neptune.DateLookup.month": "měsíc",
|
|
14
14
|
"neptune.DateLookup.next": "další",
|
|
15
15
|
"neptune.DateLookup.previous": "předchozí",
|
|
16
16
|
"neptune.DateLookup.selected": "vybráno",
|
|
17
17
|
"neptune.DateLookup.twentyYears": "20 let",
|
|
18
18
|
"neptune.DateLookup.year": "rok",
|
|
19
|
-
"neptune.FlowNavigation.back": "
|
|
19
|
+
"neptune.FlowNavigation.back": "zpět na předchozí krok",
|
|
20
20
|
"neptune.Info.ariaLabel": "Více informací",
|
|
21
|
-
"neptune.
|
|
21
|
+
"neptune.Label.optional": "(Volitelné)",
|
|
22
|
+
"neptune.Link.opensInNewTab": "(otevře se v nové kartě)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
|
|
24
|
+
"neptune.MoneyInput.Select.selectCurrencyLabel": "Vybrat měnu",
|
|
25
|
+
"neptune.PhoneNumberInput.SelectInput.placeholder": "Vybrat možnost...",
|
|
23
26
|
"neptune.Select.searchPlaceholder": "Hledat...",
|
|
24
27
|
"neptune.SelectInput.noResultsFound": "Nebyly nalezeny žádné výsledky",
|
|
28
|
+
"neptune.SelectOption.action.label": "Vybrat",
|
|
29
|
+
"neptune.SelectOption.selected.action.label": "Změnit zvolenou možnost",
|
|
30
|
+
"neptune.StatusIcon.iconLabel.error": "Chyba:",
|
|
31
|
+
"neptune.StatusIcon.iconLabel.information": "Informace:",
|
|
32
|
+
"neptune.StatusIcon.iconLabel.pending": "Vyřizuje se:",
|
|
33
|
+
"neptune.StatusIcon.iconLabel.success": "Úspěšné:",
|
|
34
|
+
"neptune.StatusIcon.iconLabel.warning": "Upozornění:",
|
|
25
35
|
"neptune.Summary.statusDone": "Položka dokončena",
|
|
26
36
|
"neptune.Summary.statusNotDone": "Položka k dokončení",
|
|
27
37
|
"neptune.Summary.statusPending": "Čekající položka",
|
|
38
|
+
"neptune.Table.actionHeader": "Akce",
|
|
39
|
+
"neptune.Table.emptyData": "Nebyly nalezeny žádné výsledky",
|
|
40
|
+
"neptune.Table.loaded": "Data tabulky byla načtena",
|
|
41
|
+
"neptune.Table.loading": "Data tabulky se načítají",
|
|
42
|
+
"neptune.Table.refreshPage": "Aktualizovat stránku",
|
|
28
43
|
"neptune.Upload.csButtonText": "Nahrát další soubor?",
|
|
29
44
|
"neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
|
|
30
45
|
"neptune.Upload.csSuccessText": "Úspěšně nahráno!",
|
|
31
|
-
"neptune.Upload.csTooLargeMessage": "
|
|
46
|
+
"neptune.Upload.csTooLargeMessage": "Nahrajte soubor menší než {maxSize} MB",
|
|
32
47
|
"neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
|
|
33
48
|
"neptune.Upload.psButtonText": "Zrušit",
|
|
34
49
|
"neptune.Upload.psProcessingText": "Načítání...",
|
|
50
|
+
"neptune.Upload.retry": "Opakovat",
|
|
35
51
|
"neptune.Upload.usButtonText": "Nebo vyberte soubor",
|
|
36
52
|
"neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
|
|
37
|
-
"neptune.Upload.usPlaceholder": "Přetáhněte
|
|
53
|
+
"neptune.Upload.usPlaceholder": "Přetáhněte soubor menší než {maxSize} MB",
|
|
38
54
|
"neptune.UploadButton.allFileTypes": "Všechny typy souborů",
|
|
39
55
|
"neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
|
|
40
56
|
"neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Max. počet souborů: {maxFiles}.",
|
|
41
58
|
"neptune.UploadButton.uploadFile": "Nahrát soubor",
|
|
42
59
|
"neptune.UploadButton.uploadFiles": "Nahrát soubory",
|
|
43
60
|
"neptune.UploadInput.deleteModalBody": "Odstraněním tohoto souboru jej smažete z našeho systému.",
|
package/src/i18n/nl.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"neptune.Button.loadingAriaLabel": "laden",
|
|
3
|
+
"neptune.Chips.ariaLabel": "{choice} wissen",
|
|
4
|
+
"neptune.ClearButton.ariaLabel": "Wissen",
|
|
5
|
+
"neptune.CloseButton.ariaLabel": "Sluiten",
|
|
6
|
+
"neptune.DateInput.day.label": "Dag",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
8
|
+
"neptune.DateInput.month.label": "Maand",
|
|
9
|
+
"neptune.DateInput.year.label": "Jaar",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "JJJJ",
|
|
11
|
+
"neptune.DateLookup.day": "dag",
|
|
12
|
+
"neptune.DateLookup.goTo20YearView": "Naar 20-jaarsoverzicht",
|
|
13
|
+
"neptune.DateLookup.month": "maand",
|
|
14
|
+
"neptune.DateLookup.next": "volgende",
|
|
15
|
+
"neptune.DateLookup.previous": "vorige",
|
|
16
|
+
"neptune.DateLookup.selected": "geselecteerd",
|
|
17
|
+
"neptune.DateLookup.twentyYears": "20 jaar",
|
|
18
|
+
"neptune.DateLookup.year": "jaar",
|
|
19
|
+
"neptune.FlowNavigation.back": "terug naar vorige stap",
|
|
20
|
+
"neptune.Info.ariaLabel": "Meer informatie",
|
|
21
|
+
"neptune.Label.optional": "(Optioneel)",
|
|
22
|
+
"neptune.Link.opensInNewTab": "(wordt geopend in een nieuw tabblad)",
|
|
23
|
+
"neptune.MoneyInput.Select.placeholder": "Selecteer een optie...",
|
|
24
|
+
"neptune.MoneyInput.Select.selectCurrencyLabel": "Selecteer valuta",
|
|
25
|
+
"neptune.PhoneNumberInput.SelectInput.placeholder": "Selecteer een optie...",
|
|
26
|
+
"neptune.Select.searchPlaceholder": "Zoeken...",
|
|
27
|
+
"neptune.SelectInput.noResultsFound": "Geen resultaten gevonden",
|
|
28
|
+
"neptune.SelectOption.action.label": "Kiezen",
|
|
29
|
+
"neptune.SelectOption.selected.action.label": "Gekozen optie wijzigen",
|
|
30
|
+
"neptune.StatusIcon.iconLabel.error": "Fout:",
|
|
31
|
+
"neptune.StatusIcon.iconLabel.information": "Informatie:",
|
|
32
|
+
"neptune.StatusIcon.iconLabel.pending": "In behandeling:",
|
|
33
|
+
"neptune.StatusIcon.iconLabel.success": "Gelukt:",
|
|
34
|
+
"neptune.StatusIcon.iconLabel.warning": "Waarschuwing:",
|
|
35
|
+
"neptune.Summary.statusDone": "Item klaar",
|
|
36
|
+
"neptune.Summary.statusNotDone": "Item te doen",
|
|
37
|
+
"neptune.Summary.statusPending": "Item in behandeling",
|
|
38
|
+
"neptune.Table.actionHeader": "Actie",
|
|
39
|
+
"neptune.Table.emptyData": "Geen resultaten gevonden",
|
|
40
|
+
"neptune.Table.loaded": "Tabelgegevens zijn geladen",
|
|
41
|
+
"neptune.Table.loading": "Tabelgegevens worden geladen",
|
|
42
|
+
"neptune.Table.refreshPage": "Pagina vernieuwen",
|
|
43
|
+
"neptune.Upload.csButtonText": "Nog een bestand uploaden?",
|
|
44
|
+
"neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
|
|
45
|
+
"neptune.Upload.csSuccessText": "Uploaden voltooid!",
|
|
46
|
+
"neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
|
|
47
|
+
"neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand.",
|
|
48
|
+
"neptune.Upload.psButtonText": "Annuleren",
|
|
49
|
+
"neptune.Upload.psProcessingText": "Uploaden...",
|
|
50
|
+
"neptune.Upload.retry": "Opnieuw proberen",
|
|
51
|
+
"neptune.Upload.usButtonText": "Of selecteer een bestand",
|
|
52
|
+
"neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
|
|
53
|
+
"neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
|
|
54
|
+
"neptune.UploadButton.allFileTypes": "Alle bestandstypen",
|
|
55
|
+
"neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
|
|
56
|
+
"neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maximaal {maxFiles} bestanden.",
|
|
58
|
+
"neptune.UploadButton.uploadFile": "Bestand uploaden",
|
|
59
|
+
"neptune.UploadButton.uploadFiles": "Bestanden uploaden",
|
|
60
|
+
"neptune.UploadInput.deleteModalBody": "Door dit bestand te verwijderen, wordt het uit ons systeem verwijderd.",
|
|
61
|
+
"neptune.UploadInput.deleteModalCancelButtonText": "Annuleren",
|
|
62
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": "Verwijderen",
|
|
63
|
+
"neptune.UploadInput.deleteModalTitle": "Weet je zeker dat je dit bestand wilt verwijderen?",
|
|
64
|
+
"neptune.UploadInput.fileIsTooLarge": "Bestand is te groot",
|
|
65
|
+
"neptune.UploadInput.fileTypeNotSupported": "Bestandstype niet ondersteund",
|
|
66
|
+
"neptune.UploadInput.maximumFilesAlreadyUploaded": "Deze upload is mislukt omdat we maar {maxFilesAllowed} bestanden tegelijk kunnen accepteren.",
|
|
67
|
+
"neptune.UploadItem.deleting": "Verwijderen...",
|
|
68
|
+
"neptune.UploadItem.removeFile": "Bestand {filename} verwijderen",
|
|
69
|
+
"neptune.UploadItem.uploaded": "Geüpload",
|
|
70
|
+
"neptune.UploadItem.uploadedFile": "Geüpload bestand",
|
|
71
|
+
"neptune.UploadItem.uploading": "Uploaden...",
|
|
72
|
+
"neptune.UploadItem.uploadingFailed": "Uploaden mislukt"
|
|
73
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type { DecisionProps } from './decision/Decision';
|
|
|
31
31
|
export type { DefinitionListProps, DefinitionListDefinition } from './definitionList';
|
|
32
32
|
export type { DimmerProps } from './dimmer';
|
|
33
33
|
export type { DrawerProps } from './drawer';
|
|
34
|
+
export type { DividerProps } from './divider';
|
|
35
|
+
export type { HeaderProps } from './header';
|
|
34
36
|
export type { EmphasisProps } from './emphasis';
|
|
35
37
|
export type { FieldProps } from './field/Field';
|
|
36
38
|
export type { InfoProps } from './info';
|
|
@@ -108,7 +110,6 @@ export type {
|
|
|
108
110
|
TableCellStatus,
|
|
109
111
|
TableCellType,
|
|
110
112
|
} from './table';
|
|
111
|
-
export type { ItemProps, ItemAdditionalInfoProps, ItemCheckboxProps } from './item';
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
115
|
* Components
|
|
@@ -144,6 +145,7 @@ export { default as Decision } from './decision';
|
|
|
144
145
|
export { default as DefinitionList } from './definitionList';
|
|
145
146
|
export { default as Dimmer } from './dimmer';
|
|
146
147
|
export { default as Display } from './display';
|
|
148
|
+
export { default as Divider } from './divider';
|
|
147
149
|
export { default as Drawer } from './drawer';
|
|
148
150
|
export { default as DropFade } from './dropFade';
|
|
149
151
|
export { default as Emphasis } from './emphasis';
|
|
@@ -210,7 +212,6 @@ export { default as Typeahead } from './typeahead';
|
|
|
210
212
|
export { default as Upload } from './upload';
|
|
211
213
|
export { default as UploadInput } from './uploadInput';
|
|
212
214
|
export { default as Table } from './table';
|
|
213
|
-
export { default as Item } from './table';
|
|
214
215
|
|
|
215
216
|
/**
|
|
216
217
|
* Hooks
|
package/src/info/Info.css
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
.np-info {
|
|
2
|
-
height: 16px;
|
|
3
|
-
line-height: 1;
|
|
4
2
|
vertical-align: middle;
|
|
5
|
-
color: var(--color-interactive-primary);
|
|
6
|
-
}
|
|
7
|
-
.np-info button,
|
|
8
|
-
.np-info [data-toggle="popover"]:not(.btn) {
|
|
9
|
-
--ring-outline-offset: 0;
|
|
10
|
-
height: 16px;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
display: inline-block;
|
|
13
|
-
}
|
|
14
|
-
.np-info__large {
|
|
15
|
-
height: 24px;
|
|
16
|
-
}
|
|
17
|
-
.np-info__large button,
|
|
18
|
-
.np-info__large [data-toggle="popover"]:not(.btn) {
|
|
19
|
-
height: 24px;
|
|
20
|
-
display: inline-block;
|
|
21
|
-
}
|
|
22
|
-
.np-info .tw-icon {
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
color: var(--color-interactive-primary);
|
|
25
|
-
display: inline-block;
|
|
26
3
|
}
|
|
27
4
|
.np-info [data-toggle="popover"]:not(.btn) {
|
|
28
5
|
border-bottom: none !important;
|