Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// @spree/dashboard-ui — Spree Dashboard design system.
//
// Shadcn primitives + headless composed components + design tokens.
// Consumers import flat from this barrel:
//
// import { Button, Card, PageHeader } from '@spree/dashboard-ui'
//
// Or import a specific file (for forking, lazy-loading, or to skip the barrel):
//
// import { Button } from '@spree/dashboard-ui/ui/button'
//
// CSS lives at `@spree/dashboard-ui/styles.css` — import once from your Vite app.
export * from './hooks/use-copy-to-clipboard'
export * from './hooks/use-debounced-value'
export { useIsMobile } from './hooks/use-mobile'
export * from './hooks/use-prefers-reduced-motion'
export * from './hooks/use-scrolled'
// ---------------------------------------------------------------------------
// Helpers + hooks
// ---------------------------------------------------------------------------
export {
type DateRangePresetKey,
matchDateRangePreset,
resolveDateRangePreset,
} from './lib/date-range-presets'
export { sameRichText, shouldEmitRichTextChange } from './lib/same-rich-text'
export { cn } from './lib/utils'
export { decimalPlacesMessage, requiredMessage } from './lib/validation-messages'
// ---------------------------------------------------------------------------
// Spree composed components — headless, accept data via props
// ---------------------------------------------------------------------------
export * from './spree/address-block'
export * from './spree/address-book-row'
export * from './spree/address-select'
export * from './spree/back-button'
export * from './spree/bulk-dialog'
export * from './spree/bulk-price-table'
export * from './spree/bulk-variants-table'
export * from './spree/calculator-summary'
export * from './spree/claim-resolve-dialog'
export * from './spree/collapsible-card'
export * from './spree/color-picker'
export * from './spree/confirm-dialog'
export * from './spree/copy-to-clipboard-button'
export * from './spree/country-flag'
export * from './spree/data-grid'
export * from './spree/delivery-form-dialog'
export * from './spree/drag-handle'
export * from './spree/editable-note-card'
export * from './spree/file-type-icon'
export * from './spree/form-actions'
export * from './spree/form-section'
export * from './spree/fulfill-items-form'
export * from './spree/fulfillment-edit-dialog'
export * from './spree/fulfillment-item-list'
export * from './spree/fulfillment-panel'
export * from './spree/label-upload-dialog'
export * from './spree/order-cancel-dialog'
export * from './spree/post-sale-create-dialogs'
export * from './spree/post-sale-fields'
export * from './spree/quantity-tier-editor'
export * from './spree/return-dialogs'
// JsonPreviewDrawer and JsonValueView are intentionally NOT re-exported from
// this barrel: they pull in `@uiw/react-json-view` (~30KB gzip), and
// code-splitting only works when consumers can deep-import via
// `@spree/dashboard-ui/spree/json-preview-drawer` and
// `@spree/dashboard-ui/spree/json-value-view`. Types are available the same
// way — `import { type JsonPreviewDrawerProps } from '@spree/dashboard-ui/spree/json-preview-drawer'`.
// CodeEditor (CodeMirror) is deep-imported for the same reason:
// `@spree/dashboard-ui/ui/code-editor`.
export * from './spree/external-link'
export * from './spree/language-menu-items'
export * from './spree/metadata/metadata-card'
export * from './spree/product-membership-list'
export * from './spree/products/status-card'
export * from './spree/relative-time'
export * from './spree/resource-combobox'
export * from './spree/resource-layout'
export * from './spree/resource-multi-autocomplete'
export * from './spree/resource-name-cell'
export * from './spree/route-error-boundary'
export * from './spree/row-actions'
export * from './spree/row-click-bridge'
export * from './spree/search-input'
export * from './spree/secret-input'
export * from './spree/step-icon'
export * from './spree/storefront-visible-switch'
export * from './spree/tag-list'
export * from './spree/tax-identifiers-card'
export * from './spree/theme-provider'
export * from './spree/theme-toggle'
export * from './spree/wizard'
// ---------------------------------------------------------------------------
// UI primitives (shadcn) — see ./ui/*
// ---------------------------------------------------------------------------
export * from './ui/accordion'
export * from './ui/alert'
export * from './ui/attachment'
export * from './ui/avatar'
export * from './ui/badge'
export * from './ui/breadcrumb'
export * from './ui/button'
export * from './ui/calendar'
export * from './ui/card'
export * from './ui/chart'
export * from './ui/checkbox'
export * from './ui/collapsible'
export * from './ui/combobox'
export * from './ui/command'
export * from './ui/context-menu'
export * from './ui/data-table'
export * from './ui/date-picker'
export * from './ui/date-range-picker'
export * from './ui/dialog'
export * from './ui/dropdown-menu'
export * from './ui/empty'
export * from './ui/field'
export * from './ui/input'
export * from './ui/input-group'
export * from './ui/item'
export * from './ui/label'
export * from './ui/media-preview'
export * from './ui/pagination'
export * from './ui/popover'
export * from './ui/progress'
export * from './ui/radio-group'
export * from './ui/rich-text-editor'
export * from './ui/scroll-area'
export * from './ui/select'
export * from './ui/separator'
export * from './ui/sheet'
export * from './ui/sidebar'
export * from './ui/skeleton'
export * from './ui/slot'
export * from './ui/switch'
export * from './ui/tabs'
export * from './ui/textarea'
export * from './ui/thumbnail'
export * from './ui/toast'
export * from './ui/tooltip'