Skip to content

Commit

Permalink
build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Aug 8, 2024
1 parent 1a9699f commit bf9024b
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 65 deletions.
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@fortawesome/react-fontawesome": "0.2.2",
"class-variance-authority": "0.7.0",
"clsx": "2.1.1",
"dayjs": "1.0.0",
"dayjs": "1.11.12",
"formik": "2.4.3",
"lucide-react": "0.424.0",
"postcss-import": "15.1.0",
Expand Down
100 changes: 43 additions & 57 deletions packages/design-system/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,59 +1,45 @@
import '@/tailwind.css'

// export { default as Button } from './Button'
// export { default as Checkbox } from './Checkbox'
// export { default as Collapsible } from './Collapsible'
// export { default as ColorPicker } from './ColorPicker'
// export { default as Countdown } from './Countdown'
// export { default as CycleCountdown } from './CycleCountdown'
// export { default as CycleProgress } from './CycleProgress'
// export { default as DateChanger } from './DateChanger'
// export { default as Dropdown } from './Dropdown'
// export { default as Header } from './Header'
// export { default as Modal } from './Modal'
// export { default as Navigation } from './Navigation'
// export { default as NotificationBadgeWrapper } from './NotificationBadgeWrapper'
// export { default as Progress } from './Progress'
// export { default as Prose } from './Prose'
// export { default as Select } from './Select'
// export { default as Slider } from './Slider'
// export { default as StepProgress } from './StepProgress'
// export { default as Switch } from './Switch'
// export { default as Table } from './Table'
// export { default as Tabs } from './Tabs'
// export { default as Tag } from './Tag'
// export { default as Toast } from './Toast'
// export { default as Tooltip } from './Tooltip'
// export { default as UserNotification } from './UserNotification'
// export { default as Workflow } from './Workflow'
// export { default as FormikColorPicker } from './forms/FormikColorPicker'
// export { default as FormikDateChanger } from './forms/FormikDateChanger'
// export { default as FormikDateField } from './forms/FormikDateField'
// export { default as FormikNumberField } from './forms/FormikNumberField'
// export { default as FormikPinField } from './forms/FormikPinField'
// export { default as FormikSelectField } from './forms/FormikSelectField'
// export { default as FormikSwitchField } from './forms/FormikSwitchField'
// export { default as FormikTextField } from './forms/FormikTextField'
// export { default as FormikTextareaField } from './forms/FormikTextareaField'
// export { default as Label } from './forms/Label'
// export { default as NewFormikDateChanger } from './forms/NewFormikDateChanger'
// export { default as NewFormikDateField } from './forms/NewFormikDateField'
// export { default as NewFromikNumberField } from './forms/NewFormikNumberField'
// export { default as NewFormikPinField } from './forms/NewFormikPinField'
// export { default as NewFormikSelectField } from './forms/NewFormikSelectField'
// export { default as NewFormikSwitchField } from './forms/NewFormikSwitchField'
// export { default as NewFormikTextField } from './forms/NewFormikTextField'
// export { default as NewFormikTextareaField } from './forms/NewFormikTextareaField'
// export { default as NumberField } from './forms/NumberField'
// export { default as SelectField } from './forms/SelectField'
// export { default as TextField } from './forms/TextField'
// export { default as TextareaField } from './forms/TextareaField'
// export { useArrowNavigation } from './hooks/useArrowNavigation'

// export {
// Accordion,
// AccordionContent,
// AccordionItem,
// AccordionTrigger,
// } from './ui/accordion'
export * from '@/ui/navigation-menu'
export * from './Button'
export * from './Checkbox'
export * from './Collapsible'
export * from './ColorPicker'
export * from './Countdown'
export * from './CycleCountdown'
export * from './CycleProgress'
export * from './DateChanger'
export * from './Dropdown'
export * from './Header'
export * from './Modal'
export * from './Navigation'
export * from './NotificationBadgeWrapper'
export * from './Progress'
export * from './Prose'
export * from './Select'
export * from './Slider'
export * from './StepProgress'
export * from './Switch'
export * from './Table'
export * from './Tabs'
export * from './Tag'
export * from './Toast'
export * from './Tooltip'
export * from './UserNotification'
export * from './Workflow'
export * from './forms/FormikColorPicker'
export * from './forms/FormikDateField'
export * from './forms/FormikPinField'
export * from './forms/Label'
export * from './forms/NewFormikDateChanger'
export * from './forms/NewFormikDateField'
export * from './forms/NewFormikNumberField'
export * from './forms/NewFormikPinField'
export * from './forms/NewFormikSelectField'
export * from './forms/NewFormikSwitchField'
export * from './forms/NewFormikTextField'
export * from './forms/NewFormikTextareaField'
export * from './forms/NumberField'
export * from './forms/SelectField'
export * from './forms/TextField'
export * from './forms/TextareaField'
export * from './hooks/useArrowNavigation'
47 changes: 47 additions & 0 deletions packages/design-system/src/ui/future.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
export * from './accordion'
export * from './alert'
export * from './alert-dialog'
export * from './aspect-ratio'
export * from './avatar'
export * from './badge'
export * from './breadcrumb'
export * from './button'
export * from './calendar'
export * from './card'
export * from './carousel'
export * from './chart'
export * from './checkbox'
export * from './collapsible'
export * from './context-menu'
export * from './dialog'
export * from './drawer'
export * from './dropdown-menu'
export * from './form'
export * from './hover-card'
export * from './input'
export * from './input-otp'
export * from './label'
export * from './menubar'
export * from './navigation-menu'
export * from './pagination'
export * from './popover'
export * from './progress'
export * from './radio-group'
export * from './resizable'
export * from './scroll-area'
export * from './select'
export * from './separator'
export * from './sheet'
export * from './skeleton'
export * from './slider'
export { Toaster as Sonner } from './sonner'
export * from './switch'
export * from './table'
export * from './tabs'
export * from './textarea'
export * from './toast'
export * from './toaster'
export * from './toggle'
export * from './toggle-group'
export * from './tooltip'
export * from './use-toast'
6 changes: 4 additions & 2 deletions packages/design-system/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ export default defineConfig({
],
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
entry: [
path.resolve(__dirname, 'src/index.ts'),
path.resolve(__dirname, 'src/ui/future.ts'),
],
formats: ['es'],
fileName: 'index',
},
rollupOptions: {
external: ['react'],
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf9024b

Please sign in to comment.