@transferwise/components 0.0.0-experimental-9f96230 → 0.0.0-experimental-9b505c9
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 +22 -3
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +22 -3
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js +22 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs +22 -1
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js +24 -2
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs +24 -2
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +21 -5
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +21 -5
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +25 -2
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +25 -2
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js +25 -9
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +25 -9
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +23 -3
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +23 -3
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +24 -12
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +24 -12
- package/build/badge/Badge.mjs.map +1 -1
- package/build/button/Button.js +22 -3
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +22 -3
- package/build/button/Button.mjs.map +1 -1
- package/build/button/classMap.js +24 -0
- package/build/button/classMap.js.map +1 -1
- package/build/button/classMap.mjs +24 -0
- package/build/button/classMap.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js +24 -2
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs +24 -2
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js +23 -3
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs +23 -3
- package/build/card/Card.mjs.map +1 -1
- package/build/checkbox/Checkbox.js +23 -1
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs +23 -1
- package/build/checkbox/Checkbox.mjs.map +1 -1
- package/build/chevron/Chevron.js +21 -1
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs +21 -1
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js +19 -1
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chip.mjs +19 -1
- package/build/chips/Chip.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +24 -5
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +24 -5
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/bottomSheet/BottomSheet.js +3 -2
- package/build/common/bottomSheet/BottomSheet.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs +3 -2
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/circle/Circle.js +15 -2
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +15 -2
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js +10 -10
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +10 -10
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
- package/build/common/locale/index.js +24 -0
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +24 -0
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js +23 -2
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs +23 -2
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js +27 -3
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +27 -3
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +22 -3
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +22 -3
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js +22 -5
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.mjs +22 -5
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +24 -6
- package/build/dateLookup/DateLookup.js.map +1 -1
- package/build/dateLookup/DateLookup.mjs +24 -6
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js +26 -5
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +26 -5
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +19 -3
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs +19 -3
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
- package/build/decision/Decision.js +24 -3
- package/build/decision/Decision.js.map +1 -1
- package/build/decision/Decision.mjs +24 -3
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js +23 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs +23 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js +24 -2
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs +24 -2
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/display/Display.js +23 -1
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs +23 -1
- package/build/display/Display.mjs.map +1 -1
- package/build/drawer/Drawer.js +22 -3
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs +22 -3
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/field/Field.js +23 -2
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs +23 -2
- package/build/field/Field.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js +19 -2
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs +19 -2
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/header/Header.js +24 -2
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +24 -2
- package/build/header/Header.mjs.map +1 -1
- package/build/i18n/en.json +0 -5
- package/build/i18n/en.json.js +0 -5
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +0 -5
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/image/Image.js +4 -1
- package/build/image/Image.js.map +1 -1
- package/build/image/Image.mjs +4 -1
- package/build/image/Image.mjs.map +1 -1
- package/build/index.js +69 -62
- package/build/index.js.map +1 -1
- package/build/index.mjs +27 -20
- package/build/index.mjs.map +1 -1
- package/build/info/Info.js +21 -3
- package/build/info/Info.js.map +1 -1
- package/build/info/Info.mjs +21 -3
- package/build/info/Info.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js +24 -3
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs +24 -3
- package/build/inlineAlert/InlineAlert.mjs.map +1 -1
- package/build/inputs/SearchInput.js +23 -2
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs +23 -2
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/instructionsList/InstructionsList.js +22 -1
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/instructionsList/InstructionsList.mjs +22 -1
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- package/build/loader/Loader.js +22 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs +22 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/main.css +46 -322
- package/build/markdown/Markdown.js +24 -1
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs +24 -1
- package/build/markdown/Markdown.mjs.map +1 -1
- package/build/modal/Modal.js +22 -5
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs +22 -5
- package/build/modal/Modal.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.js +22 -3
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +22 -3
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js +23 -2
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs +23 -2
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/nudge/Nudge.js +19 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +19 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js +19 -1
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs +19 -1
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +23 -2
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +23 -2
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/popover/Popover.js +24 -4
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs +24 -4
- package/build/popover/Popover.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js +22 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs +22 -1
- package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/progressBar/ProgressBar.js +24 -2
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/progressBar/ProgressBar.mjs +24 -2
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js +22 -2
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +22 -2
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js +22 -1
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs +22 -1
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/provider/Provider.js +25 -2
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/Provider.mjs +25 -2
- package/build/provider/Provider.mjs.map +1 -1
- package/build/radio/Radio.js +24 -2
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs +24 -2
- package/build/radio/Radio.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +22 -1
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs +22 -1
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js +26 -4
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +26 -4
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js +22 -1
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs +22 -1
- package/build/select/option/Option.mjs.map +1 -1
- package/build/selectOption/SelectOption.js +24 -6
- package/build/selectOption/SelectOption.js.map +1 -1
- package/build/selectOption/SelectOption.mjs +24 -6
- package/build/selectOption/SelectOption.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js +26 -8
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.mjs +26 -8
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js +25 -3
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs +25 -3
- package/build/stepper/Stepper.mjs.map +1 -1
- package/build/sticky/Sticky.js +25 -2
- package/build/sticky/Sticky.js.map +1 -1
- package/build/sticky/Sticky.mjs +25 -2
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/styles/avatar/Avatar.css +29 -0
- package/build/styles/badge/Badge.css +6 -0
- package/build/styles/circularButton/CircularButton.css +2 -2
- package/build/styles/common/circle/Circle.css +4 -0
- package/build/styles/main.css +46 -322
- package/build/styles/statusIcon/StatusIcon.css +0 -20
- package/build/summary/Summary.js +21 -5
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.mjs +21 -5
- package/build/summary/Summary.mjs.map +1 -1
- package/build/tabs/Tabs.js +23 -3
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs +23 -3
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tile/Tile.js +24 -2
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs +24 -2
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js +23 -1
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs +23 -1
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js +22 -1
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs +22 -1
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +22 -4
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.mjs +22 -4
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/common/circle/Circle.d.ts +1 -1
- package/build/types/common/circle/Circle.d.ts.map +1 -1
- package/build/types/common/fakeEvents.d.ts +23 -0
- package/build/types/common/fakeEvents.d.ts.map +1 -0
- package/build/types/common/hooks/index.d.ts +4 -4
- package/build/types/common/hooks/index.d.ts.map +1 -1
- package/build/types/common/hooks/useConditionalListener/index.d.ts +1 -1
- package/build/types/common/hooks/useConditionalListener/index.d.ts.map +1 -1
- package/build/types/common/hooks/useDirection/index.d.ts +1 -1
- package/build/types/common/hooks/useDirection/index.d.ts.map +1 -1
- package/build/types/common/hooks/useHasIntersected/index.d.ts +1 -1
- package/build/types/common/hooks/useHasIntersected/index.d.ts.map +1 -1
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +15 -4
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -1
- package/build/types/common/index.d.ts +28 -28
- package/build/types/common/index.d.ts.map +1 -1
- package/build/types/common/responsivePanel/index.d.ts +1 -1
- package/build/types/common/responsivePanel/index.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/navigationOption/NavigationOption.d.ts +1 -0
- package/build/types/navigationOption/NavigationOption.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.d.ts +7 -3
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
- package/build/upload/Upload.js +21 -2
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.mjs +21 -2
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +25 -3
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +25 -3
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +23 -3
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +23 -3
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js +22 -3
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs +22 -3
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +21 -2
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +21 -2
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js +24 -0
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs +24 -0
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +21 -4
- package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs +21 -4
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +25 -1
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +25 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/package.json +3 -3
- package/src/avatar/Avatar.css +29 -0
- package/src/avatar/Avatar.less +12 -0
- package/src/avatar/Avatar.tsx +4 -8
- package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +11 -22
- package/src/badge/Badge.css +6 -0
- package/src/badge/Badge.less +6 -0
- package/src/badge/Badge.tsx +1 -11
- package/src/circularButton/CircularButton.css +2 -2
- package/src/circularButton/CircularButton.less +1 -1
- package/src/circularButton/CircularButton.story.tsx +3 -0
- package/src/circularButton/CircularButton.tsx +1 -1
- package/src/circularButton/__snapshots__/CircularButton.spec.tsx.snap +10 -10
- package/src/common/circle/Circle.css +4 -0
- package/src/common/circle/Circle.less +6 -0
- package/src/common/circle/Circle.story.tsx +2 -2
- package/src/common/circle/Circle.tsx +25 -2
- package/src/common/{fakeEvents.js → fakeEvents.ts} +1 -1
- package/src/common/hooks/useHasIntersected/{useHasIntersected.js → useHasIntersected.ts} +20 -11
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +4 -8
- package/src/i18n/en.json +0 -5
- package/src/index.ts +1 -0
- package/src/main.css +46 -322
- package/src/main.less +0 -1
- package/src/navigationOption/{NavigationOption.story.js → NavigationOption.story.tsx} +23 -5
- package/src/navigationOption/NavigationOption.tsx +1 -1
- package/src/overlayHeader/__snapshots__/OverlayHeader.spec.tsx.snap +2 -4
- package/src/promoCard/PromoCard.spec.tsx +1 -1
- package/src/radio/__snapshots__/Radio.rtl.spec.tsx.snap +2 -4
- package/src/statusIcon/StatusIcon.css +0 -20
- package/src/statusIcon/StatusIcon.less +0 -17
- package/src/statusIcon/StatusIcon.spec.tsx +2 -21
- package/src/statusIcon/StatusIcon.story.tsx +32 -1
- package/src/statusIcon/StatusIcon.tsx +11 -10
- package/build/styles/table/Table.css +0 -300
- package/build/types/table/Table.d.ts +0 -24
- package/build/types/table/Table.d.ts.map +0 -1
- package/build/types/table/Table.messages.d.ts +0 -24
- package/build/types/table/Table.messages.d.ts.map +0 -1
- package/build/types/table/TableCell.d.ts +0 -44
- package/build/types/table/TableCell.d.ts.map +0 -1
- package/build/types/table/TableHeader.d.ts +0 -13
- package/build/types/table/TableHeader.d.ts.map +0 -1
- package/build/types/table/TableRow.d.ts +0 -17
- package/build/types/table/TableRow.d.ts.map +0 -1
- package/build/types/table/TableStatusText.d.ts +0 -9
- package/build/types/table/TableStatusText.d.ts.map +0 -1
- package/build/types/table/index.d.ts +0 -6
- package/build/types/table/index.d.ts.map +0 -1
- package/src/common/requirements.js +0 -440
- package/src/table/Table.css +0 -300
- package/src/table/Table.less +0 -361
- package/src/table/Table.messages.ts +0 -24
- package/src/table/Table.spec.tsx +0 -89
- package/src/table/Table.story.tsx +0 -364
- package/src/table/Table.tsx +0 -167
- package/src/table/TableCell.spec.tsx +0 -304
- package/src/table/TableCell.tsx +0 -170
- package/src/table/TableHeader.spec.tsx +0 -55
- package/src/table/TableHeader.tsx +0 -75
- package/src/table/TableRow.spec.tsx +0 -117
- package/src/table/TableRow.tsx +0 -67
- package/src/table/TableStatusText.spec.tsx +0 -53
- package/src/table/TableStatusText.tsx +0 -36
- package/src/table/index.ts +0 -11
- /package/src/common/hooks/{index.js → index.ts} +0 -0
- /package/src/common/hooks/useConditionalListener/{index.js → index.ts} +0 -0
- /package/src/common/hooks/useDirection/{index.js → index.ts} +0 -0
- /package/src/common/hooks/useHasIntersected/{index.js → index.ts} +0 -0
- /package/src/common/{index.js → index.ts} +0 -0
- /package/src/common/responsivePanel/{index.js → index.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
const ObserverParams = {
|
|
3
|
+
const ObserverParams: IntersectionObserverInit = {
|
|
4
4
|
threshold: 0.1,
|
|
5
5
|
};
|
|
6
6
|
|
|
@@ -9,13 +9,19 @@ const ObserverParams = {
|
|
|
9
9
|
* Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.
|
|
10
10
|
* Once the intersection has happened the hook will not return false even if the element gets out of the viewport.
|
|
11
11
|
*
|
|
12
|
-
* @param
|
|
13
|
-
* @param {object} [elRef] - node object that contains a react reference to the element that needs to be observed.
|
|
14
|
-
* @param {
|
|
12
|
+
* @param {object} params
|
|
13
|
+
* @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.
|
|
14
|
+
* @param {string} [params.loading = 'eager'] - string that contains the type of loading.
|
|
15
15
|
* @param elRef.loading
|
|
16
16
|
* @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`
|
|
17
17
|
*/
|
|
18
|
-
export const useHasIntersected = ({
|
|
18
|
+
export const useHasIntersected = ({
|
|
19
|
+
elRef,
|
|
20
|
+
loading = 'eager',
|
|
21
|
+
}: {
|
|
22
|
+
elRef: React.RefObject<HTMLElement>;
|
|
23
|
+
loading?: 'eager' | 'lazy';
|
|
24
|
+
}) => {
|
|
19
25
|
const [hasIntersected, setHasIntersected] = useState(false);
|
|
20
26
|
|
|
21
27
|
const { current } = elRef || {};
|
|
@@ -24,29 +30,32 @@ export const useHasIntersected = ({ elRef, loading }) => {
|
|
|
24
30
|
return elRef && current;
|
|
25
31
|
};
|
|
26
32
|
|
|
27
|
-
const handleOnIntersect = (entries, observer) => {
|
|
33
|
+
const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {
|
|
28
34
|
entries.forEach((entry) => {
|
|
29
35
|
if (entry.isIntersecting) {
|
|
30
36
|
setHasIntersected(true);
|
|
31
|
-
|
|
37
|
+
|
|
38
|
+
if (current) {
|
|
39
|
+
observer.unobserve(current);
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
});
|
|
34
43
|
};
|
|
35
44
|
|
|
36
45
|
useEffect(() => {
|
|
37
|
-
let observer;
|
|
46
|
+
let observer: IntersectionObserver | undefined;
|
|
38
47
|
let didCancel = false;
|
|
39
48
|
|
|
40
|
-
// Check if window is
|
|
49
|
+
// Check if window is defined for SSR and Old browsers fallback
|
|
41
50
|
if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {
|
|
42
51
|
setHasIntersected(true);
|
|
43
|
-
} else if (!didCancel) {
|
|
52
|
+
} else if (current && !didCancel) {
|
|
44
53
|
observer = new IntersectionObserver(handleOnIntersect, ObserverParams);
|
|
45
54
|
observer.observe(current);
|
|
46
55
|
}
|
|
47
56
|
return () => {
|
|
48
57
|
didCancel = true;
|
|
49
|
-
if (observer) {
|
|
58
|
+
if (observer && current) {
|
|
50
59
|
observer.unobserve(current);
|
|
51
60
|
}
|
|
52
61
|
};
|
|
@@ -21,12 +21,10 @@ exports[`FlowNavigation on mobile renders as expected 1`] = `
|
|
|
21
21
|
class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
|
|
22
22
|
>
|
|
23
23
|
<div
|
|
24
|
-
class="
|
|
25
|
-
style="--circle-size: 48px;"
|
|
24
|
+
class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
|
|
26
25
|
>
|
|
27
26
|
<div
|
|
28
|
-
class="
|
|
29
|
-
style="--circle-size: 48px;"
|
|
27
|
+
class="tw-avatar__content"
|
|
30
28
|
>
|
|
31
29
|
TM
|
|
32
30
|
</div>
|
|
@@ -138,12 +136,10 @@ exports[`FlowNavigation renders as expected 1`] = `
|
|
|
138
136
|
class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
|
|
139
137
|
>
|
|
140
138
|
<div
|
|
141
|
-
class="
|
|
142
|
-
style="--circle-size: 48px;"
|
|
139
|
+
class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
|
|
143
140
|
>
|
|
144
141
|
<div
|
|
145
|
-
class="
|
|
146
|
-
style="--circle-size: 48px;"
|
|
142
|
+
class="tw-avatar__content"
|
|
147
143
|
>
|
|
148
144
|
TM
|
|
149
145
|
</div>
|
package/src/i18n/en.json
CHANGED
|
@@ -35,11 +35,6 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Item done",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Item to do",
|
|
37
37
|
"neptune.Summary.statusPending": "Item pending",
|
|
38
|
-
"neptune.Table.actionHeader": "Action",
|
|
39
|
-
"neptune.Table.emptyData": "No results found",
|
|
40
|
-
"neptune.Table.loaded": "Table data is loaded",
|
|
41
|
-
"neptune.Table.loading": "Table data is loading",
|
|
42
|
-
"neptune.Table.refreshPage": "Refresh page",
|
|
43
38
|
"neptune.Upload.csButtonText": "Upload another file?",
|
|
44
39
|
"neptune.Upload.csFailureText": "Upload failed. Please, try again",
|
|
45
40
|
"neptune.Upload.csSuccessText": "Upload complete!",
|
package/src/index.ts
CHANGED
|
@@ -59,6 +59,7 @@ export type {
|
|
|
59
59
|
MoneyInputProps,
|
|
60
60
|
} from './moneyInput';
|
|
61
61
|
export type { NavigationOptionListProps } from './navigationOptionsList';
|
|
62
|
+
export type { NavigationOptionProps } from './navigationOption/NavigationOption';
|
|
62
63
|
export type { OverlayHeaderProps } from './overlayHeader';
|
|
63
64
|
export type { PanelProps } from './common/panel';
|
|
64
65
|
export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
|
package/src/main.css
CHANGED
|
@@ -221,18 +221,27 @@ div.critical-comms .critical-comms-body {
|
|
|
221
221
|
}
|
|
222
222
|
.tw-avatar {
|
|
223
223
|
position: relative;
|
|
224
|
+
border-radius: 50%;
|
|
224
225
|
-webkit-user-select: none;
|
|
225
226
|
-moz-user-select: none;
|
|
226
227
|
user-select: none;
|
|
227
228
|
box-sizing: border-box;
|
|
228
229
|
}
|
|
229
230
|
.tw-avatar .tw-avatar__content {
|
|
231
|
+
align-items: center;
|
|
230
232
|
background-color: rgba(134,167,189,0.10196);
|
|
231
233
|
background-color: #86a7bd1a;
|
|
232
234
|
background-color: var(--color-background-neutral);
|
|
235
|
+
border-radius: 50%;
|
|
236
|
+
color: #37517e;
|
|
237
|
+
color: var(--color-content-primary);
|
|
238
|
+
display: flex;
|
|
239
|
+
height: 100%;
|
|
240
|
+
justify-content: center;
|
|
233
241
|
max-height: 100%;
|
|
234
242
|
max-width: 100%;
|
|
235
243
|
overflow: hidden;
|
|
244
|
+
width: 100%;
|
|
236
245
|
}
|
|
237
246
|
.tw-avatar--outlined {
|
|
238
247
|
border: 1px solid #00a2dd;
|
|
@@ -275,6 +284,11 @@ div.critical-comms .critical-comms-body {
|
|
|
275
284
|
color: var(--color-dark-charcoal);
|
|
276
285
|
line-height: 1;
|
|
277
286
|
}
|
|
287
|
+
.tw-avatar--24 {
|
|
288
|
+
min-width: 24px;
|
|
289
|
+
width: 24px;
|
|
290
|
+
height: 24px;
|
|
291
|
+
}
|
|
278
292
|
.tw-avatar--24.tw-avatar--emoji,
|
|
279
293
|
.tw-avatar--24.tw-avatar--icon {
|
|
280
294
|
font-size: 12px;
|
|
@@ -305,6 +319,11 @@ div.critical-comms .critical-comms-body {
|
|
|
305
319
|
content: "";
|
|
306
320
|
border-radius: 50%;
|
|
307
321
|
}
|
|
322
|
+
.tw-avatar--40 {
|
|
323
|
+
min-width: 40px;
|
|
324
|
+
width: 40px;
|
|
325
|
+
height: 40px;
|
|
326
|
+
}
|
|
308
327
|
.tw-avatar--40.tw-avatar--emoji,
|
|
309
328
|
.tw-avatar--40.tw-avatar--icon {
|
|
310
329
|
font-size: 20px;
|
|
@@ -335,6 +354,11 @@ div.critical-comms .critical-comms-body {
|
|
|
335
354
|
content: "";
|
|
336
355
|
border-radius: 50%;
|
|
337
356
|
}
|
|
357
|
+
.tw-avatar--48 {
|
|
358
|
+
min-width: 48px;
|
|
359
|
+
width: 48px;
|
|
360
|
+
height: 48px;
|
|
361
|
+
}
|
|
338
362
|
.tw-avatar--48.tw-avatar--emoji,
|
|
339
363
|
.tw-avatar--48.tw-avatar--icon {
|
|
340
364
|
font-size: 24px;
|
|
@@ -365,6 +389,11 @@ div.critical-comms .critical-comms-body {
|
|
|
365
389
|
content: "";
|
|
366
390
|
border-radius: 50%;
|
|
367
391
|
}
|
|
392
|
+
.tw-avatar--56 {
|
|
393
|
+
min-width: 56px;
|
|
394
|
+
width: 56px;
|
|
395
|
+
height: 56px;
|
|
396
|
+
}
|
|
368
397
|
.tw-avatar--56.tw-avatar--emoji,
|
|
369
398
|
.tw-avatar--56.tw-avatar--icon {
|
|
370
399
|
font-size: 28px;
|
|
@@ -395,6 +424,11 @@ div.critical-comms .critical-comms-body {
|
|
|
395
424
|
content: "";
|
|
396
425
|
border-radius: 50%;
|
|
397
426
|
}
|
|
427
|
+
.tw-avatar--72 {
|
|
428
|
+
min-width: 72px;
|
|
429
|
+
width: 72px;
|
|
430
|
+
height: 72px;
|
|
431
|
+
}
|
|
398
432
|
.tw-avatar--72.tw-avatar--emoji,
|
|
399
433
|
.tw-avatar--72.tw-avatar--icon {
|
|
400
434
|
font-size: 36px;
|
|
@@ -460,10 +494,16 @@ div.critical-comms .critical-comms-body {
|
|
|
460
494
|
}
|
|
461
495
|
.tw-badge > .tw-badge__content {
|
|
462
496
|
position: absolute;
|
|
497
|
+
width: var(--badge-size);
|
|
498
|
+
height: var(--badge-size);
|
|
463
499
|
bottom: 0;
|
|
464
500
|
right: 0;
|
|
465
501
|
box-sizing: border-box;
|
|
502
|
+
border-radius: 50%;
|
|
466
503
|
text-align: center;
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: center;
|
|
467
507
|
overflow: hidden;
|
|
468
508
|
-webkit-user-select: none;
|
|
469
509
|
-moz-user-select: none;
|
|
@@ -1016,8 +1056,8 @@ div.critical-comms .critical-comms-body {
|
|
|
1016
1056
|
}
|
|
1017
1057
|
@media (max-width: 320px) {
|
|
1018
1058
|
.np-circular-btn .tw-icon {
|
|
1019
|
-
top:
|
|
1020
|
-
top: var(--size-
|
|
1059
|
+
top: 12px;
|
|
1060
|
+
top: var(--size-12);
|
|
1021
1061
|
}
|
|
1022
1062
|
}
|
|
1023
1063
|
.np-circular-btn .tw-icon > svg {
|
|
@@ -1172,6 +1212,10 @@ div.critical-comms .critical-comms-body {
|
|
|
1172
1212
|
height: var(--circle-size);
|
|
1173
1213
|
flex-shrink: 0;
|
|
1174
1214
|
}
|
|
1215
|
+
.np-circle .tw-icon > svg {
|
|
1216
|
+
height: var(--circle-icon-size);
|
|
1217
|
+
width: var(--circle-icon-size);
|
|
1218
|
+
}
|
|
1175
1219
|
.np-bottom-sheet {
|
|
1176
1220
|
border-radius: 10px 10px 0 0;
|
|
1177
1221
|
}
|
|
@@ -4158,12 +4202,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4158
4202
|
transform: translateY(-24px);
|
|
4159
4203
|
}
|
|
4160
4204
|
}
|
|
4161
|
-
.status-icon > svg {
|
|
4162
|
-
height: 32px;
|
|
4163
|
-
height: var(--size-32);
|
|
4164
|
-
width: 32px;
|
|
4165
|
-
width: var(--size-32);
|
|
4166
|
-
}
|
|
4167
4205
|
.status-circle .light {
|
|
4168
4206
|
color: var(--color-contrast);
|
|
4169
4207
|
}
|
|
@@ -4179,20 +4217,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4179
4217
|
.np-theme-personal .status-circle.pending .status-icon {
|
|
4180
4218
|
color: var(--color-dark);
|
|
4181
4219
|
}
|
|
4182
|
-
.status-circle-sm .status-icon > svg {
|
|
4183
|
-
height: 14px;
|
|
4184
|
-
height: var(--size-14);
|
|
4185
|
-
width: 14px;
|
|
4186
|
-
width: var(--size-14);
|
|
4187
|
-
}
|
|
4188
|
-
@media (max-width: 320px) {
|
|
4189
|
-
.status-circle-sm .status-icon > svg {
|
|
4190
|
-
width: 24px;
|
|
4191
|
-
width: var(--size-24);
|
|
4192
|
-
height: 24px;
|
|
4193
|
-
height: var(--size-24);
|
|
4194
|
-
}
|
|
4195
|
-
}
|
|
4196
4220
|
.status-circle.negative,
|
|
4197
4221
|
.status-circle.error {
|
|
4198
4222
|
background-color: var(--color-sentiment-negative);
|
|
@@ -5028,306 +5052,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
5028
5052
|
padding: 0 var(--size-24);
|
|
5029
5053
|
}
|
|
5030
5054
|
}
|
|
5031
|
-
.np-table {
|
|
5032
|
-
width: 100%;
|
|
5033
|
-
background-color: transparent;
|
|
5034
|
-
}
|
|
5035
|
-
.np-table-outer-container {
|
|
5036
|
-
border-radius: 16px;
|
|
5037
|
-
border-radius: var(--radius-medium);
|
|
5038
|
-
}
|
|
5039
|
-
.np-table-outer-container:focus {
|
|
5040
|
-
outline: none;
|
|
5041
|
-
}
|
|
5042
|
-
.np-table-outer-container:focus-visible {
|
|
5043
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
5044
|
-
outline-offset: var(--ring-outline-offset);
|
|
5045
|
-
}
|
|
5046
|
-
.np-table-outer-container:focus-visible {
|
|
5047
|
-
outline-offset: 0;
|
|
5048
|
-
}
|
|
5049
|
-
.np-table-outer-container--center {
|
|
5050
|
-
margin-right: auto;
|
|
5051
|
-
margin-left: auto;
|
|
5052
|
-
}
|
|
5053
|
-
@media (max-width: 767px) {
|
|
5054
|
-
.np-table-outer-container--center {
|
|
5055
|
-
width: 100%;
|
|
5056
|
-
}
|
|
5057
|
-
}
|
|
5058
|
-
.np-table-outer-container--full-width {
|
|
5059
|
-
width: 100%;
|
|
5060
|
-
}
|
|
5061
|
-
.np-table-container {
|
|
5062
|
-
padding: 8px;
|
|
5063
|
-
padding: var(--size-8);
|
|
5064
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5065
|
-
background-color: var(--color-background-neutral);
|
|
5066
|
-
border-radius: inherit;
|
|
5067
|
-
}
|
|
5068
|
-
.np-table-container--loading .np-table-inner-container {
|
|
5069
|
-
background-image: none;
|
|
5070
|
-
}
|
|
5071
|
-
.np-table-inner-container {
|
|
5072
|
-
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
5073
|
-
background-position: left center, right center, left center, right center;
|
|
5074
|
-
background-repeat: no-repeat;
|
|
5075
|
-
background-color: var(--color-contrast-overlay);
|
|
5076
|
-
background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
|
|
5077
|
-
background-attachment: local, local, scroll, scroll;
|
|
5078
|
-
overflow-x: auto;
|
|
5079
|
-
border-radius: 10px;
|
|
5080
|
-
}
|
|
5081
|
-
.np-theme-personal--dark .np-table-inner-container {
|
|
5082
|
-
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, #000000, rgba(0, 0, 0, 0)), linear-gradient(to left, #000000, rgba(0, 0, 0, 0));
|
|
5083
|
-
}
|
|
5084
|
-
.np-table-row:last-child .np-table-cell:first-child {
|
|
5085
|
-
border-bottom-left-radius: 10px;
|
|
5086
|
-
}
|
|
5087
|
-
.np-table-row:last-child .np-table-cell:last-child {
|
|
5088
|
-
border-bottom-right-radius: 10px;
|
|
5089
|
-
}
|
|
5090
|
-
.np-table-row--clickable .np-table-cell {
|
|
5091
|
-
position: relative;
|
|
5092
|
-
}
|
|
5093
|
-
.np-table-row--clickable .np-table-cell:before {
|
|
5094
|
-
display: none;
|
|
5095
|
-
content: "";
|
|
5096
|
-
position: absolute;
|
|
5097
|
-
height: 100%;
|
|
5098
|
-
width: 100%;
|
|
5099
|
-
top: 0;
|
|
5100
|
-
left: 0;
|
|
5101
|
-
background-color: var(--color-background-screen-hover);
|
|
5102
|
-
}
|
|
5103
|
-
.np-table-row--clickable .np-table-cell:first-child:before,
|
|
5104
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
5105
|
-
width: calc(100% - 8px);
|
|
5106
|
-
width: calc(100% - var(--size-8));
|
|
5107
|
-
}
|
|
5108
|
-
.np-table-row--clickable .np-table-cell:first-child:before {
|
|
5109
|
-
left: 8px;
|
|
5110
|
-
left: var(--size-8);
|
|
5111
|
-
border-top-left-radius: 6px;
|
|
5112
|
-
border-bottom-left-radius: 6px;
|
|
5113
|
-
}
|
|
5114
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
5115
|
-
border-top-right-radius: 6px;
|
|
5116
|
-
border-bottom-right-radius: 6px;
|
|
5117
|
-
}
|
|
5118
|
-
.np-table-row--clickable:hover .np-table-cell:before {
|
|
5119
|
-
display: block;
|
|
5120
|
-
}
|
|
5121
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
|
|
5122
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
|
|
5123
|
-
width: 100%;
|
|
5124
|
-
}
|
|
5125
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
|
|
5126
|
-
left: 0;
|
|
5127
|
-
}
|
|
5128
|
-
.np-table-row--clickable:focus {
|
|
5129
|
-
outline: none;
|
|
5130
|
-
}
|
|
5131
|
-
.np-table-row--clickable:focus-visible {
|
|
5132
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
5133
|
-
outline-offset: var(--ring-outline-offset);
|
|
5134
|
-
}
|
|
5135
|
-
.np-table-row--clickable:focus-visible {
|
|
5136
|
-
outline-offset: -2px;
|
|
5137
|
-
border-radius: 6px;
|
|
5138
|
-
}
|
|
5139
|
-
.np-table-row--cosmetic .np-table-cell {
|
|
5140
|
-
height: 8px;
|
|
5141
|
-
height: var(--size-8);
|
|
5142
|
-
padding: 0;
|
|
5143
|
-
}
|
|
5144
|
-
.np-table-header,
|
|
5145
|
-
.np-table-cell {
|
|
5146
|
-
padding: 0;
|
|
5147
|
-
}
|
|
5148
|
-
.np-table-header:first-child,
|
|
5149
|
-
.np-table-cell:first-child {
|
|
5150
|
-
padding-left: 16px;
|
|
5151
|
-
padding-left: var(--size-16);
|
|
5152
|
-
}
|
|
5153
|
-
.np-table-header:first-child .np-table-header-content,
|
|
5154
|
-
.np-table-cell:first-child .np-table-header-content,
|
|
5155
|
-
.np-table-header:first-child .np-table-cell-content,
|
|
5156
|
-
.np-table-cell:first-child .np-table-cell-content {
|
|
5157
|
-
padding-left: 0;
|
|
5158
|
-
}
|
|
5159
|
-
.np-table-header:last-child,
|
|
5160
|
-
.np-table-cell:last-child {
|
|
5161
|
-
padding-right: 16px;
|
|
5162
|
-
padding-right: var(--size-16);
|
|
5163
|
-
}
|
|
5164
|
-
.np-table-header:last-child .np-table-header-content,
|
|
5165
|
-
.np-table-cell:last-child .np-table-header-content,
|
|
5166
|
-
.np-table-header:last-child .np-table-cell-content,
|
|
5167
|
-
.np-table-cell:last-child .np-table-cell-content {
|
|
5168
|
-
padding-right: 0;
|
|
5169
|
-
}
|
|
5170
|
-
.np-table-header .np-table-text-secondary,
|
|
5171
|
-
.np-table-cell .np-table-text-secondary {
|
|
5172
|
-
color: #768e9c;
|
|
5173
|
-
color: var(--color-content-tertiary);
|
|
5174
|
-
font-size: 0.75rem;
|
|
5175
|
-
font-size: var(--font-size-12);
|
|
5176
|
-
font-style: normal;
|
|
5177
|
-
font-weight: 400;
|
|
5178
|
-
font-weight: var(--font-weight-regular);
|
|
5179
|
-
line-height: 1.125rem;
|
|
5180
|
-
line-height: var(--line-height-18);
|
|
5181
|
-
}
|
|
5182
|
-
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
5183
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default {
|
|
5184
|
-
text-align: right;
|
|
5185
|
-
}
|
|
5186
|
-
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
5187
|
-
.np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
|
|
5188
|
-
padding-left: calc(8px + 12px);
|
|
5189
|
-
padding-left: calc(var(--size-8) + var(--size-12));
|
|
5190
|
-
}
|
|
5191
|
-
.np-table-header.np-table-header--right .np-table-header-content,
|
|
5192
|
-
.np-table-cell.np-table-cell--right .np-table-content {
|
|
5193
|
-
justify-content: end;
|
|
5194
|
-
}
|
|
5195
|
-
.np-table-header-content,
|
|
5196
|
-
.np-table-content {
|
|
5197
|
-
display: flex;
|
|
5198
|
-
align-items: center;
|
|
5199
|
-
justify-content: start;
|
|
5200
|
-
}
|
|
5201
|
-
.np-table-header {
|
|
5202
|
-
min-width: 160px;
|
|
5203
|
-
padding-right: 8px;
|
|
5204
|
-
padding-right: var(--size-8);
|
|
5205
|
-
padding-bottom: 8px;
|
|
5206
|
-
padding-bottom: var(--size-8);
|
|
5207
|
-
padding-left: 8px;
|
|
5208
|
-
padding-left: var(--size-8);
|
|
5209
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5210
|
-
background-color: var(--color-background-neutral);
|
|
5211
|
-
color: var(--color-interactive-primary);
|
|
5212
|
-
}
|
|
5213
|
-
.np-table-header-content {
|
|
5214
|
-
padding-top: 5px;
|
|
5215
|
-
padding-bottom: 5px;
|
|
5216
|
-
white-space: nowrap;
|
|
5217
|
-
line-height: 1.375rem;
|
|
5218
|
-
line-height: var(--line-height-22);
|
|
5219
|
-
letter-spacing: 0.0125em;
|
|
5220
|
-
letter-spacing: var(--letter-spacing-sm);
|
|
5221
|
-
}
|
|
5222
|
-
.np-table-header--error {
|
|
5223
|
-
color: var(--color-sentiment-negative);
|
|
5224
|
-
}
|
|
5225
|
-
.np-table-header--action {
|
|
5226
|
-
min-width: 0;
|
|
5227
|
-
padding: 0;
|
|
5228
|
-
}
|
|
5229
|
-
.np-table-cell {
|
|
5230
|
-
padding: 16px 8px;
|
|
5231
|
-
padding: var(--size-16) var(--size-8);
|
|
5232
|
-
position: relative;
|
|
5233
|
-
}
|
|
5234
|
-
.np-table-cell--cosmetic {
|
|
5235
|
-
padding: 0;
|
|
5236
|
-
}
|
|
5237
|
-
.np-table-cell--primary {
|
|
5238
|
-
min-width: 200px;
|
|
5239
|
-
}
|
|
5240
|
-
.np-table-cell--currency .np-text-body-default {
|
|
5241
|
-
white-space: nowrap;
|
|
5242
|
-
}
|
|
5243
|
-
.np-table-cell--status .status-circle {
|
|
5244
|
-
width: 24px;
|
|
5245
|
-
height: 24px;
|
|
5246
|
-
}
|
|
5247
|
-
.np-table-cell--status .status-circle .status-icon > svg {
|
|
5248
|
-
width: 21px;
|
|
5249
|
-
height: 21px;
|
|
5250
|
-
}
|
|
5251
|
-
.np-table-cell .tw-chevron {
|
|
5252
|
-
margin-left: 8px;
|
|
5253
|
-
margin-left: var(--size-8);
|
|
5254
|
-
}
|
|
5255
|
-
.np-table-cell-separator {
|
|
5256
|
-
margin-top: 4px;
|
|
5257
|
-
margin-top: var(--size-4);
|
|
5258
|
-
margin-bottom: 4px;
|
|
5259
|
-
margin-bottom: var(--size-4);
|
|
5260
|
-
height: 1px;
|
|
5261
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5262
|
-
background-color: var(--color-background-neutral);
|
|
5263
|
-
padding: 0;
|
|
5264
|
-
}
|
|
5265
|
-
.np-table-cell .np-text-body-default {
|
|
5266
|
-
line-height: 1.375rem;
|
|
5267
|
-
line-height: var(--line-height-22);
|
|
5268
|
-
letter-spacing: 0.01em;
|
|
5269
|
-
letter-spacing: var(--letter-spacing-xs);
|
|
5270
|
-
}
|
|
5271
|
-
.np-table-cell .np-text-body-default-bold {
|
|
5272
|
-
display: flex;
|
|
5273
|
-
align-items: center;
|
|
5274
|
-
color: #37517e;
|
|
5275
|
-
color: var(--color-content-primary);
|
|
5276
|
-
white-space: nowrap;
|
|
5277
|
-
}
|
|
5278
|
-
.np-table-cell .np-table-content--success {
|
|
5279
|
-
color: var(--color-sentiment-positive);
|
|
5280
|
-
}
|
|
5281
|
-
.np-table-cell .np-table-content--error {
|
|
5282
|
-
color: var(--color-sentiment-negative);
|
|
5283
|
-
}
|
|
5284
|
-
.np-table-cell .tw-loader {
|
|
5285
|
-
margin: 150px auto;
|
|
5286
|
-
}
|
|
5287
|
-
@media (max-width: 320px) {
|
|
5288
|
-
.np-table-cell .tw-loader {
|
|
5289
|
-
margin-top: 70px;
|
|
5290
|
-
margin-bottom: 70px;
|
|
5291
|
-
}
|
|
5292
|
-
}
|
|
5293
|
-
.np-table-content {
|
|
5294
|
-
gap: 12px;
|
|
5295
|
-
gap: var(--size-12);
|
|
5296
|
-
}
|
|
5297
|
-
.np-table-content--success,
|
|
5298
|
-
.np-table-content--error {
|
|
5299
|
-
gap: 4px;
|
|
5300
|
-
gap: var(--size-4);
|
|
5301
|
-
}
|
|
5302
|
-
.np-table-content--success .np-table-content-text,
|
|
5303
|
-
.np-table-content--error .np-table-content-text {
|
|
5304
|
-
line-height: 155%;
|
|
5305
|
-
}
|
|
5306
|
-
.np-table-content-media {
|
|
5307
|
-
flex-shrink: 0;
|
|
5308
|
-
}
|
|
5309
|
-
.np-table-content-body {
|
|
5310
|
-
display: flex;
|
|
5311
|
-
flex-direction: column;
|
|
5312
|
-
font-size: 0.75rem;
|
|
5313
|
-
font-size: var(--font-size-12);
|
|
5314
|
-
color: #768e9c;
|
|
5315
|
-
color: var(--color-content-tertiary);
|
|
5316
|
-
}
|
|
5317
|
-
.np-table-content--reversed {
|
|
5318
|
-
flex-direction: row-reverse;
|
|
5319
|
-
}
|
|
5320
|
-
.np-table-content--reversed .np-table-content-body {
|
|
5321
|
-
align-items: end;
|
|
5322
|
-
}
|
|
5323
|
-
.np-table-empty-data {
|
|
5324
|
-
display: flex;
|
|
5325
|
-
align-items: center;
|
|
5326
|
-
}
|
|
5327
|
-
.np-table-empty-data .status-circle {
|
|
5328
|
-
margin-right: 12px;
|
|
5329
|
-
margin-right: var(--size-12);
|
|
5330
|
-
}
|
|
5331
5055
|
.np-tile {
|
|
5332
5056
|
min-width: 120px;
|
|
5333
5057
|
border-radius: 10px;
|
package/src/main.less
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { action } from '@storybook/addon-actions';
|
|
2
3
|
import { text, boolean } from '@storybook/addon-knobs';
|
|
3
4
|
import {
|
|
@@ -19,8 +20,22 @@ export default {
|
|
|
19
20
|
tags: ['autodocs'],
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
type TemplateTypes = {
|
|
24
|
+
href?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
content?: string;
|
|
27
|
+
complex?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
showMediaAtAllSizes?: boolean;
|
|
30
|
+
showMediaCircle?: boolean;
|
|
31
|
+
isContainerAligned?: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
hasTitleOnly?: boolean;
|
|
34
|
+
media?: ReactNode;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const Template = (props: TemplateTypes) => {
|
|
38
|
+
const href = text('href', props.href ?? '');
|
|
24
39
|
const title = text('title', props.title ?? 'Navigation option');
|
|
25
40
|
const content = text('content', props.content ?? 'Button and icon are vertically centered.');
|
|
26
41
|
const complex = boolean('complex', props.complex ?? false);
|
|
@@ -28,7 +43,7 @@ const Template = (props) => {
|
|
|
28
43
|
const showMediaAtAllSizes = boolean('showMediaAtAllSizes', props.showMediaAtAllSizes ?? false);
|
|
29
44
|
const showMediaCircle = props.showMediaCircle ?? boolean('showMediaCircle', true);
|
|
30
45
|
const isContainerAligned = boolean('isContainerAligned', false);
|
|
31
|
-
const className = text('className', props.className);
|
|
46
|
+
const className = text('className', props.className ?? '');
|
|
32
47
|
|
|
33
48
|
return (
|
|
34
49
|
<NavigationOption
|
|
@@ -140,7 +155,10 @@ export const Multiple = () => (
|
|
|
140
155
|
|
|
141
156
|
export const WithIllustration = () => {
|
|
142
157
|
return (
|
|
143
|
-
<Template
|
|
158
|
+
<Template
|
|
159
|
+
media={<Illustration name={Assets.GLOBE} disablePadding alt="" />}
|
|
160
|
+
showMediaCircle={false}
|
|
161
|
+
/>
|
|
144
162
|
);
|
|
145
163
|
};
|
|
146
164
|
|
|
@@ -166,7 +184,7 @@ export const WithContainerContent = () => (
|
|
|
166
184
|
</>
|
|
167
185
|
);
|
|
168
186
|
|
|
169
|
-
const NavigationOptionTemplate = (props) => {
|
|
187
|
+
const NavigationOptionTemplate = (props: TemplateTypes) => {
|
|
170
188
|
const {
|
|
171
189
|
href,
|
|
172
190
|
title,
|
|
@@ -6,7 +6,7 @@ import { Position } from '../common';
|
|
|
6
6
|
import Option from '../common/Option';
|
|
7
7
|
import { OptionProps, ReferenceType } from '../common/Option/Option';
|
|
8
8
|
|
|
9
|
-
type NavigationOptionProps = OptionProps;
|
|
9
|
+
export type NavigationOptionProps = OptionProps;
|
|
10
10
|
|
|
11
11
|
const NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(
|
|
12
12
|
({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {
|
|
@@ -18,12 +18,10 @@ exports[`OverlayHeader renders as expected 1`] = `
|
|
|
18
18
|
class="d-flex align-items-center order-2"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
22
|
-
style="--circle-size: 48px;"
|
|
21
|
+
class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
|
|
23
22
|
>
|
|
24
23
|
<div
|
|
25
|
-
class="
|
|
26
|
-
style="--circle-size: 48px;"
|
|
24
|
+
class="tw-avatar__content"
|
|
27
25
|
>
|
|
28
26
|
TM
|
|
29
27
|
</div>
|