diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 33d5e720..9b124fe7 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -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", diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.ts index 1103eca3..c6859c66 100644 --- a/packages/design-system/src/index.ts +++ b/packages/design-system/src/index.ts @@ -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' diff --git a/packages/design-system/src/ui/future.ts b/packages/design-system/src/ui/future.ts new file mode 100644 index 00000000..54ae586f --- /dev/null +++ b/packages/design-system/src/ui/future.ts @@ -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' diff --git a/packages/design-system/vite.config.ts b/packages/design-system/vite.config.ts index a45012a0..af771734 100644 --- a/packages/design-system/vite.config.ts +++ b/packages/design-system/vite.config.ts @@ -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'], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f767aab..b67e04d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -150,8 +150,8 @@ importers: specifier: 3.6.0 version: 3.6.0 dayjs: - specifier: 1.0.0 - version: 1.0.0 + specifier: 1.11.12 + version: 1.11.12 embla-carousel-react: specifier: 8.1.8 version: 8.1.8(react@18.3.1) @@ -3512,8 +3512,8 @@ packages: dateformat@3.0.3: resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} - dayjs@1.0.0: - resolution: {integrity: sha512-Vd/01iVwNVDxDqs+6pEyNAC9pC9DiF3HNlW+C0Tlqo7zwZ2rh768aL2UZL9+rwPLlwNtDg3vUwkEzk7PXrMf2g==} + dayjs@1.11.12: + resolution: {integrity: sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==} de-indent@1.0.2: resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} @@ -10672,7 +10672,7 @@ snapshots: dateformat@3.0.3: {} - dayjs@1.0.0: {} + dayjs@1.11.12: {} de-indent@1.0.2: {}