diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a5d50c361..a72d12d08 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,11 +28,11 @@ In general, you'll want to either (1) create issues for bugs or (2) create pull If you spot a problem, [search if an issue already exists](https://docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-issues-and-pull-requests#search-by-the-title-body-or-comments). If a related issue doesn't exist, you can open a new issue using a relevant -[issue form](https://github.com/DA0-DA0/dao-ui/issues/new/choose). +[issue form](https://github.com/DA0-DA0/dao-dao-ui/issues/new/choose). #### Solve an issue -Scan through our [existing issues](https://github.com/DA0-DA0/dao-ui/issues) to +Scan through our [existing issues](https://github.com/DA0-DA0/dao-dao-ui/issues) to find one that interests you. You can narrow down the search using `labels` as filters. As a general rule, we don't assign issues to anyone. If you find an issue to work on, you are welcome to open a PR with a fix. diff --git a/README.md b/README.md index db82ca944..70f650b5d 100644 --- a/README.md +++ b/README.md @@ -16,21 +16,21 @@ You can find more info in our [documentation](https://docs.daodao.zone). Join th ### Clone this repo and install dependencies ```bash -git clone https://github.com/DA0-DA0/dao-ui -cd dao-ui +git clone https://github.com/DA0-DA0/dao-dao-ui +cd dao-dao-ui yarn ``` If you're here to work on UI components in isolation: ```bash -yarn ui storybook +yarn storybook start ``` If you're here to work on app-wide stuff, run the `yarn dev` script (equivalent to running `yarn dev` from the `apps/dapp` folder) to run the main app in development mode. ```bash -yarn turbo run dev +yarn dev ``` Learn more about [Turborepo](https://turborepo.org/docs). @@ -43,7 +43,7 @@ Learn more about [Turborepo](https://turborepo.org/docs). #### `packages/` -- [(wip)](https://github.com/DA0-DA0/dao-ui/issues/368) +- [(wip)](https://github.com/DA0-DA0/dao-dao-ui/issues/368) ### Learn More diff --git a/apps/dapp/components/AppLayout.tsx b/apps/dapp/components/AppLayout.tsx index 8f9ba66f6..3a989f95a 100644 --- a/apps/dapp/components/AppLayout.tsx +++ b/apps/dapp/components/AppLayout.tsx @@ -38,7 +38,7 @@ import { ProposalCreatedModal, AppLayout as StatelessAppLayout, useCachedLoadable, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { loadableToLoadingData, usePlatform } from '@dao-dao/utils' import { diff --git a/apps/dapp/components/InstallKeplr.tsx b/apps/dapp/components/InstallKeplr.tsx index 8f49719c2..fb78956b0 100644 --- a/apps/dapp/components/InstallKeplr.tsx +++ b/apps/dapp/components/InstallKeplr.tsx @@ -4,7 +4,7 @@ import { ArrowForwardIos } from '@mui/icons-material' import { useTranslation } from 'react-i18next' -import { Button, Modal, ModalProps } from '@dao-dao/ui' +import { Button, Modal, ModalProps } from '@dao-dao/stateless' export type InstallKeplrProps = Pick diff --git a/apps/dapp/components/NoKeplrAccountModal.tsx b/apps/dapp/components/NoKeplrAccountModal.tsx index 122cfc82b..713d584cc 100644 --- a/apps/dapp/components/NoKeplrAccountModal.tsx +++ b/apps/dapp/components/NoKeplrAccountModal.tsx @@ -4,7 +4,7 @@ import { ArrowForwardIos } from '@mui/icons-material' import { useTranslation } from 'react-i18next' -import { Button, Modal, ModalProps } from '@dao-dao/ui' +import { Button, Modal, ModalProps } from '@dao-dao/stateless' export type NoKeplrAccountModalProps = Pick diff --git a/apps/dapp/components/Paginator.tsx b/apps/dapp/components/Paginator.tsx index b938e6a66..29ab4de9d 100644 --- a/apps/dapp/components/Paginator.tsx +++ b/apps/dapp/components/Paginator.tsx @@ -3,7 +3,7 @@ import Link from 'next/link' -import { Button } from '@dao-dao/ui' +import { Button } from '@dao-dao/stateless' function Paginator({ page, diff --git a/apps/dapp/components/TokenCard.tsx b/apps/dapp/components/TokenCard.tsx index ef869f199..e9aa8fcf8 100644 --- a/apps/dapp/components/TokenCard.tsx +++ b/apps/dapp/components/TokenCard.tsx @@ -17,7 +17,7 @@ import { TokenCard as StatelessTokenCard, useCachedLoadable, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { StakeType, loadableToLoadingData, useAddToken } from '@dao-dao/utils' export const TokenCard = (props: TokenCardInfo) => { diff --git a/apps/dapp/components/dao/DaoCard.tsx b/apps/dapp/components/dao/DaoCard.tsx index 94f31e3e2..f9a725aa3 100644 --- a/apps/dapp/components/dao/DaoCard.tsx +++ b/apps/dapp/components/dao/DaoCard.tsx @@ -7,7 +7,7 @@ import { useEffect } from 'react' import { daoCardInfoLazyDataSelector } from '@dao-dao/common' import { usePinnedDaos } from '@dao-dao/state' import { DaoCardInfo } from '@dao-dao/types/components/DaoCard' -import { DaoCard as StatelessDaoCard, useCachedLoadable } from '@dao-dao/ui' +import { DaoCard as StatelessDaoCard, useCachedLoadable } from '@dao-dao/stateless' import { CHAIN_ID, loadableToLoadingData } from '@dao-dao/utils' export const DaoCard = (props: DaoCardInfo) => { diff --git a/apps/dapp/components/dao/DaoTreasuryHistory.tsx b/apps/dapp/components/dao/DaoTreasuryHistory.tsx index 640e7d1ce..96c98ba7b 100644 --- a/apps/dapp/components/dao/DaoTreasuryHistory.tsx +++ b/apps/dapp/components/dao/DaoTreasuryHistory.tsx @@ -21,7 +21,7 @@ import { LineGraph, Loader, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_TXN_URL_PREFIX, NATIVE_DECIMALS, diff --git a/apps/dapp/components/dao/SplashDaoCard.tsx b/apps/dapp/components/dao/SplashDaoCard.tsx index d5efcf795..ea9a0d5c7 100644 --- a/apps/dapp/components/dao/SplashDaoCard.tsx +++ b/apps/dapp/components/dao/SplashDaoCard.tsx @@ -5,7 +5,7 @@ import { useEffect } from 'react' import { daoCardInfoLazyDataSelector } from '@dao-dao/common' import { DaoCardInfo } from '@dao-dao/types/components/DaoCard' -import { DaoCard as StatelessDaoCard, useCachedLoadable } from '@dao-dao/ui' +import { DaoCard as StatelessDaoCard, useCachedLoadable } from '@dao-dao/stateless' import { loadableToLoadingData } from '@dao-dao/utils' // Doesn't load any wallet information or allow pinning. diff --git a/apps/dapp/components/dao/tabs/ProposalsTab.tsx b/apps/dapp/components/dao/tabs/ProposalsTab.tsx index 28932b5f9..7a1e01fb4 100644 --- a/apps/dapp/components/dao/tabs/ProposalsTab.tsx +++ b/apps/dapp/components/dao/tabs/ProposalsTab.tsx @@ -6,7 +6,7 @@ import { useVotingModule } from '@dao-dao/state' import { ProposalsTab as StatelessProposalsTab, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' export const ProposalsTab = () => { const daoInfo = useDaoInfoContext() diff --git a/apps/dapp/components/dao/tabs/SubDaosTab.tsx b/apps/dapp/components/dao/tabs/SubDaosTab.tsx index a3f29ff98..945c25520 100644 --- a/apps/dapp/components/dao/tabs/SubDaosTab.tsx +++ b/apps/dapp/components/dao/tabs/SubDaosTab.tsx @@ -9,7 +9,7 @@ import { ContractVersion } from '@dao-dao/types' import { SubDaosTab as StatelessSubDaosTab, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { loadableToLoadingData } from '@dao-dao/utils' import { DaoCard } from '../DaoCard' diff --git a/apps/dapp/components/dao/tabs/TreasuryAndNftsTab.tsx b/apps/dapp/components/dao/tabs/TreasuryAndNftsTab.tsx index 47a6323ec..22e9b5fe1 100644 --- a/apps/dapp/components/dao/tabs/TreasuryAndNftsTab.tsx +++ b/apps/dapp/components/dao/tabs/TreasuryAndNftsTab.tsx @@ -18,7 +18,7 @@ import { TreasuryAndNftsTab as StatelessTreasuryAndNftsTab, useCachedLoadable, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { loadableToLoadingData } from '@dao-dao/utils' import { useCw20GovernanceTokenInfoResponseIfExists, diff --git a/apps/dapp/components/profile/ProfileHomeCard.tsx b/apps/dapp/components/profile/ProfileHomeCard.tsx index f175027d3..53f5fbd2e 100644 --- a/apps/dapp/components/profile/ProfileHomeCard.tsx +++ b/apps/dapp/components/profile/ProfileHomeCard.tsx @@ -5,7 +5,7 @@ import { useWalletProfile, useWalletProposalsQuery } from '@dao-dao/state' import { ProfileHomeCard as StatelessProfileHomeCard, useAppLayoutContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, nativeTokenLabel } from '@dao-dao/utils' import { useDAppContext } from '../DAppContext' diff --git a/apps/dapp/components/profile/ProfileNewProposalCard.tsx b/apps/dapp/components/profile/ProfileNewProposalCard.tsx index 6756055fd..5ec1d21cf 100644 --- a/apps/dapp/components/profile/ProfileNewProposalCard.tsx +++ b/apps/dapp/components/profile/ProfileNewProposalCard.tsx @@ -10,7 +10,7 @@ import { ProfileNewProposalCard as StatelessProfileNewProposalCard, useAppLayoutContext, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' export interface ProfileNewProposalCardProps { diff --git a/apps/dapp/components/profile/ProfileProposalCard.tsx b/apps/dapp/components/profile/ProfileProposalCard.tsx index 6a67dddbb..d1002d60f 100644 --- a/apps/dapp/components/profile/ProfileProposalCard.tsx +++ b/apps/dapp/components/profile/ProfileProposalCard.tsx @@ -19,7 +19,7 @@ import { ProfileVotedCard, useAppLayoutContext, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' export interface ProfileProposalCardProps { diff --git a/apps/dapp/next.config.js b/apps/dapp/next.config.js index 6c8b8e400..db23a31a4 100644 --- a/apps/dapp/next.config.js +++ b/apps/dapp/next.config.js @@ -8,7 +8,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({ }) const withInterceptStdout = require('next-intercept-stdout') const withTM = require('next-transpile-modules')([ - '@dao-dao/ui', + '@dao-dao/stateless', '@dao-dao/utils', '@dao-dao/state', '@dao-dao/actions', diff --git a/apps/dapp/package.json b/apps/dapp/package.json index 478473b05..cfc255a17 100644 --- a/apps/dapp/package.json +++ b/apps/dapp/package.json @@ -25,7 +25,7 @@ "@dao-dao/i18n": "2.0.1", "@dao-dao/proposal-module-adapter": "2.0.1", "@dao-dao/types": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@dao-dao/voting-module-adapter": "2.0.1", "@fontsource/inter": "^4.5.7", diff --git a/apps/dapp/pages/404.tsx b/apps/dapp/pages/404.tsx index 847f33f50..b7adf9a68 100644 --- a/apps/dapp/pages/404.tsx +++ b/apps/dapp/pages/404.tsx @@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next' import { SuspenseLoader } from '@dao-dao/common' import { serverSideTranslations } from '@dao-dao/i18n/serverSideTranslations' -import { ErrorPage } from '@dao-dao/ui' +import { ErrorPage } from '@dao-dao/stateless' const Custom404: NextPage = () => { const { t } = useTranslation() diff --git a/apps/dapp/pages/_app.tsx b/apps/dapp/pages/_app.tsx index 066d6396e..066b2047b 100644 --- a/apps/dapp/pages/_app.tsx +++ b/apps/dapp/pages/_app.tsx @@ -1,7 +1,7 @@ // GNU AFFERO GENERAL PUBLIC LICENSE Version 3. Copyright (C) 2022 DAO DAO Contributors. // See the "LICENSE" file in the root directory of this package for more copyright information. -import '@dao-dao/ui/styles/index.css' +import '@dao-dao/stateless/styles/index.css' import '@fontsource/inter/latin.css' import '@fontsource/jetbrains-mono/latin.css' @@ -19,7 +19,7 @@ import { activeThemeAtom, mountedInBrowserAtom, } from '@dao-dao/state' -import { Theme, ThemeProvider, ToastNotifications } from '@dao-dao/ui' +import { Theme, ThemeProvider, ToastNotifications } from '@dao-dao/stateless' import { SITE_IMAGE, SITE_URL } from '@dao-dao/utils' import { AppLayout, HomepageLayout } from '@/components' diff --git a/apps/dapp/pages/_error.tsx b/apps/dapp/pages/_error.tsx index 2c2de7a88..8764c606a 100644 --- a/apps/dapp/pages/_error.tsx +++ b/apps/dapp/pages/_error.tsx @@ -25,7 +25,7 @@ import NextErrorComponent from 'next/error' import Link from 'next/link' import { useEffect } from 'react' -import { ErrorPage } from '@dao-dao/ui' +import { ErrorPage } from '@dao-dao/stateless' import { processError } from '@dao-dao/utils' interface CustomErrorComponentProps { diff --git a/apps/dapp/pages/dao/[address]/create.tsx b/apps/dapp/pages/dao/[address]/create.tsx index b4ec34421..47de5f5f9 100644 --- a/apps/dapp/pages/dao/[address]/create.tsx +++ b/apps/dapp/pages/dao/[address]/create.tsx @@ -9,7 +9,7 @@ import { DaoPageWrapperProps, } from '@dao-dao/common' import { makeGetDaoStaticProps } from '@dao-dao/common/server' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { SITE_URL, getFallbackImage } from '@dao-dao/utils' const InnerCreateSubDaoPage = () => { diff --git a/apps/dapp/pages/dao/[address]/index.tsx b/apps/dapp/pages/dao/[address]/index.tsx index 9d06442bd..c99bd6954 100644 --- a/apps/dapp/pages/dao/[address]/index.tsx +++ b/apps/dapp/pages/dao/[address]/index.tsx @@ -40,7 +40,7 @@ import { ProfileNotMemberCard, useAppLayoutContext, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { SITE_URL } from '@dao-dao/utils' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' diff --git a/apps/dapp/pages/dao/[address]/proposals/[proposalId].tsx b/apps/dapp/pages/dao/[address]/proposals/[proposalId].tsx index 1216d26c0..4a4d21830 100644 --- a/apps/dapp/pages/dao/[address]/proposals/[proposalId].tsx +++ b/apps/dapp/pages/dao/[address]/proposals/[proposalId].tsx @@ -29,7 +29,7 @@ import { Proposal, ProposalNotFound, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { SITE_URL } from '@dao-dao/utils' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' diff --git a/apps/dapp/pages/dao/[address]/proposals/create.tsx b/apps/dapp/pages/dao/[address]/proposals/create.tsx index e2a504d81..f0bad057a 100644 --- a/apps/dapp/pages/dao/[address]/proposals/create.tsx +++ b/apps/dapp/pages/dao/[address]/proposals/create.tsx @@ -37,7 +37,7 @@ import { PageLoader, ProfileDisconnectedCard, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { SITE_URL } from '@dao-dao/utils' import { ProfileNewProposalCard } from '@/components' diff --git a/apps/dapp/pages/dao/create.tsx b/apps/dapp/pages/dao/create.tsx index 41623b341..ce0b81569 100644 --- a/apps/dapp/pages/dao/create.tsx +++ b/apps/dapp/pages/dao/create.tsx @@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next' import { CreateDaoForm, SuspenseLoader } from '@dao-dao/common' import { serverSideTranslations } from '@dao-dao/i18n/serverSideTranslations' -import { PageLoader } from '@dao-dao/ui' +import { PageLoader } from '@dao-dao/stateless' import { SITE_URL } from '@dao-dao/utils' const CreateDaoPage: NextPage = () => { diff --git a/apps/dapp/pages/home.tsx b/apps/dapp/pages/home.tsx index 046c00e8d..273c184f5 100644 --- a/apps/dapp/pages/home.tsx +++ b/apps/dapp/pages/home.tsx @@ -10,7 +10,7 @@ import { useLoadingFeaturedDaoCardInfos, useLoadingPinnedDaoCardInfos, } from '@dao-dao/state' -import { Home, ProfileDisconnectedCard } from '@dao-dao/ui' +import { Home, ProfileDisconnectedCard } from '@dao-dao/stateless' import { commandModalVisibleAtom } from '@/atoms' import { DaoCard, ProfileHomeCard } from '@/components' diff --git a/apps/dapp/pages/inbox.tsx b/apps/dapp/pages/inbox.tsx index 56fa42680..093812f1a 100644 --- a/apps/dapp/pages/inbox.tsx +++ b/apps/dapp/pages/inbox.tsx @@ -19,7 +19,7 @@ import { Inbox, PageLoader, ProfileDisconnectedCard, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_ID, SITE_URL } from '@dao-dao/utils' import { ProfileHomeCard, useDAppContext } from '@/components' diff --git a/apps/dapp/pages/index.tsx b/apps/dapp/pages/index.tsx index 6de7308e3..4e753685c 100644 --- a/apps/dapp/pages/index.tsx +++ b/apps/dapp/pages/index.tsx @@ -19,7 +19,7 @@ import { SplashEnterAppButton, SplashGradientWrapper, SplashStatsCard, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { SplashDaoCard } from '@/components' diff --git a/apps/dapp/pages/wallet.tsx b/apps/dapp/pages/wallet.tsx index ad21bf1c2..485b3aefc 100644 --- a/apps/dapp/pages/wallet.tsx +++ b/apps/dapp/pages/wallet.tsx @@ -26,7 +26,7 @@ import { ProfileDisconnectedCard, Wallet, WalletProps, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_BECH32_PREFIX, CHAIN_ID, processError } from '@dao-dao/utils' import { ProfileHomeCard } from '@/components' diff --git a/apps/dapp/tailwind.config.js b/apps/dapp/tailwind.config.js index e1ddb7517..8a5ee485a 100644 --- a/apps/dapp/tailwind.config.js +++ b/apps/dapp/tailwind.config.js @@ -7,7 +7,7 @@ const tailwindConfig = { './{components,pages,services}/**/*.{js,jsx,ts,tsx}', '../../packages/**/*.{js,jsx,ts,tsx}', ], - presets: [require('@dao-dao/ui/tailwind/config')], + presets: [require('@dao-dao/config/tailwind/config')], theme: { extend: { keyframes: { diff --git a/package.json b/package.json index 07133b72a..3bbfdd9f6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "turbo run test", "dapp": "yarn workspace @dao-dao/dapp", "state": "yarn workspace @dao-dao/state", - "ui": "yarn workspace @dao-dao/ui", + "stateless": "yarn workspace @dao-dao/stateless", "utils": "yarn workspace @dao-dao/utils", "actions": "yarn workspace @dao-dao/actions", "common": "yarn workspace @dao-dao/common", diff --git a/packages/actions/actions/AddCw20.tsx b/packages/actions/actions/AddCw20.tsx index f0958b925..5d18cfad9 100644 --- a/packages/actions/actions/AddCw20.tsx +++ b/packages/actions/actions/AddCw20.tsx @@ -13,7 +13,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { AddCw20Emoji } from '@dao-dao/ui' +import { AddCw20Emoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { AddCw20Component as StatelessAddCw20Component } from '../components/AddCw20' diff --git a/packages/actions/actions/AddCw721.tsx b/packages/actions/actions/AddCw721.tsx index f798b152f..4c59a00b3 100644 --- a/packages/actions/actions/AddCw721.tsx +++ b/packages/actions/actions/AddCw721.tsx @@ -13,7 +13,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { AddCw721Emoji } from '@dao-dao/ui' +import { AddCw721Emoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { AddCw721Component as StatelessAddCw721Component } from '../components/AddCw721' diff --git a/packages/actions/actions/Custom.tsx b/packages/actions/actions/Custom.tsx index 5db4af21f..5cb03445c 100644 --- a/packages/actions/actions/Custom.tsx +++ b/packages/actions/actions/Custom.tsx @@ -8,7 +8,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { CustomEmoji } from '@dao-dao/ui' +import { CustomEmoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { CustomComponent as Component } from '../components/Custom' diff --git a/packages/actions/actions/Execute.tsx b/packages/actions/actions/Execute.tsx index a092e6184..70964aede 100644 --- a/packages/actions/actions/Execute.tsx +++ b/packages/actions/actions/Execute.tsx @@ -12,7 +12,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { ExecuteEmoji } from '@dao-dao/ui' +import { ExecuteEmoji } from '@dao-dao/stateless' import { NATIVE_DECIMALS, convertDenomToMicroDenomWithDecimals, diff --git a/packages/actions/actions/Instantiate.tsx b/packages/actions/actions/Instantiate.tsx index 80390cf24..a899be12f 100644 --- a/packages/actions/actions/Instantiate.tsx +++ b/packages/actions/actions/Instantiate.tsx @@ -17,7 +17,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { InstantiateEmoji } from '@dao-dao/ui' +import { InstantiateEmoji } from '@dao-dao/stateless' import { NATIVE_DECIMALS, convertDenomToMicroDenomWithDecimals, diff --git a/packages/actions/actions/ManageSubDaos.tsx b/packages/actions/actions/ManageSubDaos.tsx index 8390cd018..23f26ed46 100644 --- a/packages/actions/actions/ManageSubDaos.tsx +++ b/packages/actions/actions/ManageSubDaos.tsx @@ -12,7 +12,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types' -import { ManageSubDaosEmoji } from '@dao-dao/ui' +import { ManageSubDaosEmoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { diff --git a/packages/actions/actions/MigrateContract.tsx b/packages/actions/actions/MigrateContract.tsx index 50bf7500c..0925b7f05 100644 --- a/packages/actions/actions/MigrateContract.tsx +++ b/packages/actions/actions/MigrateContract.tsx @@ -10,7 +10,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { MigrateContractEmoji } from '@dao-dao/ui' +import { MigrateContractEmoji } from '@dao-dao/stateless' import { MigrateContractComponent as StatelessMigrateContractComponent } from '../components/MigrateContract' diff --git a/packages/actions/actions/RemoveCw20.tsx b/packages/actions/actions/RemoveCw20.tsx index 0ac18d927..7f51f5e9f 100644 --- a/packages/actions/actions/RemoveCw20.tsx +++ b/packages/actions/actions/RemoveCw20.tsx @@ -19,7 +19,7 @@ import { UseTransformToCosmos, } from '@dao-dao/types/actions' import { TokenInfoResponse } from '@dao-dao/types/contracts/Cw20Base' -import { RemoveCw20Emoji } from '@dao-dao/ui' +import { RemoveCw20Emoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { RemoveCw20Component as StatelessRemoveCw20Component } from '../components/RemoveCw20' diff --git a/packages/actions/actions/RemoveCw721.tsx b/packages/actions/actions/RemoveCw721.tsx index 145ed563b..e94cc3322 100644 --- a/packages/actions/actions/RemoveCw721.tsx +++ b/packages/actions/actions/RemoveCw721.tsx @@ -19,7 +19,7 @@ import { UseTransformToCosmos, } from '@dao-dao/types/actions' import { ContractInfoResponse } from '@dao-dao/types/contracts/Cw721Base' -import { RemoveCw721Emoji } from '@dao-dao/ui' +import { RemoveCw721Emoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { RemoveCw721Component as StatelessRemoveCw721Component } from '../components/RemoveCw721' diff --git a/packages/actions/actions/Spend.tsx b/packages/actions/actions/Spend.tsx index a203751f1..5f7e3c766 100644 --- a/packages/actions/actions/Spend.tsx +++ b/packages/actions/actions/Spend.tsx @@ -15,7 +15,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { SpendEmoji } from '@dao-dao/ui' +import { SpendEmoji } from '@dao-dao/stateless' import { NATIVE_DENOM, convertDenomToMicroDenomWithDecimals, diff --git a/packages/actions/actions/Stake.tsx b/packages/actions/actions/Stake.tsx index 27ec0a9b6..cd8d3b4e4 100644 --- a/packages/actions/actions/Stake.tsx +++ b/packages/actions/actions/Stake.tsx @@ -14,7 +14,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { ActionCardLoader, StakeEmoji } from '@dao-dao/ui' +import { ActionCardLoader, StakeEmoji } from '@dao-dao/stateless' import { NATIVE_DENOM, StakeType, diff --git a/packages/actions/actions/UpdateAdmin.tsx b/packages/actions/actions/UpdateAdmin.tsx index 99f633f60..42d602142 100644 --- a/packages/actions/actions/UpdateAdmin.tsx +++ b/packages/actions/actions/UpdateAdmin.tsx @@ -10,7 +10,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { UpdateAdminEmoji } from '@dao-dao/ui' +import { UpdateAdminEmoji } from '@dao-dao/stateless' import { isValidContractAddress } from '@dao-dao/utils' import { UpdateAdminComponent as StatelessUpdateAdminComponent } from '../components/UpdateAdmin' diff --git a/packages/actions/actions/UpdateInfo.tsx b/packages/actions/actions/UpdateInfo.tsx index 08db2c0cc..9437716cd 100644 --- a/packages/actions/actions/UpdateInfo.tsx +++ b/packages/actions/actions/UpdateInfo.tsx @@ -13,7 +13,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types/actions' -import { UpdateInfoEmoji } from '@dao-dao/ui' +import { UpdateInfoEmoji } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { diff --git a/packages/actions/components/ActionsRenderer.tsx b/packages/actions/components/ActionsRenderer.tsx index b85a7c76c..3c81ac08b 100644 --- a/packages/actions/components/ActionsRenderer.tsx +++ b/packages/actions/components/ActionsRenderer.tsx @@ -9,7 +9,7 @@ import { IconButton, LoaderProps, LogoProps, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' // The props needed to render an action from a message. export interface ActionsRendererProps { diff --git a/packages/actions/components/AddCw20.tsx b/packages/actions/components/AddCw20.tsx index 8351cc85c..0ce6130cf 100644 --- a/packages/actions/components/AddCw20.tsx +++ b/packages/actions/components/AddCw20.tsx @@ -9,7 +9,7 @@ import { FormattedJsonDisplayProps, InputErrorMessage, InputLabel, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateRequired, diff --git a/packages/actions/components/AddCw721.tsx b/packages/actions/components/AddCw721.tsx index 297335960..821cda0fe 100644 --- a/packages/actions/components/AddCw721.tsx +++ b/packages/actions/components/AddCw721.tsx @@ -9,7 +9,7 @@ import { FormattedJsonDisplayProps, InputErrorMessage, InputLabel, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateRequired, diff --git a/packages/actions/components/Custom.tsx b/packages/actions/components/Custom.tsx index ef04d0b73..48d218e5f 100644 --- a/packages/actions/components/Custom.tsx +++ b/packages/actions/components/Custom.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next' import { Trans } from '@dao-dao/common' import { ActionComponent } from '@dao-dao/types/actions' -import { CodeMirrorInput, CustomEmoji } from '@dao-dao/ui' +import { CodeMirrorInput, CustomEmoji } from '@dao-dao/stateless' import { makeWasmMessage, validateCosmosMsg } from '@dao-dao/utils' import { ActionCard } from './ActionCard' diff --git a/packages/actions/components/Execute.tsx b/packages/actions/components/Execute.tsx index 6940c2e48..c0eee3630 100644 --- a/packages/actions/components/Execute.tsx +++ b/packages/actions/components/Execute.tsx @@ -12,7 +12,7 @@ import { InputErrorMessage, InputLabel, TextInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DENOM, makeWasmMessage, diff --git a/packages/actions/components/Instantiate.tsx b/packages/actions/components/Instantiate.tsx index 9264e740e..20693c8e7 100644 --- a/packages/actions/components/Instantiate.tsx +++ b/packages/actions/components/Instantiate.tsx @@ -14,7 +14,7 @@ import { InstantiateEmoji, NumberInput, TextInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DENOM, makeWasmMessage, diff --git a/packages/actions/components/ManageSubDaos.stories.tsx b/packages/actions/components/ManageSubDaos.stories.tsx index ce454b424..633a2ef2e 100644 --- a/packages/actions/components/ManageSubDaos.stories.tsx +++ b/packages/actions/components/ManageSubDaos.stories.tsx @@ -1,7 +1,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' -import { Loader, Logo } from '@dao-dao/ui' +import { Loader, Logo } from '@dao-dao/stateless' import { ManageSubDaosComponent } from './ManageSubDaos' diff --git a/packages/actions/components/ManageSubDaos.tsx b/packages/actions/components/ManageSubDaos.tsx index 088b0123f..dae588129 100644 --- a/packages/actions/components/ManageSubDaos.tsx +++ b/packages/actions/components/ManageSubDaos.tsx @@ -12,7 +12,7 @@ import { InputErrorMessage, InputLabel, ManageSubDaosEmoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateRequired } from '@dao-dao/utils' import { ActionCard } from './ActionCard' diff --git a/packages/actions/components/MigrateContract.tsx b/packages/actions/components/MigrateContract.tsx index 0378274e4..9d1eec558 100644 --- a/packages/actions/components/MigrateContract.tsx +++ b/packages/actions/components/MigrateContract.tsx @@ -10,7 +10,7 @@ import { InputLabel, MigrateContractEmoji, NumberInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateJSON, diff --git a/packages/actions/components/NativeCoinSelector.tsx b/packages/actions/components/NativeCoinSelector.tsx index 38349e9a4..b7164361b 100644 --- a/packages/actions/components/NativeCoinSelector.tsx +++ b/packages/actions/components/NativeCoinSelector.tsx @@ -10,7 +10,7 @@ import { InputErrorMessage, NumberInput, SelectInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, diff --git a/packages/actions/components/RemoveCw20.tsx b/packages/actions/components/RemoveCw20.tsx index be9a2cc2d..db9bdb9fc 100644 --- a/packages/actions/components/RemoveCw20.tsx +++ b/packages/actions/components/RemoveCw20.tsx @@ -12,7 +12,7 @@ import { InputErrorMessage, InputLabel, RemoveCw20Emoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateRequired } from '@dao-dao/utils' import { ActionCard } from './ActionCard' diff --git a/packages/actions/components/RemoveCw721.tsx b/packages/actions/components/RemoveCw721.tsx index 8c1968d2c..114251f6c 100644 --- a/packages/actions/components/RemoveCw721.tsx +++ b/packages/actions/components/RemoveCw721.tsx @@ -12,7 +12,7 @@ import { InputErrorMessage, InputLabel, RemoveCw721Emoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateContractAddress, validateRequired } from '@dao-dao/utils' import { ActionCard } from './ActionCard' diff --git a/packages/actions/components/Spend.tsx b/packages/actions/components/Spend.tsx index 0d192ed2f..5a9ec2c01 100644 --- a/packages/actions/components/Spend.tsx +++ b/packages/actions/components/Spend.tsx @@ -14,7 +14,7 @@ import { NumberInput, SelectInput, SpendEmoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, diff --git a/packages/actions/components/Stake.stories.tsx b/packages/actions/components/Stake.stories.tsx index 793f8c9b7..32e8657dd 100644 --- a/packages/actions/components/Stake.stories.tsx +++ b/packages/actions/components/Stake.stories.tsx @@ -1,7 +1,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' -import { Loader, Logo } from '@dao-dao/ui' +import { Loader, Logo } from '@dao-dao/stateless' import { NATIVE_DENOM } from '@dao-dao/utils' import { StakeComponent } from './Stake' diff --git a/packages/actions/components/Stake.tsx b/packages/actions/components/Stake.tsx index 39fccb40a..50adf88b2 100644 --- a/packages/actions/components/Stake.tsx +++ b/packages/actions/components/Stake.tsx @@ -10,7 +10,7 @@ import { NumberInput, SelectInput, StakeEmoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, diff --git a/packages/actions/components/UpdateAdmin.tsx b/packages/actions/components/UpdateAdmin.tsx index 7dd87ec56..2cac69f7e 100644 --- a/packages/actions/components/UpdateAdmin.tsx +++ b/packages/actions/components/UpdateAdmin.tsx @@ -7,7 +7,7 @@ import { InputErrorMessage, InputLabel, UpdateAdminEmoji, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateAddress, validateContractAddress, diff --git a/packages/actions/components/UpdateInfo.tsx b/packages/actions/components/UpdateInfo.tsx index 727b20319..ab691f849 100644 --- a/packages/actions/components/UpdateInfo.tsx +++ b/packages/actions/components/UpdateInfo.tsx @@ -15,7 +15,7 @@ import { TooltipInfoIcon, UpdateInfoEmoji, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { DAO_STATIC_PROPS_CACHE_SECONDS, validateRequired, diff --git a/packages/actions/package.json b/packages/actions/package.json index 48c173a43..4e65edb5a 100644 --- a/packages/actions/package.json +++ b/packages/actions/package.json @@ -9,7 +9,7 @@ "@dao-dao/common": "2.0.1", "@dao-dao/proposal-module-adapter": "2.0.1", "@dao-dao/state": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@mui/icons-material": "^5.10.3", "a11y-react-emoji": "^1.2.0", diff --git a/packages/actions/tailwind.config.js b/packages/actions/tailwind.config.js index c77a8e966..ec2baab47 100644 --- a/packages/actions/tailwind.config.js +++ b/packages/actions/tailwind.config.js @@ -1,7 +1,7 @@ /** @type {import("tailwindcss/tailwind-config").TailwindConfig} */ const tailwindConfig = { - content: ['./**/*.{js,jsx,ts,tsx}', '../{ui,state}/**/*.{js,jsx,ts,tsx}'], - presets: [require('@dao-dao/ui/tailwind/config')], + content: ['./**/*.{js,jsx,ts,tsx}', '../{stateless,state}/**/*.{js,jsx,ts,tsx}'], + presets: [require('@dao-dao/config/tailwind/config')], } module.exports = tailwindConfig diff --git a/packages/command/components/CommandModal.tsx b/packages/command/components/CommandModal.tsx index fb4c90624..e48ef0653 100644 --- a/packages/command/components/CommandModal.tsx +++ b/packages/command/components/CommandModal.tsx @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next' import { SuspenseLoader } from '@dao-dao/common' import { CommandModalContext, CommandModalProps } from '@dao-dao/types/command' -import { CommandModal as StatelessCommandModal } from '@dao-dao/ui' +import { CommandModal as StatelessCommandModal } from '@dao-dao/stateless' import { CommandModalContextView } from './CommandModalContextView' diff --git a/packages/command/components/CommandModalContextView.tsx b/packages/command/components/CommandModalContextView.tsx index c7fc2e35a..7392b1ee3 100644 --- a/packages/command/components/CommandModalContextView.tsx +++ b/packages/command/components/CommandModalContextView.tsx @@ -9,7 +9,7 @@ import { import { CommandModalContextViewLoader, CommandModalContextView as StatelessCommandModalContextView, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' export interface CommandModalContextViewProps { filter: string diff --git a/packages/command/package.json b/packages/command/package.json index dae640beb..86319bde4 100644 --- a/packages/command/package.json +++ b/packages/command/package.json @@ -8,7 +8,7 @@ "dependencies": { "@dao-dao/common": "2.0.1", "@dao-dao/state": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@mui/icons-material": "^5.10.3", "clsx": "^1.1.1", diff --git a/packages/common/components/CreateDaoForm.tsx b/packages/common/components/CreateDaoForm.tsx index c3bb51a81..87d4018ad 100644 --- a/packages/common/components/CreateDaoForm.tsx +++ b/packages/common/components/CreateDaoForm.tsx @@ -35,7 +35,7 @@ import { ImageSelector, useAppLayoutContext, useThemeContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_ID, CODE_ID_CONFIG, diff --git a/packages/common/components/DaoInfoBar.tsx b/packages/common/components/DaoInfoBar.tsx index 4f74e7df4..da2c4f891 100644 --- a/packages/common/components/DaoInfoBar.tsx +++ b/packages/common/components/DaoInfoBar.tsx @@ -10,7 +10,7 @@ import { TokenAmountDisplay, useCachedLoadable, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { loadableToLoadingData } from '@dao-dao/utils' import { useCw20GovernanceTokenInfoResponseIfExists, diff --git a/packages/common/components/DaoMemberCard.tsx b/packages/common/components/DaoMemberCard.tsx index 8283d7fae..342270f1d 100644 --- a/packages/common/components/DaoMemberCard.tsx +++ b/packages/common/components/DaoMemberCard.tsx @@ -1,6 +1,6 @@ import { useProfile } from '@dao-dao/state' import { DaoMemberCardProps } from '@dao-dao/types/components/DaoMemberCard' -import { DaoMemberCard as StatelessDaoMemberCard } from '@dao-dao/ui' +import { DaoMemberCard as StatelessDaoMemberCard } from '@dao-dao/stateless' export const DaoMemberCard = (props: Omit) => { const { profile } = useProfile({ walletAddress: props.address }) diff --git a/packages/common/components/DaoPageWrapper.tsx b/packages/common/components/DaoPageWrapper.tsx index 47c6f71d8..c371f43bf 100644 --- a/packages/common/components/DaoPageWrapper.tsx +++ b/packages/common/components/DaoPageWrapper.tsx @@ -19,7 +19,7 @@ import { LoaderProps, LogoProps, useThemeContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { VotingModuleAdapterProvider } from '@dao-dao/voting-module-adapter' import { SuspenseLoader } from './SuspenseLoader' diff --git a/packages/common/components/PfpkNftSelectionModal.tsx b/packages/common/components/PfpkNftSelectionModal.tsx index ab0dfc207..03c185b1e 100644 --- a/packages/common/components/PfpkNftSelectionModal.tsx +++ b/packages/common/components/PfpkNftSelectionModal.tsx @@ -16,7 +16,7 @@ import { NftSelectionModal, ProfileImage, useCachedLoadable, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { STARGAZE_CHAIN_ID, loadableToLoadingDataWithError, diff --git a/packages/common/components/ProfileDisplay.tsx b/packages/common/components/ProfileDisplay.tsx index 6a8cf0069..29ca56047 100644 --- a/packages/common/components/ProfileDisplay.tsx +++ b/packages/common/components/ProfileDisplay.tsx @@ -1,6 +1,6 @@ import { useProfile } from '@dao-dao/state' import { ProfileDisplayProps } from '@dao-dao/types' -import { ProfileDisplay as StatelessProfileDisplay } from '@dao-dao/ui' +import { ProfileDisplay as StatelessProfileDisplay } from '@dao-dao/stateless' export const ProfileDisplay = ( props: Omit diff --git a/packages/common/components/ProposalLine.tsx b/packages/common/components/ProposalLine.tsx index eb35dde0a..75fb714e5 100644 --- a/packages/common/components/ProposalLine.tsx +++ b/packages/common/components/ProposalLine.tsx @@ -12,7 +12,7 @@ import { LoaderProps, LogoProps, ProposalLineLoader, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' export interface ProposalLineProps { chainId: string diff --git a/packages/common/components/ProposalList.tsx b/packages/common/components/ProposalList.tsx index 0f1001afd..29f6733e9 100644 --- a/packages/common/components/ProposalList.tsx +++ b/packages/common/components/ProposalList.tsx @@ -12,7 +12,7 @@ import { Logo, ProposalList as StatelessProposalList, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' // Contracts enforce a max of 30, though this is on the edge for DAOs with // proposals that have a large size. diff --git a/packages/common/components/SidebarWallet.tsx b/packages/common/components/SidebarWallet.tsx index 162821d08..820ffefd1 100644 --- a/packages/common/components/SidebarWallet.tsx +++ b/packages/common/components/SidebarWallet.tsx @@ -1,7 +1,7 @@ import { WalletConnectionStatus, useWalletManager } from '@noahsaso/cosmodal' import { useWalletProfile } from '@dao-dao/state' -import { SidebarWallet as OriginalSidebarWallet } from '@dao-dao/ui' +import { SidebarWallet as OriginalSidebarWallet } from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, nativeTokenLabel } from '@dao-dao/utils' import { SuspenseLoader } from './SuspenseLoader' diff --git a/packages/common/components/StargazeNftImportModal.tsx b/packages/common/components/StargazeNftImportModal.tsx index 28c2c6bba..d2f272fd1 100644 --- a/packages/common/components/StargazeNftImportModal.tsx +++ b/packages/common/components/StargazeNftImportModal.tsx @@ -13,7 +13,7 @@ import { NftSelectionModal, useCachedLoadable, useDaoInfoContext, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { STARGAZE_CHAIN_ID, loadableToLoadingDataWithError, diff --git a/packages/common/components/SuspenseLoader.tsx b/packages/common/components/SuspenseLoader.tsx index 26955a4ef..25ae2c4f1 100644 --- a/packages/common/components/SuspenseLoader.tsx +++ b/packages/common/components/SuspenseLoader.tsx @@ -4,7 +4,7 @@ import { useRecoilValue } from 'recoil' import { mountedInBrowserAtom } from '@dao-dao/state' import { SuspenseLoaderProps } from '@dao-dao/types/components/SuspenseLoader' -import { ErrorBoundary } from '@dao-dao/ui' +import { ErrorBoundary } from '@dao-dao/stateless' export const SuspenseLoader = ({ ErrorBoundaryComponent = ErrorBoundary, diff --git a/packages/common/components/Trans.tsx b/packages/common/components/Trans.tsx index ef80f11ef..fa04311bc 100644 --- a/packages/common/components/Trans.tsx +++ b/packages/common/components/Trans.tsx @@ -8,7 +8,7 @@ import { Trans as OriginalTrans } from 'react-i18next' import { TransProps } from '@dao-dao/types' -import { Loader as DefaultLoader } from '@dao-dao/ui' +import { Loader as DefaultLoader } from '@dao-dao/stateless' import { SuspenseLoader } from './SuspenseLoader' diff --git a/packages/common/components/WalletProvider.tsx b/packages/common/components/WalletProvider.tsx index dbafdaac5..9b5d4398f 100644 --- a/packages/common/components/WalletProvider.tsx +++ b/packages/common/components/WalletProvider.tsx @@ -12,7 +12,7 @@ import { useTranslation } from 'react-i18next' import { useSetRecoilState } from 'recoil' import { signingCosmWasmClientAtom } from '@dao-dao/state' -import { Loader as DefaultLoader, LoaderProps } from '@dao-dao/ui' +import { Loader as DefaultLoader, LoaderProps } from '@dao-dao/stateless' import { CHAIN_ID, CHAIN_REST_ENDPOINT, diff --git a/packages/common/hooks/useEncodedCwdProposalSinglePrefill.ts b/packages/common/hooks/useEncodedCwdProposalSinglePrefill.ts index 212142536..f265b5b7b 100644 --- a/packages/common/hooks/useEncodedCwdProposalSinglePrefill.ts +++ b/packages/common/hooks/useEncodedCwdProposalSinglePrefill.ts @@ -4,7 +4,7 @@ import { } from '@dao-dao/proposal-module-adapter' import { NewProposalForm } from '@dao-dao/proposal-module-adapter/adapters/CwdProposalSingle/types' import { Action, ProposalPrefill } from '@dao-dao/types' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' interface ActionAndData { action: Action diff --git a/packages/common/hooks/useInbox.ts b/packages/common/hooks/useInbox.ts index d9d37db35..30945d667 100644 --- a/packages/common/hooks/useInbox.ts +++ b/packages/common/hooks/useInbox.ts @@ -7,7 +7,7 @@ import { blockHeightSelector, useGetOpenProposalsWithWalletVotesVariables, } from '@dao-dao/state' -import { useCachedLoadable } from '@dao-dao/ui' +import { useCachedLoadable } from '@dao-dao/stateless' import { pinnedDaosWithProposalModulesSelector } from '../selectors' diff --git a/packages/common/package.json b/packages/common/package.json index 41a587a2c..14d0379c0 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -11,7 +11,7 @@ "@dao-dao/actions": "2.0.1", "@dao-dao/proposal-module-adapter": "2.0.1", "@dao-dao/state": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@dao-dao/voting-module-adapter": "2.0.1", "@emotion/react": "^11.10.4", diff --git a/packages/common/selectors/pinned.ts b/packages/common/selectors/pinned.ts index 6d6babd53..57d4fcf19 100644 --- a/packages/common/selectors/pinned.ts +++ b/packages/common/selectors/pinned.ts @@ -1,7 +1,7 @@ import { selector, waitForAll } from 'recoil' import { daoDropdownInfoSelector, pinnedAddressesAtom } from '@dao-dao/state' -import { DaoDropdownInfo } from '@dao-dao/ui' +import { DaoDropdownInfo } from '@dao-dao/stateless' import { cwCoreProposalModulesSelector } from './dao' diff --git a/packages/common/server/makeGetDaoStaticProps.ts b/packages/common/server/makeGetDaoStaticProps.ts index 6e3859f8c..52eaeb0cf 100644 --- a/packages/common/server/makeGetDaoStaticProps.ts +++ b/packages/common/server/makeGetDaoStaticProps.ts @@ -16,7 +16,7 @@ import { getDaoCreated } from '@dao-dao/state/subquery/daos/created' import { ContractVersion, DaoParentInfo, ProposalModule } from '@dao-dao/types' import { ConfigResponse as ConfigV1Response } from '@dao-dao/types/contracts/CwCore.v1' import { ConfigResponse as ConfigV2Response } from '@dao-dao/types/contracts/CwdCore.v2' -import { Loader, Logo } from '@dao-dao/ui' +import { Loader, Logo } from '@dao-dao/stateless' import { CHAIN_PREFIX_ID_MAP, CI, diff --git a/packages/common/tailwind.config.js b/packages/common/tailwind.config.js index ea2646eed..ed7e1e58b 100644 --- a/packages/common/tailwind.config.js +++ b/packages/common/tailwind.config.js @@ -2,9 +2,9 @@ const tailwindConfig = { content: [ './**/*.{js,jsx,ts,tsx}', - '../{ui,state,actions}/**/*.{js,jsx,ts,tsx}', + '../{stateless,state,actions}/**/*.{js,jsx,ts,tsx}', ], - presets: [require('@dao-dao/ui/tailwind/config')], + presets: [require('@dao-dao/config/tailwind/config')], } module.exports = tailwindConfig diff --git a/packages/config/eslint/index.js b/packages/config/eslint/index.js index 8d77508a8..2d13c872a 100644 --- a/packages/config/eslint/index.js +++ b/packages/config/eslint/index.js @@ -92,16 +92,16 @@ const eslintConfig = { 'Import from @dao-dao/* instead of a relative path (i.e. replace "@/../../packages" with "@dao-dao").', }, { - regex: '\\@dao\\-dao\\/ui\\/(components|theme)[^\'"]*', - replacement: '@dao-dao/ui', + regex: '\\@dao\\-dao\\/stateless\\/(components|theme)[^\'"]*', + replacement: '@dao-dao/stateless', files: { // Let storybook files (stories and files within the storybook - // package like decorators) import specific UI files, like other - // storybook files. + // package like decorators) import specific stateless files, + // like other storybook files. ignore: '.*\\.stories\\.tsx|packages/storybook', }, message: - 'Import from root @dao-dao/ui instead of a direct path. Ensure the export has been added to its sibling index.', + 'Import from root @dao-dao/stateless instead of a direct path. Ensure the export has been added to its sibling index.', }, { regex: '\\@dao\\-dao\\/state\\/hooks\\/clients[^\'"]*', diff --git a/packages/ui/tailwind/animation.js b/packages/config/tailwind/animation.js similarity index 100% rename from packages/ui/tailwind/animation.js rename to packages/config/tailwind/animation.js diff --git a/packages/ui/tailwind/button.js b/packages/config/tailwind/button.js similarity index 100% rename from packages/ui/tailwind/button.js rename to packages/config/tailwind/button.js diff --git a/packages/ui/tailwind/colors.js b/packages/config/tailwind/colors.js similarity index 100% rename from packages/ui/tailwind/colors.js rename to packages/config/tailwind/colors.js diff --git a/packages/ui/tailwind/config.js b/packages/config/tailwind/config.js similarity index 100% rename from packages/ui/tailwind/config.js rename to packages/config/tailwind/config.js diff --git a/packages/ui/tailwind/keyframes.js b/packages/config/tailwind/keyframes.js similarity index 100% rename from packages/ui/tailwind/keyframes.js rename to packages/config/tailwind/keyframes.js diff --git a/packages/proposal-module-adapter/README.md b/packages/proposal-module-adapter/README.md index 9de77ba58..aca2fd2db 100644 --- a/packages/proposal-module-adapter/README.md +++ b/packages/proposal-module-adapter/README.md @@ -62,7 +62,7 @@ descendant of the Provider to access the proposal module adapter interface. ```tsx import { SuspenseLoader } from '@dao-dao/common' -import { Loader } from '@dao-dao/ui' +import { Loader } from '@dao-dao/stateless' import { useProposalModuleAdapter } from '@dao-dao/proposal-module-adapter' const ProposalVoteInfo = () => { diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.stories.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.stories.tsx index abb6c5d0a..bcbee690f 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.stories.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.stories.tsx @@ -2,7 +2,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { makeReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { DepositRefundPolicy } from '@dao-dao/types' -import { Loader, Logo } from '@dao-dao/ui' +import { Loader, Logo } from '@dao-dao/stateless' import { Component as UpdatePreProposeConfigComponent } from './index' import { UpdatePreProposeConfigData } from './UpdatePreProposeConfigComponent' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.tsx index 519d24222..b05338e68 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/UpdatePreProposeConfigComponent.tsx @@ -16,7 +16,7 @@ import { SelectInput, SpendEmoji, UpdateProposalConfigIcon, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/index.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/index.tsx index e9b0e84a2..f1d4c121d 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/index.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdatePreProposeConfigAction/index.tsx @@ -18,7 +18,7 @@ import { ExecuteMsg, UncheckedDepositInfo, } from '@dao-dao/types/contracts/CwdPreProposeSingle' -import { UpdateProposalConfigIcon, useDaoInfoContext } from '@dao-dao/ui' +import { UpdateProposalConfigIcon, useDaoInfoContext } from '@dao-dao/stateless' import { NATIVE_DECIMALS, NATIVE_DENOM, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/UpdateProposalConfigComponent.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/UpdateProposalConfigComponent.tsx index 2eeef9cbc..a355abf42 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/UpdateProposalConfigComponent.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/UpdateProposalConfigComponent.tsx @@ -14,7 +14,7 @@ import { SelectInput, TooltipInfoIcon, UpdateProposalConfigIcon, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validatePercent, validatePositive, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/index.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/index.tsx index b0ea778e7..9c08f356c 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/index.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV1Action/index.tsx @@ -13,7 +13,7 @@ import { UseTransformToCosmos, } from '@dao-dao/types' import { Threshold } from '@dao-dao/types/contracts/CwdProposalSingle.common' -import { UpdateProposalConfigIcon } from '@dao-dao/ui' +import { UpdateProposalConfigIcon } from '@dao-dao/stateless' import { convertDenomToMicroDenomWithDecimals, convertMicroDenomToDenomWithDecimals, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/UpdateProposalConfigComponent.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/UpdateProposalConfigComponent.tsx index 2eeef9cbc..a355abf42 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/UpdateProposalConfigComponent.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/UpdateProposalConfigComponent.tsx @@ -14,7 +14,7 @@ import { SelectInput, TooltipInfoIcon, UpdateProposalConfigIcon, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validatePercent, validatePositive, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/index.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/index.tsx index b8e5c382b..41e6dfd75 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/index.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/actions/makeUpdateProposalConfigV2Action/index.tsx @@ -13,7 +13,7 @@ import { } from '@dao-dao/types' import { Threshold } from '@dao-dao/types/contracts/CwdProposalSingle.common' import { ExecuteMsg } from '@dao-dao/types/contracts/CwdProposalSingle.v2' -import { UpdateProposalConfigIcon } from '@dao-dao/ui' +import { UpdateProposalConfigIcon } from '@dao-dao/stateless' import { makeWasmMessage } from '@dao-dao/utils' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/components/NewProposal.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/components/NewProposal.tsx index 69286ebc7..459334d00 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/components/NewProposal.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/components/NewProposal.tsx @@ -32,7 +32,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types' -import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/ui' +import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/stateless' import { convertExpirationToDate, dateToWdhms, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/hooks/makeUseProfileNewProposalCardInfoLines.ts b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/hooks/makeUseProfileNewProposalCardInfoLines.ts index 93308f4fd..9925127ea 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/hooks/makeUseProfileNewProposalCardInfoLines.ts +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/hooks/makeUseProfileNewProposalCardInfoLines.ts @@ -12,7 +12,7 @@ import { DepositRefundPolicy, IProposalModuleAdapterCommonOptions, } from '@dao-dao/types' -import { ProfileNewProposalCardInfoLine } from '@dao-dao/ui' +import { ProfileNewProposalCardInfoLine } from '@dao-dao/stateless' import { convertMicroDenomToDenomWithDecimals, nativeTokenDecimals, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.stories.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.stories.tsx index d4d9fe63c..26bc9a456 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.stories.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.stories.tsx @@ -13,7 +13,7 @@ import { UseDefaults, UseTransformToCosmos, } from '@dao-dao/types' -import { Loader, Logo, useDaoInfoContext } from '@dao-dao/ui' +import { Loader, Logo, useDaoInfoContext } from '@dao-dao/stateless' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' import { CwdProposalSingleAdapter } from '../..' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.tsx index 7f4ee30df..a033a4152 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/common/ui/NewProposal.tsx @@ -35,7 +35,7 @@ import { TextAreaInput, TextInput, Tooltip, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { decodedMessagesString, validateRequired } from '@dao-dao/utils' import { diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalActionDisplay.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalActionDisplay.tsx index 3daf47f15..90e13cfae 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalActionDisplay.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalActionDisplay.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next' import { ActionsRenderer } from '@dao-dao/actions' import { ActionAndData, BaseProposalActionDisplayProps } from '@dao-dao/types' -import { Button, CosmosMessageDisplay } from '@dao-dao/ui' +import { Button, CosmosMessageDisplay } from '@dao-dao/stateless' import { decodeMessages } from '@dao-dao/utils' import { useProposalModuleAdapterContext } from '../../../react' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/ProposalStatus.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/ProposalStatus.tsx index b0157256a..acf22e935 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/ProposalStatus.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/ProposalStatus.tsx @@ -11,7 +11,7 @@ import { ReactElement } from 'react' import { useTranslation } from 'react-i18next' import { Status } from '@dao-dao/types/contracts/CwdProposalSingle.common' -import { StatusDisplay } from '@dao-dao/ui' +import { StatusDisplay } from '@dao-dao/stateless' export interface ProposalStatusProps { status: Status diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/index.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/index.tsx index a0049170a..739058965 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/index.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalLine/index.tsx @@ -6,8 +6,8 @@ import { Status } from '@dao-dao/types/contracts/CwdProposalSingle.common' import { ProposalLine as StatelessProposalLine, useCachedLoadable, -} from '@dao-dao/ui' -import { useTranslatedTimeDeltaFormatter } from '@dao-dao/ui/hooks' +} from '@dao-dao/stateless' +import { useTranslatedTimeDeltaFormatter } from '@dao-dao/stateless/hooks' import { convertExpirationToDate, formatDate } from '@dao-dao/utils' import { useProposalModuleAdapterOptions } from '../../../../react' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalStatusAndInfo.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalStatusAndInfo.tsx index c0c426d25..f3fbd4031 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalStatusAndInfo.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalStatusAndInfo.tsx @@ -37,8 +37,8 @@ import { ProposalStatusAndInfo as StatelessProposalStatusAndInfo, useCachedLoadable, useDaoInfoContext, -} from '@dao-dao/ui' -import { useTranslatedTimeDeltaFormatter } from '@dao-dao/ui/hooks' +} from '@dao-dao/stateless' +import { useTranslatedTimeDeltaFormatter } from '@dao-dao/stateless/hooks' import { CHAIN_TXN_URL_PREFIX, convertExpirationToDate, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalVotes/index.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalVotes/index.tsx index 399dec5e9..48d4d4a1c 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalVotes/index.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalVotes/index.tsx @@ -6,7 +6,7 @@ import { refreshProposalIdAtom, useProposalVotesQuery } from '@dao-dao/state' import { ProposalVote, ProposalVotes as StatelessProposalVotes, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { useProposalModuleAdapterOptions } from '../../../../react/context' import { listVotesSelector } from '../../contracts/CwdProposalSingle.common.recoil' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalWalletVote.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalWalletVote.tsx index fbc9969e0..048b1b29a 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalWalletVote.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ProposalWalletVote.tsx @@ -2,7 +2,7 @@ import { useTranslation } from 'react-i18next' import { BaseProposalWalletVoteProps } from '@dao-dao/types' import { Vote } from '@dao-dao/types/contracts/CwdProposalSingle.common' -import { ProposalWalletVote as StatelessProposalWalletVote } from '@dao-dao/ui' +import { ProposalWalletVote as StatelessProposalWalletVote } from '@dao-dao/stateless' export const ProposalWalletVote = ({ vote, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ui/ProposalVoteTally.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ui/ProposalVoteTally.tsx index 5793025ce..1ca4391a9 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ui/ProposalVoteTally.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/components/ui/ProposalVoteTally.tsx @@ -2,7 +2,7 @@ import { Check, Close } from '@mui/icons-material' import { useTranslation } from 'react-i18next' import { ProcessedTQType } from '@dao-dao/types' -import { ProgressBar, Tooltip, TooltipInfoIcon } from '@dao-dao/ui' +import { ProgressBar, Tooltip, TooltipInfoIcon } from '@dao-dao/stateless' import { formatPercentOf100 } from '@dao-dao/utils' import { VotesInfo } from '../../types' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/AllowRevotingVotingConfigItem.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/AllowRevotingVotingConfigItem.tsx index c4ad0ece1..96a4afed0 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/AllowRevotingVotingConfigItem.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/AllowRevotingVotingConfigItem.tsx @@ -6,7 +6,7 @@ import { DaoCreationVotingConfigItemInputProps, DaoCreationVotingConfigItemReviewProps, } from '@dao-dao/types' -import { FormSwitchCard } from '@dao-dao/ui' +import { FormSwitchCard } from '@dao-dao/stateless' import { DaoCreationConfig } from '../types' diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ProposalDepositVotingConfigItem.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ProposalDepositVotingConfigItem.tsx index 2094a36f4..5671fd410 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ProposalDepositVotingConfigItem.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ProposalDepositVotingConfigItem.tsx @@ -18,7 +18,7 @@ import { InputLabel, NumberInput, SelectInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_BECH32_PREFIX, NATIVE_DENOM, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/QuorumVotingConfigItem.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/QuorumVotingConfigItem.tsx index aa6096b43..c1e694e57 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/QuorumVotingConfigItem.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/QuorumVotingConfigItem.tsx @@ -6,7 +6,7 @@ import { DaoCreationVotingConfigItemInputProps, DaoCreationVotingConfigItemReviewProps, } from '@dao-dao/types' -import { FormSwitchCard, NumberInput, SelectInput } from '@dao-dao/ui' +import { FormSwitchCard, NumberInput, SelectInput } from '@dao-dao/stateless' import { formatPercentOf100, validatePositive, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ThresholdVotingConfigItem.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ThresholdVotingConfigItem.tsx index 281d29fc6..1a3942e35 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ThresholdVotingConfigItem.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/ThresholdVotingConfigItem.tsx @@ -6,7 +6,7 @@ import { DaoCreationVotingConfigItemInputProps, DaoCreationVotingConfigItemReviewProps, } from '@dao-dao/types' -import { NumberInput, SelectInput } from '@dao-dao/ui' +import { NumberInput, SelectInput } from '@dao-dao/stateless' import { formatPercentOf100, validatePositive, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/VotingDurationVotingConfigItem.tsx b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/VotingDurationVotingConfigItem.tsx index 2bc45fb5b..98c3cbfa1 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/VotingDurationVotingConfigItem.tsx +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/daoCreation/VotingDurationVotingConfigItem.tsx @@ -8,7 +8,7 @@ import { DurationUnits, DurationUnitsValues, } from '@dao-dao/types' -import { NumberInput, SelectInput } from '@dao-dao/ui' +import { NumberInput, SelectInput } from '@dao-dao/stateless' import { convertDurationWithUnitsToHumanReadableString, validatePositive, diff --git a/packages/proposal-module-adapter/adapters/CwdProposalSingle/hooks/useProfileVoteCardOptions.ts b/packages/proposal-module-adapter/adapters/CwdProposalSingle/hooks/useProfileVoteCardOptions.ts index 2e899ce7d..4beab1d48 100644 --- a/packages/proposal-module-adapter/adapters/CwdProposalSingle/hooks/useProfileVoteCardOptions.ts +++ b/packages/proposal-module-adapter/adapters/CwdProposalSingle/hooks/useProfileVoteCardOptions.ts @@ -2,7 +2,7 @@ import { Check, Close, Texture } from '@mui/icons-material' import { useTranslation } from 'react-i18next' import { Vote } from '@dao-dao/types/contracts/CwdProposalSingle.common' -import { ProfileVoteCardOption } from '@dao-dao/ui' +import { ProfileVoteCardOption } from '@dao-dao/stateless' export const useProfileVoteCardOptions = (): ProfileVoteCardOption[] => { const { t } = useTranslation() diff --git a/packages/proposal-module-adapter/package.json b/packages/proposal-module-adapter/package.json index fb5caa73f..79e466764 100644 --- a/packages/proposal-module-adapter/package.json +++ b/packages/proposal-module-adapter/package.json @@ -9,7 +9,7 @@ "@dao-dao/actions": "2.0.1", "@dao-dao/common": "2.0.1", "@dao-dao/state": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@dao-dao/voting-module-adapter": "2.0.1", "@mui/icons-material": "^5.10.3", diff --git a/packages/state/hooks/useProfile.ts b/packages/state/hooks/useProfile.ts index dccb5257a..4ebb4ad42 100644 --- a/packages/state/hooks/useProfile.ts +++ b/packages/state/hooks/useProfile.ts @@ -1,7 +1,7 @@ import { constSelector, useRecoilValueLoadable } from 'recoil' import { LoadingData, WalletProfile, WithChainId } from '@dao-dao/types' -import { useCachedLoadable } from '@dao-dao/ui' +import { useCachedLoadable } from '@dao-dao/stateless' import { getFallbackImage, loadableToLoadingData } from '@dao-dao/utils' import { diff --git a/packages/ui/.env b/packages/stateless/.env similarity index 100% rename from packages/ui/.env rename to packages/stateless/.env diff --git a/packages/ui/.eslintrc.js b/packages/stateless/.eslintrc.js similarity index 100% rename from packages/ui/.eslintrc.js rename to packages/stateless/.eslintrc.js diff --git a/packages/ui/.gitignore b/packages/stateless/.gitignore similarity index 100% rename from packages/ui/.gitignore rename to packages/stateless/.gitignore diff --git a/packages/ui/LICENSE b/packages/stateless/LICENSE similarity index 100% rename from packages/ui/LICENSE rename to packages/stateless/LICENSE diff --git a/packages/ui/README.md b/packages/stateless/README.md similarity index 75% rename from packages/ui/README.md rename to packages/stateless/README.md index d2a38b610..e6eae80d5 100644 --- a/packages/ui/README.md +++ b/packages/stateless/README.md @@ -1,3 +1,3 @@ -# @dao-dao/ui +# @dao-dao/stateless Reusable React components and stylesheets for various projects diff --git a/packages/ui/components/Breadcrumbs.stories.tsx b/packages/stateless/components/Breadcrumbs.stories.tsx similarity index 90% rename from packages/ui/components/Breadcrumbs.stories.tsx rename to packages/stateless/components/Breadcrumbs.stories.tsx index 76ae8cb58..c3db3ef21 100644 --- a/packages/ui/components/Breadcrumbs.stories.tsx +++ b/packages/stateless/components/Breadcrumbs.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Breadcrumbs } from './Breadcrumbs' export default { - title: 'DAO DAO / packages / ui / components / Breadcrumbs', + title: 'DAO DAO / packages / stateless / components / Breadcrumbs', component: Breadcrumbs, } as ComponentMeta diff --git a/packages/ui/components/Breadcrumbs.tsx b/packages/stateless/components/Breadcrumbs.tsx similarity index 100% rename from packages/ui/components/Breadcrumbs.tsx rename to packages/stateless/components/Breadcrumbs.tsx diff --git a/packages/ui/components/CommandModal/CommandModal.stories.tsx b/packages/stateless/components/CommandModal/CommandModal.stories.tsx similarity index 97% rename from packages/ui/components/CommandModal/CommandModal.stories.tsx rename to packages/stateless/components/CommandModal/CommandModal.stories.tsx index 620d22edb..68dda3c7f 100644 --- a/packages/ui/components/CommandModal/CommandModal.stories.tsx +++ b/packages/stateless/components/CommandModal/CommandModal.stories.tsx @@ -18,7 +18,7 @@ import { import { Default as CommandModalContextViewLoaderStory } from './CommandModalContextView.CommandModalContextViewLoader.stories' export default { - title: 'DAO DAO / packages / ui / components / CommandModal / CommandModal', + title: 'DAO DAO / packages / stateless / components / CommandModal / CommandModal', component: CommandModal, decorators: [SubQueryDecorator], } as ComponentMeta diff --git a/packages/ui/components/CommandModal/CommandModal.tsx b/packages/stateless/components/CommandModal/CommandModal.tsx similarity index 100% rename from packages/ui/components/CommandModal/CommandModal.tsx rename to packages/stateless/components/CommandModal/CommandModal.tsx diff --git a/packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx b/packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx similarity index 93% rename from packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx rename to packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx index e3221b437..841d7a755 100644 --- a/packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx +++ b/packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextView.stories.tsx @@ -5,7 +5,7 @@ import { CommandModalContextView } from './CommandModalContextView' export default { title: - 'DAO DAO / packages / ui / components / CommandModal / CommandModalContextView', + 'DAO DAO / packages / stateless / components / CommandModal / CommandModalContextView', component: CommandModalContextView, } as ComponentMeta diff --git a/packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx b/packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx similarity index 82% rename from packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx rename to packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx index c32692236..f3fa5238f 100644 --- a/packages/ui/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx +++ b/packages/stateless/components/CommandModal/CommandModalContextView.CommandModalContextViewLoader.stories.tsx @@ -4,7 +4,7 @@ import { CommandModalContextViewLoader } from './CommandModalContextView' export default { title: - 'DAO DAO / packages / ui / components / CommandModal / CommandModalContextViewLoader', + 'DAO DAO / packages / stateless / components / CommandModal / CommandModalContextViewLoader', component: CommandModalContextViewLoader, } as ComponentMeta diff --git a/packages/ui/components/CommandModal/CommandModalContextView.tsx b/packages/stateless/components/CommandModal/CommandModalContextView.tsx similarity index 100% rename from packages/ui/components/CommandModal/CommandModalContextView.tsx rename to packages/stateless/components/CommandModal/CommandModalContextView.tsx diff --git a/packages/ui/components/CommandModal/ContextPill.tsx b/packages/stateless/components/CommandModal/ContextPill.tsx similarity index 100% rename from packages/ui/components/CommandModal/ContextPill.tsx rename to packages/stateless/components/CommandModal/ContextPill.tsx diff --git a/packages/ui/components/CommandModal/ItemRow.tsx b/packages/stateless/components/CommandModal/ItemRow.tsx similarity index 100% rename from packages/ui/components/CommandModal/ItemRow.tsx rename to packages/stateless/components/CommandModal/ItemRow.tsx diff --git a/packages/ui/components/CommandModal/index.tsx b/packages/stateless/components/CommandModal/index.tsx similarity index 100% rename from packages/ui/components/CommandModal/index.tsx rename to packages/stateless/components/CommandModal/index.tsx diff --git a/packages/ui/components/CopyToClipboard.CopyToClipboard.stories.tsx b/packages/stateless/components/CopyToClipboard.CopyToClipboard.stories.tsx similarity index 84% rename from packages/ui/components/CopyToClipboard.CopyToClipboard.stories.tsx rename to packages/stateless/components/CopyToClipboard.CopyToClipboard.stories.tsx index bde8d3de9..19170e033 100644 --- a/packages/ui/components/CopyToClipboard.CopyToClipboard.stories.tsx +++ b/packages/stateless/components/CopyToClipboard.CopyToClipboard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { CopyToClipboard } from './CopyToClipboard' export default { - title: 'DAO DAO / packages / ui / components / CopyToClipboard', + title: 'DAO DAO / packages / stateless / components / CopyToClipboard', component: CopyToClipboard, } as ComponentMeta diff --git a/packages/ui/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx b/packages/stateless/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx similarity index 84% rename from packages/ui/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx rename to packages/stateless/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx index 86901b19d..f8f978651 100644 --- a/packages/ui/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx +++ b/packages/stateless/components/CopyToClipboard.CopyToClipboardUnderline.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { CopyToClipboardUnderline } from './CopyToClipboard' export default { - title: 'DAO DAO / packages / ui / components / CopyToClipboardUnderline', + title: 'DAO DAO / packages / stateless / components / CopyToClipboardUnderline', component: CopyToClipboardUnderline, } as ComponentMeta diff --git a/packages/ui/components/CopyToClipboard.tsx b/packages/stateless/components/CopyToClipboard.tsx similarity index 100% rename from packages/ui/components/CopyToClipboard.tsx rename to packages/stateless/components/CopyToClipboard.tsx diff --git a/packages/ui/components/CornerGradient.tsx b/packages/stateless/components/CornerGradient.tsx similarity index 100% rename from packages/ui/components/CornerGradient.tsx rename to packages/stateless/components/CornerGradient.tsx diff --git a/packages/ui/components/CosmosMessageDisplay.stories.tsx b/packages/stateless/components/CosmosMessageDisplay.stories.tsx similarity index 88% rename from packages/ui/components/CosmosMessageDisplay.stories.tsx rename to packages/stateless/components/CosmosMessageDisplay.stories.tsx index 5dca8d037..800f8c5b1 100644 --- a/packages/ui/components/CosmosMessageDisplay.stories.tsx +++ b/packages/stateless/components/CosmosMessageDisplay.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { CosmosMessageDisplay } from './CosmosMessageDisplay' export default { - title: 'DAO DAO / packages / ui / components / CosmosMessageDisplay', + title: 'DAO DAO / packages / stateless / components / CosmosMessageDisplay', component: CosmosMessageDisplay, } as ComponentMeta diff --git a/packages/ui/components/CosmosMessageDisplay.tsx b/packages/stateless/components/CosmosMessageDisplay.tsx similarity index 100% rename from packages/ui/components/CosmosMessageDisplay.tsx rename to packages/stateless/components/CosmosMessageDisplay.tsx diff --git a/packages/ui/components/DaoInfoContext.ts b/packages/stateless/components/DaoInfoContext.ts similarity index 100% rename from packages/ui/components/DaoInfoContext.ts rename to packages/stateless/components/DaoInfoContext.ts diff --git a/packages/ui/components/ErrorBoundary.tsx b/packages/stateless/components/ErrorBoundary.tsx similarity index 100% rename from packages/ui/components/ErrorBoundary.tsx rename to packages/stateless/components/ErrorBoundary.tsx diff --git a/packages/ui/components/ErrorPage.stories.tsx b/packages/stateless/components/ErrorPage.stories.tsx similarity index 85% rename from packages/ui/components/ErrorPage.stories.tsx rename to packages/stateless/components/ErrorPage.stories.tsx index 235b82847..25bd62c60 100644 --- a/packages/ui/components/ErrorPage.stories.tsx +++ b/packages/stateless/components/ErrorPage.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ErrorPage } from './ErrorPage' export default { - title: 'DAO DAO / packages / ui / components / ErrorPage', + title: 'DAO DAO / packages / stateless / components / ErrorPage', component: ErrorPage, } as ComponentMeta diff --git a/packages/ui/components/ErrorPage.tsx b/packages/stateless/components/ErrorPage.tsx similarity index 100% rename from packages/ui/components/ErrorPage.tsx rename to packages/stateless/components/ErrorPage.tsx diff --git a/packages/ui/components/ErrorPage500.stories.tsx b/packages/stateless/components/ErrorPage500.stories.tsx similarity index 84% rename from packages/ui/components/ErrorPage500.stories.tsx rename to packages/stateless/components/ErrorPage500.stories.tsx index 482d94dc8..e8725a1f2 100644 --- a/packages/ui/components/ErrorPage500.stories.tsx +++ b/packages/stateless/components/ErrorPage500.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ErrorPage500 } from './ErrorPage500' export default { - title: 'DAO DAO / packages / ui / components / ErrorPage500', + title: 'DAO DAO / packages / stateless / components / ErrorPage500', component: ErrorPage500, } as ComponentMeta diff --git a/packages/ui/components/ErrorPage500.tsx b/packages/stateless/components/ErrorPage500.tsx similarity index 100% rename from packages/ui/components/ErrorPage500.tsx rename to packages/stateless/components/ErrorPage500.tsx diff --git a/packages/ui/components/FormattedJsonDisplay.tsx b/packages/stateless/components/FormattedJsonDisplay.tsx similarity index 100% rename from packages/ui/components/FormattedJsonDisplay.tsx rename to packages/stateless/components/FormattedJsonDisplay.tsx diff --git a/packages/ui/components/GridCardContainer.tsx b/packages/stateless/components/GridCardContainer.tsx similarity index 100% rename from packages/ui/components/GridCardContainer.tsx rename to packages/stateless/components/GridCardContainer.tsx diff --git a/packages/ui/components/LineGraph.tsx b/packages/stateless/components/LineGraph.tsx similarity index 100% rename from packages/ui/components/LineGraph.tsx rename to packages/stateless/components/LineGraph.tsx diff --git a/packages/ui/components/LinkText.stories.tsx b/packages/stateless/components/LinkText.stories.tsx similarity index 100% rename from packages/ui/components/LinkText.stories.tsx rename to packages/stateless/components/LinkText.stories.tsx diff --git a/packages/ui/components/LinkText.tsx b/packages/stateless/components/LinkText.tsx similarity index 100% rename from packages/ui/components/LinkText.tsx rename to packages/stateless/components/LinkText.tsx diff --git a/packages/ui/components/LinkWrapper.tsx b/packages/stateless/components/LinkWrapper.tsx similarity index 100% rename from packages/ui/components/LinkWrapper.tsx rename to packages/stateless/components/LinkWrapper.tsx diff --git a/packages/ui/components/Loader.Loader.stories.tsx b/packages/stateless/components/Loader.Loader.stories.tsx similarity index 82% rename from packages/ui/components/Loader.Loader.stories.tsx rename to packages/stateless/components/Loader.Loader.stories.tsx index fb9d94f1d..876b65da4 100644 --- a/packages/ui/components/Loader.Loader.stories.tsx +++ b/packages/stateless/components/Loader.Loader.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Loader } from './Loader' export default { - title: 'DAO DAO / packages / ui / components / Loader', + title: 'DAO DAO / packages / stateless / components / Loader', component: Loader, } as ComponentMeta diff --git a/packages/ui/components/Loader.PageLoader.stories.tsx b/packages/stateless/components/Loader.PageLoader.stories.tsx similarity index 83% rename from packages/ui/components/Loader.PageLoader.stories.tsx rename to packages/stateless/components/Loader.PageLoader.stories.tsx index c54453166..0df4c30dd 100644 --- a/packages/ui/components/Loader.PageLoader.stories.tsx +++ b/packages/stateless/components/Loader.PageLoader.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { PageLoader } from './Loader' export default { - title: 'DAO DAO / packages / ui / components / PageLoader', + title: 'DAO DAO / packages / stateless / components / PageLoader', component: PageLoader, } as ComponentMeta diff --git a/packages/ui/components/Loader.tsx b/packages/stateless/components/Loader.tsx similarity index 100% rename from packages/ui/components/Loader.tsx rename to packages/stateless/components/Loader.tsx diff --git a/packages/ui/components/Logo.Logo.stories.tsx b/packages/stateless/components/Logo.Logo.stories.tsx similarity index 82% rename from packages/ui/components/Logo.Logo.stories.tsx rename to packages/stateless/components/Logo.Logo.stories.tsx index 906d7ba1c..6649e43d9 100644 --- a/packages/ui/components/Logo.Logo.stories.tsx +++ b/packages/stateless/components/Logo.Logo.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Logo } from './Logo' export default { - title: 'DAO DAO / packages / ui / components / Logo', + title: 'DAO DAO / packages / stateless / components / Logo', component: Logo, } as ComponentMeta diff --git a/packages/ui/components/Logo.LogoFromImage.stories.tsx b/packages/stateless/components/Logo.LogoFromImage.stories.tsx similarity index 84% rename from packages/ui/components/Logo.LogoFromImage.stories.tsx rename to packages/stateless/components/Logo.LogoFromImage.stories.tsx index 72766f7d6..0425edd74 100644 --- a/packages/ui/components/Logo.LogoFromImage.stories.tsx +++ b/packages/stateless/components/Logo.LogoFromImage.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { LogoFromImage } from './Logo' export default { - title: 'DAO DAO / packages / ui / components / LogoFromImage', + title: 'DAO DAO / packages / stateless / components / LogoFromImage', component: LogoFromImage, } as ComponentMeta diff --git a/packages/ui/components/Logo.LogoNoBorder.stories.tsx b/packages/stateless/components/Logo.LogoNoBorder.stories.tsx similarity index 83% rename from packages/ui/components/Logo.LogoNoBorder.stories.tsx rename to packages/stateless/components/Logo.LogoNoBorder.stories.tsx index 33ccb838a..32db5b28d 100644 --- a/packages/ui/components/Logo.LogoNoBorder.stories.tsx +++ b/packages/stateless/components/Logo.LogoNoBorder.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { LogoNoBorder } from './Logo' export default { - title: 'DAO DAO / packages / ui / components / LogoNoBorder', + title: 'DAO DAO / packages / stateless / components / LogoNoBorder', component: LogoNoBorder, } as ComponentMeta diff --git a/packages/ui/components/Logo.tsx b/packages/stateless/components/Logo.tsx similarity index 100% rename from packages/ui/components/Logo.tsx rename to packages/stateless/components/Logo.tsx diff --git a/packages/ui/components/MarkdownPreview.stories.tsx b/packages/stateless/components/MarkdownPreview.stories.tsx similarity index 87% rename from packages/ui/components/MarkdownPreview.stories.tsx rename to packages/stateless/components/MarkdownPreview.stories.tsx index 49d5dc5a1..1b6eca859 100644 --- a/packages/ui/components/MarkdownPreview.stories.tsx +++ b/packages/stateless/components/MarkdownPreview.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { MarkdownPreview } from './MarkdownPreview' export default { - title: 'DAO DAO / packages / ui / components / MarkdownPreview', + title: 'DAO DAO / packages / stateless / components / MarkdownPreview', component: MarkdownPreview, } as ComponentMeta diff --git a/packages/ui/components/MarkdownPreview.tsx b/packages/stateless/components/MarkdownPreview.tsx similarity index 100% rename from packages/ui/components/MarkdownPreview.tsx rename to packages/stateless/components/MarkdownPreview.tsx diff --git a/packages/ui/components/NoContent.stories.tsx b/packages/stateless/components/NoContent.stories.tsx similarity index 88% rename from packages/ui/components/NoContent.stories.tsx rename to packages/stateless/components/NoContent.stories.tsx index a66da79c8..538f30f36 100644 --- a/packages/ui/components/NoContent.stories.tsx +++ b/packages/stateless/components/NoContent.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { NoContent } from './NoContent' export default { - title: 'DAO DAO / packages / ui / components / NoContent', + title: 'DAO DAO / packages / stateless / components / NoContent', component: NoContent, } as ComponentMeta diff --git a/packages/ui/components/NoContent.tsx b/packages/stateless/components/NoContent.tsx similarity index 100% rename from packages/ui/components/NoContent.tsx rename to packages/stateless/components/NoContent.tsx diff --git a/packages/ui/components/PricePercentChange.stories.tsx b/packages/stateless/components/PricePercentChange.stories.tsx similarity index 84% rename from packages/ui/components/PricePercentChange.stories.tsx rename to packages/stateless/components/PricePercentChange.stories.tsx index ed32a2292..d5582247a 100644 --- a/packages/ui/components/PricePercentChange.stories.tsx +++ b/packages/stateless/components/PricePercentChange.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { PricePercentChange } from './PricePercentChange' export default { - title: 'DAO DAO / packages / ui / components / PricePercentChange', + title: 'DAO DAO / packages / stateless / components / PricePercentChange', component: PricePercentChange, } as ComponentMeta diff --git a/packages/ui/components/PricePercentChange.tsx b/packages/stateless/components/PricePercentChange.tsx similarity index 100% rename from packages/ui/components/PricePercentChange.tsx rename to packages/stateless/components/PricePercentChange.tsx diff --git a/packages/ui/components/ProfileDisplay.tsx b/packages/stateless/components/ProfileDisplay.tsx similarity index 100% rename from packages/ui/components/ProfileDisplay.tsx rename to packages/stateless/components/ProfileDisplay.tsx diff --git a/packages/ui/components/ProgressBar.stories.tsx b/packages/stateless/components/ProgressBar.stories.tsx similarity index 91% rename from packages/ui/components/ProgressBar.stories.tsx rename to packages/stateless/components/ProgressBar.stories.tsx index 2f68f6225..d8eea5ba3 100644 --- a/packages/ui/components/ProgressBar.stories.tsx +++ b/packages/stateless/components/ProgressBar.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProgressBar } from './ProgressBar' export default { - title: 'DAO DAO / packages / ui / components / ProgressBar', + title: 'DAO DAO / packages / stateless / components / ProgressBar', component: ProgressBar, } as ComponentMeta diff --git a/packages/ui/components/ProgressBar.tsx b/packages/stateless/components/ProgressBar.tsx similarity index 100% rename from packages/ui/components/ProgressBar.tsx rename to packages/stateless/components/ProgressBar.tsx diff --git a/packages/ui/components/RotatableLogo.stories.tsx b/packages/stateless/components/RotatableLogo.stories.tsx similarity index 100% rename from packages/ui/components/RotatableLogo.stories.tsx rename to packages/stateless/components/RotatableLogo.stories.tsx diff --git a/packages/ui/components/RotatableLogo.tsx b/packages/stateless/components/RotatableLogo.tsx similarity index 100% rename from packages/ui/components/RotatableLogo.tsx rename to packages/stateless/components/RotatableLogo.tsx diff --git a/packages/ui/components/StakingModal/PercentButton.stories.tsx b/packages/stateless/components/StakingModal/PercentButton.stories.tsx similarity index 86% rename from packages/ui/components/StakingModal/PercentButton.stories.tsx rename to packages/stateless/components/StakingModal/PercentButton.stories.tsx index 3bad71739..721373643 100644 --- a/packages/ui/components/StakingModal/PercentButton.stories.tsx +++ b/packages/stateless/components/StakingModal/PercentButton.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { PercentButton } from './PercentButton' export default { - title: 'DAO DAO / packages / ui / components / StakingModal / PercentButton', + title: 'DAO DAO / packages / stateless / components / StakingModal / PercentButton', component: PercentButton, } as ComponentMeta diff --git a/packages/ui/components/StakingModal/PercentButton.tsx b/packages/stateless/components/StakingModal/PercentButton.tsx similarity index 100% rename from packages/ui/components/StakingModal/PercentButton.tsx rename to packages/stateless/components/StakingModal/PercentButton.tsx diff --git a/packages/ui/components/StakingModal/StakingModal.stories.tsx b/packages/stateless/components/StakingModal/StakingModal.stories.tsx similarity index 92% rename from packages/ui/components/StakingModal/StakingModal.stories.tsx rename to packages/stateless/components/StakingModal/StakingModal.stories.tsx index 70af3d2ba..07f574b5e 100644 --- a/packages/ui/components/StakingModal/StakingModal.stories.tsx +++ b/packages/stateless/components/StakingModal/StakingModal.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { StakingModal, StakingMode } from './StakingModal' export default { - title: 'DAO DAO / packages / ui / components / StakingModal / StakingModal', + title: 'DAO DAO / packages / stateless / components / StakingModal / StakingModal', component: StakingModal, } as ComponentMeta diff --git a/packages/ui/components/StakingModal/StakingModal.tsx b/packages/stateless/components/StakingModal/StakingModal.tsx similarity index 100% rename from packages/ui/components/StakingModal/StakingModal.tsx rename to packages/stateless/components/StakingModal/StakingModal.tsx diff --git a/packages/ui/components/StakingModal/index.tsx b/packages/stateless/components/StakingModal/index.tsx similarity index 100% rename from packages/ui/components/StakingModal/index.tsx rename to packages/stateless/components/StakingModal/index.tsx diff --git a/packages/ui/components/StatusDisplay.stories.tsx b/packages/stateless/components/StatusDisplay.stories.tsx similarity index 96% rename from packages/ui/components/StatusDisplay.stories.tsx rename to packages/stateless/components/StatusDisplay.stories.tsx index 7b4c5e339..3e32ad6f7 100644 --- a/packages/ui/components/StatusDisplay.stories.tsx +++ b/packages/stateless/components/StatusDisplay.stories.tsx @@ -5,7 +5,7 @@ import { ProposalStatusMap } from '@dao-dao/proposal-module-adapter/adapters/Cwd import { StatusDisplay } from './StatusDisplay' export default { - title: 'DAO DAO / packages / ui / components / StatusDisplay', + title: 'DAO DAO / packages / stateless / components / StatusDisplay', component: StatusDisplay, } as ComponentMeta diff --git a/packages/ui/components/StatusDisplay.tsx b/packages/stateless/components/StatusDisplay.tsx similarity index 100% rename from packages/ui/components/StatusDisplay.tsx rename to packages/stateless/components/StatusDisplay.tsx diff --git a/packages/ui/components/TokenAmountDisplay.stories.tsx b/packages/stateless/components/TokenAmountDisplay.stories.tsx similarity index 88% rename from packages/ui/components/TokenAmountDisplay.stories.tsx rename to packages/stateless/components/TokenAmountDisplay.stories.tsx index 1e69af597..adf6ac634 100644 --- a/packages/ui/components/TokenAmountDisplay.stories.tsx +++ b/packages/stateless/components/TokenAmountDisplay.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { TokenAmountDisplay } from './TokenAmountDisplay' export default { - title: 'DAO DAO / packages / ui / components / TokenAmountDisplay', + title: 'DAO DAO / packages / stateless / components / TokenAmountDisplay', component: TokenAmountDisplay, } as ComponentMeta diff --git a/packages/ui/components/TokenAmountDisplay.tsx b/packages/stateless/components/TokenAmountDisplay.tsx similarity index 100% rename from packages/ui/components/TokenAmountDisplay.tsx rename to packages/stateless/components/TokenAmountDisplay.tsx diff --git a/packages/ui/components/TokenCard.stories.tsx b/packages/stateless/components/TokenCard.stories.tsx similarity index 97% rename from packages/ui/components/TokenCard.stories.tsx rename to packages/stateless/components/TokenCard.stories.tsx index 31534916f..129f48dcd 100644 --- a/packages/ui/components/TokenCard.stories.tsx +++ b/packages/stateless/components/TokenCard.stories.tsx @@ -7,7 +7,7 @@ import { TokenCard, TokenCardProps } from './TokenCard' import { makeProps as makeUnstakingModalProps } from './UnstakingModal.stories' export default { - title: 'DAO DAO / packages / ui / components / TokenCard', + title: 'DAO DAO / packages / stateless / components / TokenCard', component: TokenCard, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/TokenCard.tsx b/packages/stateless/components/TokenCard.tsx similarity index 100% rename from packages/ui/components/TokenCard.tsx rename to packages/stateless/components/TokenCard.tsx diff --git a/packages/ui/components/Tooltip.stories.tsx b/packages/stateless/components/Tooltip.stories.tsx similarity index 85% rename from packages/ui/components/Tooltip.stories.tsx rename to packages/stateless/components/Tooltip.stories.tsx index 7756b955a..e7e0d7a5d 100644 --- a/packages/ui/components/Tooltip.stories.tsx +++ b/packages/stateless/components/Tooltip.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Tooltip } from './Tooltip' export default { - title: 'DAO DAO / packages / ui / components / Tooltip', + title: 'DAO DAO / packages / stateless / components / Tooltip', component: Tooltip, } as ComponentMeta diff --git a/packages/ui/components/Tooltip.tsx b/packages/stateless/components/Tooltip.tsx similarity index 100% rename from packages/ui/components/Tooltip.tsx rename to packages/stateless/components/Tooltip.tsx diff --git a/packages/ui/components/TooltipInfoIcon.stories.tsx b/packages/stateless/components/TooltipInfoIcon.stories.tsx similarity index 85% rename from packages/ui/components/TooltipInfoIcon.stories.tsx rename to packages/stateless/components/TooltipInfoIcon.stories.tsx index 36612a30d..596234c97 100644 --- a/packages/ui/components/TooltipInfoIcon.stories.tsx +++ b/packages/stateless/components/TooltipInfoIcon.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { TooltipInfoIcon } from './TooltipInfoIcon' export default { - title: 'DAO DAO / packages / ui / components / TooltipInfoIcon', + title: 'DAO DAO / packages / stateless / components / TooltipInfoIcon', component: TooltipInfoIcon, } as ComponentMeta diff --git a/packages/ui/components/TooltipInfoIcon.tsx b/packages/stateless/components/TooltipInfoIcon.tsx similarity index 100% rename from packages/ui/components/TooltipInfoIcon.tsx rename to packages/stateless/components/TooltipInfoIcon.tsx diff --git a/packages/ui/components/TooltipLikeDisplay.stories.tsx b/packages/stateless/components/TooltipLikeDisplay.stories.tsx similarity index 92% rename from packages/ui/components/TooltipLikeDisplay.stories.tsx rename to packages/stateless/components/TooltipLikeDisplay.stories.tsx index cd3b912e1..bb833232c 100644 --- a/packages/ui/components/TooltipLikeDisplay.stories.tsx +++ b/packages/stateless/components/TooltipLikeDisplay.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { TooltipLikeDisplay } from './TooltipLikeDisplay' export default { - title: 'DAO DAO / packages / ui / components / TooltipLikeDisplay', + title: 'DAO DAO / packages / stateless / components / TooltipLikeDisplay', component: TooltipLikeDisplay, } as ComponentMeta diff --git a/packages/ui/components/TooltipLikeDisplay.tsx b/packages/stateless/components/TooltipLikeDisplay.tsx similarity index 100% rename from packages/ui/components/TooltipLikeDisplay.tsx rename to packages/stateless/components/TooltipLikeDisplay.tsx diff --git a/packages/ui/components/TopGradient.stories.tsx b/packages/stateless/components/TopGradient.stories.tsx similarity index 83% rename from packages/ui/components/TopGradient.stories.tsx rename to packages/stateless/components/TopGradient.stories.tsx index aae7f2920..545d19dc6 100644 --- a/packages/ui/components/TopGradient.stories.tsx +++ b/packages/stateless/components/TopGradient.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { TopGradient } from './TopGradient' export default { - title: 'DAO DAO / packages / ui / components / TopGradient', + title: 'DAO DAO / packages / stateless / components / TopGradient', component: TopGradient, } as ComponentMeta diff --git a/packages/ui/components/TopGradient.tsx b/packages/stateless/components/TopGradient.tsx similarity index 100% rename from packages/ui/components/TopGradient.tsx rename to packages/stateless/components/TopGradient.tsx diff --git a/packages/ui/components/UnstakingLine.stories.tsx b/packages/stateless/components/UnstakingLine.stories.tsx similarity index 96% rename from packages/ui/components/UnstakingLine.stories.tsx rename to packages/stateless/components/UnstakingLine.stories.tsx index 0a2e93250..4d09a3469 100644 --- a/packages/ui/components/UnstakingLine.stories.tsx +++ b/packages/stateless/components/UnstakingLine.stories.tsx @@ -5,7 +5,7 @@ import { UnstakingLine, UnstakingLineProps } from './UnstakingLine' import { UnstakingTaskStatus } from './UnstakingStatus' export default { - title: 'DAO DAO / packages / ui / components / UnstakingLine', + title: 'DAO DAO / packages / stateless / components / UnstakingLine', component: UnstakingLine, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/UnstakingLine.tsx b/packages/stateless/components/UnstakingLine.tsx similarity index 100% rename from packages/ui/components/UnstakingLine.tsx rename to packages/stateless/components/UnstakingLine.tsx diff --git a/packages/ui/components/UnstakingModal.stories.tsx b/packages/stateless/components/UnstakingModal.stories.tsx similarity index 95% rename from packages/ui/components/UnstakingModal.stories.tsx rename to packages/stateless/components/UnstakingModal.stories.tsx index 4db0718db..9815230aa 100644 --- a/packages/ui/components/UnstakingModal.stories.tsx +++ b/packages/stateless/components/UnstakingModal.stories.tsx @@ -5,7 +5,7 @@ import { UnstakingModal, UnstakingModalProps } from './UnstakingModal' import { UnstakingTaskStatus } from './UnstakingStatus' export default { - title: 'DAO DAO / packages / ui / components / UnstakingModal', + title: 'DAO DAO / packages / stateless / components / UnstakingModal', component: UnstakingModal, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/UnstakingModal.tsx b/packages/stateless/components/UnstakingModal.tsx similarity index 100% rename from packages/ui/components/UnstakingModal.tsx rename to packages/stateless/components/UnstakingModal.tsx diff --git a/packages/ui/components/UnstakingStatus.stories.tsx b/packages/stateless/components/UnstakingStatus.stories.tsx similarity index 92% rename from packages/ui/components/UnstakingStatus.stories.tsx rename to packages/stateless/components/UnstakingStatus.stories.tsx index 33e1b187a..c333c51fa 100644 --- a/packages/ui/components/UnstakingStatus.stories.tsx +++ b/packages/stateless/components/UnstakingStatus.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { UnstakingStatus, UnstakingTaskStatus } from './UnstakingStatus' export default { - title: 'DAO DAO / packages / ui / components / UnstakingStatus', + title: 'DAO DAO / packages / stateless / components / UnstakingStatus', component: UnstakingStatus, } as ComponentMeta diff --git a/packages/ui/components/UnstakingStatus.tsx b/packages/stateless/components/UnstakingStatus.tsx similarity index 100% rename from packages/ui/components/UnstakingStatus.tsx rename to packages/stateless/components/UnstakingStatus.tsx diff --git a/packages/ui/components/actions/ActionCardLoader.tsx b/packages/stateless/components/actions/ActionCardLoader.tsx similarity index 100% rename from packages/ui/components/actions/ActionCardLoader.tsx rename to packages/stateless/components/actions/ActionCardLoader.tsx diff --git a/packages/ui/components/actions/ActionSelector.stories.tsx b/packages/stateless/components/actions/ActionSelector.stories.tsx similarity index 88% rename from packages/ui/components/actions/ActionSelector.stories.tsx rename to packages/stateless/components/actions/ActionSelector.stories.tsx index ae88d1159..cca44e0af 100644 --- a/packages/ui/components/actions/ActionSelector.stories.tsx +++ b/packages/stateless/components/actions/ActionSelector.stories.tsx @@ -5,7 +5,7 @@ import { useActions } from '@dao-dao/actions' import { ActionSelector } from './ActionSelector' export default { - title: 'DAO DAO / packages / ui / components / actions / ActionSelector', + title: 'DAO DAO / packages / stateless / components / actions / ActionSelector', component: ActionSelector, } as ComponentMeta diff --git a/packages/ui/components/actions/ActionSelector.tsx b/packages/stateless/components/actions/ActionSelector.tsx similarity index 100% rename from packages/ui/components/actions/ActionSelector.tsx rename to packages/stateless/components/actions/ActionSelector.tsx diff --git a/packages/ui/components/actions/index.tsx b/packages/stateless/components/actions/index.tsx similarity index 100% rename from packages/ui/components/actions/index.tsx rename to packages/stateless/components/actions/index.tsx diff --git a/packages/ui/components/buttons/Button.stories.tsx b/packages/stateless/components/buttons/Button.stories.tsx similarity index 91% rename from packages/ui/components/buttons/Button.stories.tsx rename to packages/stateless/components/buttons/Button.stories.tsx index 159678d82..42f30e613 100644 --- a/packages/ui/components/buttons/Button.stories.tsx +++ b/packages/stateless/components/buttons/Button.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Button } from './Button' export default { - title: 'DAO DAO / packages / ui / components / buttons / Button', + title: 'DAO DAO / packages / stateless / components / buttons / Button', component: Button, } as ComponentMeta diff --git a/packages/ui/components/buttons/Button.tsx b/packages/stateless/components/buttons/Button.tsx similarity index 100% rename from packages/ui/components/buttons/Button.tsx rename to packages/stateless/components/buttons/Button.tsx diff --git a/packages/ui/components/buttons/ButtonLink.stories.tsx b/packages/stateless/components/buttons/ButtonLink.stories.tsx similarity index 87% rename from packages/ui/components/buttons/ButtonLink.stories.tsx rename to packages/stateless/components/buttons/ButtonLink.stories.tsx index 0b1836e68..9b47dc7a5 100644 --- a/packages/ui/components/buttons/ButtonLink.stories.tsx +++ b/packages/stateless/components/buttons/ButtonLink.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ButtonLink } from './ButtonLink' export default { - title: 'DAO DAO / packages / ui / components / buttons / ButtonLink', + title: 'DAO DAO / packages / stateless / components / buttons / ButtonLink', component: ButtonLink, } as ComponentMeta diff --git a/packages/ui/components/buttons/ButtonLink.tsx b/packages/stateless/components/buttons/ButtonLink.tsx similarity index 100% rename from packages/ui/components/buttons/ButtonLink.tsx rename to packages/stateless/components/buttons/ButtonLink.tsx diff --git a/packages/ui/components/buttons/Buttonifier.tsx b/packages/stateless/components/buttons/Buttonifier.tsx similarity index 100% rename from packages/ui/components/buttons/Buttonifier.tsx rename to packages/stateless/components/buttons/Buttonifier.tsx diff --git a/packages/ui/components/buttons/FollowingToggle.stories.tsx b/packages/stateless/components/buttons/FollowingToggle.stories.tsx similarity index 90% rename from packages/ui/components/buttons/FollowingToggle.stories.tsx rename to packages/stateless/components/buttons/FollowingToggle.stories.tsx index e7a1a01e5..ef04bb780 100644 --- a/packages/ui/components/buttons/FollowingToggle.stories.tsx +++ b/packages/stateless/components/buttons/FollowingToggle.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { FollowingToggle } from './FollowingToggle' export default { - title: 'DAO DAO / packages / ui / components / buttons / FollowingToggle', + title: 'DAO DAO / packages / stateless / components / buttons / FollowingToggle', component: FollowingToggle, } as ComponentMeta diff --git a/packages/ui/components/buttons/FollowingToggle.tsx b/packages/stateless/components/buttons/FollowingToggle.tsx similarity index 100% rename from packages/ui/components/buttons/FollowingToggle.tsx rename to packages/stateless/components/buttons/FollowingToggle.tsx diff --git a/packages/ui/components/buttons/index.ts b/packages/stateless/components/buttons/index.ts similarity index 100% rename from packages/ui/components/buttons/index.ts rename to packages/stateless/components/buttons/index.ts diff --git a/packages/ui/components/dao/DaoCard.stories.tsx b/packages/stateless/components/dao/DaoCard.stories.tsx similarity index 95% rename from packages/ui/components/dao/DaoCard.stories.tsx rename to packages/stateless/components/dao/DaoCard.stories.tsx index a68fa3f86..b62e6cb99 100644 --- a/packages/ui/components/dao/DaoCard.stories.tsx +++ b/packages/stateless/components/dao/DaoCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { DaoCard, DaoCardProps } from './DaoCard' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoCard', + title: 'DAO DAO / packages / stateless / components / dao / DaoCard', component: DaoCard, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/dao/DaoCard.tsx b/packages/stateless/components/dao/DaoCard.tsx similarity index 100% rename from packages/ui/components/dao/DaoCard.tsx rename to packages/stateless/components/dao/DaoCard.tsx diff --git a/packages/ui/components/dao/DaoDropdown.stories.tsx b/packages/stateless/components/dao/DaoDropdown.stories.tsx similarity index 94% rename from packages/ui/components/dao/DaoDropdown.stories.tsx rename to packages/stateless/components/dao/DaoDropdown.stories.tsx index dc28f22c5..9f5a633cb 100644 --- a/packages/ui/components/dao/DaoDropdown.stories.tsx +++ b/packages/stateless/components/dao/DaoDropdown.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { DaoDropdown } from './DaoDropdown' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoDropdown', + title: 'DAO DAO / packages / stateless / components / dao / DaoDropdown', component: DaoDropdown, } as ComponentMeta diff --git a/packages/ui/components/dao/DaoDropdown.tsx b/packages/stateless/components/dao/DaoDropdown.tsx similarity index 100% rename from packages/ui/components/dao/DaoDropdown.tsx rename to packages/stateless/components/dao/DaoDropdown.tsx diff --git a/packages/ui/components/dao/DaoHeader.stories.tsx b/packages/stateless/components/dao/DaoHeader.stories.tsx similarity index 90% rename from packages/ui/components/dao/DaoHeader.stories.tsx rename to packages/stateless/components/dao/DaoHeader.stories.tsx index f32449898..bd0da491c 100644 --- a/packages/ui/components/dao/DaoHeader.stories.tsx +++ b/packages/stateless/components/dao/DaoHeader.stories.tsx @@ -5,7 +5,7 @@ import { formatDate } from '@dao-dao/utils' import { DaoHeader } from './DaoHeader' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoHeader', + title: 'DAO DAO / packages / stateless / components / dao / DaoHeader', component: DaoHeader, } as ComponentMeta diff --git a/packages/ui/components/dao/DaoHeader.tsx b/packages/stateless/components/dao/DaoHeader.tsx similarity index 100% rename from packages/ui/components/dao/DaoHeader.tsx rename to packages/stateless/components/dao/DaoHeader.tsx diff --git a/packages/ui/components/dao/DaoImage.stories.tsx b/packages/stateless/components/dao/DaoImage.stories.tsx similarity index 92% rename from packages/ui/components/dao/DaoImage.stories.tsx rename to packages/stateless/components/dao/DaoImage.stories.tsx index f1293b7be..564bc05d7 100644 --- a/packages/ui/components/dao/DaoImage.stories.tsx +++ b/packages/stateless/components/dao/DaoImage.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { DaoImage } from './DaoImage' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoImage', + title: 'DAO DAO / packages / stateless / components / dao / DaoImage', component: DaoImage, } as ComponentMeta diff --git a/packages/ui/components/dao/DaoImage.tsx b/packages/stateless/components/dao/DaoImage.tsx similarity index 100% rename from packages/ui/components/dao/DaoImage.tsx rename to packages/stateless/components/dao/DaoImage.tsx diff --git a/packages/ui/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx b/packages/stateless/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx similarity index 95% rename from packages/ui/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx rename to packages/stateless/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx index 46cbad1c9..69e7574bd 100644 --- a/packages/ui/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx +++ b/packages/stateless/components/dao/DaoInfoBar.DaoInfoBar.stories.tsx @@ -11,7 +11,7 @@ import { CopyToClipboardUnderline } from '../CopyToClipboard' import { DaoInfoBar } from './DaoInfoBar' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoInfoBar', + title: 'DAO DAO / packages / stateless / components / dao / DaoInfoBar', component: DaoInfoBar, } as ComponentMeta diff --git a/packages/ui/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx b/packages/stateless/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx similarity index 83% rename from packages/ui/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx rename to packages/stateless/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx index cdf3b6f00..0cf7bf0d2 100644 --- a/packages/ui/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx +++ b/packages/stateless/components/dao/DaoInfoBar.DaoInfoBarLoader.stories.tsx @@ -4,7 +4,7 @@ import { Loader } from '../Loader' import { DaoInfoBarLoader } from './DaoInfoBar' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoInfoBarLoader', + title: 'DAO DAO / packages / stateless / components / dao / DaoInfoBarLoader', component: DaoInfoBarLoader, } as ComponentMeta diff --git a/packages/ui/components/dao/DaoInfoBar.tsx b/packages/stateless/components/dao/DaoInfoBar.tsx similarity index 100% rename from packages/ui/components/dao/DaoInfoBar.tsx rename to packages/stateless/components/dao/DaoInfoBar.tsx diff --git a/packages/ui/components/dao/DaoMemberCard.stories.tsx b/packages/stateless/components/dao/DaoMemberCard.stories.tsx similarity index 93% rename from packages/ui/components/dao/DaoMemberCard.stories.tsx rename to packages/stateless/components/dao/DaoMemberCard.stories.tsx index 014ce84ad..99282f6f9 100644 --- a/packages/ui/components/dao/DaoMemberCard.stories.tsx +++ b/packages/stateless/components/dao/DaoMemberCard.stories.tsx @@ -5,7 +5,7 @@ import { DaoMemberCardProps } from '@dao-dao/types/components/DaoMemberCard' import { DaoMemberCard } from './DaoMemberCard' export default { - title: 'DAO DAO / packages / ui / components / dao / DaoMemberCard', + title: 'DAO DAO / packages / stateless / components / dao / DaoMemberCard', component: DaoMemberCard, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/dao/DaoMemberCard.tsx b/packages/stateless/components/dao/DaoMemberCard.tsx similarity index 100% rename from packages/ui/components/dao/DaoMemberCard.tsx rename to packages/stateless/components/dao/DaoMemberCard.tsx diff --git a/packages/ui/components/dao/FeaturedDaos.stories.tsx b/packages/stateless/components/dao/FeaturedDaos.stories.tsx similarity index 95% rename from packages/ui/components/dao/FeaturedDaos.stories.tsx rename to packages/stateless/components/dao/FeaturedDaos.stories.tsx index 291a7bc2f..917d3ccc7 100644 --- a/packages/ui/components/dao/FeaturedDaos.stories.tsx +++ b/packages/stateless/components/dao/FeaturedDaos.stories.tsx @@ -6,7 +6,7 @@ import { CHAIN_ID } from '@dao-dao/utils' import { FeaturedDaos } from './FeaturedDaos' export default { - title: 'DAO DAO / packages / ui / components / dao / FeaturedDaos', + title: 'DAO DAO / packages / stateless / components / dao / FeaturedDaos', component: FeaturedDaos, } as ComponentMeta diff --git a/packages/ui/components/dao/FeaturedDaos.tsx b/packages/stateless/components/dao/FeaturedDaos.tsx similarity index 100% rename from packages/ui/components/dao/FeaturedDaos.tsx rename to packages/stateless/components/dao/FeaturedDaos.tsx diff --git a/packages/ui/components/dao/PinnedDaos.stories.tsx b/packages/stateless/components/dao/PinnedDaos.stories.tsx similarity index 93% rename from packages/ui/components/dao/PinnedDaos.stories.tsx rename to packages/stateless/components/dao/PinnedDaos.stories.tsx index adb7fe9af..e53592b15 100644 --- a/packages/ui/components/dao/PinnedDaos.stories.tsx +++ b/packages/stateless/components/dao/PinnedDaos.stories.tsx @@ -6,7 +6,7 @@ import { Default as FeaturedDaosStory } from './FeaturedDaos.stories' import { PinnedDaos } from './PinnedDaos' export default { - title: 'DAO DAO / packages / ui / components / dao / PinnedDaos', + title: 'DAO DAO / packages / stateless / components / dao / PinnedDaos', component: PinnedDaos, } as ComponentMeta diff --git a/packages/ui/components/dao/PinnedDaos.tsx b/packages/stateless/components/dao/PinnedDaos.tsx similarity index 100% rename from packages/ui/components/dao/PinnedDaos.tsx rename to packages/stateless/components/dao/PinnedDaos.tsx diff --git a/packages/ui/components/dao/create/DaoCreateConfigInputCard.stories.tsx b/packages/stateless/components/dao/create/DaoCreateConfigInputCard.stories.tsx similarity index 96% rename from packages/ui/components/dao/create/DaoCreateConfigInputCard.stories.tsx rename to packages/stateless/components/dao/create/DaoCreateConfigInputCard.stories.tsx index 19a3c9564..d8be40292 100644 --- a/packages/ui/components/dao/create/DaoCreateConfigInputCard.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreateConfigInputCard.stories.tsx @@ -12,7 +12,7 @@ import { DaoCreateConfigInputCard } from './DaoCreateConfigInputCard' export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreateConfigInputCard', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreateConfigInputCard', component: DaoCreateConfigInputCard, decorators: [], } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreateConfigInputCard.tsx b/packages/stateless/components/dao/create/DaoCreateConfigInputCard.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoCreateConfigInputCard.tsx rename to packages/stateless/components/dao/create/DaoCreateConfigInputCard.tsx diff --git a/packages/ui/components/dao/create/DaoCreateConfigReviewCard.stories.tsx b/packages/stateless/components/dao/create/DaoCreateConfigReviewCard.stories.tsx similarity index 93% rename from packages/ui/components/dao/create/DaoCreateConfigReviewCard.stories.tsx rename to packages/stateless/components/dao/create/DaoCreateConfigReviewCard.stories.tsx index 40ceb4e1d..f64a32671 100644 --- a/packages/ui/components/dao/create/DaoCreateConfigReviewCard.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreateConfigReviewCard.stories.tsx @@ -12,7 +12,7 @@ import { DaoCreateConfigReviewCard } from './DaoCreateConfigReviewCard' export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreateConfigReviewCard', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreateConfigReviewCard', component: DaoCreateConfigReviewCard, decorators: [], } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreateConfigReviewCard.tsx b/packages/stateless/components/dao/create/DaoCreateConfigReviewCard.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoCreateConfigReviewCard.tsx rename to packages/stateless/components/dao/create/DaoCreateConfigReviewCard.tsx diff --git a/packages/ui/components/dao/create/DaoCreateSidebarCard.stories.tsx b/packages/stateless/components/dao/create/DaoCreateSidebarCard.stories.tsx similarity index 87% rename from packages/ui/components/dao/create/DaoCreateSidebarCard.stories.tsx rename to packages/stateless/components/dao/create/DaoCreateSidebarCard.stories.tsx index f6c458b36..2dface562 100644 --- a/packages/ui/components/dao/create/DaoCreateSidebarCard.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreateSidebarCard.stories.tsx @@ -4,7 +4,7 @@ import { DaoCreateSidebarCard } from './DaoCreateSidebarCard' export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreateSidebarCard', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreateSidebarCard', component: DaoCreateSidebarCard, } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreateSidebarCard.tsx b/packages/stateless/components/dao/create/DaoCreateSidebarCard.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoCreateSidebarCard.tsx rename to packages/stateless/components/dao/create/DaoCreateSidebarCard.tsx diff --git a/packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx b/packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx similarity index 89% rename from packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx rename to packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx index d6908b668..5dece7197 100644 --- a/packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionBarChart.stories.tsx @@ -7,7 +7,7 @@ import { export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreateVotingPowerDistributionBarChart', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreateVotingPowerDistributionBarChart', component: DaoCreateVotingPowerDistributionBarChart, } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx b/packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx similarity index 93% rename from packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx rename to packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx index d5c492fc6..7ce1b05ae 100644 --- a/packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.DaoCreateVotingPowerDistributionReviewCard.stories.tsx @@ -7,7 +7,7 @@ import { export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreateVotingPowerDistributionReviewCard', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreateVotingPowerDistributionReviewCard', component: DaoCreateVotingPowerDistributionReviewCard, } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.tsx b/packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoCreateVotingPowerDistribution.tsx rename to packages/stateless/components/dao/create/DaoCreateVotingPowerDistribution.tsx diff --git a/packages/ui/components/dao/create/DaoCreatedModal.stories.tsx b/packages/stateless/components/dao/create/DaoCreatedModal.stories.tsx similarity index 90% rename from packages/ui/components/dao/create/DaoCreatedModal.stories.tsx rename to packages/stateless/components/dao/create/DaoCreatedModal.stories.tsx index a61bc2c05..6c6b67728 100644 --- a/packages/ui/components/dao/create/DaoCreatedModal.stories.tsx +++ b/packages/stateless/components/dao/create/DaoCreatedModal.stories.tsx @@ -5,7 +5,7 @@ import { DaoCreatedModal } from './DaoCreatedModal' export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoCreatedModal', + 'DAO DAO / packages / stateless / components / dao / create / DaoCreatedModal', component: DaoCreatedModal, } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoCreatedModal.tsx b/packages/stateless/components/dao/create/DaoCreatedModal.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoCreatedModal.tsx rename to packages/stateless/components/dao/create/DaoCreatedModal.tsx diff --git a/packages/ui/components/dao/create/DaoStructureCard.stories.tsx b/packages/stateless/components/dao/create/DaoStructureCard.stories.tsx similarity index 93% rename from packages/ui/components/dao/create/DaoStructureCard.stories.tsx rename to packages/stateless/components/dao/create/DaoStructureCard.stories.tsx index 1ee03701f..10516188e 100644 --- a/packages/ui/components/dao/create/DaoStructureCard.stories.tsx +++ b/packages/stateless/components/dao/create/DaoStructureCard.stories.tsx @@ -7,7 +7,7 @@ import { DaoStructureCard } from './DaoStructureCard' export default { title: - 'DAO DAO / packages / ui / components / dao / create / DaoStructureCard', + 'DAO DAO / packages / stateless / components / dao / create / DaoStructureCard', component: DaoStructureCard, } as ComponentMeta diff --git a/packages/ui/components/dao/create/DaoStructureCard.tsx b/packages/stateless/components/dao/create/DaoStructureCard.tsx similarity index 100% rename from packages/ui/components/dao/create/DaoStructureCard.tsx rename to packages/stateless/components/dao/create/DaoStructureCard.tsx diff --git a/packages/ui/components/dao/create/index.tsx b/packages/stateless/components/dao/create/index.tsx similarity index 100% rename from packages/ui/components/dao/create/index.tsx rename to packages/stateless/components/dao/create/index.tsx diff --git a/packages/ui/components/dao/create/pages/CreateDaoGovernance.stories.tsx b/packages/stateless/components/dao/create/pages/CreateDaoGovernance.stories.tsx similarity index 93% rename from packages/ui/components/dao/create/pages/CreateDaoGovernance.stories.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoGovernance.stories.tsx index 97f031424..92a78c5c2 100644 --- a/packages/ui/components/dao/create/pages/CreateDaoGovernance.stories.tsx +++ b/packages/stateless/components/dao/create/pages/CreateDaoGovernance.stories.tsx @@ -11,7 +11,7 @@ import { CreateDaoGovernance } from './CreateDaoGovernance' export default { title: - 'DAO DAO / packages / ui / components / dao / create / pages / CreateDaoGovernance', + 'DAO DAO / packages / stateless / components / dao / create / pages / CreateDaoGovernance', component: CreateDaoGovernance, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/components/dao/create/pages/CreateDaoGovernance.tsx b/packages/stateless/components/dao/create/pages/CreateDaoGovernance.tsx similarity index 100% rename from packages/ui/components/dao/create/pages/CreateDaoGovernance.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoGovernance.tsx diff --git a/packages/ui/components/dao/create/pages/CreateDaoReview.stories.tsx b/packages/stateless/components/dao/create/pages/CreateDaoReview.stories.tsx similarity index 95% rename from packages/ui/components/dao/create/pages/CreateDaoReview.stories.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoReview.stories.tsx index 07498510d..a80981699 100644 --- a/packages/ui/components/dao/create/pages/CreateDaoReview.stories.tsx +++ b/packages/stateless/components/dao/create/pages/CreateDaoReview.stories.tsx @@ -10,7 +10,7 @@ import { CreateDaoReview } from './CreateDaoReview' export default { title: - 'DAO DAO / packages / ui / components / dao / create / pages / CreateDaoReview', + 'DAO DAO / packages / stateless / components / dao / create / pages / CreateDaoReview', component: CreateDaoReview, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/components/dao/create/pages/CreateDaoReview.tsx b/packages/stateless/components/dao/create/pages/CreateDaoReview.tsx similarity index 100% rename from packages/ui/components/dao/create/pages/CreateDaoReview.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoReview.tsx diff --git a/packages/ui/components/dao/create/pages/CreateDaoStart.stories.tsx b/packages/stateless/components/dao/create/pages/CreateDaoStart.stories.tsx similarity index 94% rename from packages/ui/components/dao/create/pages/CreateDaoStart.stories.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoStart.stories.tsx index e08e3527f..c99188921 100644 --- a/packages/ui/components/dao/create/pages/CreateDaoStart.stories.tsx +++ b/packages/stateless/components/dao/create/pages/CreateDaoStart.stories.tsx @@ -12,7 +12,7 @@ import { CreateDaoStart } from './CreateDaoStart' export default { title: - 'DAO DAO / packages / ui / components / dao / create / pages / CreateDaoStart', + 'DAO DAO / packages / stateless / components / dao / create / pages / CreateDaoStart', component: CreateDaoStart, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/components/dao/create/pages/CreateDaoStart.tsx b/packages/stateless/components/dao/create/pages/CreateDaoStart.tsx similarity index 100% rename from packages/ui/components/dao/create/pages/CreateDaoStart.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoStart.tsx diff --git a/packages/ui/components/dao/create/pages/CreateDaoVoting.stories.tsx b/packages/stateless/components/dao/create/pages/CreateDaoVoting.stories.tsx similarity index 95% rename from packages/ui/components/dao/create/pages/CreateDaoVoting.stories.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoVoting.stories.tsx index 06ac3a9c2..b322cf56d 100644 --- a/packages/ui/components/dao/create/pages/CreateDaoVoting.stories.tsx +++ b/packages/stateless/components/dao/create/pages/CreateDaoVoting.stories.tsx @@ -10,7 +10,7 @@ import { CreateDaoVoting } from './CreateDaoVoting' export default { title: - 'DAO DAO / packages / ui / components / dao / create / pages / CreateDaoVoting', + 'DAO DAO / packages / stateless / components / dao / create / pages / CreateDaoVoting', component: CreateDaoVoting, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/components/dao/create/pages/CreateDaoVoting.tsx b/packages/stateless/components/dao/create/pages/CreateDaoVoting.tsx similarity index 100% rename from packages/ui/components/dao/create/pages/CreateDaoVoting.tsx rename to packages/stateless/components/dao/create/pages/CreateDaoVoting.tsx diff --git a/packages/ui/components/dao/create/pages/index.tsx b/packages/stateless/components/dao/create/pages/index.tsx similarity index 100% rename from packages/ui/components/dao/create/pages/index.tsx rename to packages/stateless/components/dao/create/pages/index.tsx diff --git a/packages/ui/components/dao/index.tsx b/packages/stateless/components/dao/index.tsx similarity index 100% rename from packages/ui/components/dao/index.tsx rename to packages/stateless/components/dao/index.tsx diff --git a/packages/ui/components/dao/tabs/MembersTab.stories.tsx b/packages/stateless/components/dao/tabs/MembersTab.stories.tsx similarity index 91% rename from packages/ui/components/dao/tabs/MembersTab.stories.tsx rename to packages/stateless/components/dao/tabs/MembersTab.stories.tsx index 5caf97dc2..1bc0f1585 100644 --- a/packages/ui/components/dao/tabs/MembersTab.stories.tsx +++ b/packages/stateless/components/dao/tabs/MembersTab.stories.tsx @@ -8,7 +8,7 @@ import { makeProps as makeDaoMemberCardProps } from '../DaoMemberCard.stories' import { MembersTab } from './MembersTab' export default { - title: 'DAO DAO / packages / ui / components / dao / tabs / MembersTab', + title: 'DAO DAO / packages / stateless / components / dao / tabs / MembersTab', component: MembersTab, decorators: [DaoPageWrapperDecorator], } as ComponentMeta diff --git a/packages/ui/components/dao/tabs/MembersTab.tsx b/packages/stateless/components/dao/tabs/MembersTab.tsx similarity index 100% rename from packages/ui/components/dao/tabs/MembersTab.tsx rename to packages/stateless/components/dao/tabs/MembersTab.tsx diff --git a/packages/ui/components/dao/tabs/ProposalsTab.stories.tsx b/packages/stateless/components/dao/tabs/ProposalsTab.stories.tsx similarity index 88% rename from packages/ui/components/dao/tabs/ProposalsTab.stories.tsx rename to packages/stateless/components/dao/tabs/ProposalsTab.stories.tsx index 7e436bf0d..7182e81fb 100644 --- a/packages/ui/components/dao/tabs/ProposalsTab.stories.tsx +++ b/packages/stateless/components/dao/tabs/ProposalsTab.stories.tsx @@ -1,7 +1,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { DaoPageWrapperDecorator } from '@dao-dao/storybook/decorators' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { ProposalLineProps, @@ -12,7 +12,7 @@ import * as ProposalListStories from '../../proposal/ProposalList.stories' import { ProposalsTab } from './ProposalsTab' export default { - title: 'DAO DAO / packages / ui / components / dao / tabs / ProposalsTab', + title: 'DAO DAO / packages / stateless / components / dao / tabs / ProposalsTab', component: ProposalsTab, decorators: [DaoPageWrapperDecorator], } as ComponentMeta diff --git a/packages/ui/components/dao/tabs/ProposalsTab.tsx b/packages/stateless/components/dao/tabs/ProposalsTab.tsx similarity index 100% rename from packages/ui/components/dao/tabs/ProposalsTab.tsx rename to packages/stateless/components/dao/tabs/ProposalsTab.tsx diff --git a/packages/ui/components/dao/tabs/SubDaosTab.stories.tsx b/packages/stateless/components/dao/tabs/SubDaosTab.stories.tsx similarity index 91% rename from packages/ui/components/dao/tabs/SubDaosTab.stories.tsx rename to packages/stateless/components/dao/tabs/SubDaosTab.stories.tsx index 528273131..e64916cca 100644 --- a/packages/ui/components/dao/tabs/SubDaosTab.stories.tsx +++ b/packages/stateless/components/dao/tabs/SubDaosTab.stories.tsx @@ -2,14 +2,14 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { useState } from 'react' import { DaoPageWrapperDecorator } from '@dao-dao/storybook/decorators' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { DaoCard } from '../DaoCard' import { makeProps as makeDaoCardProps } from '../DaoCard.stories' import { SubDaosTab } from './SubDaosTab' export default { - title: 'DAO DAO / packages / ui / components / dao / tabs / SubDaosTab', + title: 'DAO DAO / packages / stateless / components / dao / tabs / SubDaosTab', component: SubDaosTab, decorators: [DaoPageWrapperDecorator], } as ComponentMeta diff --git a/packages/ui/components/dao/tabs/SubDaosTab.tsx b/packages/stateless/components/dao/tabs/SubDaosTab.tsx similarity index 100% rename from packages/ui/components/dao/tabs/SubDaosTab.tsx rename to packages/stateless/components/dao/tabs/SubDaosTab.tsx diff --git a/packages/ui/components/dao/tabs/TreasuryAndNftsTab.stories.tsx b/packages/stateless/components/dao/tabs/TreasuryAndNftsTab.stories.tsx similarity index 94% rename from packages/ui/components/dao/tabs/TreasuryAndNftsTab.stories.tsx rename to packages/stateless/components/dao/tabs/TreasuryAndNftsTab.stories.tsx index 934b03435..ecc3e3bc4 100644 --- a/packages/ui/components/dao/tabs/TreasuryAndNftsTab.stories.tsx +++ b/packages/stateless/components/dao/tabs/TreasuryAndNftsTab.stories.tsx @@ -10,7 +10,7 @@ import { TreasuryAndNftsTab } from './TreasuryAndNftsTab' export default { title: - 'DAO DAO / packages / ui / components / dao / tabs / TreasuryAndNftsTab', + 'DAO DAO / packages / stateless / components / dao / tabs / TreasuryAndNftsTab', component: TreasuryAndNftsTab, decorators: [DaoPageWrapperDecorator], } as ComponentMeta diff --git a/packages/ui/components/dao/tabs/TreasuryAndNftsTab.tsx b/packages/stateless/components/dao/tabs/TreasuryAndNftsTab.tsx similarity index 100% rename from packages/ui/components/dao/tabs/TreasuryAndNftsTab.tsx rename to packages/stateless/components/dao/tabs/TreasuryAndNftsTab.tsx diff --git a/packages/ui/components/dao/tabs/index.tsx b/packages/stateless/components/dao/tabs/index.tsx similarity index 100% rename from packages/ui/components/dao/tabs/index.tsx rename to packages/stateless/components/dao/tabs/index.tsx diff --git a/packages/ui/components/emoji.tsx b/packages/stateless/components/emoji.tsx similarity index 100% rename from packages/ui/components/emoji.tsx rename to packages/stateless/components/emoji.tsx diff --git a/packages/ui/components/icon_buttons/DropdownIconButton.tsx b/packages/stateless/components/icon_buttons/DropdownIconButton.tsx similarity index 100% rename from packages/ui/components/icon_buttons/DropdownIconButton.tsx rename to packages/stateless/components/icon_buttons/DropdownIconButton.tsx diff --git a/packages/ui/components/icon_buttons/IconButton.stories.tsx b/packages/stateless/components/icon_buttons/IconButton.stories.tsx similarity index 91% rename from packages/ui/components/icon_buttons/IconButton.stories.tsx rename to packages/stateless/components/icon_buttons/IconButton.stories.tsx index 40320e134..171a64d7c 100644 --- a/packages/ui/components/icon_buttons/IconButton.stories.tsx +++ b/packages/stateless/components/icon_buttons/IconButton.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { IconButton } from './IconButton' export default { - title: 'DAO DAO / packages / ui / components / icon_buttons / IconButton', + title: 'DAO DAO / packages / stateless / components / icon_buttons / IconButton', component: IconButton, } as ComponentMeta diff --git a/packages/ui/components/icon_buttons/IconButton.tsx b/packages/stateless/components/icon_buttons/IconButton.tsx similarity index 100% rename from packages/ui/components/icon_buttons/IconButton.tsx rename to packages/stateless/components/icon_buttons/IconButton.tsx diff --git a/packages/ui/components/icon_buttons/IconButtonLink.stories.tsx b/packages/stateless/components/icon_buttons/IconButtonLink.stories.tsx similarity index 91% rename from packages/ui/components/icon_buttons/IconButtonLink.stories.tsx rename to packages/stateless/components/icon_buttons/IconButtonLink.stories.tsx index e3fbfb395..ae6dac1f9 100644 --- a/packages/ui/components/icon_buttons/IconButtonLink.stories.tsx +++ b/packages/stateless/components/icon_buttons/IconButtonLink.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { IconButtonLink } from './IconButtonLink' export default { - title: 'DAO DAO / packages / ui / components / icon_buttons / IconButtonLink', + title: 'DAO DAO / packages / stateless / components / icon_buttons / IconButtonLink', component: IconButtonLink, } as ComponentMeta diff --git a/packages/ui/components/icon_buttons/IconButtonLink.tsx b/packages/stateless/components/icon_buttons/IconButtonLink.tsx similarity index 100% rename from packages/ui/components/icon_buttons/IconButtonLink.tsx rename to packages/stateless/components/icon_buttons/IconButtonLink.tsx diff --git a/packages/ui/components/icon_buttons/IconButtonifier.tsx b/packages/stateless/components/icon_buttons/IconButtonifier.tsx similarity index 100% rename from packages/ui/components/icon_buttons/IconButtonifier.tsx rename to packages/stateless/components/icon_buttons/IconButtonifier.tsx diff --git a/packages/ui/components/icon_buttons/ThemeToggle.stories.tsx b/packages/stateless/components/icon_buttons/ThemeToggle.stories.tsx similarity index 85% rename from packages/ui/components/icon_buttons/ThemeToggle.stories.tsx rename to packages/stateless/components/icon_buttons/ThemeToggle.stories.tsx index e960e10e1..8763e1066 100644 --- a/packages/ui/components/icon_buttons/ThemeToggle.stories.tsx +++ b/packages/stateless/components/icon_buttons/ThemeToggle.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ThemeToggle } from './ThemeToggle' export default { - title: 'DAO DAO / packages / ui / components / icon_buttons / ThemeToggle', + title: 'DAO DAO / packages / stateless / components / icon_buttons / ThemeToggle', component: ThemeToggle, } as ComponentMeta diff --git a/packages/ui/components/icon_buttons/ThemeToggle.tsx b/packages/stateless/components/icon_buttons/ThemeToggle.tsx similarity index 100% rename from packages/ui/components/icon_buttons/ThemeToggle.tsx rename to packages/stateless/components/icon_buttons/ThemeToggle.tsx diff --git a/packages/ui/components/icon_buttons/index.ts b/packages/stateless/components/icon_buttons/index.ts similarity index 100% rename from packages/ui/components/icon_buttons/index.ts rename to packages/stateless/components/icon_buttons/index.ts diff --git a/packages/ui/components/icons/CrownIcon.tsx b/packages/stateless/components/icons/CrownIcon.tsx similarity index 100% rename from packages/ui/components/icons/CrownIcon.tsx rename to packages/stateless/components/icons/CrownIcon.tsx diff --git a/packages/ui/components/icons/DiscordIcon.tsx b/packages/stateless/components/icons/DiscordIcon.tsx similarity index 100% rename from packages/ui/components/icons/DiscordIcon.tsx rename to packages/stateless/components/icons/DiscordIcon.tsx diff --git a/packages/ui/components/icons/GithubIcon.tsx b/packages/stateless/components/icons/GithubIcon.tsx similarity index 100% rename from packages/ui/components/icons/GithubIcon.tsx rename to packages/stateless/components/icons/GithubIcon.tsx diff --git a/packages/ui/components/icons/TwitterIcon.tsx b/packages/stateless/components/icons/TwitterIcon.tsx similarity index 100% rename from packages/ui/components/icons/TwitterIcon.tsx rename to packages/stateless/components/icons/TwitterIcon.tsx diff --git a/packages/ui/components/icons/index.ts b/packages/stateless/components/icons/index.ts similarity index 100% rename from packages/ui/components/icons/index.ts rename to packages/stateless/components/icons/index.ts diff --git a/packages/ui/components/index.tsx b/packages/stateless/components/index.tsx similarity index 100% rename from packages/ui/components/index.tsx rename to packages/stateless/components/index.tsx diff --git a/packages/ui/components/inputs/AddressInput.stories.tsx b/packages/stateless/components/inputs/AddressInput.stories.tsx similarity index 86% rename from packages/ui/components/inputs/AddressInput.stories.tsx rename to packages/stateless/components/inputs/AddressInput.stories.tsx index 877341999..028878594 100644 --- a/packages/ui/components/inputs/AddressInput.stories.tsx +++ b/packages/stateless/components/inputs/AddressInput.stories.tsx @@ -5,7 +5,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { AddressInput } from './AddressInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / AddressInput', + title: 'DAO DAO / packages / stateless / components / inputs / AddressInput', component: AddressInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/AddressInput.tsx b/packages/stateless/components/inputs/AddressInput.tsx similarity index 100% rename from packages/ui/components/inputs/AddressInput.tsx rename to packages/stateless/components/inputs/AddressInput.tsx diff --git a/packages/ui/components/inputs/Checkbox.stories.tsx b/packages/stateless/components/inputs/Checkbox.stories.tsx similarity index 91% rename from packages/ui/components/inputs/Checkbox.stories.tsx rename to packages/stateless/components/inputs/Checkbox.stories.tsx index 8bc8f73f7..1470d1cac 100644 --- a/packages/ui/components/inputs/Checkbox.stories.tsx +++ b/packages/stateless/components/inputs/Checkbox.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { Checkbox } from './Checkbox' export default { - title: 'DAO DAO / packages / ui / components / inputs / Checkbox', + title: 'DAO DAO / packages / stateless / components / inputs / Checkbox', component: Checkbox, } as ComponentMeta diff --git a/packages/ui/components/inputs/Checkbox.tsx b/packages/stateless/components/inputs/Checkbox.tsx similarity index 100% rename from packages/ui/components/inputs/Checkbox.tsx rename to packages/stateless/components/inputs/Checkbox.tsx diff --git a/packages/ui/components/inputs/CodeMirrorInput.stories.tsx b/packages/stateless/components/inputs/CodeMirrorInput.stories.tsx similarity index 88% rename from packages/ui/components/inputs/CodeMirrorInput.stories.tsx rename to packages/stateless/components/inputs/CodeMirrorInput.stories.tsx index c1e704d88..aa9333c74 100644 --- a/packages/ui/components/inputs/CodeMirrorInput.stories.tsx +++ b/packages/stateless/components/inputs/CodeMirrorInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { CodeMirrorInput } from './CodeMirrorInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / CodeMirrorInput', + title: 'DAO DAO / packages / stateless / components / inputs / CodeMirrorInput', component: CodeMirrorInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/CodeMirrorInput.tsx b/packages/stateless/components/inputs/CodeMirrorInput.tsx similarity index 100% rename from packages/ui/components/inputs/CodeMirrorInput.tsx rename to packages/stateless/components/inputs/CodeMirrorInput.tsx diff --git a/packages/ui/components/inputs/Dropdown.stories.tsx b/packages/stateless/components/inputs/Dropdown.stories.tsx similarity index 96% rename from packages/ui/components/inputs/Dropdown.stories.tsx rename to packages/stateless/components/inputs/Dropdown.stories.tsx index e99588378..5acd96e36 100644 --- a/packages/ui/components/inputs/Dropdown.stories.tsx +++ b/packages/stateless/components/inputs/Dropdown.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { Dropdown } from './Dropdown' export default { - title: 'DAO DAO / packages / ui / components / inputs / Dropdown', + title: 'DAO DAO / packages / stateless / components / inputs / Dropdown', component: Dropdown, } as ComponentMeta diff --git a/packages/ui/components/inputs/Dropdown.tsx b/packages/stateless/components/inputs/Dropdown.tsx similarity index 100% rename from packages/ui/components/inputs/Dropdown.tsx rename to packages/stateless/components/inputs/Dropdown.tsx diff --git a/packages/ui/components/inputs/ImageSelector.ImageSelector.stories.tsx b/packages/stateless/components/inputs/ImageSelector.ImageSelector.stories.tsx similarity index 88% rename from packages/ui/components/inputs/ImageSelector.ImageSelector.stories.tsx rename to packages/stateless/components/inputs/ImageSelector.ImageSelector.stories.tsx index eeb7c9307..d52929833 100644 --- a/packages/ui/components/inputs/ImageSelector.ImageSelector.stories.tsx +++ b/packages/stateless/components/inputs/ImageSelector.ImageSelector.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { ImageSelector } from './ImageSelector' export default { - title: 'DAO DAO / packages / ui / components / inputs / ImageSelector', + title: 'DAO DAO / packages / stateless / components / inputs / ImageSelector', component: ImageSelector, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx b/packages/stateless/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx similarity index 88% rename from packages/ui/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx rename to packages/stateless/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx index 8cce5ee4a..263841b45 100644 --- a/packages/ui/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx +++ b/packages/stateless/components/inputs/ImageSelector.ImageSelectorModal.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { ImageSelectorModal } from './ImageSelector' export default { - title: 'DAO DAO / packages / ui / components / inputs / ImageSelectorModal', + title: 'DAO DAO / packages / stateless / components / inputs / ImageSelectorModal', component: ImageSelectorModal, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/ImageSelector.tsx b/packages/stateless/components/inputs/ImageSelector.tsx similarity index 100% rename from packages/ui/components/inputs/ImageSelector.tsx rename to packages/stateless/components/inputs/ImageSelector.tsx diff --git a/packages/ui/components/inputs/InputErrorMessage.stories.tsx b/packages/stateless/components/inputs/InputErrorMessage.stories.tsx similarity index 84% rename from packages/ui/components/inputs/InputErrorMessage.stories.tsx rename to packages/stateless/components/inputs/InputErrorMessage.stories.tsx index 9f3ca17b1..e5b1a18cc 100644 --- a/packages/ui/components/inputs/InputErrorMessage.stories.tsx +++ b/packages/stateless/components/inputs/InputErrorMessage.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { InputErrorMessage } from './InputErrorMessage' export default { - title: 'DAO DAO / packages / ui / components / inputs / InputErrorMessage', + title: 'DAO DAO / packages / stateless / components / inputs / InputErrorMessage', component: InputErrorMessage, } as ComponentMeta diff --git a/packages/ui/components/inputs/InputErrorMessage.tsx b/packages/stateless/components/inputs/InputErrorMessage.tsx similarity index 100% rename from packages/ui/components/inputs/InputErrorMessage.tsx rename to packages/stateless/components/inputs/InputErrorMessage.tsx diff --git a/packages/ui/components/inputs/InputLabel.stories.tsx b/packages/stateless/components/inputs/InputLabel.stories.tsx similarity index 83% rename from packages/ui/components/inputs/InputLabel.stories.tsx rename to packages/stateless/components/inputs/InputLabel.stories.tsx index caac1c241..bf6dabd6e 100644 --- a/packages/ui/components/inputs/InputLabel.stories.tsx +++ b/packages/stateless/components/inputs/InputLabel.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { InputLabel } from './InputLabel' export default { - title: 'DAO DAO / packages / ui / components / inputs / InputLabel', + title: 'DAO DAO / packages / stateless / components / inputs / InputLabel', component: InputLabel, } as ComponentMeta diff --git a/packages/ui/components/inputs/InputLabel.tsx b/packages/stateless/components/inputs/InputLabel.tsx similarity index 100% rename from packages/ui/components/inputs/InputLabel.tsx rename to packages/stateless/components/inputs/InputLabel.tsx diff --git a/packages/ui/components/inputs/InputThemedText.stories.tsx b/packages/stateless/components/inputs/InputThemedText.stories.tsx similarity index 83% rename from packages/ui/components/inputs/InputThemedText.stories.tsx rename to packages/stateless/components/inputs/InputThemedText.stories.tsx index 93409527f..e559e7c85 100644 --- a/packages/ui/components/inputs/InputThemedText.stories.tsx +++ b/packages/stateless/components/inputs/InputThemedText.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { InputThemedText } from './InputThemedText' export default { - title: 'DAO DAO / packages / ui / components / inputs / InputThemedText', + title: 'DAO DAO / packages / stateless / components / inputs / InputThemedText', component: InputThemedText, } as ComponentMeta diff --git a/packages/ui/components/inputs/InputThemedText.tsx b/packages/stateless/components/inputs/InputThemedText.tsx similarity index 100% rename from packages/ui/components/inputs/InputThemedText.tsx rename to packages/stateless/components/inputs/InputThemedText.tsx diff --git a/packages/ui/components/inputs/NumberInput.stories.tsx b/packages/stateless/components/inputs/NumberInput.stories.tsx similarity index 93% rename from packages/ui/components/inputs/NumberInput.stories.tsx rename to packages/stateless/components/inputs/NumberInput.stories.tsx index f582e1fad..22108d111 100644 --- a/packages/ui/components/inputs/NumberInput.stories.tsx +++ b/packages/stateless/components/inputs/NumberInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { NumberInput } from './NumberInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / NumberInput', + title: 'DAO DAO / packages / stateless / components / inputs / NumberInput', component: NumberInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/NumberInput.tsx b/packages/stateless/components/inputs/NumberInput.tsx similarity index 100% rename from packages/ui/components/inputs/NumberInput.tsx rename to packages/stateless/components/inputs/NumberInput.tsx diff --git a/packages/ui/components/inputs/RadioInput.RadioButton.stories.tsx b/packages/stateless/components/inputs/RadioInput.RadioButton.stories.tsx similarity index 85% rename from packages/ui/components/inputs/RadioInput.RadioButton.stories.tsx rename to packages/stateless/components/inputs/RadioInput.RadioButton.stories.tsx index 4413bf009..a67641386 100644 --- a/packages/ui/components/inputs/RadioInput.RadioButton.stories.tsx +++ b/packages/stateless/components/inputs/RadioInput.RadioButton.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { RadioButton } from './RadioInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / RadioButton', + title: 'DAO DAO / packages / stateless / components / inputs / RadioButton', component: RadioButton, } as ComponentMeta diff --git a/packages/ui/components/inputs/RadioInput.RadioInput.stories.tsx b/packages/stateless/components/inputs/RadioInput.RadioInput.stories.tsx similarity index 90% rename from packages/ui/components/inputs/RadioInput.RadioInput.stories.tsx rename to packages/stateless/components/inputs/RadioInput.RadioInput.stories.tsx index 2fe746918..91ccfb485 100644 --- a/packages/ui/components/inputs/RadioInput.RadioInput.stories.tsx +++ b/packages/stateless/components/inputs/RadioInput.RadioInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { RadioInput } from './RadioInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / RadioInput', + title: 'DAO DAO / packages / stateless / components / inputs / RadioInput', component: RadioInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/RadioInput.tsx b/packages/stateless/components/inputs/RadioInput.tsx similarity index 100% rename from packages/ui/components/inputs/RadioInput.tsx rename to packages/stateless/components/inputs/RadioInput.tsx diff --git a/packages/ui/components/inputs/SearchBar.stories.tsx b/packages/stateless/components/inputs/SearchBar.stories.tsx similarity index 84% rename from packages/ui/components/inputs/SearchBar.stories.tsx rename to packages/stateless/components/inputs/SearchBar.stories.tsx index 2183bb529..73836e01c 100644 --- a/packages/ui/components/inputs/SearchBar.stories.tsx +++ b/packages/stateless/components/inputs/SearchBar.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SearchBar } from './SearchBar' export default { - title: 'DAO DAO / packages / ui / components / inputs / SearchBar', + title: 'DAO DAO / packages / stateless / components / inputs / SearchBar', component: SearchBar, } as ComponentMeta diff --git a/packages/ui/components/inputs/SearchBar.tsx b/packages/stateless/components/inputs/SearchBar.tsx similarity index 100% rename from packages/ui/components/inputs/SearchBar.tsx rename to packages/stateless/components/inputs/SearchBar.tsx diff --git a/packages/ui/components/inputs/SegmentedControls.stories.tsx b/packages/stateless/components/inputs/SegmentedControls.stories.tsx similarity index 91% rename from packages/ui/components/inputs/SegmentedControls.stories.tsx rename to packages/stateless/components/inputs/SegmentedControls.stories.tsx index 0dfc27851..43ecbd32f 100644 --- a/packages/ui/components/inputs/SegmentedControls.stories.tsx +++ b/packages/stateless/components/inputs/SegmentedControls.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { SegmentedControls } from './SegmentedControls' export default { - title: 'DAO DAO / packages / ui / components / inputs / SegmentedControls', + title: 'DAO DAO / packages / stateless / components / inputs / SegmentedControls', component: SegmentedControls, } as ComponentMeta diff --git a/packages/ui/components/inputs/SegmentedControls.tsx b/packages/stateless/components/inputs/SegmentedControls.tsx similarity index 100% rename from packages/ui/components/inputs/SegmentedControls.tsx rename to packages/stateless/components/inputs/SegmentedControls.tsx diff --git a/packages/ui/components/inputs/SelectInput.stories.tsx b/packages/stateless/components/inputs/SelectInput.stories.tsx similarity index 91% rename from packages/ui/components/inputs/SelectInput.stories.tsx rename to packages/stateless/components/inputs/SelectInput.stories.tsx index c293be49d..e00d57dae 100644 --- a/packages/ui/components/inputs/SelectInput.stories.tsx +++ b/packages/stateless/components/inputs/SelectInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { SelectInput } from './SelectInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / SelectInput', + title: 'DAO DAO / packages / stateless / components / inputs / SelectInput', component: SelectInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/SelectInput.tsx b/packages/stateless/components/inputs/SelectInput.tsx similarity index 100% rename from packages/ui/components/inputs/SelectInput.tsx rename to packages/stateless/components/inputs/SelectInput.tsx diff --git a/packages/ui/components/inputs/Switch.FormSwitch.stories.tsx b/packages/stateless/components/inputs/Switch.FormSwitch.stories.tsx similarity index 90% rename from packages/ui/components/inputs/Switch.FormSwitch.stories.tsx rename to packages/stateless/components/inputs/Switch.FormSwitch.stories.tsx index 2de1c69fb..7aff249ce 100644 --- a/packages/ui/components/inputs/Switch.FormSwitch.stories.tsx +++ b/packages/stateless/components/inputs/Switch.FormSwitch.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { FormSwitch } from './Switch' export default { - title: 'DAO DAO / packages / ui / components / inputs / FormSwitch', + title: 'DAO DAO / packages / stateless / components / inputs / FormSwitch', component: FormSwitch, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/Switch.FormSwitchCard.stories.tsx b/packages/stateless/components/inputs/Switch.FormSwitchCard.stories.tsx similarity index 91% rename from packages/ui/components/inputs/Switch.FormSwitchCard.stories.tsx rename to packages/stateless/components/inputs/Switch.FormSwitchCard.stories.tsx index aa61ab164..33b165719 100644 --- a/packages/ui/components/inputs/Switch.FormSwitchCard.stories.tsx +++ b/packages/stateless/components/inputs/Switch.FormSwitchCard.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { FormSwitchCard } from './Switch' export default { - title: 'DAO DAO / packages / ui / components / inputs / FormSwitchCard', + title: 'DAO DAO / packages / stateless / components / inputs / FormSwitchCard', component: FormSwitchCard, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/Switch.Switch.stories.tsx b/packages/stateless/components/inputs/Switch.Switch.stories.tsx similarity index 84% rename from packages/ui/components/inputs/Switch.Switch.stories.tsx rename to packages/stateless/components/inputs/Switch.Switch.stories.tsx index 6a1b67d98..cd00a6d49 100644 --- a/packages/ui/components/inputs/Switch.Switch.stories.tsx +++ b/packages/stateless/components/inputs/Switch.Switch.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Switch } from './Switch' export default { - title: 'DAO DAO / packages / ui / components / inputs / Switch', + title: 'DAO DAO / packages / stateless / components / inputs / Switch', component: Switch, } as ComponentMeta diff --git a/packages/ui/components/inputs/Switch.SwitchCard.stories.tsx b/packages/stateless/components/inputs/Switch.SwitchCard.stories.tsx similarity index 86% rename from packages/ui/components/inputs/Switch.SwitchCard.stories.tsx rename to packages/stateless/components/inputs/Switch.SwitchCard.stories.tsx index 263d2e3b6..866a7361d 100644 --- a/packages/ui/components/inputs/Switch.SwitchCard.stories.tsx +++ b/packages/stateless/components/inputs/Switch.SwitchCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SwitchCard } from './Switch' export default { - title: 'DAO DAO / packages / ui / components / inputs / SwitchCard', + title: 'DAO DAO / packages / stateless / components / inputs / SwitchCard', component: SwitchCard, } as ComponentMeta diff --git a/packages/ui/components/inputs/Switch.tsx b/packages/stateless/components/inputs/Switch.tsx similarity index 100% rename from packages/ui/components/inputs/Switch.tsx rename to packages/stateless/components/inputs/Switch.tsx diff --git a/packages/ui/components/inputs/TextAreaInput.stories.tsx b/packages/stateless/components/inputs/TextAreaInput.stories.tsx similarity index 89% rename from packages/ui/components/inputs/TextAreaInput.stories.tsx rename to packages/stateless/components/inputs/TextAreaInput.stories.tsx index e76a591d8..84e8e41ea 100644 --- a/packages/ui/components/inputs/TextAreaInput.stories.tsx +++ b/packages/stateless/components/inputs/TextAreaInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { TextAreaInput } from './TextAreaInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / TextAreaInput', + title: 'DAO DAO / packages / stateless / components / inputs / TextAreaInput', component: TextAreaInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/TextAreaInput.tsx b/packages/stateless/components/inputs/TextAreaInput.tsx similarity index 100% rename from packages/ui/components/inputs/TextAreaInput.tsx rename to packages/stateless/components/inputs/TextAreaInput.tsx diff --git a/packages/ui/components/inputs/TextInput.stories.tsx b/packages/stateless/components/inputs/TextInput.stories.tsx similarity index 89% rename from packages/ui/components/inputs/TextInput.stories.tsx rename to packages/stateless/components/inputs/TextInput.stories.tsx index 01ae31466..4862269e3 100644 --- a/packages/ui/components/inputs/TextInput.stories.tsx +++ b/packages/stateless/components/inputs/TextInput.stories.tsx @@ -6,7 +6,7 @@ import { ReactHookFormDecorator } from '@dao-dao/storybook/decorators' import { TextInput } from './TextInput' export default { - title: 'DAO DAO / packages / ui / components / inputs / TextInput', + title: 'DAO DAO / packages / stateless / components / inputs / TextInput', component: TextInput, decorators: [ReactHookFormDecorator], } as ComponentMeta diff --git a/packages/ui/components/inputs/TextInput.tsx b/packages/stateless/components/inputs/TextInput.tsx similarity index 100% rename from packages/ui/components/inputs/TextInput.tsx rename to packages/stateless/components/inputs/TextInput.tsx diff --git a/packages/ui/components/inputs/index.tsx b/packages/stateless/components/inputs/index.tsx similarity index 100% rename from packages/ui/components/inputs/index.tsx rename to packages/stateless/components/inputs/index.tsx diff --git a/packages/ui/components/layout/AppLayout.stories.tsx b/packages/stateless/components/layout/AppLayout.stories.tsx similarity index 97% rename from packages/ui/components/layout/AppLayout.stories.tsx rename to packages/stateless/components/layout/AppLayout.stories.tsx index e69e2c6c3..6fae7bf9c 100644 --- a/packages/ui/components/layout/AppLayout.stories.tsx +++ b/packages/stateless/components/layout/AppLayout.stories.tsx @@ -11,7 +11,7 @@ import { Default as PageHeaderStory } from './PageHeader.stories' import { DefaultArgs as RightSidebarStoryArgs } from './RightSidebar.stories' export default { - title: 'DAO DAO / packages / ui / components / layout / AppLayout', + title: 'DAO DAO / packages / stateless / components / layout / AppLayout', component: AppLayout, excludeStories: ['DefaultArgs'], } as ComponentMeta diff --git a/packages/ui/components/layout/AppLayout.tsx b/packages/stateless/components/layout/AppLayout.tsx similarity index 100% rename from packages/ui/components/layout/AppLayout.tsx rename to packages/stateless/components/layout/AppLayout.tsx diff --git a/packages/ui/components/layout/AppLayoutContext.tsx b/packages/stateless/components/layout/AppLayoutContext.tsx similarity index 100% rename from packages/ui/components/layout/AppLayoutContext.tsx rename to packages/stateless/components/layout/AppLayoutContext.tsx diff --git a/packages/ui/components/layout/Footer.stories.tsx b/packages/stateless/components/layout/Footer.stories.tsx similarity index 85% rename from packages/ui/components/layout/Footer.stories.tsx rename to packages/stateless/components/layout/Footer.stories.tsx index 5fffb51de..b57b68f93 100644 --- a/packages/ui/components/layout/Footer.stories.tsx +++ b/packages/stateless/components/layout/Footer.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Footer } from './Footer' export default { - title: 'DAO DAO / packages / ui / components / layout / Footer', + title: 'DAO DAO / packages / stateless / components / layout / Footer', component: Footer, } as ComponentMeta diff --git a/packages/ui/components/layout/Footer.tsx b/packages/stateless/components/layout/Footer.tsx similarity index 100% rename from packages/ui/components/layout/Footer.tsx rename to packages/stateless/components/layout/Footer.tsx diff --git a/packages/ui/components/layout/Navigation.stories.tsx b/packages/stateless/components/layout/Navigation.stories.tsx similarity index 98% rename from packages/ui/components/layout/Navigation.stories.tsx rename to packages/stateless/components/layout/Navigation.stories.tsx index 9f80bfa0a..ed3b2e1d7 100644 --- a/packages/ui/components/layout/Navigation.stories.tsx +++ b/packages/stateless/components/layout/Navigation.stories.tsx @@ -6,7 +6,7 @@ import { makeAppLayoutContextDecorator } from '@dao-dao/storybook/decorators' import { Navigation, NavigationProps } from './Navigation' export default { - title: 'DAO DAO / packages / ui / components / layout / Navigation', + title: 'DAO DAO / packages / stateless / components / layout / Navigation', component: Navigation, decorators: [makeAppLayoutContextDecorator(true)], excludeStories: ['DefaultArgs'], diff --git a/packages/ui/components/layout/Navigation.tsx b/packages/stateless/components/layout/Navigation.tsx similarity index 100% rename from packages/ui/components/layout/Navigation.tsx rename to packages/stateless/components/layout/Navigation.tsx diff --git a/packages/ui/components/layout/PageHeader.stories.tsx b/packages/stateless/components/layout/PageHeader.stories.tsx similarity index 90% rename from packages/ui/components/layout/PageHeader.stories.tsx rename to packages/stateless/components/layout/PageHeader.stories.tsx index 82ff26f07..6200226b6 100644 --- a/packages/ui/components/layout/PageHeader.stories.tsx +++ b/packages/stateless/components/layout/PageHeader.stories.tsx @@ -5,7 +5,7 @@ import { makeAppLayoutContextDecorator } from '@dao-dao/storybook/decorators' import { PageHeader } from './PageHeader' export default { - title: 'DAO DAO / packages / ui / components / layout / PageHeader', + title: 'DAO DAO / packages / stateless / components / layout / PageHeader', component: PageHeader, decorators: [makeAppLayoutContextDecorator(false)], } as ComponentMeta diff --git a/packages/ui/components/layout/PageHeader.tsx b/packages/stateless/components/layout/PageHeader.tsx similarity index 100% rename from packages/ui/components/layout/PageHeader.tsx rename to packages/stateless/components/layout/PageHeader.tsx diff --git a/packages/ui/components/layout/RightSidebar.stories.tsx b/packages/stateless/components/layout/RightSidebar.stories.tsx similarity index 91% rename from packages/ui/components/layout/RightSidebar.stories.tsx rename to packages/stateless/components/layout/RightSidebar.stories.tsx index 805bac203..6916da9a4 100644 --- a/packages/ui/components/layout/RightSidebar.stories.tsx +++ b/packages/stateless/components/layout/RightSidebar.stories.tsx @@ -7,7 +7,7 @@ import { SidebarWallet, SidebarWalletProps } from './SidebarWallet' import { Connected as ConnectedSidebarWalletStory } from './SidebarWallet.SidebarWallet.stories' export default { - title: 'DAO DAO / packages / ui / components / layout / RightSidebar', + title: 'DAO DAO / packages / stateless / components / layout / RightSidebar', component: RightSidebar, decorators: [makeAppLayoutContextDecorator(true)], excludeStories: ['DefaultArgs'], diff --git a/packages/ui/components/layout/RightSidebar.tsx b/packages/stateless/components/layout/RightSidebar.tsx similarity index 100% rename from packages/ui/components/layout/RightSidebar.tsx rename to packages/stateless/components/layout/RightSidebar.tsx diff --git a/packages/ui/components/layout/Row.stories.tsx b/packages/stateless/components/layout/Row.stories.tsx similarity index 90% rename from packages/ui/components/layout/Row.stories.tsx rename to packages/stateless/components/layout/Row.stories.tsx index a915193d4..6da4e55a5 100644 --- a/packages/ui/components/layout/Row.stories.tsx +++ b/packages/stateless/components/layout/Row.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Row } from './Row' export default { - title: 'DAO DAO / packages / ui / components / layout / Row', + title: 'DAO DAO / packages / stateless / components / layout / Row', component: Row, } as ComponentMeta diff --git a/packages/ui/components/layout/Row.tsx b/packages/stateless/components/layout/Row.tsx similarity index 100% rename from packages/ui/components/layout/Row.tsx rename to packages/stateless/components/layout/Row.tsx diff --git a/packages/ui/components/layout/SidebarWallet.SidebarWallet.stories.tsx b/packages/stateless/components/layout/SidebarWallet.SidebarWallet.stories.tsx similarity index 92% rename from packages/ui/components/layout/SidebarWallet.SidebarWallet.stories.tsx rename to packages/stateless/components/layout/SidebarWallet.SidebarWallet.stories.tsx index 9d0a97b7d..5d1402c21 100644 --- a/packages/ui/components/layout/SidebarWallet.SidebarWallet.stories.tsx +++ b/packages/stateless/components/layout/SidebarWallet.SidebarWallet.stories.tsx @@ -4,7 +4,7 @@ import { Default as ProfileHomeCardStory } from '../profile/ProfileHomeCard.stor import { SidebarWallet } from './SidebarWallet' export default { - title: 'DAO DAO / packages / ui / components / layout / SidebarWallet', + title: 'DAO DAO / packages / stateless / components / layout / SidebarWallet', component: SidebarWallet, } as ComponentMeta diff --git a/packages/ui/components/layout/SidebarWallet.tsx b/packages/stateless/components/layout/SidebarWallet.tsx similarity index 100% rename from packages/ui/components/layout/SidebarWallet.tsx rename to packages/stateless/components/layout/SidebarWallet.tsx diff --git a/packages/ui/components/layout/index.tsx b/packages/stateless/components/layout/index.tsx similarity index 100% rename from packages/ui/components/layout/index.tsx rename to packages/stateless/components/layout/index.tsx diff --git a/packages/ui/components/modals/BetaWarningModal.stories.tsx b/packages/stateless/components/modals/BetaWarningModal.stories.tsx similarity index 83% rename from packages/ui/components/modals/BetaWarningModal.stories.tsx rename to packages/stateless/components/modals/BetaWarningModal.stories.tsx index 33887c872..10881e895 100644 --- a/packages/ui/components/modals/BetaWarningModal.stories.tsx +++ b/packages/stateless/components/modals/BetaWarningModal.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { BetaWarningModal } from './BetaWarningModal' export default { - title: 'DAO DAO / packages / ui / components / modals / BetaWarningModal', + title: 'DAO DAO / packages / stateless / components / modals / BetaWarningModal', component: BetaWarningModal, } as ComponentMeta diff --git a/packages/ui/components/modals/BetaWarningModal.tsx b/packages/stateless/components/modals/BetaWarningModal.tsx similarity index 100% rename from packages/ui/components/modals/BetaWarningModal.tsx rename to packages/stateless/components/modals/BetaWarningModal.tsx diff --git a/packages/ui/components/modals/ItemCreatedModal.tsx b/packages/stateless/components/modals/ItemCreatedModal.tsx similarity index 100% rename from packages/ui/components/modals/ItemCreatedModal.tsx rename to packages/stateless/components/modals/ItemCreatedModal.tsx diff --git a/packages/ui/components/modals/Modal.stories.tsx b/packages/stateless/components/modals/Modal.stories.tsx similarity index 85% rename from packages/ui/components/modals/Modal.stories.tsx rename to packages/stateless/components/modals/Modal.stories.tsx index 3dbd63e8e..147e9495d 100644 --- a/packages/ui/components/modals/Modal.stories.tsx +++ b/packages/stateless/components/modals/Modal.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { Modal } from './Modal' export default { - title: 'DAO DAO / packages / ui / components / modals / Modal', + title: 'DAO DAO / packages / stateless / components / modals / Modal', component: Modal, } as ComponentMeta diff --git a/packages/ui/components/modals/Modal.tsx b/packages/stateless/components/modals/Modal.tsx similarity index 100% rename from packages/ui/components/modals/Modal.tsx rename to packages/stateless/components/modals/Modal.tsx diff --git a/packages/ui/components/modals/index.tsx b/packages/stateless/components/modals/index.tsx similarity index 100% rename from packages/ui/components/modals/index.tsx rename to packages/stateless/components/modals/index.tsx diff --git a/packages/ui/components/nft/NftCard.stories.tsx b/packages/stateless/components/nft/NftCard.stories.tsx similarity index 95% rename from packages/ui/components/nft/NftCard.stories.tsx rename to packages/stateless/components/nft/NftCard.stories.tsx index d912f54fd..092480ba3 100644 --- a/packages/ui/components/nft/NftCard.stories.tsx +++ b/packages/stateless/components/nft/NftCard.stories.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { NftCard, NftCardProps } from './NftCard' export default { - title: 'DAO DAO / packages / ui / components / nft / NftCard', + title: 'DAO DAO / packages / stateless / components / nft / NftCard', component: NftCard, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/nft/NftCard.tsx b/packages/stateless/components/nft/NftCard.tsx similarity index 100% rename from packages/ui/components/nft/NftCard.tsx rename to packages/stateless/components/nft/NftCard.tsx diff --git a/packages/ui/components/nft/NftSelectionModal.stories.tsx b/packages/stateless/components/nft/NftSelectionModal.stories.tsx similarity index 95% rename from packages/ui/components/nft/NftSelectionModal.stories.tsx rename to packages/stateless/components/nft/NftSelectionModal.stories.tsx index 743af30c4..102585664 100644 --- a/packages/ui/components/nft/NftSelectionModal.stories.tsx +++ b/packages/stateless/components/nft/NftSelectionModal.stories.tsx @@ -5,7 +5,7 @@ import { makeProps as makeNftCardProps } from './NftCard.stories' import { NftSelectionModal } from './NftSelectionModal' export default { - title: 'DAO DAO / packages / ui / components / nft / NftSelectionModal', + title: 'DAO DAO / packages / stateless / components / nft / NftSelectionModal', component: NftSelectionModal, } as ComponentMeta diff --git a/packages/ui/components/nft/NftSelectionModal.tsx b/packages/stateless/components/nft/NftSelectionModal.tsx similarity index 100% rename from packages/ui/components/nft/NftSelectionModal.tsx rename to packages/stateless/components/nft/NftSelectionModal.tsx diff --git a/packages/ui/components/nft/index.tsx b/packages/stateless/components/nft/index.tsx similarity index 100% rename from packages/ui/components/nft/index.tsx rename to packages/stateless/components/nft/index.tsx diff --git a/packages/ui/components/not_found/DaoNotFound.stories.tsx b/packages/stateless/components/not_found/DaoNotFound.stories.tsx similarity index 85% rename from packages/ui/components/not_found/DaoNotFound.stories.tsx rename to packages/stateless/components/not_found/DaoNotFound.stories.tsx index d1bc306dc..164146fcd 100644 --- a/packages/ui/components/not_found/DaoNotFound.stories.tsx +++ b/packages/stateless/components/not_found/DaoNotFound.stories.tsx @@ -5,7 +5,7 @@ import { Trans } from '@dao-dao/common' import { DaoNotFound } from './DaoNotFound' export default { - title: 'DAO DAO / packages / ui / components / not_found / DaoNotFound', + title: 'DAO DAO / packages / stateless / components / not_found / DaoNotFound', component: DaoNotFound, } as ComponentMeta diff --git a/packages/ui/components/not_found/DaoNotFound.tsx b/packages/stateless/components/not_found/DaoNotFound.tsx similarity index 100% rename from packages/ui/components/not_found/DaoNotFound.tsx rename to packages/stateless/components/not_found/DaoNotFound.tsx diff --git a/packages/ui/components/not_found/ProposalNotFound.stories.tsx b/packages/stateless/components/not_found/ProposalNotFound.stories.tsx similarity index 85% rename from packages/ui/components/not_found/ProposalNotFound.stories.tsx rename to packages/stateless/components/not_found/ProposalNotFound.stories.tsx index 2f1c2f780..40031f7c3 100644 --- a/packages/ui/components/not_found/ProposalNotFound.stories.tsx +++ b/packages/stateless/components/not_found/ProposalNotFound.stories.tsx @@ -5,7 +5,7 @@ import { Trans } from '@dao-dao/common' import { ProposalNotFound } from './ProposalNotFound' export default { - title: 'DAO DAO / packages / ui / components / not_found / ProposalNotFound', + title: 'DAO DAO / packages / stateless / components / not_found / ProposalNotFound', component: ProposalNotFound, } as ComponentMeta diff --git a/packages/ui/components/not_found/ProposalNotFound.tsx b/packages/stateless/components/not_found/ProposalNotFound.tsx similarity index 100% rename from packages/ui/components/not_found/ProposalNotFound.tsx rename to packages/stateless/components/not_found/ProposalNotFound.tsx diff --git a/packages/ui/components/not_found/index.tsx b/packages/stateless/components/not_found/index.tsx similarity index 100% rename from packages/ui/components/not_found/index.tsx rename to packages/stateless/components/not_found/index.tsx diff --git a/packages/ui/components/popup/ButtonPopup.stories.tsx b/packages/stateless/components/popup/ButtonPopup.stories.tsx similarity index 94% rename from packages/ui/components/popup/ButtonPopup.stories.tsx rename to packages/stateless/components/popup/ButtonPopup.stories.tsx index 2d67393dc..c494fdac2 100644 --- a/packages/ui/components/popup/ButtonPopup.stories.tsx +++ b/packages/stateless/components/popup/ButtonPopup.stories.tsx @@ -6,7 +6,7 @@ import { IconButton } from '../icon_buttons' import { ButtonPopup } from './ButtonPopup' export default { - title: 'DAO DAO / packages / ui / components / popup / ButtonPopup', + title: 'DAO DAO / packages / stateless / components / popup / ButtonPopup', component: ButtonPopup, } as ComponentMeta diff --git a/packages/ui/components/popup/ButtonPopup.tsx b/packages/stateless/components/popup/ButtonPopup.tsx similarity index 100% rename from packages/ui/components/popup/ButtonPopup.tsx rename to packages/stateless/components/popup/ButtonPopup.tsx diff --git a/packages/ui/components/popup/FilterableItemPopup.stories.tsx b/packages/stateless/components/popup/FilterableItemPopup.stories.tsx similarity index 94% rename from packages/ui/components/popup/FilterableItemPopup.stories.tsx rename to packages/stateless/components/popup/FilterableItemPopup.stories.tsx index 908f948cb..f0565a6e5 100644 --- a/packages/ui/components/popup/FilterableItemPopup.stories.tsx +++ b/packages/stateless/components/popup/FilterableItemPopup.stories.tsx @@ -11,7 +11,7 @@ import { Button } from '../buttons' import { FilterableItemPopup } from './FilterableItemPopup' export default { - title: 'DAO DAO / packages / ui / components / popup / FilterableItemPopup', + title: 'DAO DAO / packages / stateless / components / popup / FilterableItemPopup', component: FilterableItemPopup, } as ComponentMeta diff --git a/packages/ui/components/popup/FilterableItemPopup.tsx b/packages/stateless/components/popup/FilterableItemPopup.tsx similarity index 100% rename from packages/ui/components/popup/FilterableItemPopup.tsx rename to packages/stateless/components/popup/FilterableItemPopup.tsx diff --git a/packages/ui/components/popup/Popup.stories.tsx b/packages/stateless/components/popup/Popup.stories.tsx similarity index 93% rename from packages/ui/components/popup/Popup.stories.tsx rename to packages/stateless/components/popup/Popup.stories.tsx index 37ef70fd1..2c149c1ef 100644 --- a/packages/ui/components/popup/Popup.stories.tsx +++ b/packages/stateless/components/popup/Popup.stories.tsx @@ -5,7 +5,7 @@ import { IconButton } from '../icon_buttons' import { Popup } from './Popup' export default { - title: 'DAO DAO / packages / ui / components / popup / Popup', + title: 'DAO DAO / packages / stateless / components / popup / Popup', component: Popup, } as ComponentMeta diff --git a/packages/ui/components/popup/Popup.tsx b/packages/stateless/components/popup/Popup.tsx similarity index 100% rename from packages/ui/components/popup/Popup.tsx rename to packages/stateless/components/popup/Popup.tsx diff --git a/packages/ui/components/popup/index.tsx b/packages/stateless/components/popup/index.tsx similarity index 100% rename from packages/ui/components/popup/index.tsx rename to packages/stateless/components/popup/index.tsx diff --git a/packages/ui/components/profile/MembershipPill.stories.tsx b/packages/stateless/components/profile/MembershipPill.stories.tsx similarity index 85% rename from packages/ui/components/profile/MembershipPill.stories.tsx rename to packages/stateless/components/profile/MembershipPill.stories.tsx index 342ee7106..944c71f06 100644 --- a/packages/ui/components/profile/MembershipPill.stories.tsx +++ b/packages/stateless/components/profile/MembershipPill.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { MembershipPill } from './MembershipPill' export default { - title: 'DAO DAO / packages / ui / components / profile / MembershipPill', + title: 'DAO DAO / packages / stateless / components / profile / MembershipPill', component: MembershipPill, } as ComponentMeta diff --git a/packages/ui/components/profile/MembershipPill.tsx b/packages/stateless/components/profile/MembershipPill.tsx similarity index 100% rename from packages/ui/components/profile/MembershipPill.tsx rename to packages/stateless/components/profile/MembershipPill.tsx diff --git a/packages/ui/components/profile/ProfileCantVoteCard.stories.tsx b/packages/stateless/components/profile/ProfileCantVoteCard.stories.tsx similarity index 94% rename from packages/ui/components/profile/ProfileCantVoteCard.stories.tsx rename to packages/stateless/components/profile/ProfileCantVoteCard.stories.tsx index 9939c24a6..448f7317d 100644 --- a/packages/ui/components/profile/ProfileCantVoteCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileCantVoteCard.stories.tsx @@ -9,7 +9,7 @@ import { import { ProfileCantVoteCard } from './ProfileCantVoteCard' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileCantVoteCard', + title: 'DAO DAO / packages / stateless / components / profile / ProfileCantVoteCard', component: ProfileCantVoteCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileCantVoteCard.tsx b/packages/stateless/components/profile/ProfileCantVoteCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileCantVoteCard.tsx rename to packages/stateless/components/profile/ProfileCantVoteCard.tsx diff --git a/packages/ui/components/profile/ProfileCardWrapper.stories.tsx b/packages/stateless/components/profile/ProfileCardWrapper.stories.tsx similarity index 95% rename from packages/ui/components/profile/ProfileCardWrapper.stories.tsx rename to packages/stateless/components/profile/ProfileCardWrapper.stories.tsx index 435ac47c5..4335168bd 100644 --- a/packages/ui/components/profile/ProfileCardWrapper.stories.tsx +++ b/packages/stateless/components/profile/ProfileCardWrapper.stories.tsx @@ -4,7 +4,7 @@ import { MembershipPill } from './MembershipPill' import { ProfileCardWrapper } from './ProfileCardWrapper' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileCardWrapper', + title: 'DAO DAO / packages / stateless / components / profile / ProfileCardWrapper', component: ProfileCardWrapper, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileCardWrapper.tsx b/packages/stateless/components/profile/ProfileCardWrapper.tsx similarity index 100% rename from packages/ui/components/profile/ProfileCardWrapper.tsx rename to packages/stateless/components/profile/ProfileCardWrapper.tsx diff --git a/packages/ui/components/profile/ProfileDisconnectedCard.stories.tsx b/packages/stateless/components/profile/ProfileDisconnectedCard.stories.tsx similarity index 87% rename from packages/ui/components/profile/ProfileDisconnectedCard.stories.tsx rename to packages/stateless/components/profile/ProfileDisconnectedCard.stories.tsx index 860e89a74..3e637ddd7 100644 --- a/packages/ui/components/profile/ProfileDisconnectedCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileDisconnectedCard.stories.tsx @@ -4,7 +4,7 @@ import { ProfileDisconnectedCard } from './ProfileDisconnectedCard' export default { title: - 'DAO DAO / packages / ui / components / profile / ProfileDisconnectedCard', + 'DAO DAO / packages / stateless / components / profile / ProfileDisconnectedCard', component: ProfileDisconnectedCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileDisconnectedCard.tsx b/packages/stateless/components/profile/ProfileDisconnectedCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileDisconnectedCard.tsx rename to packages/stateless/components/profile/ProfileDisconnectedCard.tsx diff --git a/packages/ui/components/profile/ProfileHomeCard.stories.tsx b/packages/stateless/components/profile/ProfileHomeCard.stories.tsx similarity index 94% rename from packages/ui/components/profile/ProfileHomeCard.stories.tsx rename to packages/stateless/components/profile/ProfileHomeCard.stories.tsx index 6f655ea3a..1f86045a3 100644 --- a/packages/ui/components/profile/ProfileHomeCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileHomeCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProfileHomeCard } from './ProfileHomeCard' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileHomeCard', + title: 'DAO DAO / packages / stateless / components / profile / ProfileHomeCard', component: ProfileHomeCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileHomeCard.tsx b/packages/stateless/components/profile/ProfileHomeCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileHomeCard.tsx rename to packages/stateless/components/profile/ProfileHomeCard.tsx diff --git a/packages/ui/components/profile/ProfileImage.stories.tsx b/packages/stateless/components/profile/ProfileImage.stories.tsx similarity index 87% rename from packages/ui/components/profile/ProfileImage.stories.tsx rename to packages/stateless/components/profile/ProfileImage.stories.tsx index 2499cf97b..51c5b78b5 100644 --- a/packages/ui/components/profile/ProfileImage.stories.tsx +++ b/packages/stateless/components/profile/ProfileImage.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProfileImage } from './ProfileImage' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileImage', + title: 'DAO DAO / packages / stateless / components / profile / ProfileImage', component: ProfileImage, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileImage.tsx b/packages/stateless/components/profile/ProfileImage.tsx similarity index 100% rename from packages/ui/components/profile/ProfileImage.tsx rename to packages/stateless/components/profile/ProfileImage.tsx diff --git a/packages/ui/components/profile/ProfileMemberCard.stories.tsx b/packages/stateless/components/profile/ProfileMemberCard.stories.tsx similarity index 95% rename from packages/ui/components/profile/ProfileMemberCard.stories.tsx rename to packages/stateless/components/profile/ProfileMemberCard.stories.tsx index 501ac39c8..12f6b04da 100644 --- a/packages/ui/components/profile/ProfileMemberCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileMemberCard.stories.tsx @@ -8,7 +8,7 @@ import { UnstakingTaskStatus } from '../UnstakingStatus' import { ProfileMemberCard, ProfileMemberCardProps } from './ProfileMemberCard' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileMemberCard', + title: 'DAO DAO / packages / stateless / components / profile / ProfileMemberCard', component: ProfileMemberCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileMemberCard.tsx b/packages/stateless/components/profile/ProfileMemberCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileMemberCard.tsx rename to packages/stateless/components/profile/ProfileMemberCard.tsx diff --git a/packages/ui/components/profile/ProfileNewProposalCard.stories.tsx b/packages/stateless/components/profile/ProfileNewProposalCard.stories.tsx similarity index 96% rename from packages/ui/components/profile/ProfileNewProposalCard.stories.tsx rename to packages/stateless/components/profile/ProfileNewProposalCard.stories.tsx index 8f76580a2..5ae51d950 100644 --- a/packages/ui/components/profile/ProfileNewProposalCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileNewProposalCard.stories.tsx @@ -10,7 +10,7 @@ import { ProfileNewProposalCard } from './ProfileNewProposalCard' export default { title: - 'DAO DAO / packages / ui / components / profile / ProfileNewProposalCard', + 'DAO DAO / packages / stateless / components / profile / ProfileNewProposalCard', component: ProfileNewProposalCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileNewProposalCard.tsx b/packages/stateless/components/profile/ProfileNewProposalCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileNewProposalCard.tsx rename to packages/stateless/components/profile/ProfileNewProposalCard.tsx diff --git a/packages/ui/components/profile/ProfileNotMemberCard.stories.tsx b/packages/stateless/components/profile/ProfileNotMemberCard.stories.tsx similarity index 94% rename from packages/ui/components/profile/ProfileNotMemberCard.stories.tsx rename to packages/stateless/components/profile/ProfileNotMemberCard.stories.tsx index 90b34b813..5d48f83ef 100644 --- a/packages/ui/components/profile/ProfileNotMemberCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileNotMemberCard.stories.tsx @@ -7,7 +7,7 @@ import { ProfileNotMemberCard } from './ProfileNotMemberCard' export default { title: - 'DAO DAO / packages / ui / components / profile / ProfileNotMemberCard', + 'DAO DAO / packages / stateless / components / profile / ProfileNotMemberCard', component: ProfileNotMemberCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileNotMemberCard.tsx b/packages/stateless/components/profile/ProfileNotMemberCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileNotMemberCard.tsx rename to packages/stateless/components/profile/ProfileNotMemberCard.tsx diff --git a/packages/ui/components/profile/ProfileVoteButton.stories.tsx b/packages/stateless/components/profile/ProfileVoteButton.stories.tsx similarity index 90% rename from packages/ui/components/profile/ProfileVoteButton.stories.tsx rename to packages/stateless/components/profile/ProfileVoteButton.stories.tsx index fe2ae64a3..51549816a 100644 --- a/packages/ui/components/profile/ProfileVoteButton.stories.tsx +++ b/packages/stateless/components/profile/ProfileVoteButton.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProfileVoteButton } from './ProfileVoteButton' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileVoteButton', + title: 'DAO DAO / packages / stateless / components / profile / ProfileVoteButton', component: ProfileVoteButton, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileVoteButton.tsx b/packages/stateless/components/profile/ProfileVoteButton.tsx similarity index 100% rename from packages/ui/components/profile/ProfileVoteButton.tsx rename to packages/stateless/components/profile/ProfileVoteButton.tsx diff --git a/packages/ui/components/profile/ProfileVoteCard.stories.tsx b/packages/stateless/components/profile/ProfileVoteCard.stories.tsx similarity index 94% rename from packages/ui/components/profile/ProfileVoteCard.stories.tsx rename to packages/stateless/components/profile/ProfileVoteCard.stories.tsx index e564e554a..64faf5f07 100644 --- a/packages/ui/components/profile/ProfileVoteCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileVoteCard.stories.tsx @@ -6,7 +6,7 @@ import { Pending as ProposalWalletVoteStory } from '../proposal/ProposalWalletVo import { ProfileVoteCard } from './ProfileVoteCard' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileVoteCard', + title: 'DAO DAO / packages / stateless / components / profile / ProfileVoteCard', component: ProfileVoteCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileVoteCard.tsx b/packages/stateless/components/profile/ProfileVoteCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileVoteCard.tsx rename to packages/stateless/components/profile/ProfileVoteCard.tsx diff --git a/packages/ui/components/profile/ProfileVotedCard.stories.tsx b/packages/stateless/components/profile/ProfileVotedCard.stories.tsx similarity index 92% rename from packages/ui/components/profile/ProfileVotedCard.stories.tsx rename to packages/stateless/components/profile/ProfileVotedCard.stories.tsx index e17879957..8ba9247d0 100644 --- a/packages/ui/components/profile/ProfileVotedCard.stories.tsx +++ b/packages/stateless/components/profile/ProfileVotedCard.stories.tsx @@ -6,7 +6,7 @@ import { Vote } from '@dao-dao/types/contracts/CwdProposalSingle.common' import { ProfileVotedCard } from './ProfileVotedCard' export default { - title: 'DAO DAO / packages / ui / components / profile / ProfileVotedCard', + title: 'DAO DAO / packages / stateless / components / profile / ProfileVotedCard', component: ProfileVotedCard, } as ComponentMeta diff --git a/packages/ui/components/profile/ProfileVotedCard.tsx b/packages/stateless/components/profile/ProfileVotedCard.tsx similarity index 100% rename from packages/ui/components/profile/ProfileVotedCard.tsx rename to packages/stateless/components/profile/ProfileVotedCard.tsx diff --git a/packages/ui/components/profile/index.tsx b/packages/stateless/components/profile/index.tsx similarity index 100% rename from packages/ui/components/profile/index.tsx rename to packages/stateless/components/profile/index.tsx diff --git a/packages/ui/components/proposal/ProposalCard.stories.tsx b/packages/stateless/components/proposal/ProposalCard.stories.tsx similarity index 93% rename from packages/ui/components/proposal/ProposalCard.stories.tsx rename to packages/stateless/components/proposal/ProposalCard.stories.tsx index 9a4d4967c..102185a7d 100644 --- a/packages/ui/components/proposal/ProposalCard.stories.tsx +++ b/packages/stateless/components/proposal/ProposalCard.stories.tsx @@ -4,7 +4,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProposalCard, ProposalCardProps } from './ProposalCard' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalCard', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalCard', component: ProposalCard, excludeStories: ['makeProps'], } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalCard.tsx b/packages/stateless/components/proposal/ProposalCard.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalCard.tsx rename to packages/stateless/components/proposal/ProposalCard.tsx diff --git a/packages/ui/components/proposal/ProposalContainer.tsx b/packages/stateless/components/proposal/ProposalContainer.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalContainer.tsx rename to packages/stateless/components/proposal/ProposalContainer.tsx diff --git a/packages/ui/components/proposal/ProposalContentDisplay.tsx b/packages/stateless/components/proposal/ProposalContentDisplay.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalContentDisplay.tsx rename to packages/stateless/components/proposal/ProposalContentDisplay.tsx diff --git a/packages/ui/components/proposal/ProposalCreatedModal.stories.tsx b/packages/stateless/components/proposal/ProposalCreatedModal.stories.tsx similarity index 89% rename from packages/ui/components/proposal/ProposalCreatedModal.stories.tsx rename to packages/stateless/components/proposal/ProposalCreatedModal.stories.tsx index a9d1ff5b8..e01b00b67 100644 --- a/packages/ui/components/proposal/ProposalCreatedModal.stories.tsx +++ b/packages/stateless/components/proposal/ProposalCreatedModal.stories.tsx @@ -5,7 +5,7 @@ import { ProposalCreatedModal } from './ProposalCreatedModal' export default { title: - 'DAO DAO / packages / ui / components / proposal / ProposalCreatedModal', + 'DAO DAO / packages / stateless / components / proposal / ProposalCreatedModal', component: ProposalCreatedModal, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalCreatedModal.tsx b/packages/stateless/components/proposal/ProposalCreatedModal.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalCreatedModal.tsx rename to packages/stateless/components/proposal/ProposalCreatedModal.tsx diff --git a/packages/ui/components/proposal/ProposalIdDisplay.stories.tsx b/packages/stateless/components/proposal/ProposalIdDisplay.stories.tsx similarity index 83% rename from packages/ui/components/proposal/ProposalIdDisplay.stories.tsx rename to packages/stateless/components/proposal/ProposalIdDisplay.stories.tsx index 26fd4667d..11d0b4b6f 100644 --- a/packages/ui/components/proposal/ProposalIdDisplay.stories.tsx +++ b/packages/stateless/components/proposal/ProposalIdDisplay.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProposalIdDisplay } from './ProposalIdDisplay' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalIdDisplay', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalIdDisplay', component: ProposalIdDisplay, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalIdDisplay.tsx b/packages/stateless/components/proposal/ProposalIdDisplay.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalIdDisplay.tsx rename to packages/stateless/components/proposal/ProposalIdDisplay.tsx diff --git a/packages/ui/components/proposal/ProposalLine.ProposalLine.stories.tsx b/packages/stateless/components/proposal/ProposalLine.ProposalLine.stories.tsx similarity index 95% rename from packages/ui/components/proposal/ProposalLine.ProposalLine.stories.tsx rename to packages/stateless/components/proposal/ProposalLine.ProposalLine.stories.tsx index e34336d33..7943bb646 100644 --- a/packages/ui/components/proposal/ProposalLine.ProposalLine.stories.tsx +++ b/packages/stateless/components/proposal/ProposalLine.ProposalLine.stories.tsx @@ -14,7 +14,7 @@ import { import * as ProposalWalletVoteStories from './ProposalWalletVote.stories' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalLine', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalLine', component: ProposalLine, // Don't export helper function `makeProps`. excludeStories: ['makeProps'], diff --git a/packages/ui/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx b/packages/stateless/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx similarity index 81% rename from packages/ui/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx rename to packages/stateless/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx index 36599d263..6c02ef76c 100644 --- a/packages/ui/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx +++ b/packages/stateless/components/proposal/ProposalLine.ProposalLineLoader.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ProposalLineLoader } from './ProposalLine' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalLineLoader', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalLineLoader', component: ProposalLineLoader, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalLine.tsx b/packages/stateless/components/proposal/ProposalLine.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalLine.tsx rename to packages/stateless/components/proposal/ProposalLine.tsx diff --git a/packages/ui/components/proposal/ProposalList.stories.tsx b/packages/stateless/components/proposal/ProposalList.stories.tsx similarity index 95% rename from packages/ui/components/proposal/ProposalList.stories.tsx rename to packages/stateless/components/proposal/ProposalList.stories.tsx index b266be50b..39800ce56 100644 --- a/packages/ui/components/proposal/ProposalList.stories.tsx +++ b/packages/stateless/components/proposal/ProposalList.stories.tsx @@ -5,7 +5,7 @@ import { makeProps as makeProposalProps } from './ProposalLine.ProposalLine.stor import { ProposalList } from './ProposalList' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalList', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalList', component: ProposalList, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalList.tsx b/packages/stateless/components/proposal/ProposalList.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalList.tsx rename to packages/stateless/components/proposal/ProposalList.tsx diff --git a/packages/ui/components/proposal/ProposalStatusAndInfo.stories.tsx b/packages/stateless/components/proposal/ProposalStatusAndInfo.stories.tsx similarity index 96% rename from packages/ui/components/proposal/ProposalStatusAndInfo.stories.tsx rename to packages/stateless/components/proposal/ProposalStatusAndInfo.stories.tsx index 79d852c4f..24d2dae2a 100644 --- a/packages/ui/components/proposal/ProposalStatusAndInfo.stories.tsx +++ b/packages/stateless/components/proposal/ProposalStatusAndInfo.stories.tsx @@ -15,7 +15,7 @@ import { ProposalStatusAndInfo } from './ProposalStatusAndInfo' export default { title: - 'DAO DAO / packages / ui / components / proposal / ProposalStatusAndInfo', + 'DAO DAO / packages / stateless / components / proposal / ProposalStatusAndInfo', component: ProposalStatusAndInfo, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalStatusAndInfo.tsx b/packages/stateless/components/proposal/ProposalStatusAndInfo.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalStatusAndInfo.tsx rename to packages/stateless/components/proposal/ProposalStatusAndInfo.tsx diff --git a/packages/ui/components/proposal/ProposalVotes.stories.tsx b/packages/stateless/components/proposal/ProposalVotes.stories.tsx similarity index 95% rename from packages/ui/components/proposal/ProposalVotes.stories.tsx rename to packages/stateless/components/proposal/ProposalVotes.stories.tsx index bffc321de..76b2afd45 100644 --- a/packages/ui/components/proposal/ProposalVotes.stories.tsx +++ b/packages/stateless/components/proposal/ProposalVotes.stories.tsx @@ -8,7 +8,7 @@ import { ProfileDisplay } from '../ProfileDisplay' import { ProposalVotes, ProposalVotesProps } from './ProposalVotes' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalVotes', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalVotes', component: ProposalVotes, // Don't export helper function `makeProps`. excludeStories: ['makeProps'], diff --git a/packages/ui/components/proposal/ProposalVotes.tsx b/packages/stateless/components/proposal/ProposalVotes.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalVotes.tsx rename to packages/stateless/components/proposal/ProposalVotes.tsx diff --git a/packages/ui/components/proposal/ProposalWalletVote.stories.tsx b/packages/stateless/components/proposal/ProposalWalletVote.stories.tsx similarity index 94% rename from packages/ui/components/proposal/ProposalWalletVote.stories.tsx rename to packages/stateless/components/proposal/ProposalWalletVote.stories.tsx index 8ddcb1b49..7397af2b0 100644 --- a/packages/ui/components/proposal/ProposalWalletVote.stories.tsx +++ b/packages/stateless/components/proposal/ProposalWalletVote.stories.tsx @@ -6,7 +6,7 @@ import { Vote } from '@dao-dao/types/contracts/CwdProposalSingle.common' import { ProposalWalletVote } from './ProposalWalletVote' export default { - title: 'DAO DAO / packages / ui / components / proposal / ProposalWalletVote', + title: 'DAO DAO / packages / stateless / components / proposal / ProposalWalletVote', component: ProposalWalletVote, } as ComponentMeta diff --git a/packages/ui/components/proposal/ProposalWalletVote.tsx b/packages/stateless/components/proposal/ProposalWalletVote.tsx similarity index 100% rename from packages/ui/components/proposal/ProposalWalletVote.tsx rename to packages/stateless/components/proposal/ProposalWalletVote.tsx diff --git a/packages/ui/components/proposal/index.tsx b/packages/stateless/components/proposal/index.tsx similarity index 100% rename from packages/ui/components/proposal/index.tsx rename to packages/stateless/components/proposal/index.tsx diff --git a/packages/ui/components/splash/SplashAnnouncementCard.stories.tsx b/packages/stateless/components/splash/SplashAnnouncementCard.stories.tsx similarity index 83% rename from packages/ui/components/splash/SplashAnnouncementCard.stories.tsx rename to packages/stateless/components/splash/SplashAnnouncementCard.stories.tsx index 5e5e57a78..121fae332 100644 --- a/packages/ui/components/splash/SplashAnnouncementCard.stories.tsx +++ b/packages/stateless/components/splash/SplashAnnouncementCard.stories.tsx @@ -4,7 +4,7 @@ import { SplashAnnouncementCard } from './SplashAnnouncementCard' export default { title: - 'DAO DAO / packages / ui / components / splash / SplashAnnouncementCard', + 'DAO DAO / packages / stateless / components / splash / SplashAnnouncementCard', component: SplashAnnouncementCard, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashAnnouncementCard.tsx b/packages/stateless/components/splash/SplashAnnouncementCard.tsx similarity index 100% rename from packages/ui/components/splash/SplashAnnouncementCard.tsx rename to packages/stateless/components/splash/SplashAnnouncementCard.tsx diff --git a/packages/ui/components/splash/SplashCards.stories.tsx b/packages/stateless/components/splash/SplashCards.stories.tsx similarity index 80% rename from packages/ui/components/splash/SplashCards.stories.tsx rename to packages/stateless/components/splash/SplashCards.stories.tsx index f74c66f04..30c9d9fb8 100644 --- a/packages/ui/components/splash/SplashCards.stories.tsx +++ b/packages/stateless/components/splash/SplashCards.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SplashCards } from './SplashCards' export default { - title: 'DAO DAO / packages / ui / components / splash / SplashCards', + title: 'DAO DAO / packages / stateless / components / splash / SplashCards', component: SplashCards, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashCards.tsx b/packages/stateless/components/splash/SplashCards.tsx similarity index 100% rename from packages/ui/components/splash/SplashCards.tsx rename to packages/stateless/components/splash/SplashCards.tsx diff --git a/packages/ui/components/splash/SplashEnterAppButton.stories.tsx b/packages/stateless/components/splash/SplashEnterAppButton.stories.tsx similarity index 82% rename from packages/ui/components/splash/SplashEnterAppButton.stories.tsx rename to packages/stateless/components/splash/SplashEnterAppButton.stories.tsx index 942a0da75..57f4f0283 100644 --- a/packages/ui/components/splash/SplashEnterAppButton.stories.tsx +++ b/packages/stateless/components/splash/SplashEnterAppButton.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SplashEnterAppButton } from './SplashEnterAppButton' export default { - title: 'DAO DAO / packages / ui / components / splash / SplashEnterAppButton', + title: 'DAO DAO / packages / stateless / components / splash / SplashEnterAppButton', component: SplashEnterAppButton, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashEnterAppButton.tsx b/packages/stateless/components/splash/SplashEnterAppButton.tsx similarity index 100% rename from packages/ui/components/splash/SplashEnterAppButton.tsx rename to packages/stateless/components/splash/SplashEnterAppButton.tsx diff --git a/packages/ui/components/splash/SplashGradientWrapper.stories.tsx b/packages/stateless/components/splash/SplashGradientWrapper.stories.tsx similarity index 84% rename from packages/ui/components/splash/SplashGradientWrapper.stories.tsx rename to packages/stateless/components/splash/SplashGradientWrapper.stories.tsx index 8a8ce6d13..6edf4c08c 100644 --- a/packages/ui/components/splash/SplashGradientWrapper.stories.tsx +++ b/packages/stateless/components/splash/SplashGradientWrapper.stories.tsx @@ -4,7 +4,7 @@ import { SplashGradientWrapper } from './SplashGradientWrapper' export default { title: - 'DAO DAO / packages / ui / components / splash / SplashGradientWrapper', + 'DAO DAO / packages / stateless / components / splash / SplashGradientWrapper', component: SplashGradientWrapper, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashGradientWrapper.tsx b/packages/stateless/components/splash/SplashGradientWrapper.tsx similarity index 100% rename from packages/ui/components/splash/SplashGradientWrapper.tsx rename to packages/stateless/components/splash/SplashGradientWrapper.tsx diff --git a/packages/ui/components/splash/SplashStatsCard.stories.tsx b/packages/stateless/components/splash/SplashStatsCard.stories.tsx similarity index 82% rename from packages/ui/components/splash/SplashStatsCard.stories.tsx rename to packages/stateless/components/splash/SplashStatsCard.stories.tsx index 1a646f281..9f51aee81 100644 --- a/packages/ui/components/splash/SplashStatsCard.stories.tsx +++ b/packages/stateless/components/splash/SplashStatsCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SplashStatsCard } from './SplashStatsCard' export default { - title: 'DAO DAO / packages / ui / components / splash / SplashStatsCard', + title: 'DAO DAO / packages / stateless / components / splash / SplashStatsCard', component: SplashStatsCard, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashStatsCard.tsx b/packages/stateless/components/splash/SplashStatsCard.tsx similarity index 100% rename from packages/ui/components/splash/SplashStatsCard.tsx rename to packages/stateless/components/splash/SplashStatsCard.tsx diff --git a/packages/ui/components/splash/SplashVoteCard.stories.tsx b/packages/stateless/components/splash/SplashVoteCard.stories.tsx similarity index 81% rename from packages/ui/components/splash/SplashVoteCard.stories.tsx rename to packages/stateless/components/splash/SplashVoteCard.stories.tsx index 088dee3d3..680855016 100644 --- a/packages/ui/components/splash/SplashVoteCard.stories.tsx +++ b/packages/stateless/components/splash/SplashVoteCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SplashVoteCard } from './SplashVoteCard' export default { - title: 'DAO DAO / packages / ui / components / splash / SplashVoteCard', + title: 'DAO DAO / packages / stateless / components / splash / SplashVoteCard', component: SplashVoteCard, } as ComponentMeta diff --git a/packages/ui/components/splash/SplashVoteCard.tsx b/packages/stateless/components/splash/SplashVoteCard.tsx similarity index 100% rename from packages/ui/components/splash/SplashVoteCard.tsx rename to packages/stateless/components/splash/SplashVoteCard.tsx diff --git a/packages/ui/components/splash/index.ts b/packages/stateless/components/splash/index.ts similarity index 100% rename from packages/ui/components/splash/index.ts rename to packages/stateless/components/splash/index.ts diff --git a/packages/ui/components/toasts/ErrorToast.stories.tsx b/packages/stateless/components/toasts/ErrorToast.stories.tsx similarity index 88% rename from packages/ui/components/toasts/ErrorToast.stories.tsx rename to packages/stateless/components/toasts/ErrorToast.stories.tsx index 0d3c2ffb3..008ef9def 100644 --- a/packages/ui/components/toasts/ErrorToast.stories.tsx +++ b/packages/stateless/components/toasts/ErrorToast.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ErrorToast } from './ErrorToast' export default { - title: 'DAO DAO / packages / ui / components / toasts / ErrorToast', + title: 'DAO DAO / packages / stateless / components / toasts / ErrorToast', component: ErrorToast, } as ComponentMeta diff --git a/packages/ui/components/toasts/ErrorToast.tsx b/packages/stateless/components/toasts/ErrorToast.tsx similarity index 100% rename from packages/ui/components/toasts/ErrorToast.tsx rename to packages/stateless/components/toasts/ErrorToast.tsx diff --git a/packages/ui/components/toasts/LoadingToast.stories.tsx b/packages/stateless/components/toasts/LoadingToast.stories.tsx similarity index 88% rename from packages/ui/components/toasts/LoadingToast.stories.tsx rename to packages/stateless/components/toasts/LoadingToast.stories.tsx index f7d73bd80..566c1edf6 100644 --- a/packages/ui/components/toasts/LoadingToast.stories.tsx +++ b/packages/stateless/components/toasts/LoadingToast.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { LoadingToast } from './LoadingToast' export default { - title: 'DAO DAO / packages / ui / components / toasts / LoadingToast', + title: 'DAO DAO / packages / stateless / components / toasts / LoadingToast', component: LoadingToast, } as ComponentMeta diff --git a/packages/ui/components/toasts/LoadingToast.tsx b/packages/stateless/components/toasts/LoadingToast.tsx similarity index 100% rename from packages/ui/components/toasts/LoadingToast.tsx rename to packages/stateless/components/toasts/LoadingToast.tsx diff --git a/packages/ui/components/toasts/SuccessToast.stories.tsx b/packages/stateless/components/toasts/SuccessToast.stories.tsx similarity index 90% rename from packages/ui/components/toasts/SuccessToast.stories.tsx rename to packages/stateless/components/toasts/SuccessToast.stories.tsx index 918c78459..781a8f0be 100644 --- a/packages/ui/components/toasts/SuccessToast.stories.tsx +++ b/packages/stateless/components/toasts/SuccessToast.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { SuccessToast } from './SuccessToast' export default { - title: 'DAO DAO / packages / ui / components / toasts / SuccessToast', + title: 'DAO DAO / packages / stateless / components / toasts / SuccessToast', component: SuccessToast, } as ComponentMeta diff --git a/packages/ui/components/toasts/SuccessToast.tsx b/packages/stateless/components/toasts/SuccessToast.tsx similarity index 100% rename from packages/ui/components/toasts/SuccessToast.tsx rename to packages/stateless/components/toasts/SuccessToast.tsx diff --git a/packages/ui/components/toasts/ToastCard.stories.tsx b/packages/stateless/components/toasts/ToastCard.stories.tsx similarity index 88% rename from packages/ui/components/toasts/ToastCard.stories.tsx rename to packages/stateless/components/toasts/ToastCard.stories.tsx index d163b2a55..a038c5cfd 100644 --- a/packages/ui/components/toasts/ToastCard.stories.tsx +++ b/packages/stateless/components/toasts/ToastCard.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ToastCard } from './ToastCard' export default { - title: 'DAO DAO / packages / ui / components / toasts / ToastCard', + title: 'DAO DAO / packages / stateless / components / toasts / ToastCard', component: ToastCard, } as ComponentMeta diff --git a/packages/ui/components/toasts/ToastCard.tsx b/packages/stateless/components/toasts/ToastCard.tsx similarity index 100% rename from packages/ui/components/toasts/ToastCard.tsx rename to packages/stateless/components/toasts/ToastCard.tsx diff --git a/packages/ui/components/toasts/ToastNotifications.stories.tsx b/packages/stateless/components/toasts/ToastNotifications.stories.tsx similarity index 86% rename from packages/ui/components/toasts/ToastNotifications.stories.tsx rename to packages/stateless/components/toasts/ToastNotifications.stories.tsx index ba888c534..02c58a626 100644 --- a/packages/ui/components/toasts/ToastNotifications.stories.tsx +++ b/packages/stateless/components/toasts/ToastNotifications.stories.tsx @@ -5,7 +5,7 @@ import toast from 'react-hot-toast' import { ToastNotifications } from './ToastNotifications' export default { - title: 'DAO DAO / packages / ui / components / toasts / ToastNotifications', + title: 'DAO DAO / packages / stateless / components / toasts / ToastNotifications', component: ToastNotifications, } as ComponentMeta diff --git a/packages/ui/components/toasts/ToastNotifications.tsx b/packages/stateless/components/toasts/ToastNotifications.tsx similarity index 100% rename from packages/ui/components/toasts/ToastNotifications.tsx rename to packages/stateless/components/toasts/ToastNotifications.tsx diff --git a/packages/ui/components/toasts/index.tsx b/packages/stateless/components/toasts/index.tsx similarity index 100% rename from packages/ui/components/toasts/index.tsx rename to packages/stateless/components/toasts/index.tsx diff --git a/packages/ui/components/wallet/ConnectWallet.stories.tsx b/packages/stateless/components/wallet/ConnectWallet.stories.tsx similarity index 81% rename from packages/ui/components/wallet/ConnectWallet.stories.tsx rename to packages/stateless/components/wallet/ConnectWallet.stories.tsx index 697d51c4b..1b002b432 100644 --- a/packages/ui/components/wallet/ConnectWallet.stories.tsx +++ b/packages/stateless/components/wallet/ConnectWallet.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ConnectWallet } from './ConnectWallet' export default { - title: 'DAO DAO / packages / ui / components / wallet / ConnectWallet', + title: 'DAO DAO / packages / stateless / components / wallet / ConnectWallet', component: ConnectWallet, } as ComponentMeta diff --git a/packages/ui/components/wallet/ConnectWallet.tsx b/packages/stateless/components/wallet/ConnectWallet.tsx similarity index 100% rename from packages/ui/components/wallet/ConnectWallet.tsx rename to packages/stateless/components/wallet/ConnectWallet.tsx diff --git a/packages/ui/components/wallet/ConnectedWallet.stories.tsx b/packages/stateless/components/wallet/ConnectedWallet.stories.tsx similarity index 90% rename from packages/ui/components/wallet/ConnectedWallet.stories.tsx rename to packages/stateless/components/wallet/ConnectedWallet.stories.tsx index f5ea7c578..f19c5d7e6 100644 --- a/packages/ui/components/wallet/ConnectedWallet.stories.tsx +++ b/packages/stateless/components/wallet/ConnectedWallet.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { ConnectedWallet } from './ConnectedWallet' export default { - title: 'DAO DAO / packages / ui / components / wallet / ConnectedWallet', + title: 'DAO DAO / packages / stateless / components / wallet / ConnectedWallet', component: ConnectedWallet, } as ComponentMeta diff --git a/packages/ui/components/wallet/ConnectedWallet.tsx b/packages/stateless/components/wallet/ConnectedWallet.tsx similarity index 100% rename from packages/ui/components/wallet/ConnectedWallet.tsx rename to packages/stateless/components/wallet/ConnectedWallet.tsx diff --git a/packages/ui/components/wallet/NoMobileWallet.stories.tsx b/packages/stateless/components/wallet/NoMobileWallet.stories.tsx similarity index 81% rename from packages/ui/components/wallet/NoMobileWallet.stories.tsx rename to packages/stateless/components/wallet/NoMobileWallet.stories.tsx index 16ccfe394..436986b15 100644 --- a/packages/ui/components/wallet/NoMobileWallet.stories.tsx +++ b/packages/stateless/components/wallet/NoMobileWallet.stories.tsx @@ -3,7 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { NoMobileWallet } from './NoMobileWallet' export default { - title: 'DAO DAO / packages / ui / components / wallet / NoMobileWallet', + title: 'DAO DAO / packages / stateless / components / wallet / NoMobileWallet', component: NoMobileWallet, } as ComponentMeta diff --git a/packages/ui/components/wallet/NoMobileWallet.tsx b/packages/stateless/components/wallet/NoMobileWallet.tsx similarity index 100% rename from packages/ui/components/wallet/NoMobileWallet.tsx rename to packages/stateless/components/wallet/NoMobileWallet.tsx diff --git a/packages/ui/components/wallet/index.tsx b/packages/stateless/components/wallet/index.tsx similarity index 100% rename from packages/ui/components/wallet/index.tsx rename to packages/stateless/components/wallet/index.tsx diff --git a/packages/ui/hooks/index.tsx b/packages/stateless/hooks/index.tsx similarity index 100% rename from packages/ui/hooks/index.tsx rename to packages/stateless/hooks/index.tsx diff --git a/packages/ui/hooks/useCachedLoadable.ts b/packages/stateless/hooks/useCachedLoadable.ts similarity index 100% rename from packages/ui/hooks/useCachedLoadable.ts rename to packages/stateless/hooks/useCachedLoadable.ts diff --git a/packages/ui/hooks/useDropdownSorter.tsx b/packages/stateless/hooks/useDropdownSorter.tsx similarity index 100% rename from packages/ui/hooks/useDropdownSorter.tsx rename to packages/stateless/hooks/useDropdownSorter.tsx diff --git a/packages/ui/hooks/useMountedInBrowser.tsx b/packages/stateless/hooks/useMountedInBrowser.tsx similarity index 100% rename from packages/ui/hooks/useMountedInBrowser.tsx rename to packages/stateless/hooks/useMountedInBrowser.tsx diff --git a/packages/ui/hooks/useSearchFilter.tsx b/packages/stateless/hooks/useSearchFilter.tsx similarity index 100% rename from packages/ui/hooks/useSearchFilter.tsx rename to packages/stateless/hooks/useSearchFilter.tsx diff --git a/packages/ui/hooks/useTranslatedTimeDeltaFormatter.ts b/packages/stateless/hooks/useTranslatedTimeDeltaFormatter.ts similarity index 100% rename from packages/ui/hooks/useTranslatedTimeDeltaFormatter.ts rename to packages/stateless/hooks/useTranslatedTimeDeltaFormatter.ts diff --git a/packages/ui/index.tsx b/packages/stateless/index.tsx similarity index 100% rename from packages/ui/index.tsx rename to packages/stateless/index.tsx diff --git a/packages/ui/package.json b/packages/stateless/package.json similarity index 98% rename from packages/ui/package.json rename to packages/stateless/package.json index bc4a90cf7..3ae0695ef 100644 --- a/packages/ui/package.json +++ b/packages/stateless/package.json @@ -1,5 +1,5 @@ { - "name": "@dao-dao/ui", + "name": "@dao-dao/stateless", "version": "2.0.1", "scripts": { "build": "tsc", diff --git a/packages/ui/pages/CreateDao.stories.tsx b/packages/stateless/pages/CreateDao.stories.tsx similarity index 92% rename from packages/ui/pages/CreateDao.stories.tsx rename to packages/stateless/pages/CreateDao.stories.tsx index f526b5d4c..b6ad2cf14 100644 --- a/packages/ui/pages/CreateDao.stories.tsx +++ b/packages/stateless/pages/CreateDao.stories.tsx @@ -8,7 +8,7 @@ import { } from '@dao-dao/storybook/decorators' export default { - title: 'DAO DAO / packages / ui / pages / CreateDao', + title: 'DAO DAO / packages / stateless / pages / CreateDao', decorators: [ // Direct ancestor of rendered story. makeCreateDaoFormDecorator(0), diff --git a/packages/ui/pages/CreateProposal.stories.tsx b/packages/stateless/pages/CreateProposal.stories.tsx similarity index 94% rename from packages/ui/pages/CreateProposal.stories.tsx rename to packages/stateless/pages/CreateProposal.stories.tsx index 182ad50f5..1af3ae9f1 100644 --- a/packages/ui/pages/CreateProposal.stories.tsx +++ b/packages/stateless/pages/CreateProposal.stories.tsx @@ -11,7 +11,7 @@ import { DaoPageWrapperDecorator, makeAppLayoutDecorator, } from '@dao-dao/storybook/decorators' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { ProfileNewProposalCard, @@ -21,7 +21,7 @@ import { Default as ProfileNewProposalCardStory } from '../components/profile/Pr import { CreateProposal } from './CreateProposal' export default { - title: 'DAO DAO / packages / ui / pages / CreateProposal', + title: 'DAO DAO / packages / stateless / pages / CreateProposal', component: CreateProposal, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/pages/CreateProposal.tsx b/packages/stateless/pages/CreateProposal.tsx similarity index 100% rename from packages/ui/pages/CreateProposal.tsx rename to packages/stateless/pages/CreateProposal.tsx diff --git a/packages/ui/pages/DaoHome.stories.tsx b/packages/stateless/pages/DaoHome.stories.tsx similarity index 95% rename from packages/ui/pages/DaoHome.stories.tsx rename to packages/stateless/pages/DaoHome.stories.tsx index 245eed9ee..8b2fba76b 100644 --- a/packages/ui/pages/DaoHome.stories.tsx +++ b/packages/stateless/pages/DaoHome.stories.tsx @@ -6,7 +6,7 @@ import { makeAppLayoutDecorator, } from '@dao-dao/storybook/decorators' import { DaoMemberCardProps } from '@dao-dao/types' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { DaoInfoBar, @@ -29,7 +29,7 @@ import { Default as ProfileMemberCardStory } from '../components/profile/Profile import { DaoHome } from './DaoHome' export default { - title: 'DAO DAO / packages / ui / pages / DaoHome', + title: 'DAO DAO / packages / stateless / pages / DaoHome', component: DaoHome, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/pages/DaoHome.tsx b/packages/stateless/pages/DaoHome.tsx similarity index 100% rename from packages/ui/pages/DaoHome.tsx rename to packages/stateless/pages/DaoHome.tsx diff --git a/packages/ui/pages/Home.stories.tsx b/packages/stateless/pages/Home.stories.tsx similarity index 97% rename from packages/ui/pages/Home.stories.tsx rename to packages/stateless/pages/Home.stories.tsx index 0ae906374..c13193d10 100644 --- a/packages/ui/pages/Home.stories.tsx +++ b/packages/stateless/pages/Home.stories.tsx @@ -14,7 +14,7 @@ import { Default as ProfileHomeCardStory } from '../components/profile/ProfileHo import { Home } from './Home' export default { - title: 'DAO DAO / packages / ui / pages / Home', + title: 'DAO DAO / packages / stateless / pages / Home', component: Home, } as ComponentMeta diff --git a/packages/ui/pages/Home.tsx b/packages/stateless/pages/Home.tsx similarity index 100% rename from packages/ui/pages/Home.tsx rename to packages/stateless/pages/Home.tsx diff --git a/packages/ui/pages/Inbox.stories.tsx b/packages/stateless/pages/Inbox.stories.tsx similarity index 97% rename from packages/ui/pages/Inbox.stories.tsx rename to packages/stateless/pages/Inbox.stories.tsx index 0646bfd97..00344e696 100644 --- a/packages/ui/pages/Inbox.stories.tsx +++ b/packages/stateless/pages/Inbox.stories.tsx @@ -14,7 +14,7 @@ import { makeProps as makeProposalLineProps } from '../components/proposal/Propo import { Inbox } from './Inbox' export default { - title: 'DAO DAO / packages / ui / pages / Inbox', + title: 'DAO DAO / packages / stateless / pages / Inbox', component: Inbox, decorators: [makeAppLayoutDecorator()], } as ComponentMeta diff --git a/packages/ui/pages/Inbox.tsx b/packages/stateless/pages/Inbox.tsx similarity index 100% rename from packages/ui/pages/Inbox.tsx rename to packages/stateless/pages/Inbox.tsx diff --git a/packages/ui/pages/Proposal.stories.tsx b/packages/stateless/pages/Proposal.stories.tsx similarity index 96% rename from packages/ui/pages/Proposal.stories.tsx rename to packages/stateless/pages/Proposal.stories.tsx index e06535358..e9c695cf2 100644 --- a/packages/ui/pages/Proposal.stories.tsx +++ b/packages/stateless/pages/Proposal.stories.tsx @@ -10,7 +10,7 @@ import { makeAppLayoutDecorator, makeProposalModuleAdapterDecorator, } from '@dao-dao/storybook/decorators' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { ProfileVoteCard, @@ -26,7 +26,7 @@ import { Proposal } from './Proposal' const proposalId = 'A72' export default { - title: 'DAO DAO / packages / ui / pages / Proposal', + title: 'DAO DAO / packages / stateless / pages / Proposal', component: Proposal, decorators: [ // Direct ancestor of rendered story. diff --git a/packages/ui/pages/Proposal.tsx b/packages/stateless/pages/Proposal.tsx similarity index 100% rename from packages/ui/pages/Proposal.tsx rename to packages/stateless/pages/Proposal.tsx diff --git a/packages/ui/pages/Wallet.stories.tsx b/packages/stateless/pages/Wallet.stories.tsx similarity index 97% rename from packages/ui/pages/Wallet.stories.tsx rename to packages/stateless/pages/Wallet.stories.tsx index 22c9fe6b5..2723e91c6 100644 --- a/packages/ui/pages/Wallet.stories.tsx +++ b/packages/stateless/pages/Wallet.stories.tsx @@ -22,7 +22,7 @@ import { Default as ProfileHomeCardStory } from '../components/profile/ProfileHo import { Wallet } from './Wallet' export default { - title: 'DAO DAO / packages / ui / pages / Wallet', + title: 'DAO DAO / packages / stateless / pages / Wallet', component: Wallet, decorators: [ WalletProviderDecorator, diff --git a/packages/ui/pages/Wallet.tsx b/packages/stateless/pages/Wallet.tsx similarity index 100% rename from packages/ui/pages/Wallet.tsx rename to packages/stateless/pages/Wallet.tsx diff --git a/packages/ui/pages/index.tsx b/packages/stateless/pages/index.tsx similarity index 100% rename from packages/ui/pages/index.tsx rename to packages/stateless/pages/index.tsx diff --git a/packages/ui/postcss.config.js b/packages/stateless/postcss.config.js similarity index 100% rename from packages/ui/postcss.config.js rename to packages/stateless/postcss.config.js diff --git a/packages/ui/styles/index.css b/packages/stateless/styles/index.css similarity index 100% rename from packages/ui/styles/index.css rename to packages/stateless/styles/index.css diff --git a/packages/ui/tailwind.config.js b/packages/stateless/tailwind.config.js similarity index 80% rename from packages/ui/tailwind.config.js rename to packages/stateless/tailwind.config.js index c4fe78093..2983b4df6 100644 --- a/packages/ui/tailwind.config.js +++ b/packages/stateless/tailwind.config.js @@ -4,7 +4,7 @@ const tailwindConfig = { './**/*.{js,jsx,ts,tsx}', '../{proposal,voting}-module-adapter/**/*.{js,jsx,ts,tsx}', ], - presets: [require('./tailwind/config')], + presets: [require('@dao-dao/config/tailwind/config')], } module.exports = tailwindConfig diff --git a/packages/ui/theme/index.tsx b/packages/stateless/theme/index.tsx similarity index 100% rename from packages/ui/theme/index.tsx rename to packages/stateless/theme/index.tsx diff --git a/packages/ui/tsconfig.json b/packages/stateless/tsconfig.json similarity index 100% rename from packages/ui/tsconfig.json rename to packages/stateless/tsconfig.json diff --git a/packages/storybook/.storybook/preview.js b/packages/storybook/.storybook/preview.js index 7a1cf5367..e2d186cb4 100644 --- a/packages/storybook/.storybook/preview.js +++ b/packages/storybook/.storybook/preview.js @@ -1,4 +1,4 @@ -import '@dao-dao/ui/styles/index.css' +import '@dao-dao/stateless/styles/index.css' import i18n from './i18next' import { NotificationsDecorator, RecoilDecorator, ThemeDecorator } from '../decorators' diff --git a/packages/storybook/README.md b/packages/storybook/README.md index 0ac7b9b53..a26079a8b 100644 --- a/packages/storybook/README.md +++ b/packages/storybook/README.md @@ -34,7 +34,7 @@ named `MyComponent.tsx` in any of the packages. As of writing this, all of the packages are setup such that stateless components are descendants of a `ui` folder at some level. This is represented by the -`@dao-dao/ui` package located at `packages/ui`, since the package itself is a +`@dao-dao/stateless` package located at `packages/ui`, since the package itself is a folder named `ui`. The voting and proposal module adapter packages also use the folder `ui` to group stateless components. diff --git a/packages/storybook/decorators/NotificationsDecorator.tsx b/packages/storybook/decorators/NotificationsDecorator.tsx index 994ba1dfa..c5a7c4a36 100644 --- a/packages/storybook/decorators/NotificationsDecorator.tsx +++ b/packages/storybook/decorators/NotificationsDecorator.tsx @@ -1,6 +1,6 @@ import { DecoratorFn } from '@storybook/react' -import { ToastNotifications } from '@dao-dao/ui' +import { ToastNotifications } from '@dao-dao/stateless' export const NotificationsDecorator: DecoratorFn = (Story) => ( <> diff --git a/packages/storybook/decorators/ThemeDecorator.tsx b/packages/storybook/decorators/ThemeDecorator.tsx index 7ba90a2c2..a51d29a63 100644 --- a/packages/storybook/decorators/ThemeDecorator.tsx +++ b/packages/storybook/decorators/ThemeDecorator.tsx @@ -6,7 +6,7 @@ import clsx from 'clsx' import { useEffect, useState } from 'react' import { DARK_MODE_EVENT_NAME, useDarkMode } from 'storybook-dark-mode' -import { Theme, ThemeProvider } from '@dao-dao/ui' +import { Theme, ThemeProvider } from '@dao-dao/stateless' const channel = addons.getChannel() diff --git a/packages/storybook/decorators/makeAppLayoutContextDecorator.tsx b/packages/storybook/decorators/makeAppLayoutContextDecorator.tsx index f49ecafaa..a9db36452 100644 --- a/packages/storybook/decorators/makeAppLayoutContextDecorator.tsx +++ b/packages/storybook/decorators/makeAppLayoutContextDecorator.tsx @@ -1,7 +1,7 @@ import { DecoratorFn } from '@storybook/react' import { useMemo, useState } from 'react' -import { AppLayoutContext } from '@dao-dao/ui/components/layout/AppLayoutContext' +import { AppLayoutContext } from '@dao-dao/stateless/components/layout/AppLayoutContext' // Useful when testing individual components that rely on this context value but // don't want to render the entire AppLayout. diff --git a/packages/storybook/decorators/makeAppLayoutDecorator.tsx b/packages/storybook/decorators/makeAppLayoutDecorator.tsx index e2361b713..24d0fa168 100644 --- a/packages/storybook/decorators/makeAppLayoutDecorator.tsx +++ b/packages/storybook/decorators/makeAppLayoutDecorator.tsx @@ -3,9 +3,9 @@ import { DecoratorFn } from '@storybook/react' import { Default as AppLayoutStory, DefaultArgs as AppLayoutStoryArgs, -} from '@dao-dao/ui/components/layout/AppLayout.stories' -import { NavigationProps } from '@dao-dao/ui/components/layout/Navigation' -import { RightSidebarProps } from '@dao-dao/ui/components/layout/RightSidebar' +} from '@dao-dao/stateless/components/layout/AppLayout.stories' +import { NavigationProps } from '@dao-dao/stateless/components/layout/Navigation' +import { RightSidebarProps } from '@dao-dao/stateless/components/layout/RightSidebar' export const makeAppLayoutDecorator: (props?: { navigationProps?: Partial diff --git a/packages/storybook/decorators/makeProposalModuleAdapterDecorator.tsx b/packages/storybook/decorators/makeProposalModuleAdapterDecorator.tsx index e11466a71..fc997170a 100644 --- a/packages/storybook/decorators/makeProposalModuleAdapterDecorator.tsx +++ b/packages/storybook/decorators/makeProposalModuleAdapterDecorator.tsx @@ -3,7 +3,7 @@ import { DecoratorFn } from '@storybook/react' import { ProposalModuleAdapterProvider } from '@dao-dao/proposal-module-adapter' -import { Loader, Logo, useDaoInfoContext } from '@dao-dao/ui' +import { Loader, Logo, useDaoInfoContext } from '@dao-dao/stateless' export const makeProposalModuleAdapterDecorator: ( proposalId: string diff --git a/packages/storybook/scripts/generate.ts b/packages/storybook/scripts/generate.ts index 32fd1583a..0fbefb3ac 100644 --- a/packages/storybook/scripts/generate.ts +++ b/packages/storybook/scripts/generate.ts @@ -231,7 +231,7 @@ const project = new Project({ // // `components` in apps. // project.addSourceFilesAtPaths('../../apps/**/{ui,components}/**/*.tsx') - // Add @dao-dao/ui package. + // Add @dao-dao/stateless package. project.addSourceFilesAtPaths('../ui/**/*.tsx') // Add all tsx files that exist as a descendant of a folder named `ui` in // the adapter packages. diff --git a/packages/storybook/tailwind.config.js b/packages/storybook/tailwind.config.js index aa98b0ac9..5f8f00c34 100644 --- a/packages/storybook/tailwind.config.js +++ b/packages/storybook/tailwind.config.js @@ -1,9 +1,9 @@ /** @type {import("tailwindcss/tailwind-config").TailwindConfig} */ const tailwindConfig = { content: [ - '../{common,ui,proposal-module-adapter,voting-module-adapter}/**/*.{js,jsx,ts,tsx}', + '../{common,stateless,proposal-module-adapter,voting-module-adapter}/**/*.{js,jsx,ts,tsx}', ], - presets: [require('@dao-dao/ui/tailwind/config')], + presets: [require('@dao-dao/config/tailwind/config')], } module.exports = tailwindConfig diff --git a/packages/types/index.ts b/packages/types/index.ts index 5d932b4ec..491d63305 100644 --- a/packages/types/index.ts +++ b/packages/types/index.ts @@ -9,7 +9,7 @@ export * from './helpers' export * from './nft' export * from './proposal-module-adapter' export * from './state' -export * from './ui' +export * from './theme' export * from './units' export * from './utils' export * from './voting-module-adapter' diff --git a/packages/types/ui.ts b/packages/types/theme.ts similarity index 100% rename from packages/types/ui.ts rename to packages/types/theme.ts diff --git a/packages/voting-module-adapter/README.md b/packages/voting-module-adapter/README.md index bc37fafe9..f7ebc539c 100644 --- a/packages/voting-module-adapter/README.md +++ b/packages/voting-module-adapter/README.md @@ -356,7 +356,7 @@ descendant of the Provider to access the voting module adapter interface. ```tsx import { SuspenseLoader } from '@dao-dao/common' -import { Loader } from '@dao-dao/ui' +import { Loader } from '@dao-dao/stateless' import { useVotingModuleAdapter } from '@dao-dao/voting-module-adapter' const DaoThinInfoDisplay = () => { diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/actions/makeMintAction/MintComponent.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/actions/makeMintAction/MintComponent.tsx index 56c3783e1..7d976c9c1 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/actions/makeMintAction/MintComponent.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/actions/makeMintAction/MintComponent.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next' import { ActionCard } from '@dao-dao/actions' import { ActionComponent } from '@dao-dao/types' -import { AddressInput, InputErrorMessage, NumberInput } from '@dao-dao/ui' +import { AddressInput, InputErrorMessage, NumberInput } from '@dao-dao/stateless' import { validateAddress, validatePositive, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/StakingModal.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/StakingModal.tsx index a2ead5a20..8bb05c497 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/StakingModal.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/StakingModal.tsx @@ -23,7 +23,7 @@ import { Modal, StakingMode, StakingModal as StatelessStakingModal, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { convertDenomToMicroDenomWithDecimals, convertMicroDenomToDenomWithDecimals, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/index.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/index.tsx index b644d1d72..7a9df463c 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/index.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/components/ProfileCardMemberInfo/index.tsx @@ -14,7 +14,7 @@ import { useWalletProfile, } from '@dao-dao/state' import { UnstakingTask, UnstakingTaskStatus } from '@dao-dao/types' -import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/ui' +import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/stateless' import { NATIVE_DENOM, convertExpirationToDate, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationInput.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationInput.tsx index 2cdc07bea..8131fd56c 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationInput.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationInput.tsx @@ -24,7 +24,7 @@ import { SegmentedControls, TextInput, VOTING_POWER_DISTRIBUTION_COLORS, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CHAIN_BECH32_PREFIX, NEW_DAO_CW20_DECIMALS, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationReview.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationReview.tsx index a9cd2b4a2..622bd7885 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationReview.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/GovernanceConfigurationReview.tsx @@ -11,7 +11,7 @@ import { TierDataEntry, VOTING_POWER_DISTRIBUTION_COLORS, useNamedThemeColor, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { formatPercentOf100 } from '@dao-dao/utils' import { DaoCreationConfig, GovernanceTokenType } from '../types' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/TierCard.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/TierCard.tsx index 08bf14c9d..e682721b3 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/TierCard.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/TierCard.tsx @@ -22,7 +22,7 @@ import { TextInput, TooltipInfoIcon, VOTING_POWER_DISTRIBUTION_COLORS, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { NEW_DAO_CW20_DECIMALS, formatPercentOf100, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/UnstakingDurationVotingConfigItem.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/UnstakingDurationVotingConfigItem.tsx index a957db5eb..d86a18bec 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/UnstakingDurationVotingConfigItem.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/daoCreation/UnstakingDurationVotingConfigItem.tsx @@ -7,7 +7,7 @@ import { DaoCreationVotingConfigItemReviewProps, DurationUnitsValues, } from '@dao-dao/types' -import { NumberInput, SelectInput } from '@dao-dao/ui' +import { NumberInput, SelectInput } from '@dao-dao/stateless' import { convertDurationWithUnitsToHumanReadableString, validateNonNegative, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useDaoInfoBarItems.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useDaoInfoBarItems.tsx index 76916f54a..66e485d62 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useDaoInfoBarItems.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useDaoInfoBarItems.tsx @@ -2,7 +2,7 @@ import { LayersOutlined, PeopleAltOutlined } from '@mui/icons-material' import { useTranslation } from 'react-i18next' import { useVotingModule } from '@dao-dao/state' -import { DaoInfoBarItem, TokenAmountDisplay } from '@dao-dao/ui' +import { DaoInfoBarItem, TokenAmountDisplay } from '@dao-dao/stateless' import { convertMicroDenomToDenomWithDecimals, formatPercentOf100, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useStakingInfo.ts b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useStakingInfo.ts index 9724721a7..906059c2d 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useStakingInfo.ts +++ b/packages/voting-module-adapter/adapters/CwdVotingCw20Staked/hooks/useStakingInfo.ts @@ -9,7 +9,7 @@ import { refreshClaimsIdAtom, refreshWalletBalancesIdAtom, } from '@dao-dao/state' -import { useCachedLoadable } from '@dao-dao/ui' +import { useCachedLoadable } from '@dao-dao/stateless' import { claimAvailable } from '@dao-dao/utils' import { useVotingModuleAdapterOptions } from '../../../react/context' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/actions/makeManageMembersAction/ManageMembersComponent.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/actions/makeManageMembersAction/ManageMembersComponent.tsx index 32c70d0a6..7072803dc 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/actions/makeManageMembersAction/ManageMembersComponent.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/actions/makeManageMembersAction/ManageMembersComponent.tsx @@ -13,7 +13,7 @@ import { InputErrorMessage, InputLabel, NumberInput, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateAddress, validateNonNegative, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/components/MembersTab.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/components/MembersTab.tsx index ce7eda08c..1a245f034 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/components/MembersTab.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/components/MembersTab.tsx @@ -8,7 +8,7 @@ import { } from '@dao-dao/common' import { useVotingModule } from '@dao-dao/state' import { ActionKey } from '@dao-dao/types' -import { MembersTab as StatelessMembersTab } from '@dao-dao/ui' +import { MembersTab as StatelessMembersTab } from '@dao-dao/stateless' import { useVotingModuleAdapterOptions } from '../../../react/context' import { useVotingModule as useCw4VotingModule } from '../hooks/useVotingModule' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/components/ProfileCardMemberInfo.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/components/ProfileCardMemberInfo.tsx index bfd567bd3..6128971aa 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/components/ProfileCardMemberInfo.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/components/ProfileCardMemberInfo.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next' import { useVotingModule } from '@dao-dao/state' -import { useDaoInfoContext } from '@dao-dao/ui' +import { useDaoInfoContext } from '@dao-dao/stateless' import { useVotingModuleAdapterOptions } from '../../../react/context' import { BaseProfileCardMemberInfoProps } from '../../../types' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationInput.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationInput.tsx index 9f1480497..48e823496 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationInput.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationInput.tsx @@ -15,7 +15,7 @@ import { DaoCreateVotingPowerDistributionBarChart, InputErrorMessage, VOTING_POWER_DISTRIBUTION_COLORS, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { CwdVotingCw4Adapter } from '../index' import { DaoCreationConfig } from '../types' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationReview.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationReview.tsx index fa6703bd9..df5af83f5 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationReview.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/GovernanceConfigurationReview.tsx @@ -4,7 +4,7 @@ import { DaoCreateVotingPowerDistributionReviewCard, TierDataEntry, VOTING_POWER_DISTRIBUTION_COLORS, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { formatPercentOf100 } from '@dao-dao/utils' import { DaoCreationConfig } from '../types' diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/TierCard.tsx b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/TierCard.tsx index 86dd99756..0e8c85ccb 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/TierCard.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/daoCreation/TierCard.tsx @@ -21,7 +21,7 @@ import { NumberInput, TextInput, VOTING_POWER_DISTRIBUTION_COLORS, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { validateAddress, validatePositive, diff --git a/packages/voting-module-adapter/adapters/CwdVotingCw4/hooks/useDaoInfoBarItems.ts b/packages/voting-module-adapter/adapters/CwdVotingCw4/hooks/useDaoInfoBarItems.ts index e0df0780c..cdd82aaf9 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingCw4/hooks/useDaoInfoBarItems.ts +++ b/packages/voting-module-adapter/adapters/CwdVotingCw4/hooks/useDaoInfoBarItems.ts @@ -1,7 +1,7 @@ import { PeopleAltOutlined } from '@mui/icons-material' import { useTranslation } from 'react-i18next' -import { DaoInfoBarItem } from '@dao-dao/ui' +import { DaoInfoBarItem } from '@dao-dao/stateless' import { useVotingModuleAdapterOptions } from '../../../react/context' import { useVotingModule } from './useVotingModule' diff --git a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/StakingModal.tsx b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/StakingModal.tsx index 37b28f0c8..2f5b76fe6 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/StakingModal.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/StakingModal.tsx @@ -17,7 +17,7 @@ import { Modal, StakingMode, StakingModal as StatelessStakingModal, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { convertDenomToMicroDenomWithDecimals, convertMicroDenomToDenomWithDecimals, diff --git a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/index.tsx b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/index.tsx index 3dfc4b156..6b10ce2d0 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/index.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/components/ProfileCardMemberInfo/index.tsx @@ -14,7 +14,7 @@ import { useWalletProfile, } from '@dao-dao/state' import { UnstakingTask, UnstakingTaskStatus } from '@dao-dao/types' -import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/ui' +import { useCachedLoadable, useDaoInfoContext } from '@dao-dao/stateless' import { NATIVE_DENOM, convertExpirationToDate, diff --git a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useDaoInfoBarItems.tsx b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useDaoInfoBarItems.tsx index 769fcd162..1ac76ad7b 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useDaoInfoBarItems.tsx +++ b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useDaoInfoBarItems.tsx @@ -1,7 +1,7 @@ import { LayersOutlined, PeopleAltOutlined } from '@mui/icons-material' import { useTranslation } from 'react-i18next' -import { DaoInfoBarItem, TokenAmountDisplay } from '@dao-dao/ui' +import { DaoInfoBarItem, TokenAmountDisplay } from '@dao-dao/stateless' import { convertMicroDenomToDenomWithDecimals } from '@dao-dao/utils' import { useGovernanceTokenInfo } from './useGovernanceTokenInfo' diff --git a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useStakingInfo.ts b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useStakingInfo.ts index 08505f0fb..d05fac10c 100644 --- a/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useStakingInfo.ts +++ b/packages/voting-module-adapter/adapters/CwdVotingNativeStaked/hooks/useStakingInfo.ts @@ -8,7 +8,7 @@ import { refreshClaimsIdAtom, refreshWalletBalancesIdAtom, } from '@dao-dao/state' -import { useCachedLoadable } from '@dao-dao/ui' +import { useCachedLoadable } from '@dao-dao/stateless' import { claimAvailable } from '@dao-dao/utils' import { useVotingModuleAdapterOptions } from '../../../react/context' diff --git a/packages/voting-module-adapter/adapters/Fallback/Placeholder.tsx b/packages/voting-module-adapter/adapters/Fallback/Placeholder.tsx index 2d9332c86..9a67f298f 100644 --- a/packages/voting-module-adapter/adapters/Fallback/Placeholder.tsx +++ b/packages/voting-module-adapter/adapters/Fallback/Placeholder.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next' import { Trans } from '@dao-dao/common' -import { DiscordIcon } from '@dao-dao/ui' +import { DiscordIcon } from '@dao-dao/stateless' export const Placeholder = () => { const { t } = useTranslation() diff --git a/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.stories.tsx b/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.stories.tsx index 3dff5a02b..445ae50a7 100644 --- a/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.stories.tsx +++ b/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.stories.tsx @@ -1,7 +1,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react' import { UnstakingTask, UnstakingTaskStatus } from '@dao-dao/types' -import { makeProps as makeUnstakingLineProps } from '@dao-dao/ui/components/UnstakingLine.stories' +import { makeProps as makeUnstakingLineProps } from '@dao-dao/stateless/components/UnstakingLine.stories' import { ProfileCardMemberInfoTokens, diff --git a/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.tsx b/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.tsx index feb5e7058..0f7238ce9 100644 --- a/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.tsx +++ b/packages/voting-module-adapter/components/ProfileCardMemberInfoTokens.tsx @@ -12,7 +12,7 @@ import { ButtonLink, TokenAmountDisplay, UnstakingModal, -} from '@dao-dao/ui' +} from '@dao-dao/stateless' import { formatPercentOf100, secondsToWdhms } from '@dao-dao/utils' export interface ProfileCardMemberInfoTokensProps diff --git a/packages/voting-module-adapter/package.json b/packages/voting-module-adapter/package.json index 752115573..f04874e66 100644 --- a/packages/voting-module-adapter/package.json +++ b/packages/voting-module-adapter/package.json @@ -9,7 +9,7 @@ "@dao-dao/actions": "2.0.1", "@dao-dao/common": "2.0.1", "@dao-dao/state": "2.0.1", - "@dao-dao/ui": "2.0.1", + "@dao-dao/stateless": "2.0.1", "@dao-dao/utils": "2.0.1", "@emotion/react": "^11.10.4", "@emotion/styled": "^11.10.4",