repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/desmos_profile/components/connections/components/mobile/index.tsx | packages/ui/src/components/desmos_profile/components/connections/components/mobile/index.tsx | import Divider from '@mui/material/Divider';
import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC, Fragment } from 'react';
import { useRecoilValue } from 'recoil';
import dayjs, { formatDayJs } from '@/utils/dayjs';
import { readDate, readTimeFormat ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/desmos_profile/components/connections/components/mobile/styles.ts | packages/ui/src/components/desmos_profile/components/connections/components/mobile/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
list: {
margin: theme.spacing(2, 0),
},
item: {
marginBottom: theme.spacing(2),
'& .label': {
marginBottom: theme.spacing(1),
color: theme.palette.custom.fonts.fontThree,
},
'& p.value': {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/desmos_profile/components/connections/components/desktop/index.test.tsx | packages/ui/src/components/desmos_profile/components/connections/components/desktop/index.test.tsx | import renderer from 'react-test-renderer';
import Desktop from '@/components/desmos_profile/components/connections/components/desktop';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// global setup
// ==================================
let component: renderer.ReactTestRenderer... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/desmos_profile/components/connections/components/desktop/index.tsx | packages/ui/src/components/desmos_profile/components/connections/components/desktop/index.tsx | import Table from '@mui/material/Table';
import TableBody from '@mui/material/TableBody';
import TableCell from '@mui/material/TableCell';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC, ReactNode } f... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/desmos_profile/components/connections/components/desktop/utils.tsx | packages/ui/src/components/desmos_profile/components/connections/components/desktop/utils.tsx | export const columns: {
key: string;
align?: 'left' | 'center' | 'right' | 'justify' | 'inherit';
width: number;
}[] = [
{
key: 'network',
width: 25,
},
{
key: 'identifier',
width: 50,
align: 'left',
},
{
key: 'creationTime',
width: 25,
align: 'right',
},
];
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/result/index.test.tsx | packages/ui/src/components/result/index.test.tsx | import renderer from 'react-test-renderer';
import Result from '@/components/result';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: Result', () => {
it('matches snapshot', () => {
const component = ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/result/index.tsx | packages/ui/src/components/result/index.tsx | import useStyles from '@/components/result/styles';
import CancelIcon from '@mui/icons-material/Cancel';
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC } from 'react';
type ResultPr... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/result/styles.ts | packages/ui/src/components/result/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'flex-start',
color: theme.palette.custom.fonts.fontTwo,
'& svg': {
width: '16px',
height: '16px',
marginRight: theme.sp... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/AppTrans/index.test.tsx | packages/ui/src/components/AppTrans/index.test.tsx | import AppTrans from '@/components/AppTrans';
import i18n from 'i18next';
import { I18nextProvider, initReactI18next } from 'react-i18next';
import renderer from 'react-test-renderer';
// Sample translation data
const translations = {
en: {
translation: {
testKey: 'translation:testKey',
},
app_name... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/AppTrans/index.tsx | packages/ui/src/components/AppTrans/index.tsx | import { Trans } from 'next-i18next';
import { ComponentProps, useMemo } from 'react';
/**
* This component is used to translate the i18nKey with the app name prefix.
*/
const AppTrans = (props: ComponentProps<typeof Trans>) => {
const appName = process.env.NEXT_PUBLIC_APP_NAME ?? '';
const { i18nKey, ...propsRe... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/index.test.tsx | packages/ui/src/components/transactions_list_details/index.test.tsx | import renderer from 'react-test-renderer';
import TransactionsListDetails from '@/components/transactions_list_details';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// global setup
// ==================================
let component: renderer.ReactTestRenderer;
// =========... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/index.tsx | packages/ui/src/components/transactions_list_details/index.tsx | import { FC } from 'react';
import NoData from '@/components/no_data';
import List from '@/components/transactions_list_details/components/list';
import type { TransactionsListDetailsState } from '@/components/transactions_list_details/types';
const TransactionsListDetails: FC<TransactionsListDetailsState> = (props) =... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/types.ts | packages/ui/src/components/transactions_list_details/types.ts | export interface TransactionsListDetailsState {
className?: string;
hasNextPage?: boolean;
isNextPageLoading?: boolean;
loadNextPage?: (...args: unknown[]) => void;
loadMoreItems?: (...args: unknown[]) => void;
isItemLoaded?: (index: number) => boolean;
itemCount: number;
transactions: Transactions[];
}... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/index.ts | packages/ui/src/components/transactions_list_details/components/index.ts | import List from '@/components/transactions_list_details/components/list';
export { List };
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/index.test.tsx | packages/ui/src/components/transactions_list_details/components/list/index.test.tsx | import renderer from 'react-test-renderer';
import TransactionList from '@/components/transactions_list_details/components/list';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// mocks
// ==================================
jest.mock('react-window-infinite-loader', () => ({
I... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/index.tsx | packages/ui/src/components/transactions_list_details/components/list/index.tsx | import useAppTranslation from '@/hooks/useAppTranslation';
import Link from 'next/link';
import numeral from 'numeral';
import { FC } from 'react';
import AutoSizer from 'react-virtualized-auto-sizer';
import { ListChildComponentProps, VariableSizeList as List } from 'react-window';
import InfiniteLoader from 'react-wi... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/styles.ts | packages/ui/src/components/transactions_list_details/components/list/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()(() => ({
root: {
height: '100%',
},
}));
export default useStyles;
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/components/index.ts | packages/ui/src/components/transactions_list_details/components/list/components/index.ts | import SingleTransaction from '@/components/transactions_list_details/components/list/components/single_transaction';
export { SingleTransaction };
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/index.test.tsx | packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/index.test.tsx | import renderer from 'react-test-renderer';
import SingleTransaction from '@/components/transactions_list_details/components/list/components/single_transaction';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('componen... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/index.tsx | packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/index.tsx | import Divider from '@mui/material/Divider';
import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC, ReactNode } from 'react';
import useStyles from '@/components/transactions_list_details/components/list/components/single_transaction/styles';
export t... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/styles.ts | packages/ui/src/components/transactions_list_details/components/list/components/single_transaction/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
marginBottom: theme.spacing(2),
marginTop: theme.spacing(2),
},
timeContainer: {
background: theme.palette.custom.general.surfaceTwo,
padding: theme.spacing(1, 2),
color: theme.palette.custom.font... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/index.tsx | packages/ui/src/components/InfiniteList/index.tsx | import ListItem from '@/components/InfiniteList/components/ListItem';
import Pagination from '@/components/InfiniteList/components/Pagination';
import useStyles from '@/components/InfiniteList/styles';
import { InfiniteListProps, ItemData, UNKNOWN_ITEM_COUNT } from '@/components/InfiniteList/types';
import NotFound fro... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/styles.ts | packages/ui/src/components/InfiniteList/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
display: 'flex',
minHeight: '200px',
overflow: 'hidden',
flexFlow: 'column nowrap',
},
pagination: {
'&&': {
borderTop: `1px solid ${theme.palette.divider}`,
},
'&& .MuiTablePaginati... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/types.ts | packages/ui/src/components/InfiniteList/types.ts | import { InfiniteQuery } from '@/hooks/useInfiniteQuery/types';
import { TableFooterProps } from '@mui/material/TableFooter';
import { ComponentType } from 'react';
export const UNKNOWN_ITEM_COUNT = Number.MAX_SAFE_INTEGER;
export type HeaderProps<TVariables> = {
variables: TVariables;
width: number;
height: nu... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/components/PaginationActions/index.tsx | packages/ui/src/components/InfiniteList/components/PaginationActions/index.tsx | import useStyles from '@/components/InfiniteList/styles';
import { UNKNOWN_ITEM_COUNT } from '@/components/InfiniteList/types';
import Pagination from '@mui/material/Pagination';
import { ChangeEvent, MouseEvent } from 'react';
export interface TablePaginationActionsProps {
count: number;
page: number;
rowsPerPa... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/components/Pagination/index.tsx | packages/ui/src/components/InfiniteList/components/Pagination/index.tsx | import PaginationActions from '@/components/InfiniteList/components/PaginationActions';
import useStyles from '@/components/InfiniteList/styles';
import { PaginationProps, UNKNOWN_ITEM_COUNT } from '@/components/InfiniteList/types';
import TablePagination, { LabelDisplayedRowsArgs } from '@mui/material/TablePagination'... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/InfiniteList/components/ListItem/index.tsx | packages/ui/src/components/InfiniteList/components/ListItem/index.tsx | import { ItemData } from '@/components/InfiniteList/types';
import { memo } from 'react';
import { areEqual, ListChildComponentProps } from 'react-window';
const ListItem = memo(
<TData, TVariables, TItem>({
index,
style,
data: { cursor, variables, items, itemsPerPage, rowHeight, RowComponent },
isSc... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_proposal/index.test.tsx | packages/ui/src/components/single_proposal/index.test.tsx | import renderer from 'react-test-renderer';
import SingleProposal from '@/components/single_proposal';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('component: SingleProposal', () => {
it('matches snapshot', () => ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_proposal/index.tsx | packages/ui/src/components/single_proposal/index.tsx | import useStyles from '@/components/single_proposal/styles';
import { getStatusInfo } from '@/components/single_proposal/utils';
import Tag from '@/components/tag';
import { useDisplayStyles } from '@/styles/useSharedStyles';
import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useA... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_proposal/utils.tsx | packages/ui/src/components/single_proposal/utils.tsx | import type { TFunction } from '@/hooks/useAppTranslation';
export const getStatusInfo = (status: string, t: TFunction) => {
const statusDict = {
PROPOSAL_STATUS_DEPOSIT_PERIOD: {
value: t('deposit'),
tag: 'one',
},
PROPOSAL_STATUS_INVALID: {
value: t('invalid'),
tag: 'two',
}... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_proposal/styles.ts | packages/ui/src/components/single_proposal/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
margin: theme.spacing(2, 0),
[theme.breakpoints.up('lg')]: {
display: 'grid',
gridTemplateColumns: '50px auto min-content',
gap: theme.spacing(2),
},
},
header: {
display: 'flex',
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/condition_explanation/index.test.tsx | packages/ui/src/components/condition_explanation/index.test.tsx | import renderer from 'react-test-renderer';
import ConditionExplanation from '@/components/condition_explanation';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: ConditionExplanation', () => {
it('matche... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/condition_explanation/index.tsx | packages/ui/src/components/condition_explanation/index.tsx | import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import useStyles from '@/components/condition_explanation/styles';
const ConditionExplanation = () => {
const { t } = useAppTranslation('validators');
const { classes, cx } = useStyles();
const conditio... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/condition_explanation/styles.ts | packages/ui/src/components/condition_explanation/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
flexDirection: 'column',
height: '100%',
},
itemWrapper: {
marginTop: theme.spacing(2),
},
item: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
},
condition:... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/banner/index.tsx | packages/ui/src/components/banner/index.tsx | import useStyles from '@/components/banner/styles';
import Box from '@/components/box';
import CoinzillaBanner from '@/components/CoinzillaBanner';
import { AnimatePresence, motion, Variants } from 'framer-motion';
import Image from 'next/image';
import Link from 'next/link';
import { FC, useCallback, useEffect, useRef... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/banner/styles.ts | packages/ui/src/components/banner/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
'&&': {
background: theme.palette.background.paper,
display: 'flex',
justifyContent: 'center',
position: 'relative',
height: 'max(80px, min(116px, calc(100vw / 7)))',
'& img': {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/not_found/index.test.tsx | packages/ui/src/components/not_found/index.test.tsx | import renderer from 'react-test-renderer';
import NotFound from '@/components/not_found';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// mocks
// ==================================
const mockPush = jest.fn();
jest.mock('next/router', () => ({
...jest.requireActual('next/r... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/not_found/index.tsx | packages/ui/src/components/not_found/index.tsx | import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { useRouter } from 'next/router';
import { FC, useEffect } from 'react';
import { useRecoilValue } from 'recoil';
import NotFoundDark from 'shared-utils/assets/not-found-dark.svg';
import NotFoundLight f... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/not_found/styles.ts | packages/ui/src/components/not_found/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
flex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
minHeight: '400px',
height: '100%',
'& .MuiTypography-body1': {
marginTop: theme.spacing(2),
color: theme.... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/layout/index.test.tsx | packages/ui/src/components/layout/index.test.tsx | import renderer from 'react-test-renderer';
import Layout from '@/components/layout';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// global setup
// ==================================
let component: renderer.ReactTestRenderer;
// ==================================
// mocks
/... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/layout/index.tsx | packages/ui/src/components/layout/index.tsx | import { motion, Transition, Variants } from 'framer-motion';
import Banner, { getBannersLinks } from '@/components/banner';
import Footer from '@/components/footer';
import useStyles from '@/components/layout/styles';
import type { LayoutProps } from '@/components/layout/types';
import Nav from '@/components/nav';
co... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/layout/styles.ts | packages/ui/src/components/layout/styles.ts | import { CSSObject } from '@emotion/react';
import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
[theme.breakpoints.up('lg')]: {
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
},
},
contentWrapper: {
[theme.breakpoints.up('l... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/layout/types.ts | packages/ui/src/components/layout/types.ts | import { ReactNode } from 'react';
export interface LayoutProps {
children: ReactNode;
navTitle?: string;
className?: string;
}
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/index.test.tsx | packages/ui/src/components/footer/index.test.tsx | import renderer from 'react-test-renderer';
import Footer from '@/components/footer';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('component: layout/footer', () => {
it('matches snapshot', () => {
const mockDa... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/index.tsx | packages/ui/src/components/footer/index.tsx | import chainConfig from '@/chainConfig';
import SocialMedia from '@/components/footer/components/social_media';
import useStyles from '@/components/footer/styles';
import { donateLink, footerLinks } from '@/components/footer/utils';
import generalConfig from '@/generalConfig';
import { readTheme } from '@/recoil/settin... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/utils.tsx | packages/ui/src/components/footer/utils.tsx | const FORBOLE_URL = 'https://www.forbole.com';
const BIG_DIPPER_URL = 'https://bigdipper.live';
export const donateLink = {
key: 'donate',
url: `${BIG_DIPPER_URL}/donation`,
};
export const footerLinks = [
{
key: 'company',
links: [
{
key: 'forbole',
url: FORBOLE_URL,
},
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/styles.ts | packages/ui/src/components/footer/styles.ts | import { makeStyles } from 'tss-react/mui';
import Color from 'color';
const useStyles = makeStyles()((theme) => ({
root: {
background: theme.palette.background.paper,
padding: theme.spacing(6, 3, 6),
color: theme.palette.custom.fonts.fontOne,
'& .footer__closing--container': {
'& a': {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/index.ts | packages/ui/src/components/footer/components/index.ts | import SocialMedia from '@/components/footer/components/social_media';
export { SocialMedia };
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/social_media/index.test.tsx | packages/ui/src/components/footer/components/social_media/index.test.tsx | import renderer from 'react-test-renderer';
import SocialMedia from '@/components/footer/components/social_media';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('component: layout/footer', () => {
it('matches snapsh... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/social_media/index.tsx | packages/ui/src/components/footer/components/social_media/index.tsx | import useStyles from '@/components/footer/components/social_media/styles';
import type { Props } from '@/components/footer/components/social_media/types';
import { socialMediaLinks } from '@/components/footer/components/social_media/utils';
const SocialMedia = (props: Props) => {
const { className = '' } = props;
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/social_media/utils.tsx | packages/ui/src/components/footer/components/social_media/utils.tsx | import { ReactNode } from 'react';
import { GithubIcon, LinkedinIcon, TelegramIcon, TwitterIcon } from '@/components/icons';
export const socialMediaLinks: {
component: ReactNode;
className: string;
url: string;
}[] = [
{
component: <TelegramIcon />,
className: 'telegram',
url: 'https://t.me/forbol... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/social_media/styles.ts | packages/ui/src/components/footer/components/social_media/styles.ts | import { makeStyles } from 'tss-react/mui';
import Color from 'color';
const useStyles = makeStyles()((theme) => {
const iconFill =
theme.palette.mode === 'light'
? theme.palette.custom.fonts.fontTwo
: theme.palette.custom.general.icon;
return {
root: {
'& .media': {
margin: '0 0.... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/footer/components/social_media/types.ts | packages/ui/src/components/footer/components/social_media/types.ts | export interface Props {
className?: string;
}
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name/index.test.tsx | packages/ui/src/components/avatar_name/index.test.tsx | import renderer from 'react-test-renderer';
import AvatarName from '@/components/avatar_name';
import MockTheme from '@/tests/mocks/MockTheme';
jest.mock('@/components/avatar', () => (props: JSX.IntrinsicElements['div']) => (
<div id="Avatar" {...props} />
));
// ==================================
// unit tests
// ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name/index.tsx | packages/ui/src/components/avatar_name/index.tsx | import Avatar from '@/components/avatar';
import useStyles from '@/components/avatar_name/styles';
import AddressEllipsis from '@/components/AddressEllipsis';
import { ADDRESS_DETAILS } from '@/utils/go_to_page';
import Tooltip from '@mui/material/Tooltip';
import Zoom from '@mui/material/Zoom';
import Link from 'next/... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name/styles.ts | packages/ui/src/components/avatar_name/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
display: 'flex',
flex: 1,
alignItems: 'center',
justifyContent: 'flex-start',
gap: theme.spacing(1),
flexFlow: 'row nowrap',
'&:hover': {
cursor: 'pointer',
},
},
noLink: {
'... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name/types.ts | packages/ui/src/components/avatar_name/types.ts | export type AvatarNameProps = AvatarName &
JSX.IntrinsicElements['div'] & {
location?: 'delegationRow' | 'redelegationRow' | 'unbondingRow';
noLink?: boolean;
};
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/index.test.tsx | packages/ui/src/components/pagination/index.test.tsx | import renderer from 'react-test-renderer';
import Pagination from '@/components/pagination';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// mocks
// ==================================
jest.mock(
'@/components/pagination/components/actions',
() => (props: JSX.IntrinsicEle... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/index.tsx | packages/ui/src/components/pagination/index.tsx | import TablePagination from '@mui/material/TablePagination';
import TablePaginationActions from '@mui/material/TablePagination/TablePaginationActions';
import useAppTranslation from '@/hooks/useAppTranslation';
import { ComponentProps, FC, MouseEvent, useCallback } from 'react';
import useStyles from '@/components/pagi... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/styles.ts | packages/ui/src/components/pagination/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
'& .MuiTablePagination-spacer': {
display: 'none',
},
'& .MuiToolbar-gutters': {
padding: 0,
margin: 0,
flexDirection: 'column-reverse',
height: 'auto',
minHeight: 'initial... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/index.ts | packages/ui/src/components/pagination/components/index.ts | import Actions from '@/components/pagination/components/actions';
export { Actions };
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/actions/index.test.tsx | packages/ui/src/components/pagination/components/actions/index.test.tsx | import renderer from 'react-test-renderer';
import Actions from '@/components/pagination/components/actions';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// mocks
// ==================================
jest.mock('@mui/material/IconButton', () => (props: JSX.IntrinsicElements['... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/actions/index.tsx | packages/ui/src/components/pagination/components/actions/index.tsx | import FormControl from '@mui/material/FormControl';
import IconButton from '@mui/material/IconButton';
import InputBase from '@mui/material/InputBase';
import MenuItem from '@mui/material/MenuItem';
import Select from '@mui/material/Select';
import Typography from '@mui/material/Typography';
import { FC } from 'react'... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/actions/styles.ts | packages/ui/src/components/pagination/components/actions/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
display: 'flex',
alignItems: 'center',
margin: 0,
listStyleType: 'none',
'& .MuiButtonBase-root, & .MuiInputBase-input': {
background: theme.palette.custom.general.surfaceTwo,
},
'& li':... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/actions/hooks.test.tsx | packages/ui/src/components/pagination/components/actions/hooks.test.tsx | import { act, cleanup, renderHook } from '@testing-library/react';
import { useTablePaginationActions } from '@/components/pagination/components/actions/hooks';
const props = {
count: 100,
onPageChange: () => jest.fn(),
handleRowsPerPageChange: () => jest.fn(),
page: 0,
rowsPerPage: 100,
};
describe('hook: ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/pagination/components/actions/hooks.ts | packages/ui/src/components/pagination/components/actions/hooks.ts | import { SelectChangeEvent } from '@mui/material';
import { MouseEvent, useCallback } from 'react';
export const useTablePaginationActions = (props: {
className?: string;
// backIconButtonProps?: any;
count: number;
// nextIconButtonProps?: any;
onPageChange: (event: MouseEvent<HTMLButtonElement> | null, pag... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/index.test.tsx | packages/ui/src/components/transactions_list/index.test.tsx | import { ComponentProps } from 'react';
import renderer from 'react-test-renderer';
import TransactionsList from '@/components/transactions_list';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// global setup
// ==================================
let component: renderer.ReactTe... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/index.tsx | packages/ui/src/components/transactions_list/index.tsx | import { FC } from 'react';
import Loading from '@/components/loading';
import Desktop from '@/components/transactions_list/components/desktop';
import Mobile from '@/components/transactions_list/components/mobile';
import type { TransactionsListState } from '@/components/transactions_list/types';
import { useDisplaySt... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/types.ts | packages/ui/src/components/transactions_list/types.ts | export interface TransactionsListState {
['@type']?: string;
className?: string;
hasNextPage?: boolean;
isNextPageLoading?: boolean;
loadNextPage?: (...args: unknown[]) => void;
loadMoreItems?: (...args: unknown[]) => void;
isItemLoaded?: (index: number) => boolean;
itemCount: number;
transactions: Tr... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/index.ts | packages/ui/src/components/transactions_list/components/index.ts | import Desktop from '@/components/transactions_list/components/desktop';
import Mobile from '@/components/transactions_list/components/mobile';
export { Desktop, Mobile };
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/mobile/index.tsx | packages/ui/src/components/transactions_list/components/mobile/index.tsx | import Loading from '@/components/loading';
import Result from '@/components/result';
import SingleTransactionMobile from '@/components/single_transaction_mobile';
import Tag from '@/components/tag';
import Timestamp from '@/components/Timestamp';
import useStyles from '@/components/transactions_list/components/mobile/... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/mobile/styles.ts | packages/ui/src/components/transactions_list/components/mobile/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()(() => ({
root: {
height: '100%',
},
}));
export default useStyles;
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/desktop/index.tsx | packages/ui/src/components/transactions_list/components/desktop/index.tsx | import Loading from '@/components/loading';
import Result from '@/components/result';
import Tag from '@/components/tag';
import Timestamp from '@/components/Timestamp';
import useStyles from '@/components/transactions_list/components/desktop/styles';
import { columns } from '@/components/transactions_list/components/d... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/desktop/utils.tsx | packages/ui/src/components/transactions_list/components/desktop/utils.tsx | export const columns: {
key: string;
align?: 'left' | 'center' | 'right' | 'justify' | 'inherit';
width: number;
}[] = [
{
key: 'block',
width: 15,
},
{
key: 'hash',
width: 15,
},
{
key: 'type',
width: 25,
},
{
key: 'messages',
align: 'right',
width: 10,
},
{
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transactions_list/components/desktop/styles.ts | packages/ui/src/components/transactions_list/components/desktop/styles.ts | import { CSSObject } from '@emotion/react';
import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
height: '100%',
},
cell: {
...(theme.mixins.tableCell as CSSObject),
},
body: {
color: theme.palette.custom.fonts.fontTwo,
},
noData: {
marginTop: '... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name_list_msg/index.test.tsx | packages/ui/src/components/avatar_name_list_msg/index.test.tsx | import renderer from 'react-test-renderer';
import AvatarNameListMsg from '@/components/avatar_name_list_msg';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: AvatarNameListMsg', () => {
it('matches snaps... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar_name_list_msg/index.tsx | packages/ui/src/components/avatar_name_list_msg/index.tsx | import useAppTranslation from '@/hooks/useAppTranslation';
import { Fragment } from 'react';
import Name from '@/components/name';
/**
* Used for msg when you have to list multiple users
* using AvatarNames
*/
const AvatarNameListMsg = (props: { avatars: AvatarName[] }) => {
const { t } = useAppTranslation('trans... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_block_mobile/index.test.tsx | packages/ui/src/components/single_block_mobile/index.test.tsx | import renderer from 'react-test-renderer';
import SingleSlotMobile from '@/components/single_block_mobile';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('component: SingleSlotMobile', () => {
it('matches snapshot'... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_block_mobile/index.tsx | packages/ui/src/components/single_block_mobile/index.tsx | import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC, ReactNode } from 'react';
import useStyles from '@/components/single_block_mobile/styles';
type SingleBlockMobileProps = {
className?: string;
height: ReactNode;
hash: ReactNode;
parentHas... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/single_block_mobile/styles.ts | packages/ui/src/components/single_block_mobile/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
margin: theme.spacing(2, 0),
},
item: {
marginBottom: theme.spacing(2),
'& .label': {
marginBottom: theme.spacing(1),
color: theme.palette.custom.fonts.fontThree,
},
'& p.value': {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/no_data/index.test.tsx | packages/ui/src/components/no_data/index.test.tsx | import renderer from 'react-test-renderer';
import NoData from '@/components/no_data';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('component: NoData', () => {
it('matches snapshot', () => {
const component = ... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/no_data/index.tsx | packages/ui/src/components/no_data/index.tsx | import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import { FC } from 'react';
import { useRecoilValue } from 'recoil';
import NotFoundDark from 'shared-utils/assets/not-found-dark.svg';
import NotFoundLight from 'shared-utils/assets/not-found-light.svg';
impor... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/no_data/styles.ts | packages/ui/src/components/no_data/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
flex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
minHeight: '400px',
'& .MuiTypography-body1': {
marginTop: theme.spacing(2),
color: theme.palette.custom.fonts... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/ChainIcon/index.tsx | packages/ui/src/components/ChainIcon/index.tsx | import chainCoing from '@/chainConfig';
import useStyles from '@/components/ChainIcon/useStyles';
import Image, { type ImageProps } from 'next/image';
import agoricIconLight from 'shared-utils/assets/icons/agoric-light.svg?url';
import akashIconDark from 'shared-utils/assets/icons/akash-dark.svg?url';
import assetmantl... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/ChainIcon/useStyles.ts | packages/ui/src/components/ChainIcon/useStyles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()(() => ({
container: {
display: 'inline-flex',
},
light: {
width: 'auto',
height: 'auto',
maxWidth: '100%',
maxHeight: '100%',
minWidth: '100%',
objectFit: 'contain',
'.mode-dark &': {
display: 'none',... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/toggle/index.tsx | packages/ui/src/components/toggle/index.tsx | import { FC } from 'react';
import Box from '@mui/material/Box';
import Switch from '@mui/material/Switch';
import Typography from '@mui/material/Typography';
import useStyles from '@/components/toggle/styles';
type ToggleProps = {
className: string;
onToggle: () => void;
placeholder?: string | null;
disabled?... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/toggle/styles.ts | packages/ui/src/components/toggle/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles<{ checked: true | false }>()((theme, { checked }) => ({
toggle: {
width: 39,
height: 22,
padding: 0,
'& .MuiSwitch-switchBase': {
padding: 0,
margin: 2,
transitionDuration: '300ms',
'&.Mui-checked': {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/search/index.test.tsx | packages/ui/src/components/search/index.test.tsx | import renderer from 'react-test-renderer';
import Search from '@/components/search';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// global setup
// ==================================
let component: renderer.ReactTestRenderer;
const callback = jest.fn();
// ==================... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/search/index.tsx | packages/ui/src/components/search/index.tsx | import InputAdornment from '@mui/material/InputAdornment';
import InputBase from '@mui/material/InputBase';
import SearchIcon from '@mui/icons-material/Search';
import { FC } from 'react';
import useStyles from '@/components/search/styles';
import { useSearch } from '@/components/search/hooks';
type SearchProps = {
... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/search/styles.ts | packages/ui/src/components/search/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
'& .MuiInputBase-root': {
width: '100%',
background: theme.palette.background.paper,
padding: theme.spacing(0.4, 1.2),
borderRadius: theme.shape.borderRadius,
},
'& .MuiInputBase-input... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/search/hooks.ts | packages/ui/src/components/search/hooks.ts | import { ChangeEventHandler, KeyboardEventHandler, useState } from 'react';
export const useSearch = (callback: (value: string, clear?: () => void) => void) => {
const [value, setValue] = useState('');
const handleOnChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => {
const newValue = e?.target?.value ??... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/name/index.test.tsx | packages/ui/src/components/name/index.test.tsx | import renderer from 'react-test-renderer';
import Name from '@/components/name';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: Name', () => {
it('matches snapshot', () => {
const component = render... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/name/index.tsx | packages/ui/src/components/name/index.tsx | import Link from 'next/link';
import { FC } from 'react';
import useStyles from '@/components/name/styles';
import { ADDRESS_DETAILS } from '@/utils/go_to_page';
type NameProps = {
className?: string;
address: string;
name: string;
href?: (address: string) => string;
};
const Name: FC<NameProps> = ({ classNam... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/name/styles.ts | packages/ui/src/components/name/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
color: theme.palette.custom.fonts.highlight,
wordBreak: 'break-all',
'&:hover': {
cursor: 'pointer',
},
},
}));
export default useStyles;
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/tag/index.test.tsx | packages/ui/src/components/tag/index.test.tsx | import renderer from 'react-test-renderer';
import Tag from '@/components/tag';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: Tag', () => {
it('matches snapshot', () => {
const component = renderer.... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/tag/index.tsx | packages/ui/src/components/tag/index.tsx | import Typography from '@mui/material/Typography';
import { FC } from 'react';
import useStyles from '@/components/tag/styles';
type TagProps = {
className?: string;
value: string;
theme?: TagTheme;
};
const Tag: FC<TagProps> = ({ className, value, theme }) => {
const { classes, cx } = useStyles();
return (... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/tag/styles.ts | packages/ui/src/components/tag/styles.ts | import { makeStyles } from 'tss-react/mui';
import Color from 'color';
const useStyles = makeStyles()((theme) => ({
root: {
borderRadius: theme.shape.borderRadius,
padding: theme.spacing(0.5, 1),
display: 'inline-block',
color: theme.palette.custom.tags.zero,
background: Color(theme.palette.custo... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/loading/index.test.tsx | packages/ui/src/components/loading/index.test.tsx | import renderer from 'react-test-renderer';
import Loading from '@/components/loading';
import MockTheme from '@/tests/mocks/MockTheme';
// ==================================
// unit tests
// ==================================
describe('components: Loading', () => {
it('matches snapshot', () => {
const component... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/loading/index.tsx | packages/ui/src/components/loading/index.tsx | import CircularProgress from '@mui/material/CircularProgress';
import { FC } from 'react';
import useStyles from '@/components/loading/styles';
const Loading: FC<ComponentDefault> = ({ className }) => {
const { classes, cx } = useStyles();
return (
<div className={cx(classes.root, className)}>
<CircularP... | typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
forbole/big-dipper-2.0-cosmos | https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/loading/styles.ts | packages/ui/src/components/loading/styles.ts | import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
padding: theme.spacing(2, 0),
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
}));
export default useStyles;
| typescript | Apache-2.0 | de058820eacedc2e9cbe82ad7fec8239faedeeff | 2026-01-05T04:51:16.060495Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.