@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
|
@@ -34,12 +34,10 @@ exports[`Radio shows the avatar when supplied 1`] = `
|
|
|
34
34
|
class="np-radio__avatar m-l-auto"
|
|
35
35
|
>
|
|
36
36
|
<div
|
|
37
|
-
class="
|
|
38
|
-
style="--circle-size: 48px;"
|
|
37
|
+
class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
|
|
39
38
|
>
|
|
40
39
|
<div
|
|
41
|
-
class="
|
|
42
|
-
style="--circle-size: 48px;"
|
|
40
|
+
class="tw-avatar__content"
|
|
43
41
|
>
|
|
44
42
|
HD
|
|
45
43
|
</div>
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
.status-icon > svg {
|
|
2
|
-
height: 32px;
|
|
3
|
-
height: var(--size-32);
|
|
4
|
-
width: 32px;
|
|
5
|
-
width: var(--size-32);
|
|
6
|
-
}
|
|
7
1
|
.status-circle .light {
|
|
8
2
|
color: var(--color-contrast);
|
|
9
3
|
}
|
|
@@ -19,20 +13,6 @@
|
|
|
19
13
|
.np-theme-personal .status-circle.pending .status-icon {
|
|
20
14
|
color: var(--color-dark);
|
|
21
15
|
}
|
|
22
|
-
.status-circle-sm .status-icon > svg {
|
|
23
|
-
height: 14px;
|
|
24
|
-
height: var(--size-14);
|
|
25
|
-
width: 14px;
|
|
26
|
-
width: var(--size-14);
|
|
27
|
-
}
|
|
28
|
-
@media (max-width: 320px) {
|
|
29
|
-
.status-circle-sm .status-icon > svg {
|
|
30
|
-
width: 24px;
|
|
31
|
-
width: var(--size-24);
|
|
32
|
-
height: 24px;
|
|
33
|
-
height: var(--size-24);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
16
|
.status-circle.negative,
|
|
37
17
|
.status-circle.error {
|
|
38
18
|
background-color: var(--color-sentiment-negative);
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
.status-icon > svg {
|
|
2
|
-
height: var(--size-32);
|
|
3
|
-
width: var(--size-32);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.status-circle {
|
|
7
2
|
.light {
|
|
8
3
|
color: var(--color-contrast);
|
|
@@ -22,18 +17,6 @@
|
|
|
22
17
|
}
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
|
-
|
|
26
|
-
&-sm {
|
|
27
|
-
.status-icon > svg {
|
|
28
|
-
height: var(--size-14);
|
|
29
|
-
width: var(--size-14);
|
|
30
|
-
|
|
31
|
-
@media (--screen-400-zoom) {
|
|
32
|
-
width: var(--size-24);
|
|
33
|
-
height: var(--size-24);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
20
|
}
|
|
38
21
|
|
|
39
22
|
.status-circle.negative,
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { Sentiment, Size } from '../common';
|
|
2
2
|
import { render, cleanup, screen, mockMatchMedia } from '../test-utils';
|
|
3
3
|
|
|
4
|
-
import StatusIcon, { StatusIconProps } from '.';
|
|
4
|
+
import StatusIcon, { type StatusIconProps } from '.';
|
|
5
5
|
|
|
6
6
|
mockMatchMedia();
|
|
7
7
|
|
|
8
8
|
describe('StatusIcon', () => {
|
|
9
|
-
const renderStatusIcon = (props?: {
|
|
10
|
-
sentiment?: StatusIconProps['sentiment'];
|
|
11
|
-
size?: StatusIconProps['size'];
|
|
12
|
-
iconLabel?: StatusIconProps['iconLabel'];
|
|
13
|
-
}) => {
|
|
9
|
+
const renderStatusIcon = (props?: StatusIconProps) => {
|
|
14
10
|
return render(
|
|
15
11
|
<StatusIcon
|
|
16
12
|
sentiment={props?.sentiment || Sentiment.NEUTRAL}
|
|
@@ -27,23 +23,8 @@ describe('StatusIcon', () => {
|
|
|
27
23
|
|
|
28
24
|
expect(screen.getByTestId('status-icon')).toHaveClass('neutral');
|
|
29
25
|
expect(screen.getByTestId('status-icon')).toHaveClass('status-circle');
|
|
30
|
-
expect(screen.getByTestId('status-icon')).toHaveClass('status-circle-md');
|
|
31
26
|
});
|
|
32
27
|
|
|
33
|
-
it.each([
|
|
34
|
-
[Size.SMALL as const, 'status-circle-sm'],
|
|
35
|
-
[Size.MEDIUM as const, 'status-circle-md'],
|
|
36
|
-
[Size.LARGE as const, 'status-circle-lg'],
|
|
37
|
-
])(
|
|
38
|
-
"if prop 'size' equals '%s' is passed, renders the status icon with class '%s'",
|
|
39
|
-
(size, expectedClass) => {
|
|
40
|
-
renderStatusIcon({ size });
|
|
41
|
-
|
|
42
|
-
expect(screen.getByTestId('status-icon')).toHaveClass(expectedClass);
|
|
43
|
-
cleanup();
|
|
44
|
-
},
|
|
45
|
-
);
|
|
46
|
-
|
|
47
28
|
it.each([
|
|
48
29
|
[Sentiment.NEGATIVE, Sentiment.NEGATIVE],
|
|
49
30
|
[Sentiment.NEUTRAL, Sentiment.NEUTRAL],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Sentiment, Size } from '../common';
|
|
4
4
|
|
|
5
5
|
import StatusIcon from './StatusIcon';
|
|
6
6
|
|
|
@@ -29,6 +29,37 @@ export const Presentational: Story = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const Variants: Story = {
|
|
32
|
+
render: () => (
|
|
33
|
+
<span style={{ display: 'flex', justifyContent: 'space-between', maxWidth: '400px' }}>
|
|
34
|
+
{[
|
|
35
|
+
Sentiment.POSITIVE,
|
|
36
|
+
Sentiment.NEGATIVE,
|
|
37
|
+
Sentiment.WARNING,
|
|
38
|
+
Sentiment.NEUTRAL,
|
|
39
|
+
Sentiment.PENDING,
|
|
40
|
+
].map((sentiment) => {
|
|
41
|
+
return (
|
|
42
|
+
<span
|
|
43
|
+
key={sentiment}
|
|
44
|
+
style={{
|
|
45
|
+
display: 'flex',
|
|
46
|
+
justifyContent: 'space-between',
|
|
47
|
+
flexDirection: 'column',
|
|
48
|
+
minHeight: '150px',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
{([16, 24, 32, 40, 48, 56, 72] as const).map((size) => {
|
|
53
|
+
return <StatusIcon key={size} size={size} sentiment={sentiment} />;
|
|
54
|
+
})}
|
|
55
|
+
</span>
|
|
56
|
+
);
|
|
57
|
+
})}
|
|
58
|
+
</span>
|
|
59
|
+
),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const LegacySizes: Story = {
|
|
32
63
|
render: () => (
|
|
33
64
|
<span style={{ display: 'flex', justifyContent: 'space-between', maxWidth: '400px' }}>
|
|
34
65
|
{[
|
|
@@ -8,9 +8,14 @@ import { useMedia } from '../common/hooks/useMedia';
|
|
|
8
8
|
|
|
9
9
|
import messages from './StatusIcon.messages';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use `16 | 24 | 32 | 40 | 48 | 56 | 72` component instead
|
|
13
|
+
*/
|
|
14
|
+
type LegacySizes = SizeSmall | SizeMedium | SizeLarge;
|
|
15
|
+
|
|
11
16
|
export type StatusIconProps = {
|
|
12
|
-
sentiment
|
|
13
|
-
size
|
|
17
|
+
sentiment?: `${Sentiment}`;
|
|
18
|
+
size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;
|
|
14
19
|
/**
|
|
15
20
|
* Override for the sentiment's-derived, default, accessible
|
|
16
21
|
* name announced by the screen readers. <br />
|
|
@@ -25,11 +30,7 @@ const mapLegacySize = {
|
|
|
25
30
|
[String(Size.LARGE)]: 48,
|
|
26
31
|
} satisfies Record<string, CircleProps['size']>;
|
|
27
32
|
|
|
28
|
-
const StatusIcon = ({
|
|
29
|
-
sentiment = 'neutral',
|
|
30
|
-
size: sizeProp = 'md',
|
|
31
|
-
iconLabel,
|
|
32
|
-
}: StatusIconProps) => {
|
|
33
|
+
const StatusIcon = ({ sentiment = 'neutral', size: sizeProp = 40, iconLabel }: StatusIconProps) => {
|
|
33
34
|
const intl = useIntl();
|
|
34
35
|
|
|
35
36
|
const iconMetaBySentiment: Record<
|
|
@@ -77,13 +78,13 @@ const StatusIcon = ({
|
|
|
77
78
|
|
|
78
79
|
const iconColor = sentiment === 'warning' || sentiment === 'pending' ? 'dark' : 'light';
|
|
79
80
|
const isTinyViewport = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);
|
|
80
|
-
const size = sizeProp
|
|
81
|
+
const size = mapLegacySize[sizeProp] ?? sizeProp;
|
|
81
82
|
return (
|
|
82
83
|
<Circle
|
|
83
84
|
as="span"
|
|
84
|
-
size={size}
|
|
85
|
+
size={isTinyViewport && size < 40 ? 32 : size}
|
|
85
86
|
data-testid="status-icon"
|
|
86
|
-
className={clsx('status-circle',
|
|
87
|
+
className={clsx('status-circle', sentiment)}
|
|
87
88
|
>
|
|
88
89
|
<Icon
|
|
89
90
|
className={clsx('status-icon', iconColor)}
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
.np-table {
|
|
2
|
-
width: 100%;
|
|
3
|
-
background-color: transparent;
|
|
4
|
-
}
|
|
5
|
-
.np-table-outer-container {
|
|
6
|
-
border-radius: 16px;
|
|
7
|
-
border-radius: var(--radius-medium);
|
|
8
|
-
}
|
|
9
|
-
.np-table-outer-container:focus {
|
|
10
|
-
outline: none;
|
|
11
|
-
}
|
|
12
|
-
.np-table-outer-container:focus-visible {
|
|
13
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
14
|
-
outline-offset: var(--ring-outline-offset);
|
|
15
|
-
}
|
|
16
|
-
.np-table-outer-container:focus-visible {
|
|
17
|
-
outline-offset: 0;
|
|
18
|
-
}
|
|
19
|
-
.np-table-outer-container--center {
|
|
20
|
-
margin-right: auto;
|
|
21
|
-
margin-left: auto;
|
|
22
|
-
}
|
|
23
|
-
@media (max-width: 767px) {
|
|
24
|
-
.np-table-outer-container--center {
|
|
25
|
-
width: 100%;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
.np-table-outer-container--full-width {
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
.np-table-container {
|
|
32
|
-
padding: 8px;
|
|
33
|
-
padding: var(--size-8);
|
|
34
|
-
background-color: rgba(134,167,189,0.10196);
|
|
35
|
-
background-color: var(--color-background-neutral);
|
|
36
|
-
border-radius: inherit;
|
|
37
|
-
}
|
|
38
|
-
.np-table-container--loading .np-table-inner-container {
|
|
39
|
-
background-image: none;
|
|
40
|
-
}
|
|
41
|
-
.np-table-inner-container {
|
|
42
|
-
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));
|
|
43
|
-
background-position: left center, right center, left center, right center;
|
|
44
|
-
background-repeat: no-repeat;
|
|
45
|
-
background-color: var(--color-contrast-overlay);
|
|
46
|
-
background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
|
|
47
|
-
background-attachment: local, local, scroll, scroll;
|
|
48
|
-
overflow-x: auto;
|
|
49
|
-
border-radius: 10px;
|
|
50
|
-
}
|
|
51
|
-
.np-theme-personal--dark .np-table-inner-container {
|
|
52
|
-
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));
|
|
53
|
-
}
|
|
54
|
-
.np-table-row:last-child .np-table-cell:first-child {
|
|
55
|
-
border-bottom-left-radius: 10px;
|
|
56
|
-
}
|
|
57
|
-
.np-table-row:last-child .np-table-cell:last-child {
|
|
58
|
-
border-bottom-right-radius: 10px;
|
|
59
|
-
}
|
|
60
|
-
.np-table-row--clickable .np-table-cell {
|
|
61
|
-
position: relative;
|
|
62
|
-
}
|
|
63
|
-
.np-table-row--clickable .np-table-cell:before {
|
|
64
|
-
display: none;
|
|
65
|
-
content: "";
|
|
66
|
-
position: absolute;
|
|
67
|
-
height: 100%;
|
|
68
|
-
width: 100%;
|
|
69
|
-
top: 0;
|
|
70
|
-
left: 0;
|
|
71
|
-
background-color: var(--color-background-screen-hover);
|
|
72
|
-
}
|
|
73
|
-
.np-table-row--clickable .np-table-cell:first-child:before,
|
|
74
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
75
|
-
width: calc(100% - 8px);
|
|
76
|
-
width: calc(100% - var(--size-8));
|
|
77
|
-
}
|
|
78
|
-
.np-table-row--clickable .np-table-cell:first-child:before {
|
|
79
|
-
left: 8px;
|
|
80
|
-
left: var(--size-8);
|
|
81
|
-
border-top-left-radius: 6px;
|
|
82
|
-
border-bottom-left-radius: 6px;
|
|
83
|
-
}
|
|
84
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
85
|
-
border-top-right-radius: 6px;
|
|
86
|
-
border-bottom-right-radius: 6px;
|
|
87
|
-
}
|
|
88
|
-
.np-table-row--clickable:hover .np-table-cell:before {
|
|
89
|
-
display: block;
|
|
90
|
-
}
|
|
91
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
|
|
92
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
|
|
96
|
-
left: 0;
|
|
97
|
-
}
|
|
98
|
-
.np-table-row--clickable:focus {
|
|
99
|
-
outline: none;
|
|
100
|
-
}
|
|
101
|
-
.np-table-row--clickable:focus-visible {
|
|
102
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
103
|
-
outline-offset: var(--ring-outline-offset);
|
|
104
|
-
}
|
|
105
|
-
.np-table-row--clickable:focus-visible {
|
|
106
|
-
outline-offset: -2px;
|
|
107
|
-
border-radius: 6px;
|
|
108
|
-
}
|
|
109
|
-
.np-table-row--cosmetic .np-table-cell {
|
|
110
|
-
height: 8px;
|
|
111
|
-
height: var(--size-8);
|
|
112
|
-
padding: 0;
|
|
113
|
-
}
|
|
114
|
-
.np-table-header,
|
|
115
|
-
.np-table-cell {
|
|
116
|
-
padding: 0;
|
|
117
|
-
}
|
|
118
|
-
.np-table-header:first-child,
|
|
119
|
-
.np-table-cell:first-child {
|
|
120
|
-
padding-left: 16px;
|
|
121
|
-
padding-left: var(--size-16);
|
|
122
|
-
}
|
|
123
|
-
.np-table-header:first-child .np-table-header-content,
|
|
124
|
-
.np-table-cell:first-child .np-table-header-content,
|
|
125
|
-
.np-table-header:first-child .np-table-cell-content,
|
|
126
|
-
.np-table-cell:first-child .np-table-cell-content {
|
|
127
|
-
padding-left: 0;
|
|
128
|
-
}
|
|
129
|
-
.np-table-header:last-child,
|
|
130
|
-
.np-table-cell:last-child {
|
|
131
|
-
padding-right: 16px;
|
|
132
|
-
padding-right: var(--size-16);
|
|
133
|
-
}
|
|
134
|
-
.np-table-header:last-child .np-table-header-content,
|
|
135
|
-
.np-table-cell:last-child .np-table-header-content,
|
|
136
|
-
.np-table-header:last-child .np-table-cell-content,
|
|
137
|
-
.np-table-cell:last-child .np-table-cell-content {
|
|
138
|
-
padding-right: 0;
|
|
139
|
-
}
|
|
140
|
-
.np-table-header .np-table-text-secondary,
|
|
141
|
-
.np-table-cell .np-table-text-secondary {
|
|
142
|
-
color: #768e9c;
|
|
143
|
-
color: var(--color-content-tertiary);
|
|
144
|
-
font-size: 0.75rem;
|
|
145
|
-
font-size: var(--font-size-12);
|
|
146
|
-
font-style: normal;
|
|
147
|
-
font-weight: 400;
|
|
148
|
-
font-weight: var(--font-weight-regular);
|
|
149
|
-
line-height: 1.125rem;
|
|
150
|
-
line-height: var(--line-height-18);
|
|
151
|
-
}
|
|
152
|
-
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
153
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default {
|
|
154
|
-
text-align: right;
|
|
155
|
-
}
|
|
156
|
-
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
157
|
-
.np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
|
|
158
|
-
padding-left: calc(8px + 12px);
|
|
159
|
-
padding-left: calc(var(--size-8) + var(--size-12));
|
|
160
|
-
}
|
|
161
|
-
.np-table-header.np-table-header--right .np-table-header-content,
|
|
162
|
-
.np-table-cell.np-table-cell--right .np-table-content {
|
|
163
|
-
justify-content: end;
|
|
164
|
-
}
|
|
165
|
-
.np-table-header-content,
|
|
166
|
-
.np-table-content {
|
|
167
|
-
display: flex;
|
|
168
|
-
align-items: center;
|
|
169
|
-
justify-content: start;
|
|
170
|
-
}
|
|
171
|
-
.np-table-header {
|
|
172
|
-
min-width: 160px;
|
|
173
|
-
padding-right: 8px;
|
|
174
|
-
padding-right: var(--size-8);
|
|
175
|
-
padding-bottom: 8px;
|
|
176
|
-
padding-bottom: var(--size-8);
|
|
177
|
-
padding-left: 8px;
|
|
178
|
-
padding-left: var(--size-8);
|
|
179
|
-
background-color: rgba(134,167,189,0.10196);
|
|
180
|
-
background-color: var(--color-background-neutral);
|
|
181
|
-
color: var(--color-interactive-primary);
|
|
182
|
-
}
|
|
183
|
-
.np-table-header-content {
|
|
184
|
-
padding-top: 5px;
|
|
185
|
-
padding-bottom: 5px;
|
|
186
|
-
white-space: nowrap;
|
|
187
|
-
line-height: 1.375rem;
|
|
188
|
-
line-height: var(--line-height-22);
|
|
189
|
-
letter-spacing: 0.0125em;
|
|
190
|
-
letter-spacing: var(--letter-spacing-sm);
|
|
191
|
-
}
|
|
192
|
-
.np-table-header--error {
|
|
193
|
-
color: var(--color-sentiment-negative);
|
|
194
|
-
}
|
|
195
|
-
.np-table-header--action {
|
|
196
|
-
min-width: 0;
|
|
197
|
-
padding: 0;
|
|
198
|
-
}
|
|
199
|
-
.np-table-cell {
|
|
200
|
-
padding: 16px 8px;
|
|
201
|
-
padding: var(--size-16) var(--size-8);
|
|
202
|
-
position: relative;
|
|
203
|
-
}
|
|
204
|
-
.np-table-cell--cosmetic {
|
|
205
|
-
padding: 0;
|
|
206
|
-
}
|
|
207
|
-
.np-table-cell--primary {
|
|
208
|
-
min-width: 200px;
|
|
209
|
-
}
|
|
210
|
-
.np-table-cell--currency .np-text-body-default {
|
|
211
|
-
white-space: nowrap;
|
|
212
|
-
}
|
|
213
|
-
.np-table-cell--status .status-circle {
|
|
214
|
-
width: 24px;
|
|
215
|
-
height: 24px;
|
|
216
|
-
}
|
|
217
|
-
.np-table-cell--status .status-circle .status-icon > svg {
|
|
218
|
-
width: 21px;
|
|
219
|
-
height: 21px;
|
|
220
|
-
}
|
|
221
|
-
.np-table-cell .tw-chevron {
|
|
222
|
-
margin-left: 8px;
|
|
223
|
-
margin-left: var(--size-8);
|
|
224
|
-
}
|
|
225
|
-
.np-table-cell-separator {
|
|
226
|
-
margin-top: 4px;
|
|
227
|
-
margin-top: var(--size-4);
|
|
228
|
-
margin-bottom: 4px;
|
|
229
|
-
margin-bottom: var(--size-4);
|
|
230
|
-
height: 1px;
|
|
231
|
-
background-color: rgba(134,167,189,0.10196);
|
|
232
|
-
background-color: var(--color-background-neutral);
|
|
233
|
-
padding: 0;
|
|
234
|
-
}
|
|
235
|
-
.np-table-cell .np-text-body-default {
|
|
236
|
-
line-height: 1.375rem;
|
|
237
|
-
line-height: var(--line-height-22);
|
|
238
|
-
letter-spacing: 0.01em;
|
|
239
|
-
letter-spacing: var(--letter-spacing-xs);
|
|
240
|
-
}
|
|
241
|
-
.np-table-cell .np-text-body-default-bold {
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
color: #37517e;
|
|
245
|
-
color: var(--color-content-primary);
|
|
246
|
-
white-space: nowrap;
|
|
247
|
-
}
|
|
248
|
-
.np-table-cell .np-table-content--success {
|
|
249
|
-
color: var(--color-sentiment-positive);
|
|
250
|
-
}
|
|
251
|
-
.np-table-cell .np-table-content--error {
|
|
252
|
-
color: var(--color-sentiment-negative);
|
|
253
|
-
}
|
|
254
|
-
.np-table-cell .tw-loader {
|
|
255
|
-
margin: 150px auto;
|
|
256
|
-
}
|
|
257
|
-
@media (max-width: 320px) {
|
|
258
|
-
.np-table-cell .tw-loader {
|
|
259
|
-
margin-top: 70px;
|
|
260
|
-
margin-bottom: 70px;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
.np-table-content {
|
|
264
|
-
gap: 12px;
|
|
265
|
-
gap: var(--size-12);
|
|
266
|
-
}
|
|
267
|
-
.np-table-content--success,
|
|
268
|
-
.np-table-content--error {
|
|
269
|
-
gap: 4px;
|
|
270
|
-
gap: var(--size-4);
|
|
271
|
-
}
|
|
272
|
-
.np-table-content--success .np-table-content-text,
|
|
273
|
-
.np-table-content--error .np-table-content-text {
|
|
274
|
-
line-height: 155%;
|
|
275
|
-
}
|
|
276
|
-
.np-table-content-media {
|
|
277
|
-
flex-shrink: 0;
|
|
278
|
-
}
|
|
279
|
-
.np-table-content-body {
|
|
280
|
-
display: flex;
|
|
281
|
-
flex-direction: column;
|
|
282
|
-
font-size: 0.75rem;
|
|
283
|
-
font-size: var(--font-size-12);
|
|
284
|
-
color: #768e9c;
|
|
285
|
-
color: var(--color-content-tertiary);
|
|
286
|
-
}
|
|
287
|
-
.np-table-content--reversed {
|
|
288
|
-
flex-direction: row-reverse;
|
|
289
|
-
}
|
|
290
|
-
.np-table-content--reversed .np-table-content-body {
|
|
291
|
-
align-items: end;
|
|
292
|
-
}
|
|
293
|
-
.np-table-empty-data {
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
}
|
|
297
|
-
.np-table-empty-data .status-circle {
|
|
298
|
-
margin-right: 12px;
|
|
299
|
-
margin-right: var(--size-12);
|
|
300
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TableHeaderType } from './TableHeader';
|
|
2
|
-
import { TableRowClickableType, TableRowType } from './TableRow';
|
|
3
|
-
export interface TableProps {
|
|
4
|
-
'aria-labelledby'?: string;
|
|
5
|
-
data: {
|
|
6
|
-
headers?: TableHeaderType[];
|
|
7
|
-
rows?: TableRowType[] | TableRowClickableType[];
|
|
8
|
-
onRowClick?: (rowData: TableRowType | TableRowClickableType) => void;
|
|
9
|
-
};
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
error?: {
|
|
14
|
-
message?: string;
|
|
15
|
-
action?: {
|
|
16
|
-
href?: string;
|
|
17
|
-
text?: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
onRetry?: () => void;
|
|
21
|
-
}
|
|
22
|
-
declare const Table: React.FC<TableProps>;
|
|
23
|
-
export default Table;
|
|
24
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/table/Table.tsx"],"names":[],"mappings":"AAEA,OAAoB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAiB,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU3E,MAAM,WAAW,UAAU;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;QAC5B,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,qBAAqB,EAAE,CAAC;QAChD,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB,KAAK,IAAI,CAAC;KACtE,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE;YACP,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmI/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
loading: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
loaded: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
emptyData: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
refreshPage: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
actionHeader: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
//# sourceMappingURL=Table.messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.messages.d.ts","sourceRoot":"","sources":["../../../src/table/Table.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,wBAqBG"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface TableCellTypeProp {
|
|
3
|
-
type: 'leading' | 'text' | 'currency' | 'status';
|
|
4
|
-
}
|
|
5
|
-
interface TableCellTextProps {
|
|
6
|
-
primaryText?: string;
|
|
7
|
-
secondaryText?: string;
|
|
8
|
-
}
|
|
9
|
-
interface TableCellStatusProp {
|
|
10
|
-
status?: 'error' | 'success';
|
|
11
|
-
}
|
|
12
|
-
export interface TableCellLeading extends TableCellTypeProp, TableCellTextProps, TableCellStatusProp {
|
|
13
|
-
avatar?: {
|
|
14
|
-
src?: string;
|
|
15
|
-
fullName?: string;
|
|
16
|
-
backgroundColorSeed?: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface TableCellText extends TableCellTypeProp, TableCellStatusProp {
|
|
20
|
-
text?: string;
|
|
21
|
-
}
|
|
22
|
-
interface Currency {
|
|
23
|
-
value: string | number;
|
|
24
|
-
currency: string;
|
|
25
|
-
}
|
|
26
|
-
export interface TableCellCurrency extends TableCellTypeProp, TableCellStatusProp {
|
|
27
|
-
primaryCurrency?: Currency;
|
|
28
|
-
secondaryCurrency?: Currency;
|
|
29
|
-
}
|
|
30
|
-
export interface TableCellStatus extends TableCellTypeProp, TableCellTextProps {
|
|
31
|
-
sentiment?: 'negative' | 'neutral' | 'positive' | 'warning' | 'pending';
|
|
32
|
-
}
|
|
33
|
-
export interface TableCellType {
|
|
34
|
-
cell?: TableCellLeading & TableCellText & TableCellCurrency & TableCellStatus;
|
|
35
|
-
alignment?: 'right';
|
|
36
|
-
}
|
|
37
|
-
export interface TableCellProps extends TableCellType {
|
|
38
|
-
className?: string;
|
|
39
|
-
colSpan?: number;
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
declare const TableCell: ({ cell, alignment, className, colSpan, children }: TableCellProps) => React.JSX.Element;
|
|
43
|
-
export default TableCell;
|
|
44
|
-
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/table/TableCell.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;CAClD;AAGD,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,gBACf,SAAQ,iBAAiB,EACvB,kBAAkB,EAClB,mBAAmB;IACrB,MAAM,CAAC,EAAE;QACP,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB,EAAE,mBAAmB;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,mBAAmB;IAC/E,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,EAAE,kBAAkB;IAC5E,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;CACzE;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,GAAG,eAAe,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAGD,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,SAAS,sDAAuD,cAAc,sBAoGnF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface TableHeaderType {
|
|
2
|
-
header?: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
alignment?: 'right';
|
|
5
|
-
status?: 'error';
|
|
6
|
-
width?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TableHeaderProps extends TableHeaderType {
|
|
9
|
-
isActionHeader?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const TableHeader: React.FC<TableHeaderProps>;
|
|
12
|
-
export default TableHeader;
|
|
13
|
-
//# sourceMappingURL=TableHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../src/table/TableHeader.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableCellProps } from './TableCell';
|
|
3
|
-
export interface TableRowType {
|
|
4
|
-
cells?: TableCellProps[];
|
|
5
|
-
}
|
|
6
|
-
export interface TableRowClickableType extends TableRowType {
|
|
7
|
-
id: number | string;
|
|
8
|
-
}
|
|
9
|
-
export interface TableRowProps {
|
|
10
|
-
rowData?: TableRowType | TableRowClickableType;
|
|
11
|
-
hasSeparator?: boolean;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
onRowClick?: (rowData: TableRowType | TableRowClickableType) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const TableRow: ({ rowData, hasSeparator, children, onRowClick }: TableRowProps) => React.JSX.Element;
|
|
16
|
-
export default TableRow;
|
|
17
|
-
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../src/table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKxD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,YAAY,GAAG,qBAAqB,CAAC;IAC/C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB,KAAK,IAAI,CAAC;CACtE;AAED,QAAA,MAAM,QAAQ,oDAA6D,aAAa,sBA2CvF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface TableStatusTextProps {
|
|
2
|
-
text: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
status?: 'success' | 'error';
|
|
5
|
-
typography?: 'default' | 'default-bold';
|
|
6
|
-
}
|
|
7
|
-
declare const TableStatusText: React.FC<TableStatusTextProps>;
|
|
8
|
-
export default TableStatusText;
|
|
9
|
-
//# sourceMappingURL=TableStatusText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableStatusText.d.ts","sourceRoot":"","sources":["../../../src/table/TableStatusText.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;CACzC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default } from './Table';
|
|
2
|
-
export type { TableProps } from './Table';
|
|
3
|
-
export type { TableRowType, TableRowClickableType } from './TableRow';
|
|
4
|
-
export type { TableHeaderType } from './TableHeader';
|
|
5
|
-
export type { TableCellLeading, TableCellText, TableCellCurrency, TableCellStatus, TableCellType, } from './TableCell';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,MAAM,aAAa,CAAC"}
|