repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/products/components/LoadMoreProducts.tsx
starters/shopify-next-tailwind/app/products/components/LoadMoreProducts.tsx
'use client'; import { Button } from '@/components/Button'; import { Grid } from '@/components/Grid'; import { ProductCard } from '@/components/ProductCard'; import { Product } from '@/lib/shopify/types'; import { useEffect, useState } from 'react'; import { useInView } from 'react-intersection-observer'; interface Pr...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/products/components/ProductDetails.tsx
starters/shopify-next-tailwind/app/products/components/ProductDetails.tsx
'use client'; import { IconClose } from '@/components'; import { Link } from '@/components/Link'; import { Text } from '@/components/Text'; import { Disclosure } from '@headlessui/react'; import clsx from 'clsx'; function ProductDetail({ title, content, learnMore, }: { title: string; content: string; learnMore?...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/collections/page.tsx
starters/shopify-next-tailwind/app/collections/page.tsx
import CollectionCard from '@/components/CollectionCard'; import { Grid } from '@/components/Grid'; import { PageHeader, Section } from '@/components/Text'; import { PAGE_BY } from '@/lib/const'; import { getAllCollections } from '@/lib/shopify'; import LoadMoreCollections from './components/LoadMoreCollections'; expo...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/collections/[collectionHandle]/page.tsx
starters/shopify-next-tailwind/app/collections/[collectionHandle]/page.tsx
import { PageHeader, Text, Section } from '@/components/Text'; import ProductGrid from '@/components/ProductGrid'; import { Collection as CollectionType, Collection } from '@/lib/shopify/types'; import { SortFilter } from '@/components/SortFilter'; import { getCollectionProducts } from '@/lib/shopify'; import { flatten...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/collections/components/LoadMoreCollections.tsx
starters/shopify-next-tailwind/app/collections/components/LoadMoreCollections.tsx
'use client'; import { Button } from '@/components/Button'; import CollectionCard from '@/components/CollectionCard'; import { Grid } from '@/components/Grid'; import { Collection } from '@/lib/shopify/types'; import { useEffect, useState } from 'react'; import { useInView } from 'react-intersection-observer'; interfa...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/CartCount.tsx
starters/shopify-next-tailwind/app/compoents/CartCount.tsx
import { IconBag } from '@/components/Icon'; import useAppStore from '@/store/app-store'; import useCartStore from '@/store/cart-store'; import clsx from 'clsx'; import { useEffect, useMemo } from 'react'; function CartCount({ isHome }: { isHome: boolean }) { const cart = useCartStore(state => state.cart); useEffec...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/MobileHeader.tsx
starters/shopify-next-tailwind/app/compoents/MobileHeader.tsx
import { IconMenu, IconSearch } from '@/components/Icon'; import { Input } from '@/components/Input'; import { Link } from '@/components/Link'; import { Heading } from '@/components/Text'; import AccountLink from './AccountLink'; import CartCount from './CartCount'; import { ShopifyHeaderMenu } from '@/lib/shopify/type...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/AccountLink.tsx
starters/shopify-next-tailwind/app/compoents/AccountLink.tsx
import { IconAccount, IconLogin } from '@/components/Icon'; import { Link } from '@/components/Link'; function AccountLink({ className, isUser, }: { className?: string; isUser: boolean; }) { return ( <Link href="/account" className={className}> {isUser ? <IconAccount /> : <IconLogin />} </Link> ); } expo...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/ShopifyAnalytics.tsx
starters/shopify-next-tailwind/app/compoents/ShopifyAnalytics.tsx
'use client'; import { usePathname } from 'next/navigation'; import { useEffect } from 'react'; import { sendShopifyAnalytics, getClientBrowserParameters, AnalyticsEventName, useShopifyCookies, } from '@shopify/hydrogen-react'; import { CurrencyCode } from '@/lib/useMoney'; import { LanguageCode } from '@shopify/h...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/DesktopHeader.tsx
starters/shopify-next-tailwind/app/compoents/DesktopHeader.tsx
'use client'; import { IconSearch } from '@/components/Icon'; import { Input } from '@/components/Input'; import { Link } from '@/components/Link'; import { ShopifyHeaderMenu } from '@/lib/shopify/types'; import { useSearchParam, useWindowScroll } from 'react-use'; import AccountLink from './AccountLink'; import CartC...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/Footer.tsx
starters/shopify-next-tailwind/app/compoents/Footer.tsx
'use client'; import { ShopifyFooterMenu } from '@/lib/shopify/types'; import { usePathname } from 'next/navigation'; import { Disclosure } from '@headlessui/react'; import { IconCaret } from '@/components/Icon'; import { Suspense } from 'react'; import { Heading, Section } from '@/components/Text'; import clsx from '...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/compoents/Header.tsx
starters/shopify-next-tailwind/app/compoents/Header.tsx
'use client'; import { Link } from '@/components/Link'; import DesktopHeader from './DesktopHeader'; import MobileHeader from './MobileHeader'; import { Drawer } from '@/components/Drawer'; import { ShopifyHeaderMenu } from '@/lib/shopify/types'; import { Cart } from '@/components/Cart'; import useAppStore from '@/stor...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/search/page.tsx
starters/shopify-next-tailwind/app/search/page.tsx
'use client'; import { Input } from '@/components/Input'; import { PageHeader, Heading } from '@/components/Text'; import useLoadSearchData from '@/hooks/useLoadSearchData'; import NoSearchResults from './components/NoSearchResults'; import SearchResult from './components/SearchResult'; import { Grid } from '@/componen...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/search/components/SearchResult.tsx
starters/shopify-next-tailwind/app/search/components/SearchResult.tsx
import { Grid } from '@/components/Grid'; import { ProductCard } from '@/components/ProductCard'; import { Section } from '@/components/Text'; import { PageInfo, Product } from '@/lib/shopify/types'; import LoadMoreSearchProducts from './LoadMoreSearchProducts'; interface ISearchResult { products: Product[]; pageInf...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/search/components/CardLoader.tsx
starters/shopify-next-tailwind/app/search/components/CardLoader.tsx
const CardLoader = () => { return ( <div className="animate-pulse"> <div className=" bg-slate-300 h-72" /> </div> ); }; export default CardLoader;
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/search/components/LoadMoreSearchProducts.tsx
starters/shopify-next-tailwind/app/search/components/LoadMoreSearchProducts.tsx
'use client'; import { Button } from '@/components/Button'; import { Grid } from '@/components/Grid'; import { ProductCard } from '@/components/ProductCard'; import { Product } from '@/lib/shopify/types'; import { useEffect, useState } from 'react'; import { useInView } from 'react-intersection-observer'; import { useL...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/search/components/NoSearchResults.tsx
starters/shopify-next-tailwind/app/search/components/NoSearchResults.tsx
import { FeaturedSection } from '@/components/FeaturedSection'; import { Section, Text } from '@/components/Text'; import { Product, Collection } from '@/lib/shopify/types'; interface INoSearchResults { featuredProducts: Product[]; featuredCollections: Collection[]; noResult: boolean; } const NoSearchResults = ({ ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/app/[not_found]/page.tsx
starters/shopify-next-tailwind/app/[not_found]/page.tsx
import { Metadata } from 'next'; import { notFound } from 'next/navigation'; export const metadata: Metadata = { title: 'Not found', }; export default function NotFoundCatchAll() { notFound(); }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/store/app-store.ts
starters/shopify-next-tailwind/store/app-store.ts
import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; export interface ICartProps { openCartDrawer: boolean; openMenuDrawer: boolean; } const initialState: ICartProps = { openCartDrawer: false, openMenuDrawer: false, }; const useAppStore = create( devtools<ICartProps>(() => initialSta...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/store/cart-store.ts
starters/shopify-next-tailwind/store/cart-store.ts
import { CartLine, CartType } from '@/lib/shopify/types'; import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; export interface ICartProps { cart: (Omit<CartType, 'lines'> & { lines: CartLine[] }) | null; } const initialState: ICartProps = { cart: null, }; const useCartStore = create( ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/hooks/useLoadSearchData.tsx
starters/shopify-next-tailwind/hooks/useLoadSearchData.tsx
'use client'; import { Collection, Product, ShopifyFeaturedCollectionOperation, ShopifyFeaturedProductOperation, } from '@/lib/shopify/types'; import { PageInfo } from 'next/dist/build/utils'; import { useState, useEffect } from 'react'; import { useLocation } from 'react-use'; const useLoadSearchData = () => { c...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/hooks/useCartFetcher.tsx
starters/shopify-next-tailwind/hooks/useCartFetcher.tsx
import { CartLine } from '@/lib/shopify/types'; import useCartStore from '@/store/cart-store'; const useCartFetcher = () => { const addCatItem = async ({ variantId }: { variantId: string }) => { const response = await fetch(`/api/cart`, { method: 'POST', body: JSON.stringify({ merchandiseId: variantId, ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/hooks/useProductOption.tsx
starters/shopify-next-tailwind/hooks/useProductOption.tsx
import { useSearchParams } from 'next/navigation'; import { useCallback } from 'react'; const useProductOption = () => { const search = useSearchParams(); const searchParamExists = useCallback( (name: string) => { const hasSearch = search.get(name); return hasSearch; }, [search] ); const isChecked = ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Password.tsx
starters/shopify-next-tailwind/components/Password.tsx
import { getInputStyleClasses } from '@/lib/utils'; function Password({ name, passwordError, label, }: { name: string; passwordError?: string; label: string; }) { return ( <div className="mt-3"> <input className={getInputStyleClasses(passwordError)} id={name} name={name} type="password" ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductOptionLink.tsx
starters/shopify-next-tailwind/components/ProductOptionLink.tsx
'use client'; import { ReactNode, useMemo } from 'react'; import { useLocation } from 'react-use'; import { Link } from './Link'; import { usePathname } from 'next/navigation'; function ProductOptionLink({ optionName, optionValue, children, ...props }: { optionName: string; optionValue: string; children?: React...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/NumericInput.tsx
starters/shopify-next-tailwind/components/NumericInput.tsx
type IAction = 'plus' | 'minus'; interface INumericIput { line: any; onClick: (action: IAction) => void; } const NumericIput = ({ line, onClick }: INumericIput) => { if (!line || typeof line?.quantity === 'undefined') return null; const { id: lineId, quantity } = line; const prevQuantity = Number(Math.max(0, quan...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/FormModal.tsx
starters/shopify-next-tailwind/components/FormModal.tsx
import { Button } from './Button'; import { IconClose } from './Icon'; import { Text } from './Text'; interface IFormModal { heading: string; children: React.ReactNode; action: () => void; } function FormModal({ heading, children, action }: IFormModal) { return ( <> <div className="fixed inset-0 z-20 transit...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/MoneyComponent.tsx
starters/shopify-next-tailwind/components/MoneyComponent.tsx
import { type ReactNode } from 'react'; import type { Money } from '@/lib/shopify/types'; import type { PartialDeep } from 'type-fest'; import { useMoney } from '@/lib/useMoney'; export interface MoneyPropsBase<ComponentGeneric extends React.ElementType> { /** An HTML tag or React Component to be rendered as the base ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/AddToCartButton.tsx
starters/shopify-next-tailwind/components/AddToCartButton.tsx
'use client'; import { CartLineInput } from '@/lib/shopify/types'; import { Button } from './Button'; import useCartFetcher from '@/hooks/useCartFetcher'; import useAppStore from '@/store/app-store'; export function AddToCartButton({ children, lines, className = '', variant = 'primary', width = 'full', disabled, ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductCard.tsx
starters/shopify-next-tailwind/components/ProductCard.tsx
'use client'; import clsx from 'clsx'; import { getProductPlaceholder } from '@/lib/placeholders'; import type { Money, Product, ShopifyAnalyticsProduct, } from '@/lib/shopify/types'; import { Link } from './Link'; import { Text } from './Text'; import Image from 'next/image'; import { Money as MoneyComponent } from...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ArticleCard.tsx
starters/shopify-next-tailwind/components/ArticleCard.tsx
import Image from 'next/image'; import { Link } from './Link'; import { Article } from '@/lib/shopify/types'; function ArticleCard({ blogHandle, article, }: { blogHandle: string; article: Article; }) { const date = new Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'long', day: 'numeric', }).format...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/FeaturedCollection.tsx
starters/shopify-next-tailwind/components/FeaturedCollection.tsx
import CollectionCard from './CollectionCard'; import { Section } from './Text'; import { Grid } from './Grid'; import { Collection } from '@/lib/shopify/types'; export function FeaturedCollections({ collections, title = 'Collections', ...props }: { collections: Collection[]; title?: string; [key: string]: any; ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductGrid.tsx
starters/shopify-next-tailwind/components/ProductGrid.tsx
'use client'; import { Product } from '@/lib/shopify/types'; import { Grid } from './Grid'; import { ProductCard } from './ProductCard'; import { useEffect, useState } from 'react'; import { Button } from './Button'; import { useInView } from 'react-intersection-observer'; import { useSearchParams } from 'next/navigati...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/AccountDetails.tsx
starters/shopify-next-tailwind/components/AccountDetails.tsx
import { Link } from '@/components/Link'; import { Customer } from '@/lib/shopify/types'; import { convertObjectToQueryString } from '@/lib/utils'; function AccountDetails({ customer }: { customer: Customer }) { const { firstName, lastName, email, phone } = customer; const formattedFirstName = firstName ? firstName +...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Drawer.tsx
starters/shopify-next-tailwind/components/Drawer.tsx
import { Fragment } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { Heading } from '@/components/Text'; import { IconClose } from '@/components/Icon'; import clsx from 'clsx'; /** * Drawer component that opens on user click. * @param heading - string. Shown at the top of the drawer. ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ImageComponent.tsx
starters/shopify-next-tailwind/components/ImageComponent.tsx
import * as React from 'react'; import type { PartialDeep } from 'type-fest'; import type { Image as ImageType } from '@/lib/shopify/types'; type SrcSetOptions = { intervals: number; startingWidth: number; incrementSize: number; placeholderWidth: number; }; type HtmlImageProps = React.DetailedHTMLProps< React.ImgH...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Link.tsx
starters/shopify-next-tailwind/components/Link.tsx
'use client'; import { usePathname } from 'next/navigation'; import { default as NextLink, LinkProps as NextLinkProps } from 'next/link'; type LinkProps = Omit<NextLinkProps, 'className'> & { className?: string | ((props: { isActive: boolean }) => string | undefined); children: React.ReactNode; }; export function Li...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductListBox.tsx
starters/shopify-next-tailwind/components/ProductListBox.tsx
'use client'; import { Listbox } from '@headlessui/react'; import { useRef } from 'react'; import clsx from 'clsx'; import { IconCaret, IconCheck } from '.'; import ProductOptionLink from './ProductOptionLink'; import useProductOption from '@/hooks/useProductOption'; interface IOption { name: string; values: strin...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductGallery.tsx
starters/shopify-next-tailwind/components/ProductGallery.tsx
import cn from 'clsx'; import Image from 'next/image'; const ProductGallery = ({ media, className, }: { media: any['node'][]; className?: string; }) => { if (!media.length) { return null; } return ( <div className={`swimlane md:grid-flow-row hiddenScroll md:p-0 md:overflow-x-auto md:grid-cols-2 ${classN...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ProductSwimlane.tsx
starters/shopify-next-tailwind/components/ProductSwimlane.tsx
import { Product } from '@/lib/shopify/types'; import { ProductCard } from './ProductCard'; import { Section } from './Text'; const mockProducts = new Array(12).fill(''); export function ProductSwimlane({ title = 'Featured Products', products = mockProducts, count = 12, ...props }: { title?: string; products?: ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Skeleton.tsx
starters/shopify-next-tailwind/components/Skeleton.tsx
import clsx from 'clsx'; /** * A shared component and Suspense call that's used in `App.server.jsx` to let your app wait for code to load while declaring a loading state */ export function Skeleton({ as: Component = 'div', width, height, className, ...props }: { as?: React.ElementType; width?: string; height...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Grid.tsx
starters/shopify-next-tailwind/components/Grid.tsx
import clsx from 'clsx'; export function Grid({ as: Component = 'div', className, flow = 'row', gap = 'default', items = 4, layout = 'default', ...props }: { as?: React.ElementType; className?: string; flow?: 'row' | 'col'; gap?: 'default' | 'blog'; items?: number; layout?: 'default' | 'products' | 'auto'...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Cart.tsx
starters/shopify-next-tailwind/components/Cart.tsx
import clsx from 'clsx'; import { useRef, useState } from 'react'; import { useScroll } from 'react-use'; import CartLineItem from './CartLineItem'; import { IconRemove } from './Icon'; import { Text } from './Text'; import { Money } from './MoneyComponent'; import { Button } from './Button'; import { CartCost, CartLin...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/FeaturedSection.tsx
starters/shopify-next-tailwind/components/FeaturedSection.tsx
import { Collection, Product } from '@/lib/shopify/types'; import { FeaturedCollections } from './FeaturedCollection'; import { ProductSwimlane } from './ProductSwimlane'; interface Iprops { featuredCollections: Collection[]; featuredProducts: Product[]; } export function FeaturedSection({ featuredCollections = [],...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Hero.tsx
starters/shopify-next-tailwind/components/Hero.tsx
import clsx from 'clsx'; import { Link } from './Link'; import { Heading, Text } from './Text'; import { Image as ImageType, Metafield } from '@/lib/shopify/types'; import Image from 'next/image'; export interface CollectionHero { byline: Metafield; cta: Metafield; handle: string; heading: Metafield; height?: 'fu...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/CollectionCard.tsx
starters/shopify-next-tailwind/components/CollectionCard.tsx
import { Link } from './Link'; import Image from 'next/image'; import { Heading } from './Text'; import { Collection } from '@/lib/shopify/types'; const CollectionCard = ({ collection }: { collection: Collection }) => { return ( <Link href={`/collections/${collection.handle}`}> <div className="grid gap-4"> <d...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/AccountForm.tsx
starters/shopify-next-tailwind/components/AccountForm.tsx
import { getInputStyleClasses } from '@/lib/utils'; import { Button } from './Button'; import { Customer, CustomerUpdateInput } from '@/lib/shopify/types'; import FormButton from '@/app/account/component/FormButton'; import { Text } from '@/components/Text'; import Password from './Password'; import { cookies } from 'n...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ShopPayButton.tsx
starters/shopify-next-tailwind/components/ShopPayButton.tsx
import { FC } from 'react'; import { Button } from './Button'; import { Link } from './Link'; interface ShopPayButtonProps { variantIds: string[]; className?: string; variantIdsAndQuantities?: { [variantId: string]: number }; width?: 'full' | 'auto'; storeDomain: string; } const ShopPayButton: FC<ShopPayButtonPro...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/FeaturedProducts.tsx
starters/shopify-next-tailwind/components/FeaturedProducts.tsx
import clsx from 'clsx'; import { useEffect, useId, useState } from 'react'; import { Product, ProductSortKeys } from '@/lib/shopify/types'; import { Heading, Text } from './Text'; import { ProductCard } from './ProductCard'; import { Skeleton } from './Skeleton'; interface FeaturedProductsProps { count: number; hea...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Button.tsx
starters/shopify-next-tailwind/components/Button.tsx
import { forwardRef } from 'react'; import Link from 'next/link'; import clsx from 'clsx'; import { missingClass } from '@/lib/utils'; export const Button = forwardRef( ( { as = 'button', className = '', variant = 'primary', width = 'auto', ...props }: { as?: React.ElementType; className?: s...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Text.tsx
starters/shopify-next-tailwind/components/Text.tsx
import { formatText, missingClass } from '@/lib/utils'; import clsx from 'clsx'; export function Text({ as: Component = 'span', className, color = 'default', format, size = 'copy', width = 'default', children, ...props }: { as?: React.ElementType; className?: string; color?: 'default' | 'primary' | 'subtle'...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Icon.tsx
starters/shopify-next-tailwind/components/Icon.tsx
import clsx from 'clsx'; export type IconProps = JSX.IntrinsicElements['svg'] & { direction?: 'up' | 'right' | 'down' | 'left'; }; export function Icon({ children, className, fill = 'currentColor', stroke, ...props }: IconProps) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/EmptyOrder.tsx
starters/shopify-next-tailwind/components/EmptyOrder.tsx
import { Button } from './Button'; import { Text } from './Text'; export default function EmptyOrders() { return ( <div> <Text className="mb-1" size="fine" width="narrow" as="p"> You haven&apos;t placed any orders yet. </Text> <div className="w-48"> <Button className="w-full mt-2 text-sm" variant="...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/index.ts
starters/shopify-next-tailwind/components/index.ts
export * from './Icon';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/OrderCard.tsx
starters/shopify-next-tailwind/components/OrderCard.tsx
import { getIdFromURL, statusMessage } from '@/lib/utils'; import { Heading, Text } from './Text'; import { flattenConnection } from '@/lib/flattenConnection'; import { Order } from '@/lib/shopify/types'; import { Link } from './Link'; import Image from 'next/image'; export function OrderCard({ order }: { order: Order...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/SortFilter.tsx
starters/shopify-next-tailwind/components/SortFilter.tsx
'use client'; import { SyntheticEvent, useMemo, useState } from 'react'; import { Menu, Disclosure } from '@headlessui/react'; import { useDebounce, useLocation } from 'react-use'; import { IconCaret, IconFilters, IconXMark } from './Icon'; import { Heading, Text } from './Text'; import { Link } from './Link'; import {...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/AddressCard.tsx
starters/shopify-next-tailwind/components/AddressCard.tsx
import { MailingAddress } from '@/lib/shopify/types'; import { Link } from './Link'; import { revalidatePath } from 'next/cache'; import { deleteAddress } from '@/lib/shopify'; import { cookies } from 'next/headers'; import FormButton from '@/app/account/component/FormButton'; import { convertObjectToQueryString } from...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Input.tsx
starters/shopify-next-tailwind/components/Input.tsx
import { getInputStyleClasses } from '@/lib/utils'; import clsx from 'clsx'; export function Input({ className = '', type, variant = 'default', error, ...props }: { className?: string; type?: string; variant?: 'default' | 'search' | 'minisearch'; error?: string; [key: string]: any; }) { const variants = { ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/CartLineItem.tsx
starters/shopify-next-tailwind/components/CartLineItem.tsx
import { Heading, Text } from './Text'; import { Link } from './Link'; import { IconRemove } from './Icon'; import { Money } from './MoneyComponent'; import NumericIput from './NumericInput'; import Image from 'next/image'; type IAction = 'plus' | 'minus'; interface ICartLineItem { line: any; adjustItemQuantity: (ac...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/AddressForm.tsx
starters/shopify-next-tailwind/components/AddressForm.tsx
import { getInputStyleClasses } from '@/lib/utils'; import FormModal from './FormModal'; import { MailingAddress, MailingAddressInput, Maybe, } from '@/lib/shopify/types'; import FormButton from '@/app/account/component/FormButton'; import { cookies } from 'next/headers'; import { addAddress, updateAddress, updateDe...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/ItemTabHeading.tsx
starters/shopify-next-tailwind/components/ItemTabHeading.tsx
'use client'; import clsx from 'clsx'; import ProductOptionLink from './ProductOptionLink'; import { Text } from './Text'; import useProductOption from '@/hooks/useProductOption'; interface IOption { name: string; values: string[]; } const ItemTabHeading = (option: IOption) => { const { isChecked, searchDefaultOp...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/Orders.tsx
starters/shopify-next-tailwind/components/Orders.tsx
import { Order } from '@/lib/shopify/types'; import { OrderCard } from './OrderCard'; export default function Orders({ orders }: { orders: Order[] }) { return ( <ul className="grid grid-flow-row grid-cols-1 gap-2 gap-y-6 md:gap-4 lg:gap-6 false sm:grid-cols-3"> {orders.map(order => ( <OrderCard order={order}...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Input.stories.tsx
starters/shopify-next-tailwind/components/stories/Input.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { Input } from '../Input'; export default { title: 'Components/Input', component: Input, argTypes: { variant: { control: { type: 'select', options: ['search', 'minisearch'], }, }, }, } as Meta; const Template: StoryFn = args => <Input {......
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/CardLineItem.stories.tsx
starters/shopify-next-tailwind/components/stories/CardLineItem.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import CardLineItem from '../CartLineItem'; const mockedLine = { id: 'dsahjsdh', quantity: 2, cost: { amountPerQuantity: { amount: '100', currencyCode: 'USD', }, compareAtAmountPerQuantity: { amount: '200', currencyCode: 'USD', }, totalAmount: ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/AccountForm.stories.tsx
starters/shopify-next-tailwind/components/stories/AccountForm.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; // import AccountForm from '../AccountForm'; export default { title: 'Components/AccountForm', // component: AccountForm, } as Meta; // const mockedCustomer = { // firstName: 'Mattia', // lastName: 'Magi', // phone: '333333333', // email: 'test.test@gmail.com', ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/AddressForm.stories.tsx
starters/shopify-next-tailwind/components/stories/AddressForm.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; // import AddressForm from '../AddressForm'; // import { address } from './data'; export default { title: 'Components/AddressForm', // component: AddressForm, } as Meta; // const defaultAddress = { // ...address, // }; const Template: StoryFn = () => ( <p classNa...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/ProductCard.stories.tsx
starters/shopify-next-tailwind/components/stories/ProductCard.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { ProductCard } from '../ProductCard'; export default { title: 'Components/ProductCard', component: ProductCard, argTypes: { product: { control: { disable: true, }, }, }, } as Meta; const mockedProduct = { id: 'id', handle: 'handle', availa...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/ArticleCard.stories.tsx
starters/shopify-next-tailwind/components/stories/ArticleCard.stories.tsx
import { StoryFn, Meta } from '@storybook/react'; import { Article } from '@/lib/shopify/types'; import ArticleCard from '../ArticleCard'; export default { title: 'Components/ArticleCard', component: ArticleCard, } as Meta; const Template: StoryFn<{ blogHandle: string; article: Article; loading?: HTMLImageElemen...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/ShopPayButton.stories.tsx
starters/shopify-next-tailwind/components/stories/ShopPayButton.stories.tsx
import ShopPayButton from '../ShopPayButton'; import { StoryFn, Meta } from '@storybook/react'; export default { title: 'Components/ShopPayButton', component: ShopPayButton, } as Meta; const Template: StoryFn<{ variantIds: string[]; storeDomain: string; width: 'full' | 'auto'; }> = args => ( <div style={{ ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Link.stories.tsx
starters/shopify-next-tailwind/components/stories/Link.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { Link } from '../Link'; export default { title: 'Components/Link', component: Link, argTypes: { className: { control: 'text', }, href: { control: 'text', }, as: { control: { disable: true, }, }, locale: { control: { disab...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Icon.stories.tsx
starters/shopify-next-tailwind/components/stories/Icon.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { Icon, IconProps, IconMenu, IconClose, IconAccount, IconArrow, IconBag, IconCaret, IconCheck, IconFilters, IconHelp, IconLogin, IconRemove, IconSearch, IconSelect, IconXMark, } from '../Icon'; export default { title: 'Components/Icons', compon...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/AddToCartButton.stories.tsx
starters/shopify-next-tailwind/components/stories/AddToCartButton.stories.tsx
import { StoryFn, Meta } from '@storybook/react'; import { CartLineInput } from '@/lib/shopify/types'; import { AddToCartButton } from '../AddToCartButton'; import { Money } from '../MoneyComponent'; import { Text } from '../Text'; export default { title: 'Components/AddToCartButton', component: AddToCartButton, ar...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/CollectionCard.stories.tsx
starters/shopify-next-tailwind/components/stories/CollectionCard.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import CollectionCard from '../CollectionCard'; import { Collection } from '@/lib/shopify/types'; export default { title: 'Components/CollectionCard', component: CollectionCard, argTypes: { collection: { control: { disable: true, }, }, }, } as Meta; ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/AddressCard.stories.tsx
starters/shopify-next-tailwind/components/stories/AddressCard.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; // import AddressCard from '../AddressCard'; // import { address } from './data'; export default { title: 'Components/AddressCard', // component: AddressCard, } as Meta; const Template: StoryFn = () => ( <p className="text-red-500"> This story has compatibility i...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/SortFilter.stories.tsx
starters/shopify-next-tailwind/components/stories/SortFilter.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { SortFilter } from '../SortFilter'; import { Collection, Filter } from '@/lib/shopify/types'; export default { title: 'Components/SortFilter', component: SortFilter, } as Meta; const mockedFilters = [ { id: 'filter.v.availability', label: 'Availability'...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Grid.stories.tsx
starters/shopify-next-tailwind/components/stories/Grid.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { Grid } from '../Grid'; export default { title: 'Components/Grid', component: Grid, argTypes: { flow: { control: 'select', options: ['row', 'col'], }, gap: { control: 'select', options: ['default', 'blog'], }, layout: { control: 'sel...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Button.stories.tsx
starters/shopify-next-tailwind/components/stories/Button.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import { Button } from '../Button'; export default { title: 'Components/Button', component: Button, argTypes: { variant: { control: 'select', options: ['primary', 'secondary', 'inline'], }, width: { control: 'select', options: ['auto', 'full'], }...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/ProductListBox.stories.tsx
starters/shopify-next-tailwind/components/stories/ProductListBox.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import ProductListBox from '../ProductListBox'; export default { title: 'Components/Product List Box', component: ProductListBox, } as Meta; const Template: StoryFn = () => ( <ProductListBox name="Material" values={[ 'Carbon-fiber', 'Polycarbonate', '...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/NumericInput.stories.tsx
starters/shopify-next-tailwind/components/stories/NumericInput.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import NumericIput from '../NumericInput'; export default { title: 'Components/Numericinput', component: NumericIput, } as Meta; const Template: StoryFn = () => ( <div className="w-32"> <NumericIput line={{ id: 'sjhashj', quantity: 1 }} onClick={() => null} /> <...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/AccountDetails.stories.tsx
starters/shopify-next-tailwind/components/stories/AccountDetails.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import AccountDetails from '../AccountDetails'; export default { title: 'Components/AccountDetails', component: AccountDetails, } as Meta; const mockedCustomer = { firstName: 'Mattia', lastName: 'Magi', phone: '333333333', email: 'test.test@gmail.com', defaultA...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/itemTabHeading.stories.tsx
starters/shopify-next-tailwind/components/stories/itemTabHeading.stories.tsx
import { Meta, StoryFn } from '@storybook/react'; import ItemTabHeading from '../ItemTabHeading'; export default { title: 'Components/ItemTabHeading', component: ItemTabHeading, } as Meta; const SizeTemplate: StoryFn = () => ( <ItemTabHeading name="Size" values={['154cm', '158cm', '160cm']} /> ); export const Si...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/data.ts
starters/shopify-next-tailwind/components/stories/data.ts
import { MailingAddress } from '@/lib/shopify/types'; export const address = { address1: 'Oluyole', address2: 'Sango Ota', firstName: 'Jerry', lastName: 'Hogan', phone: '2347030995296', formattedArea: 'Ibadan, Nigeria', formatted: ['Oluyole', 'Sango Ota', '112212 Ibadan', 'Nigeria'], name: 'Jerry Hogan', id: ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Text/PageHeader.stories.tsx
starters/shopify-next-tailwind/components/stories/Text/PageHeader.stories.tsx
import { PageHeader } from '../../Text'; import { StoryFn, Meta } from '@storybook/react'; export default { title: 'Typography Components/PageHeader', component: PageHeader, argTypes: { variant: { control: { type: 'select', options: ['default', 'blogPost', 'allCollections'], }, }, }, } as Meta; ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Text/Heading.stories.tsx
starters/shopify-next-tailwind/components/stories/Text/Heading.stories.tsx
import { Heading } from '../../Text'; import { StoryFn, Meta } from '@storybook/react'; export default { title: 'Typography Components/Heading', component: Heading, argTypes: { size: { control: { type: 'select', options: ['display', 'heading', 'lead', 'copy'], }, }, width: { control: { ty...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Text/Text.stories.tsx
starters/shopify-next-tailwind/components/stories/Text/Text.stories.tsx
import { Text } from '../../Text'; import { StoryFn, Meta } from '@storybook/react'; export default { title: 'Typography Components/Text', component: Text, argTypes: { color: { control: { type: 'select', options: ['default', 'primary', 'subtle', 'notice', 'contrast'], }, }, size: { control: {...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/components/stories/Text/Section.stories.tsx
starters/shopify-next-tailwind/components/stories/Text/Section.stories.tsx
import { Section } from '../../Text'; import { StoryFn, Meta } from '@storybook/react'; export default { title: 'Typography Components/Section', component: Section, argTypes: { divider: { control: { type: 'select', options: ['none', 'top', 'bottom', 'both'], }, }, display: { control: { ty...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/useMoney.ts
starters/shopify-next-tailwind/lib/useMoney.ts
import type { Money } from '@/lib/shopify/types'; export type UseMoneyValue = { /** * The currency code from the `MoneyV2` object. */ currencyCode: CurrencyCode; /** * The name for the currency code, returned by `Intl.NumberFormat`. */ currencyName?: string; /** * The currency symbol returned by `Intl.N...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/const.ts
starters/shopify-next-tailwind/lib/const.ts
export const PAGE_BY = 8; export const BLOG_HANDLE = 'Journal';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/truncate.ts
starters/shopify-next-tailwind/lib/truncate.ts
export function truncate(str: string, num = 155): string { if (typeof str !== 'string') return ''; if (str.length <= num) { return str; } return str.slice(0, num - 3) + '...'; }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/type-guards.ts
starters/shopify-next-tailwind/lib/type-guards.ts
export interface ShopifyErrorLike { status: number; message: Error; } export const isObject = ( object: unknown ): object is Record<string, unknown> => { return ( typeof object === 'object' && object !== null && !Array.isArray(object) ); }; export const isShopifyError = (error: unknown): error is ShopifyErrorL...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/flattenConnection.ts
starters/shopify-next-tailwind/lib/flattenConnection.ts
type ConnectionEdges = { edges: { node: Array<unknown>; }[]; }; type ConnectionNodes = { nodes: Array<unknown>; }; export function flattenConnection<T>( connection: ConnectionEdges | ConnectionNodes ) { if (!connection) { return [] as any; } if ('edges' in connection) { return connection.edges.map(edge => ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/placeholders.ts
starters/shopify-next-tailwind/lib/placeholders.ts
import { Product } from './shopify/types'; // Demo store placeholders const PLACEHOLDERS = { HEROS: [ // primaryHero { heading: { value: 'All Mountain All Season' }, byline: { value: 'The All New Hydrogen Snowboard Exclusively From Shopify', }, cta: { value: 'Shop Now →' }, handle: 'freestyle',...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/utils.ts
starters/shopify-next-tailwind/lib/utils.ts
// @ts-expect-error types not available import typographicBase from 'typographic-base'; import { Money } from './shopify/types'; export function missingClass(string?: string, prefix?: string) { if (!string) { return true; } const regex = new RegExp(` ?${prefix}`, 'g'); return regex.exec(string) === null; } exp...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/isAuthenticated.ts
starters/shopify-next-tailwind/lib/isAuthenticated.ts
import { NextRequest } from 'next/server'; const isAuthenticated = (request: NextRequest) => { const customerAccessToken = request.cookies.get('customerAccessToken')?.value; return customerAccessToken; }; export default isAuthenticated;
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/constants.ts
starters/shopify-next-tailwind/lib/constants.ts
export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2023-01/graphql.json'; export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/handleCollectionProductsSearchParams.ts
starters/shopify-next-tailwind/lib/handleCollectionProductsSearchParams.ts
import { FiltersQueryParams } from '@/app/collections/[collectionHandle]/page'; import { AppliedFilter, SortParam } from '@/components/SortFilter'; export const handleCollectionProductsSearchParams = ( params: Record<string, string> ) => { const urlSearchParams = new URLSearchParams(params); const variantOption = ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/types.ts
starters/shopify-next-tailwind/lib/shopify/types.ts
import { FiltersQueryParams } from '@/app/collections/[collectionHandle]/page'; import { CollectionHero } from '@/components/Hero'; import { LanguageCode } from '@shopify/hydrogen-react/storefront-api-types'; export type Shop = { id: string; name: string; description: string | null; currencyCode: CurrencyCode; pr...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
true
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/index.ts
starters/shopify-next-tailwind/lib/shopify/index.ts
import { HIDDEN_PRODUCT_TAG, SHOPIFY_GRAPHQL_API_ENDPOINT, } from '@/lib/constants'; import { isShopifyError } from '@/lib/type-guards'; import { LAYOUT_QUERY } from './queries/layout'; import { ALL_PRODUCTS_QUERY } from './queries/product'; import { COLLECTIONS_QUERY, COLLECTION_QUERY, SORTED_AND_FILTERED_PRODUCT...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/mutations/cart.ts
starters/shopify-next-tailwind/lib/shopify/mutations/cart.ts
import { cartFragment } from '../queries/fragments'; export const addToCartMutation = `#graphql ${cartFragment} mutation addToCart($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { ...CartFragment } } } `; export const createCartMutation...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/mutations/auth.ts
starters/shopify-next-tailwind/lib/shopify/mutations/auth.ts
export const CUSTOMER_CREATE_MUTATION = `#graphql mutation customerCreate($input: CustomerCreateInput!) { customerCreate(input: $input) { customer { id } customerUserErrors { code field message } } } `; export const LOGIN_MUTATION = `#graphql mutati...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false