@takaro/lib-components 0.0.0-next.0da151e
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/.babelrc +7 -0
- package/@types/files.d.ts +23 -0
- package/@types/react-table-config.d.ts +121 -0
- package/Dockerfile.dev +21 -0
- package/package.json +15 -0
- package/public/images/7-days-to-die/logo.png +0 -0
- package/public/images/csmm-icon.png +0 -0
- package/public/images/milk.png +0 -0
- package/public/images/placeholder-01.jpeg +0 -0
- package/public/images/placeholder-02.jpeg +0 -0
- package/public/images/placeholder-03.jpeg +0 -0
- package/public/images/rust/logo.png +0 -0
- package/readme.md +10 -0
- package/src/components/actions/Button/Button.stories.tsx +149 -0
- package/src/components/actions/Button/Button.test.tsx +8 -0
- package/src/components/actions/Button/Button.test.tsx.snap +89 -0
- package/src/components/actions/Button/__snapshots__/Button.test.tsx.snap +18 -0
- package/src/components/actions/Button/index.tsx +89 -0
- package/src/components/actions/Button/style.ts +142 -0
- package/src/components/actions/ContextMenu/ContextMenu.stories.tsx +41 -0
- package/src/components/actions/ContextMenu/Group.tsx +34 -0
- package/src/components/actions/ContextMenu/MenuItem.tsx +69 -0
- package/src/components/actions/ContextMenu/index.tsx +216 -0
- package/src/components/actions/Dropdown/Dropdown.stories.tsx +88 -0
- package/src/components/actions/Dropdown/DropdownContext.tsx +21 -0
- package/src/components/actions/Dropdown/DropdownMenu.tsx +70 -0
- package/src/components/actions/Dropdown/DropdownMenuGroup.tsx +37 -0
- package/src/components/actions/Dropdown/DropdownMenuItem.tsx +128 -0
- package/src/components/actions/Dropdown/DropdownTrigger.tsx +87 -0
- package/src/components/actions/Dropdown/index.tsx +22 -0
- package/src/components/actions/Dropdown/useDropdown.tsx +89 -0
- package/src/components/actions/DropdownButton/DropdownButton.stories.tsx +88 -0
- package/src/components/actions/DropdownButton/index.tsx +128 -0
- package/src/components/actions/IconButton/IconButton.stories.tsx +54 -0
- package/src/components/actions/IconButton/IconButton.test.tsx +8 -0
- package/src/components/actions/IconButton/IconButton.test.tsx.snap +46 -0
- package/src/components/actions/IconButton/__snapshots__/IconButton.test.tsx.snap +18 -0
- package/src/components/actions/IconButton/getIconSize.ts +16 -0
- package/src/components/actions/IconButton/index.tsx +28 -0
- package/src/components/actions/IconButton/style.ts +51 -0
- package/src/components/actions/ToggleButton/ToggleButton.stories.tsx +85 -0
- package/src/components/actions/ToggleButton/ToggleButton.tsx +48 -0
- package/src/components/actions/ToggleButton/ToggleButtonGroup.tsx +107 -0
- package/src/components/actions/ToggleButton/index.tsx +2 -0
- package/src/components/actions/ToggleButton/style.ts +75 -0
- package/src/components/actions/index.ts +16 -0
- package/src/components/charts/AreaChart/AreaChart.stories.tsx +103 -0
- package/src/components/charts/AreaChart/index.tsx +428 -0
- package/src/components/charts/BarChart/BarChart.stories.tsx +55 -0
- package/src/components/charts/BarChart/index.tsx +420 -0
- package/src/components/charts/BrushHandle.tsx +21 -0
- package/src/components/charts/EmptyChart.tsx +45 -0
- package/src/components/charts/GeoMercator/GeoMercator.stories.tsx +77 -0
- package/src/components/charts/GeoMercator/index.tsx +228 -0
- package/src/components/charts/GeoMercator/iso3166-alpha2-to-alpha3.ts +250 -0
- package/src/components/charts/GeoMercator/world.d.ts +1 -0
- package/src/components/charts/GeoMercator/world.json +99818 -0
- package/src/components/charts/Heatmap/Heatmap.stories.tsx +189 -0
- package/src/components/charts/Heatmap/index.tsx +461 -0
- package/src/components/charts/LineChart/LineChart.stories.tsx +111 -0
- package/src/components/charts/LineChart/index.tsx +353 -0
- package/src/components/charts/PieChart/PieChart.stories.tsx +151 -0
- package/src/components/charts/PieChart/index.tsx +457 -0
- package/src/components/charts/PointHighlight.tsx +49 -0
- package/src/components/charts/RadarChart/RadarChart.stories.tsx +47 -0
- package/src/components/charts/RadarChart/generators.ts +30 -0
- package/src/components/charts/RadarChart/index.tsx +224 -0
- package/src/components/charts/RadialBarChart/RadialBarChart.stories.tsx +59 -0
- package/src/components/charts/RadialBarChart/index.tsx +231 -0
- package/src/components/charts/RadialLineChart/RadialLineChart.stories.tsx +43 -0
- package/src/components/charts/RadialLineChart/index.tsx +231 -0
- package/src/components/charts/ZoomControls.tsx +49 -0
- package/src/components/charts/index.tsx +26 -0
- package/src/components/charts/useGradients.tsx +37 -0
- package/src/components/charts/util.ts +78 -0
- package/src/components/data/Avatar/Avatar.stories.tsx +93 -0
- package/src/components/data/Avatar/context.tsx +20 -0
- package/src/components/data/Avatar/index.tsx +136 -0
- package/src/components/data/Avatar/style.ts +124 -0
- package/src/components/data/Avatar/useImageLoadingStatus.tsx +32 -0
- package/src/components/data/Chip/Chip.stories.tsx +67 -0
- package/src/components/data/Chip/Chip.test.tsx +8 -0
- package/src/components/data/Chip/Chip.test.tsx.snap +50 -0
- package/src/components/data/Chip/__snapshots__/Chip.test.tsx.snap +38 -0
- package/src/components/data/Chip/index.tsx +67 -0
- package/src/components/data/Chip/style.ts +49 -0
- package/src/components/data/Console/Console.stories.tsx +51 -0
- package/src/components/data/Console/Console.tsx +125 -0
- package/src/components/data/Console/ConsoleInput/index.tsx +87 -0
- package/src/components/data/Console/ConsoleInput/style.ts +41 -0
- package/src/components/data/Console/ConsoleLine/index.tsx +127 -0
- package/src/components/data/Console/ConsoleLine/style.ts +76 -0
- package/src/components/data/Console/MessageModel.ts +9 -0
- package/src/components/data/Console/constants.ts +6 -0
- package/src/components/data/Console/index.tsx +4 -0
- package/src/components/data/Console/style.ts +31 -0
- package/src/components/data/Console/useConsoleLiveMode.ts +42 -0
- package/src/components/data/CopyId/CopyId.stories.tsx +36 -0
- package/src/components/data/CopyId/index.tsx +107 -0
- package/src/components/data/CountryList/index.tsx +146 -0
- package/src/components/data/DateFormatter/DateFormatter.stories.tsx +26 -0
- package/src/components/data/DateFormatter/index.tsx +15 -0
- package/src/components/data/Drawer/Drawer.stories.tsx +155 -0
- package/src/components/data/Drawer/DrawerBody.tsx +22 -0
- package/src/components/data/Drawer/DrawerContent.tsx +169 -0
- package/src/components/data/Drawer/DrawerContext.tsx +21 -0
- package/src/components/data/Drawer/DrawerFooter.tsx +19 -0
- package/src/components/data/Drawer/DrawerHeading.tsx +50 -0
- package/src/components/data/Drawer/DrawerSkeleton.tsx +29 -0
- package/src/components/data/Drawer/index.tsx +25 -0
- package/src/components/data/Drawer/useDrawer.tsx +66 -0
- package/src/components/data/InfiniteScroll/InfiniteScroll.stories.tsx +33 -0
- package/src/components/data/InfiniteScroll/index.tsx +54 -0
- package/src/components/data/Stats/Sparkline.tsx +48 -0
- package/src/components/data/Stats/Stat.tsx +192 -0
- package/src/components/data/Stats/Stats.stories.tsx +196 -0
- package/src/components/data/Stats/context.tsx +18 -0
- package/src/components/data/Stats/index.tsx +62 -0
- package/src/components/data/Table/Table.stories.tsx +146 -0
- package/src/components/data/Table/index.tsx +492 -0
- package/src/components/data/Table/react-table.d.ts +14 -0
- package/src/components/data/Table/style.ts +97 -0
- package/src/components/data/Table/subcomponents/ColumnHeader/ColumnSettings.tsx +164 -0
- package/src/components/data/Table/subcomponents/ColumnHeader/index.tsx +207 -0
- package/src/components/data/Table/subcomponents/ColumnHeader/style.ts +90 -0
- package/src/components/data/Table/subcomponents/ColumnVisibility/index.tsx +70 -0
- package/src/components/data/Table/subcomponents/Filter/field.tsx +127 -0
- package/src/components/data/Table/subcomponents/Filter/index.tsx +228 -0
- package/src/components/data/Table/subcomponents/Filter/style.ts +26 -0
- package/src/components/data/Table/subcomponents/Filter/types.ts +10 -0
- package/src/components/data/Table/subcomponents/Pagination/PagePicker.tsx +109 -0
- package/src/components/data/Table/subcomponents/Pagination/PageSizeSelect.tsx +37 -0
- package/src/components/data/Table/subcomponents/Pagination/style.ts +49 -0
- package/src/components/data/index.ts +28 -0
- package/src/components/dialogs/Dialog/Dialog.stories.tsx +77 -0
- package/src/components/dialogs/Dialog/DialogBody.tsx +64 -0
- package/src/components/dialogs/Dialog/DialogContent.tsx +44 -0
- package/src/components/dialogs/Dialog/DialogContext.tsx +21 -0
- package/src/components/dialogs/Dialog/DialogHeading.tsx +56 -0
- package/src/components/dialogs/Dialog/index.tsx +20 -0
- package/src/components/dialogs/Dialog/useDialog.tsx +50 -0
- package/src/components/feedback/Alert/Alert.stories.tsx +75 -0
- package/src/components/feedback/Alert/Alert.test.tsx +8 -0
- package/src/components/feedback/Alert/Alert.test.tsx.snap +146 -0
- package/src/components/feedback/Alert/__snapshots__/Alert.test.tsx.snap +44 -0
- package/src/components/feedback/Alert/index.tsx +120 -0
- package/src/components/feedback/Alert/style.ts +97 -0
- package/src/components/feedback/Badge/Badge.stories.tsx +23 -0
- package/src/components/feedback/Badge/index.tsx +47 -0
- package/src/components/feedback/ErrorFallback/ErrorFallback.stories.tsx +10 -0
- package/src/components/feedback/ErrorFallback/index.tsx +49 -0
- package/src/components/feedback/ErrorPage/ErrorPage.stories.tsx +31 -0
- package/src/components/feedback/ErrorPage/index.tsx +193 -0
- package/src/components/feedback/FormError/FormError.stories.tsx +25 -0
- package/src/components/feedback/FormError/index.tsx +54 -0
- package/src/components/feedback/IconTooltip/IconTooltip.stories.tsx +22 -0
- package/src/components/feedback/IconTooltip/index.tsx +51 -0
- package/src/components/feedback/Loaders/Loaders.stories.tsx +28 -0
- package/src/components/feedback/Loaders/Loading.test.tsx +8 -0
- package/src/components/feedback/Loaders/Loading.test.tsx.snap +141 -0
- package/src/components/feedback/Loaders/Loading.tsx +107 -0
- package/src/components/feedback/Loaders/Spinner.test.tsx +8 -0
- package/src/components/feedback/Loaders/Spinner.test.tsx.snap +18 -0
- package/src/components/feedback/Loaders/Spinner.tsx +74 -0
- package/src/components/feedback/Loaders/__snapshots__/Loading.test.tsx.snap +141 -0
- package/src/components/feedback/Loaders/__snapshots__/Spinner.test.tsx.snap +10 -0
- package/src/components/feedback/Loaders/index.ts +2 -0
- package/src/components/feedback/NetworkDetector/NetworkDetector.stories.tsx +21 -0
- package/src/components/feedback/NetworkDetector/NetworkDetector.test.tsx +8 -0
- package/src/components/feedback/NetworkDetector/NetworkDetector.test.tsx.snap +3 -0
- package/src/components/feedback/NetworkDetector/__snapshots__/NetworkDetector.test.tsx.snap +3 -0
- package/src/components/feedback/NetworkDetector/index.tsx +41 -0
- package/src/components/feedback/NotificationBanner/NotificationBanner.stories.tsx +13 -0
- package/src/components/feedback/NotificationBanner/NotificationBanner.test.tsx +15 -0
- package/src/components/feedback/NotificationBanner/NotificationBanner.test.tsx.snap +3 -0
- package/src/components/feedback/NotificationBanner/__snapshots__/NotificationBanner.test.tsx.snap +3 -0
- package/src/components/feedback/NotificationBanner/index.tsx +78 -0
- package/src/components/feedback/Popover/Popover.stories.tsx +33 -0
- package/src/components/feedback/Popover/PopoverContent.tsx +46 -0
- package/src/components/feedback/Popover/PopoverContext.tsx +21 -0
- package/src/components/feedback/Popover/PopoverTrigger.tsx +45 -0
- package/src/components/feedback/Popover/index.tsx +22 -0
- package/src/components/feedback/Popover/usePopover.tsx +87 -0
- package/src/components/feedback/ProgressBar/ProgressBar.stories.tsx +38 -0
- package/src/components/feedback/ProgressBar/index.tsx +137 -0
- package/src/components/feedback/Skeleton/Skeleton.stories.tsx +33 -0
- package/src/components/feedback/Skeleton/Skeleton.test.tsx +8 -0
- package/src/components/feedback/Skeleton/Skeleton.test.tsx.snap +35 -0
- package/src/components/feedback/Skeleton/__snapshots__/Skeleton.test.tsx.snap +9 -0
- package/src/components/feedback/Skeleton/index.tsx +62 -0
- package/src/components/feedback/Tooltip/Tooltip.stories.tsx +69 -0
- package/src/components/feedback/Tooltip/TooltipContent.tsx +51 -0
- package/src/components/feedback/Tooltip/TooltipContext.tsx +13 -0
- package/src/components/feedback/Tooltip/TooltipTrigger.tsx +39 -0
- package/src/components/feedback/Tooltip/index.tsx +26 -0
- package/src/components/feedback/Tooltip/useTooltip.tsx +82 -0
- package/src/components/feedback/index.ts +37 -0
- package/src/components/feedback/snacks/CookieConsent/index.tsx +125 -0
- package/src/components/feedback/snacks/CookieConsent/style.ts +99 -0
- package/src/components/feedback/snacks/Default/default.stories.tsx +73 -0
- package/src/components/feedback/snacks/Default/index.tsx +78 -0
- package/src/components/feedback/snacks/Default/style.ts +58 -0
- package/src/components/feedback/snacks/Drawer/Drawer.stories.tsx +46 -0
- package/src/components/feedback/snacks/Drawer/index.tsx +85 -0
- package/src/components/feedback/snacks/NetworkDetector/index.tsx +73 -0
- package/src/components/feedback/snacks/index.d.ts +15 -0
- package/src/components/feedback/snacks/index.ts +8 -0
- package/src/components/index.ts +9 -0
- package/src/components/inputs/CheckBox/CheckBox.stories.tsx +64 -0
- package/src/components/inputs/CheckBox/Controlled.tsx +123 -0
- package/src/components/inputs/CheckBox/Generic.tsx +42 -0
- package/src/components/inputs/CheckBox/index.tsx +4 -0
- package/src/components/inputs/CheckBox/style.ts +56 -0
- package/src/components/inputs/CodeField/CodeField.stories.tsx +86 -0
- package/src/components/inputs/CodeField/index.tsx +174 -0
- package/src/components/inputs/CodeField/style.ts +50 -0
- package/src/components/inputs/Date/DatePicker/Controlled.tsx +103 -0
- package/src/components/inputs/Date/DatePicker/DatePicker.stories.tsx +267 -0
- package/src/components/inputs/Date/DatePicker/Generic.tsx +283 -0
- package/src/components/inputs/Date/DatePicker/formats.tsx +32 -0
- package/src/components/inputs/Date/DatePicker/style.ts +41 -0
- package/src/components/inputs/Date/DateRangePicker/Context.tsx +123 -0
- package/src/components/inputs/Date/DateRangePicker/Controlled.tsx +74 -0
- package/src/components/inputs/Date/DateRangePicker/DateRangePicker.stories.tsx +37 -0
- package/src/components/inputs/Date/DateRangePicker/DateSelector/Absolute.tsx +98 -0
- package/src/components/inputs/Date/DateRangePicker/DateSelector/Relative.tsx +54 -0
- package/src/components/inputs/Date/DateRangePicker/DateSelector/index.tsx +49 -0
- package/src/components/inputs/Date/DateRangePicker/Generic.tsx +167 -0
- package/src/components/inputs/Date/DateRangePicker/QuickSelect/index.tsx +254 -0
- package/src/components/inputs/Date/DateRangePicker/QuickSelect/style.ts +40 -0
- package/src/components/inputs/Date/DateRangePicker/style.ts +65 -0
- package/src/components/inputs/Date/subcomponents/Calendar/index.tsx +150 -0
- package/src/components/inputs/Date/subcomponents/Calendar/style.ts +61 -0
- package/src/components/inputs/Date/subcomponents/RelativePicker/index.tsx +170 -0
- package/src/components/inputs/Date/subcomponents/RelativePicker/style.ts +50 -0
- package/src/components/inputs/Date/subcomponents/TimePicker/TimePicker.stories.tsx +25 -0
- package/src/components/inputs/Date/subcomponents/TimePicker/index.tsx +40 -0
- package/src/components/inputs/Date/subcomponents/TimePicker/style.ts +34 -0
- package/src/components/inputs/Date/types.ts +14 -0
- package/src/components/inputs/DurationField/Controlled.tsx +69 -0
- package/src/components/inputs/DurationField/Duration.stories.tsx +57 -0
- package/src/components/inputs/DurationField/Generic.tsx +197 -0
- package/src/components/inputs/DurationField/__tests__/Generic.test.tsx +12 -0
- package/src/components/inputs/DurationField/index.tsx +5 -0
- package/src/components/inputs/DurationField/style.ts +42 -0
- package/src/components/inputs/EditableField/EditableField.stories.tsx +65 -0
- package/src/components/inputs/EditableField/index.tsx +135 -0
- package/src/components/inputs/EditableField/style.ts +11 -0
- package/src/components/inputs/FileField/Controlled.tsx +104 -0
- package/src/components/inputs/FileField/FileField.stories.tsx +210 -0
- package/src/components/inputs/FileField/Generic.tsx +133 -0
- package/src/components/inputs/FileField/index.tsx +5 -0
- package/src/components/inputs/FileField/style.ts +34 -0
- package/src/components/inputs/InputProps.ts +59 -0
- package/src/components/inputs/RadioGroup/Controlled.tsx +45 -0
- package/src/components/inputs/RadioGroup/Generic.tsx +34 -0
- package/src/components/inputs/RadioGroup/RadioGroup.stories.tsx +118 -0
- package/src/components/inputs/RadioGroup/RadioItem.tsx +130 -0
- package/src/components/inputs/RadioGroup/context.tsx +20 -0
- package/src/components/inputs/RadioGroup/index.ts +5 -0
- package/src/components/inputs/RadioGroup/style.ts +3 -0
- package/src/components/inputs/Switch/Controlled.tsx +57 -0
- package/src/components/inputs/Switch/Generic.tsx +40 -0
- package/src/components/inputs/Switch/Switch.stories.tsx +89 -0
- package/src/components/inputs/Switch/index.ts +5 -0
- package/src/components/inputs/Switch/style.ts +62 -0
- package/src/components/inputs/TagField/Controlled.tsx +103 -0
- package/src/components/inputs/TagField/Generic.tsx +138 -0
- package/src/components/inputs/TagField/TagField.stories.tsx +68 -0
- package/src/components/inputs/TagField/index.ts +5 -0
- package/src/components/inputs/TagField/style.ts +25 -0
- package/src/components/inputs/TagField/util.ts +34 -0
- package/src/components/inputs/TextAreaField/Controlled.tsx +101 -0
- package/src/components/inputs/TextAreaField/Generic.tsx +58 -0
- package/src/components/inputs/TextAreaField/TextAreaField.stories.tsx +99 -0
- package/src/components/inputs/TextAreaField/index.ts +5 -0
- package/src/components/inputs/TextAreaField/style.ts +28 -0
- package/src/components/inputs/TextField/Controlled.tsx +120 -0
- package/src/components/inputs/TextField/Generic.tsx +138 -0
- package/src/components/inputs/TextField/TextField.stories.tsx +217 -0
- package/src/components/inputs/TextField/index.ts +5 -0
- package/src/components/inputs/TextField/style.ts +103 -0
- package/src/components/inputs/TextField/util.ts +24 -0
- package/src/components/inputs/ValueConfirmationField/ValueConfirmationField.stories.tsx +33 -0
- package/src/components/inputs/ValueConfirmationField/index.tsx +54 -0
- package/src/components/inputs/index.ts +72 -0
- package/src/components/inputs/layout/Description.tsx +33 -0
- package/src/components/inputs/layout/ErrorMessage/ErrorMessage.stories.tsx +28 -0
- package/src/components/inputs/layout/ErrorMessage/index.tsx +63 -0
- package/src/components/inputs/layout/InputWrapper.ts +6 -0
- package/src/components/inputs/layout/Label/index.tsx +71 -0
- package/src/components/inputs/layout/Label/style.ts +50 -0
- package/src/components/inputs/layout/index.ts +8 -0
- package/src/components/inputs/layout/setAriaDescribedBy.ts +3 -0
- package/src/components/inputs/selects/SelectField/Controlled.tsx +127 -0
- package/src/components/inputs/selects/SelectField/Generic/FilterInput.tsx +48 -0
- package/src/components/inputs/selects/SelectField/Generic/index.tsx +299 -0
- package/src/components/inputs/selects/SelectField/SelectField.stories.tsx +252 -0
- package/src/components/inputs/selects/SelectField/index.ts +5 -0
- package/src/components/inputs/selects/SelectField/style.ts +29 -0
- package/src/components/inputs/selects/SelectQueryField/Controlled.tsx +110 -0
- package/src/components/inputs/selects/SelectQueryField/Generic/index.tsx +401 -0
- package/src/components/inputs/selects/SelectQueryField/SelectQueryField.stories.tsx +280 -0
- package/src/components/inputs/selects/SelectQueryField/index.tsx +5 -0
- package/src/components/inputs/selects/SelectQueryField/style.ts +13 -0
- package/src/components/inputs/selects/SubComponents/Option.tsx +114 -0
- package/src/components/inputs/selects/SubComponents/OptionGroup.tsx +18 -0
- package/src/components/inputs/selects/SubComponents/index.ts +10 -0
- package/src/components/inputs/selects/SubComponents/style.ts +51 -0
- package/src/components/inputs/selects/data.ts +123 -0
- package/src/components/inputs/selects/index.tsx +49 -0
- package/src/components/inputs/selects/sharedStyle.ts +76 -0
- package/src/components/layout/Container/index.ts +21 -0
- package/src/components/layout/index.ts +1 -0
- package/src/components/navigation/HorizontalNav/HorizontalNav.stories.tsx +29 -0
- package/src/components/navigation/HorizontalNav/index.tsx +13 -0
- package/src/components/navigation/HorizontalNav/style.ts +93 -0
- package/src/components/navigation/IconNav/IconNav.stories.tsx +46 -0
- package/src/components/navigation/IconNav/index.tsx +50 -0
- package/src/components/navigation/Steppers/SlimStepper/Stepper.stories.tsx +90 -0
- package/src/components/navigation/Steppers/SlimStepper/index.tsx +104 -0
- package/src/components/navigation/Steppers/SlimStepper/style.ts +85 -0
- package/src/components/navigation/Steppers/Stepper/Stepper.stories.tsx +88 -0
- package/src/components/navigation/Steppers/Stepper/index.tsx +114 -0
- package/src/components/navigation/Steppers/Stepper/style.ts +106 -0
- package/src/components/navigation/Steppers/context.tsx +2 -0
- package/src/components/navigation/Steppers/provider.tsx +18 -0
- package/src/components/navigation/Steppers/reducer.ts +51 -0
- package/src/components/navigation/Steppers/stepStates.ts +5 -0
- package/src/components/navigation/Steppers/useStepper.ts +34 -0
- package/src/components/navigation/Tabs/Content.tsx +39 -0
- package/src/components/navigation/Tabs/Context.tsx +21 -0
- package/src/components/navigation/Tabs/List.tsx +17 -0
- package/src/components/navigation/Tabs/Tabs.stories.tsx +119 -0
- package/src/components/navigation/Tabs/Trigger.tsx +66 -0
- package/src/components/navigation/Tabs/index.tsx +35 -0
- package/src/components/navigation/Tabs/useTabs.tsx +28 -0
- package/src/components/navigation/index.ts +17 -0
- package/src/components/other/ActionMenu/ActionMenu.stories.tsx +81 -0
- package/src/components/other/ActionMenu/index.tsx +62 -0
- package/src/components/other/ActionMenu/style.ts +47 -0
- package/src/components/other/ClipBoard/ClipBoard.stories.tsx +14 -0
- package/src/components/other/ClipBoard/ClipBoard.test.tsx +8 -0
- package/src/components/other/ClipBoard/ClipBoard.test.tsx.snap +70 -0
- package/src/components/other/ClipBoard/__snapshots__/ClipBoard.test.tsx.snap +36 -0
- package/src/components/other/ClipBoard/index.tsx +70 -0
- package/src/components/other/CollapseList/CollapseList.stories.tsx +21 -0
- package/src/components/other/CollapseList/index.tsx +110 -0
- package/src/components/other/Collapsible/Collapsible.stories.tsx +19 -0
- package/src/components/other/Collapsible/CollapsibleContent.tsx +29 -0
- package/src/components/other/Collapsible/CollapsibleContext.tsx +17 -0
- package/src/components/other/Collapsible/CollapsibleTrigger.tsx +83 -0
- package/src/components/other/Collapsible/index.tsx +21 -0
- package/src/components/other/Company/index.tsx +44 -0
- package/src/components/other/Company/style.ts +58 -0
- package/src/components/other/Empty/Empty.stories.tsx +28 -0
- package/src/components/other/Empty/Empty.test.tsx +10 -0
- package/src/components/other/Empty/Empty.test.tsx.snap +85 -0
- package/src/components/other/Empty/__snapshots__/Empty.test.tsx.snap +21 -0
- package/src/components/other/Empty/index.tsx +85 -0
- package/src/components/other/PermissionsGuard/PermissionsGuard.stories.tsx +55 -0
- package/src/components/other/PermissionsGuard/hasPermissionsHelper.ts +18 -0
- package/src/components/other/PermissionsGuard/index.tsx +27 -0
- package/src/components/other/Plan/Plan.stories.tsx +21 -0
- package/src/components/other/Plan/index.tsx +92 -0
- package/src/components/other/Plan/style.ts +61 -0
- package/src/components/other/Usage/Usage.stories.tsx +21 -0
- package/src/components/other/Usage/Usage.tsx +35 -0
- package/src/components/other/Usage/UsageCard.stories.tsx +31 -0
- package/src/components/other/Usage/UsageCard.tsx +88 -0
- package/src/components/other/index.ts +27 -0
- package/src/components/visual/Card/Card.stories.tsx +22 -0
- package/src/components/visual/Card/CardBody.tsx +11 -0
- package/src/components/visual/Card/CardTitle.tsx +29 -0
- package/src/components/visual/Card/index.tsx +58 -0
- package/src/components/visual/Divider/Divider.stories.tsx +19 -0
- package/src/components/visual/Divider/Divider.test.tsx +8 -0
- package/src/components/visual/Divider/Divider.test.tsx.snap +35 -0
- package/src/components/visual/Divider/__snapshots__/Divider.test.tsx.snap +13 -0
- package/src/components/visual/Divider/index.tsx +88 -0
- package/src/components/visual/Flag/index.tsx +61 -0
- package/src/components/visual/index.ts +8 -0
- package/src/errors/base.ts +14 -0
- package/src/errors/errors.ts +126 -0
- package/src/errors/index.ts +14 -0
- package/src/helpers/camelCaseToSpaces.ts +5 -0
- package/src/helpers/formatNumber.ts +6 -0
- package/src/helpers/getInitials.ts +16 -0
- package/src/helpers/getSnackbarProvider.tsx +57 -0
- package/src/helpers/getTransition.ts +9 -0
- package/src/helpers/index.ts +6 -0
- package/src/helpers/makeData.ts +34 -0
- package/src/helpers/regexprs.ts +9 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useCallbackRef.tsx +17 -0
- package/src/hooks/useDebounce.tsx +22 -0
- package/src/hooks/useFocus.tsx +12 -0
- package/src/hooks/useLocalStorage.tsx +35 -0
- package/src/hooks/useLockScroll.ts +26 -0
- package/src/hooks/useOnScreen.ts +24 -0
- package/src/hooks/useOutsideAlerter.tsx +15 -0
- package/src/hooks/useTableActions.ts +61 -0
- package/src/hooks/useTheme.tsx +7 -0
- package/src/images/company-icon-primary.svg +3 -0
- package/src/images/company-icon-secondary.svg +3 -0
- package/src/images/index.ts +4 -0
- package/src/index.ts +9 -0
- package/src/stories/Colors.mdx +35 -0
- package/src/stories/Introduction.mdx +17 -0
- package/src/stories/Spacing.mdx +25 -0
- package/src/styled/GlobalStyle.ts +209 -0
- package/src/styled/Snackbar.tsx +41 -0
- package/src/styled/animations.ts +36 -0
- package/src/styled/breakpoint.ts +7 -0
- package/src/styled/device.ts +10 -0
- package/src/styled/index.ts +10 -0
- package/src/styled/spacing.ts +38 -0
- package/src/styled/theme.tsx +110 -0
- package/src/styled/types.ts +5 -0
- package/src/styled/zIndex.ts +31 -0
- package/src/test/__mocks__/fileMock.ts +2 -0
- package/src/test/setupTests.ts +3 -0
- package/src/test/snapshotResolver.js +21 -0
- package/src/test/testUtils.tsx +34 -0
- package/src/types/index.ts +1 -0
- package/src/types/json.ts +5 -0
- package/src/views/LoadingPage.tsx +36 -0
- package/src/views/index.ts +1 -0
- package/tsconfig.json +14 -0
- package/vite.config.mts +17 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as topojson from 'topojson-client';
|
|
2
|
+
import topology from './world.json';
|
|
3
|
+
import { Graticule, Mercator } from '@visx/geo';
|
|
4
|
+
import { scaleLinear } from '@visx/scale';
|
|
5
|
+
import { ParentSize } from '@visx/responsive';
|
|
6
|
+
|
|
7
|
+
import { getDefaultTooltipStyles, InnerChartProps, Margin } from '../util';
|
|
8
|
+
import { useTheme } from '../../../hooks';
|
|
9
|
+
import { useTooltip, Tooltip } from '@visx/tooltip';
|
|
10
|
+
import { styled } from '../../../styled';
|
|
11
|
+
import { Zoom } from '@visx/zoom';
|
|
12
|
+
import { useCallback } from 'react';
|
|
13
|
+
import { localPoint } from '@visx/event';
|
|
14
|
+
import { ZoomControls } from '../ZoomControls';
|
|
15
|
+
import { alpha2ToAlpha3 } from './iso3166-alpha2-to-alpha3';
|
|
16
|
+
|
|
17
|
+
const StyledTooltip = styled(Tooltip)`
|
|
18
|
+
text-align: center;
|
|
19
|
+
transform: translate(-50%);
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
interface FeatureShape {
|
|
23
|
+
type: 'Feature';
|
|
24
|
+
id: string;
|
|
25
|
+
geometry: { coordinates: [number, number][][]; type: 'Polygon' };
|
|
26
|
+
properties: { name: string };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const world = topojson.feature(topology, topology.objects.units) as {
|
|
32
|
+
type: 'FeatureCollection';
|
|
33
|
+
features: FeatureShape[];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export interface GeoMercatorProps<T> {
|
|
37
|
+
name: string;
|
|
38
|
+
data: T[];
|
|
39
|
+
margin?: Margin;
|
|
40
|
+
xAccessor: (d: T) => string;
|
|
41
|
+
yAccessor: (d: T) => number;
|
|
42
|
+
tooltipAccessor?: (d: T) => string;
|
|
43
|
+
showZoomControls?: boolean;
|
|
44
|
+
allowZoomAndDrag?: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type InnerGeoMercator<T> = InnerChartProps & GeoMercatorProps<T>;
|
|
48
|
+
const defaultMargin = { top: 0, right: 0, bottom: 0, left: 0 };
|
|
49
|
+
export const GeoMercator = <T,>({
|
|
50
|
+
data,
|
|
51
|
+
yAccessor,
|
|
52
|
+
xAccessor,
|
|
53
|
+
name,
|
|
54
|
+
margin = defaultMargin,
|
|
55
|
+
tooltipAccessor,
|
|
56
|
+
showZoomControls = false,
|
|
57
|
+
allowZoomAndDrag = false,
|
|
58
|
+
}: GeoMercatorProps<T>) => {
|
|
59
|
+
return (
|
|
60
|
+
<ParentSize>
|
|
61
|
+
{(parent) => (
|
|
62
|
+
<Chart<T>
|
|
63
|
+
name={name}
|
|
64
|
+
data={data}
|
|
65
|
+
width={parent.width}
|
|
66
|
+
height={parent.height}
|
|
67
|
+
margin={margin}
|
|
68
|
+
yAccessor={yAccessor}
|
|
69
|
+
xAccessor={xAccessor}
|
|
70
|
+
allowZoomAndDrag={allowZoomAndDrag}
|
|
71
|
+
showZoomControls={showZoomControls}
|
|
72
|
+
tooltipAccessor={tooltipAccessor}
|
|
73
|
+
/>
|
|
74
|
+
)}
|
|
75
|
+
</ParentSize>
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const Chart = <T,>({
|
|
80
|
+
width,
|
|
81
|
+
height,
|
|
82
|
+
yAccessor,
|
|
83
|
+
xAccessor,
|
|
84
|
+
data,
|
|
85
|
+
tooltipAccessor,
|
|
86
|
+
name,
|
|
87
|
+
allowZoomAndDrag,
|
|
88
|
+
showZoomControls,
|
|
89
|
+
}: InnerGeoMercator<T>) => {
|
|
90
|
+
const theme = useTheme();
|
|
91
|
+
const { hideTooltip, showTooltip, tooltipData, tooltipLeft = 0, tooltipTop = 0 } = useTooltip<T>();
|
|
92
|
+
|
|
93
|
+
const centerX = width / 2;
|
|
94
|
+
const centerY = height / 2;
|
|
95
|
+
const scale = Math.min(width, height) * 0.25;
|
|
96
|
+
|
|
97
|
+
const colorScale = scaleLinear({
|
|
98
|
+
domain: [0, Math.max(...data.map((d) => yAccessor(d)))],
|
|
99
|
+
range: [theme.colors.backgroundAlt, theme.colors.primary],
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const handleTooltip = useCallback(
|
|
103
|
+
(event: React.TouchEvent<SVGPathElement> | React.MouseEvent<SVGPathElement>, countryData: T | undefined) => {
|
|
104
|
+
const eventSvgCoords = localPoint(event);
|
|
105
|
+
|
|
106
|
+
showTooltip({
|
|
107
|
+
tooltipData: countryData,
|
|
108
|
+
tooltipLeft: eventSvgCoords?.x,
|
|
109
|
+
tooltipTop: eventSvgCoords ? eventSvgCoords.y - 38 : undefined,
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
[showTooltip],
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
const renderMap = (zoom?: {
|
|
116
|
+
containerRef: React.RefObject<SVGSVGElement>;
|
|
117
|
+
isDragging: boolean;
|
|
118
|
+
dragStart: any;
|
|
119
|
+
dragMove: any;
|
|
120
|
+
dragEnd: any;
|
|
121
|
+
transformMatrix: { scaleX: number; translateX: number; translateY: number };
|
|
122
|
+
}) => (
|
|
123
|
+
<svg
|
|
124
|
+
id={name}
|
|
125
|
+
name={name}
|
|
126
|
+
width={width}
|
|
127
|
+
height={height}
|
|
128
|
+
ref={zoom?.containerRef}
|
|
129
|
+
style={{
|
|
130
|
+
touchAction: 'none',
|
|
131
|
+
cursor: allowZoomAndDrag && zoom ? (zoom.isDragging ? 'grabbing' : 'grab') : 'default',
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
<rect x={0} y={0} width={width} height={height} fill={theme.colors.background} rx={10} />
|
|
135
|
+
<Mercator<FeatureShape>
|
|
136
|
+
data={world.features}
|
|
137
|
+
scale={zoom?.transformMatrix.scaleX || scale}
|
|
138
|
+
translate={[zoom?.transformMatrix.translateX || centerX, zoom?.transformMatrix.translateY || centerY]}
|
|
139
|
+
>
|
|
140
|
+
{(mercator) => (
|
|
141
|
+
<g>
|
|
142
|
+
<Graticule graticule={(g) => mercator.path(g) || ''} stroke="rgba(33,33,33,0.05)" />
|
|
143
|
+
{mercator.features.map(({ feature, path }, i) => {
|
|
144
|
+
const countryData = data.find((d) => {
|
|
145
|
+
// If alpha2 , try to convert it to aplha3.
|
|
146
|
+
// Since world.json only has support for alpha3.
|
|
147
|
+
if (xAccessor(d).length === 2) {
|
|
148
|
+
return alpha2ToAlpha3[xAccessor(d)] === feature.id;
|
|
149
|
+
}
|
|
150
|
+
return xAccessor(d) === feature.id;
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
const fillColor = countryData ? colorScale(yAccessor(countryData)) : theme.colors.backgroundAlt;
|
|
154
|
+
|
|
155
|
+
return (
|
|
156
|
+
<path
|
|
157
|
+
key={`map-feature-${i}`}
|
|
158
|
+
d={path || ''}
|
|
159
|
+
stroke={theme.colors.backgroundAccent}
|
|
160
|
+
strokeWidth={0.35}
|
|
161
|
+
fill={fillColor}
|
|
162
|
+
onMouseLeave={hideTooltip}
|
|
163
|
+
onMouseMove={(e) => handleTooltip(e, countryData)}
|
|
164
|
+
onTouchStart={(e) => handleTooltip(e, countryData)}
|
|
165
|
+
onTouchMove={(e) => handleTooltip(e, countryData)}
|
|
166
|
+
/>
|
|
167
|
+
);
|
|
168
|
+
})}
|
|
169
|
+
</g>
|
|
170
|
+
)}
|
|
171
|
+
</Mercator>
|
|
172
|
+
{allowZoomAndDrag && zoom && (
|
|
173
|
+
<rect
|
|
174
|
+
x={0}
|
|
175
|
+
y={0}
|
|
176
|
+
width={width}
|
|
177
|
+
height={height}
|
|
178
|
+
rx={14}
|
|
179
|
+
fill="transparent"
|
|
180
|
+
onTouchStart={zoom.dragStart}
|
|
181
|
+
onTouchMove={zoom.dragMove}
|
|
182
|
+
onTouchEnd={zoom.dragEnd}
|
|
183
|
+
onMouseDown={zoom.dragStart}
|
|
184
|
+
onMouseMove={zoom.dragMove}
|
|
185
|
+
onMouseUp={zoom.dragEnd}
|
|
186
|
+
onMouseLeave={() => {
|
|
187
|
+
if (zoom.isDragging) zoom.dragEnd();
|
|
188
|
+
}}
|
|
189
|
+
/>
|
|
190
|
+
)}
|
|
191
|
+
</svg>
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
const renderContent = (zoomProps?: any) => (
|
|
195
|
+
<>
|
|
196
|
+
{renderMap(zoomProps)}
|
|
197
|
+
{showZoomControls && zoomProps && <ZoomControls zoom={zoomProps} />}
|
|
198
|
+
{tooltipData && (
|
|
199
|
+
<StyledTooltip top={tooltipTop} left={tooltipLeft} style={getDefaultTooltipStyles(theme)}>
|
|
200
|
+
{tooltipAccessor ? tooltipAccessor(tooltipData) : `${xAccessor(tooltipData)}: ${yAccessor(tooltipData)}`}
|
|
201
|
+
</StyledTooltip>
|
|
202
|
+
)}
|
|
203
|
+
</>
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
return allowZoomAndDrag ? (
|
|
207
|
+
<Zoom<SVGSVGElement>
|
|
208
|
+
width={width}
|
|
209
|
+
height={height}
|
|
210
|
+
scaleXMin={100}
|
|
211
|
+
scaleXMax={1000}
|
|
212
|
+
scaleYMin={100}
|
|
213
|
+
scaleYMax={1000}
|
|
214
|
+
initialTransformMatrix={{
|
|
215
|
+
scaleX: scale,
|
|
216
|
+
scaleY: scale,
|
|
217
|
+
translateX: centerX,
|
|
218
|
+
translateY: centerY,
|
|
219
|
+
skewX: 0,
|
|
220
|
+
skewY: 0,
|
|
221
|
+
}}
|
|
222
|
+
>
|
|
223
|
+
{(zoom) => renderContent(zoom)}
|
|
224
|
+
</Zoom>
|
|
225
|
+
) : (
|
|
226
|
+
renderContent()
|
|
227
|
+
);
|
|
228
|
+
};
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
export const alpha2ToAlpha3: Record<string, string> = {
|
|
2
|
+
AF: 'AFG',
|
|
3
|
+
AX: 'ALA',
|
|
4
|
+
AL: 'ALB',
|
|
5
|
+
DZ: 'DZA',
|
|
6
|
+
AS: 'ASM',
|
|
7
|
+
AD: 'AND',
|
|
8
|
+
AO: 'AGO',
|
|
9
|
+
AI: 'AIA',
|
|
10
|
+
AQ: 'ATA',
|
|
11
|
+
AG: 'ATG',
|
|
12
|
+
AR: 'ARG',
|
|
13
|
+
AM: 'ARM',
|
|
14
|
+
AW: 'ABW',
|
|
15
|
+
AU: 'AUS',
|
|
16
|
+
AT: 'AUT',
|
|
17
|
+
AZ: 'AZE',
|
|
18
|
+
BS: 'BHS',
|
|
19
|
+
BH: 'BHR',
|
|
20
|
+
BD: 'BGD',
|
|
21
|
+
BB: 'BRB',
|
|
22
|
+
BY: 'BLR',
|
|
23
|
+
BE: 'BEL',
|
|
24
|
+
BZ: 'BLZ',
|
|
25
|
+
BJ: 'BEN',
|
|
26
|
+
BM: 'BMU',
|
|
27
|
+
BT: 'BTN',
|
|
28
|
+
BO: 'BOL',
|
|
29
|
+
BA: 'BIH',
|
|
30
|
+
BW: 'BWA',
|
|
31
|
+
BV: 'BVT',
|
|
32
|
+
BR: 'BRA',
|
|
33
|
+
VG: 'VGB',
|
|
34
|
+
IO: 'IOT',
|
|
35
|
+
BN: 'BRN',
|
|
36
|
+
BG: 'BGR',
|
|
37
|
+
BF: 'BFA',
|
|
38
|
+
BI: 'BDI',
|
|
39
|
+
KH: 'KHM',
|
|
40
|
+
CM: 'CMR',
|
|
41
|
+
CA: 'CAN',
|
|
42
|
+
CV: 'CPV',
|
|
43
|
+
KY: 'CYM',
|
|
44
|
+
CF: 'CAF',
|
|
45
|
+
TD: 'TCD',
|
|
46
|
+
CL: 'CHL',
|
|
47
|
+
CN: 'CHN',
|
|
48
|
+
HK: 'HKG',
|
|
49
|
+
MO: 'MAC',
|
|
50
|
+
CX: 'CXR',
|
|
51
|
+
CC: 'CCK',
|
|
52
|
+
CO: 'COL',
|
|
53
|
+
KM: 'COM',
|
|
54
|
+
CG: 'COG',
|
|
55
|
+
CD: 'COD',
|
|
56
|
+
CK: 'COK',
|
|
57
|
+
CR: 'CRI',
|
|
58
|
+
CI: 'CIV',
|
|
59
|
+
HR: 'HRV',
|
|
60
|
+
CU: 'CUB',
|
|
61
|
+
CY: 'CYP',
|
|
62
|
+
CZ: 'CZE',
|
|
63
|
+
DK: 'DNK',
|
|
64
|
+
DJ: 'DJI',
|
|
65
|
+
DM: 'DMA',
|
|
66
|
+
DO: 'DOM',
|
|
67
|
+
EC: 'ECU',
|
|
68
|
+
EG: 'EGY',
|
|
69
|
+
SV: 'SLV',
|
|
70
|
+
GQ: 'GNQ',
|
|
71
|
+
ER: 'ERI',
|
|
72
|
+
EE: 'EST',
|
|
73
|
+
ET: 'ETH',
|
|
74
|
+
FK: 'FLK',
|
|
75
|
+
FO: 'FRO',
|
|
76
|
+
FJ: 'FJI',
|
|
77
|
+
FI: 'FIN',
|
|
78
|
+
FR: 'FRA',
|
|
79
|
+
GF: 'GUF',
|
|
80
|
+
PF: 'PYF',
|
|
81
|
+
TF: 'ATF',
|
|
82
|
+
GA: 'GAB',
|
|
83
|
+
GM: 'GMB',
|
|
84
|
+
GE: 'GEO',
|
|
85
|
+
DE: 'DEU',
|
|
86
|
+
GH: 'GHA',
|
|
87
|
+
GI: 'GIB',
|
|
88
|
+
GR: 'GRC',
|
|
89
|
+
GL: 'GRL',
|
|
90
|
+
GD: 'GRD',
|
|
91
|
+
GP: 'GLP',
|
|
92
|
+
GU: 'GUM',
|
|
93
|
+
GT: 'GTM',
|
|
94
|
+
GG: 'GGY',
|
|
95
|
+
GN: 'GIN',
|
|
96
|
+
GW: 'GNB',
|
|
97
|
+
GY: 'GUY',
|
|
98
|
+
HT: 'HTI',
|
|
99
|
+
HM: 'HMD',
|
|
100
|
+
VA: 'VAT',
|
|
101
|
+
HN: 'HND',
|
|
102
|
+
HU: 'HUN',
|
|
103
|
+
IS: 'ISL',
|
|
104
|
+
IN: 'IND',
|
|
105
|
+
ID: 'IDN',
|
|
106
|
+
IR: 'IRN',
|
|
107
|
+
IQ: 'IRQ',
|
|
108
|
+
IE: 'IRL',
|
|
109
|
+
IM: 'IMN',
|
|
110
|
+
IL: 'ISR',
|
|
111
|
+
IT: 'ITA',
|
|
112
|
+
JM: 'JAM',
|
|
113
|
+
JP: 'JPN',
|
|
114
|
+
JE: 'JEY',
|
|
115
|
+
JO: 'JOR',
|
|
116
|
+
KZ: 'KAZ',
|
|
117
|
+
KE: 'KEN',
|
|
118
|
+
KI: 'KIR',
|
|
119
|
+
KP: 'PRK',
|
|
120
|
+
KR: 'KOR',
|
|
121
|
+
KW: 'KWT',
|
|
122
|
+
KG: 'KGZ',
|
|
123
|
+
LA: 'LAO',
|
|
124
|
+
LV: 'LVA',
|
|
125
|
+
LB: 'LBN',
|
|
126
|
+
LS: 'LSO',
|
|
127
|
+
LR: 'LBR',
|
|
128
|
+
LY: 'LBY',
|
|
129
|
+
LI: 'LIE',
|
|
130
|
+
LT: 'LTU',
|
|
131
|
+
LU: 'LUX',
|
|
132
|
+
MK: 'MKD',
|
|
133
|
+
MG: 'MDG',
|
|
134
|
+
MW: 'MWI',
|
|
135
|
+
MY: 'MYS',
|
|
136
|
+
MV: 'MDV',
|
|
137
|
+
ML: 'MLI',
|
|
138
|
+
MT: 'MLT',
|
|
139
|
+
MH: 'MHL',
|
|
140
|
+
MQ: 'MTQ',
|
|
141
|
+
MR: 'MRT',
|
|
142
|
+
MU: 'MUS',
|
|
143
|
+
YT: 'MYT',
|
|
144
|
+
MX: 'MEX',
|
|
145
|
+
FM: 'FSM',
|
|
146
|
+
MD: 'MDA',
|
|
147
|
+
MC: 'MCO',
|
|
148
|
+
MN: 'MNG',
|
|
149
|
+
ME: 'MNE',
|
|
150
|
+
MS: 'MSR',
|
|
151
|
+
MA: 'MAR',
|
|
152
|
+
MZ: 'MOZ',
|
|
153
|
+
MM: 'MMR',
|
|
154
|
+
NA: 'NAM',
|
|
155
|
+
NR: 'NRU',
|
|
156
|
+
NP: 'NPL',
|
|
157
|
+
NL: 'NLD',
|
|
158
|
+
AN: 'ANT',
|
|
159
|
+
NC: 'NCL',
|
|
160
|
+
NZ: 'NZL',
|
|
161
|
+
NI: 'NIC',
|
|
162
|
+
NE: 'NER',
|
|
163
|
+
NG: 'NGA',
|
|
164
|
+
NU: 'NIU',
|
|
165
|
+
NF: 'NFK',
|
|
166
|
+
MP: 'MNP',
|
|
167
|
+
NO: 'NOR',
|
|
168
|
+
OM: 'OMN',
|
|
169
|
+
PK: 'PAK',
|
|
170
|
+
PW: 'PLW',
|
|
171
|
+
PS: 'PSE',
|
|
172
|
+
PA: 'PAN',
|
|
173
|
+
PG: 'PNG',
|
|
174
|
+
PY: 'PRY',
|
|
175
|
+
PE: 'PER',
|
|
176
|
+
PH: 'PHL',
|
|
177
|
+
PN: 'PCN',
|
|
178
|
+
PL: 'POL',
|
|
179
|
+
PT: 'PRT',
|
|
180
|
+
PR: 'PRI',
|
|
181
|
+
QA: 'QAT',
|
|
182
|
+
RE: 'REU',
|
|
183
|
+
RO: 'ROU',
|
|
184
|
+
RU: 'RUS',
|
|
185
|
+
RW: 'RWA',
|
|
186
|
+
BL: 'BLM',
|
|
187
|
+
SH: 'SHN',
|
|
188
|
+
KN: 'KNA',
|
|
189
|
+
LC: 'LCA',
|
|
190
|
+
MF: 'MAF',
|
|
191
|
+
PM: 'SPM',
|
|
192
|
+
VC: 'VCT',
|
|
193
|
+
WS: 'WSM',
|
|
194
|
+
SM: 'SMR',
|
|
195
|
+
ST: 'STP',
|
|
196
|
+
SA: 'SAU',
|
|
197
|
+
SN: 'SEN',
|
|
198
|
+
RS: 'SRB',
|
|
199
|
+
SC: 'SYC',
|
|
200
|
+
SL: 'SLE',
|
|
201
|
+
SG: 'SGP',
|
|
202
|
+
SK: 'SVK',
|
|
203
|
+
SI: 'SVN',
|
|
204
|
+
SB: 'SLB',
|
|
205
|
+
SO: 'SOM',
|
|
206
|
+
ZA: 'ZAF',
|
|
207
|
+
GS: 'SGS',
|
|
208
|
+
SS: 'SSD',
|
|
209
|
+
ES: 'ESP',
|
|
210
|
+
LK: 'LKA',
|
|
211
|
+
SD: 'SDN',
|
|
212
|
+
SR: 'SUR',
|
|
213
|
+
SJ: 'SJM',
|
|
214
|
+
SZ: 'SWZ',
|
|
215
|
+
SE: 'SWE',
|
|
216
|
+
CH: 'CHE',
|
|
217
|
+
SY: 'SYR',
|
|
218
|
+
TW: 'TWN',
|
|
219
|
+
TJ: 'TJK',
|
|
220
|
+
TZ: 'TZA',
|
|
221
|
+
TH: 'THA',
|
|
222
|
+
TL: 'TLS',
|
|
223
|
+
TG: 'TGO',
|
|
224
|
+
TK: 'TKL',
|
|
225
|
+
TO: 'TON',
|
|
226
|
+
TT: 'TTO',
|
|
227
|
+
TN: 'TUN',
|
|
228
|
+
TR: 'TUR',
|
|
229
|
+
TM: 'TKM',
|
|
230
|
+
TC: 'TCA',
|
|
231
|
+
TV: 'TUV',
|
|
232
|
+
UG: 'UGA',
|
|
233
|
+
UA: 'UKR',
|
|
234
|
+
AE: 'ARE',
|
|
235
|
+
GB: 'GBR',
|
|
236
|
+
US: 'USA',
|
|
237
|
+
UM: 'UMI',
|
|
238
|
+
UY: 'URY',
|
|
239
|
+
UZ: 'UZB',
|
|
240
|
+
VU: 'VUT',
|
|
241
|
+
VE: 'VEN',
|
|
242
|
+
VN: 'VNM',
|
|
243
|
+
VI: 'VIR',
|
|
244
|
+
WF: 'WLF',
|
|
245
|
+
EH: 'ESH',
|
|
246
|
+
YE: 'YEM',
|
|
247
|
+
ZM: 'ZMB',
|
|
248
|
+
ZW: 'ZWE',
|
|
249
|
+
XK: 'XKX',
|
|
250
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.json';
|