@mbao01/common 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/types/components/Chart/stories/args/activeShapeArgs.d.ts +1 -1
  2. package/dist/types/components/Chart/stories/args/animationArgs.d.ts +1 -1
  3. package/dist/types/components/Chart/stories/args/areaArgs.d.ts +1 -1
  4. package/dist/types/components/Chart/stories/args/areaChartArgs.d.ts +1 -1
  5. package/dist/types/components/Chart/stories/args/barArgs.d.ts +1 -1
  6. package/dist/types/components/Chart/stories/args/barChartArgs.d.ts +1 -1
  7. package/dist/types/components/Chart/stories/args/cartesianChartArgs.d.ts +1 -1
  8. package/dist/types/components/Chart/stories/args/cartesianSharedArgs.d.ts +1 -1
  9. package/dist/types/components/Chart/stories/args/chartArgs.d.ts +1 -1
  10. package/dist/types/components/Chart/stories/args/dotArgs.d.ts +1 -1
  11. package/dist/types/components/Chart/stories/args/events.d.ts +1 -1
  12. package/dist/types/components/Chart/stories/args/index.d.ts +1 -1
  13. package/dist/types/components/Chart/stories/args/labelListArgs.d.ts +1 -1
  14. package/dist/types/components/Chart/stories/args/legendArgs.d.ts +1 -1
  15. package/dist/types/components/Chart/stories/args/lineArgs.d.ts +1 -1
  16. package/dist/types/components/Chart/stories/args/lineChartArgs.d.ts +1 -1
  17. package/dist/types/components/Chart/stories/args/pieArgs.d.ts +1 -1
  18. package/dist/types/components/Chart/stories/args/pieChartArgs.d.ts +1 -1
  19. package/dist/types/components/Chart/stories/args/polarChartArgs.d.ts +1 -1
  20. package/dist/types/components/Chart/stories/args/polarSharedArgs.d.ts +1 -1
  21. package/dist/types/components/Chart/stories/args/radarArgs.d.ts +1 -1
  22. package/dist/types/components/Chart/stories/args/radarChartArgs.d.ts +1 -1
  23. package/dist/types/components/Chart/stories/args/radialBarArgs.d.ts +1 -1
  24. package/dist/types/components/Chart/stories/args/radialBarChartArgs.d.ts +1 -1
  25. package/dist/types/components/Chart/stories/args/rectangleArgs.d.ts +1 -1
  26. package/dist/types/components/Chart/stories/args/referenceSharedArgs.d.ts +1 -1
  27. package/dist/types/components/Chart/stories/args/sectorArgs.d.ts +1 -1
  28. package/dist/types/components/Chart/stories/args/sharedAxisArgs.d.ts +1 -1
  29. package/dist/types/components/Chart/stories/args/stylesArgs.d.ts +1 -1
  30. package/dist/types/components/Chart/stories/args/textArgs.d.ts +1 -1
  31. package/dist/types/components/Chart/stories/args/tooltipArgs.d.ts +1 -1
  32. package/dist/types/components/Chart/stories/args/xAxisArgs.d.ts +1 -1
  33. package/dist/types/components/Chart/stories/args/yAxisArgs.d.ts +1 -1
  34. package/dist/types/components/Chart/stories/helpers/index.d.ts +2 -2
  35. package/dist/types/components/DatePicker/DateRangePicker.d.ts +1 -1
  36. package/dist/types/components/DatePicker/types.d.ts +2 -1
  37. package/dist/types/components/Form/DatetimeInput/DatetimeInput.d.ts +1 -0
  38. package/package.json +65 -71
  39. package/src/components/Chart/stories/args/activeShapeArgs.ts +1 -1
  40. package/src/components/Chart/stories/args/animationArgs.ts +1 -1
  41. package/src/components/Chart/stories/args/areaArgs.ts +1 -1
  42. package/src/components/Chart/stories/args/areaChartArgs.ts +1 -1
  43. package/src/components/Chart/stories/args/barArgs.ts +1 -1
  44. package/src/components/Chart/stories/args/barChartArgs.ts +1 -1
  45. package/src/components/Chart/stories/args/cartesianChartArgs.ts +1 -1
  46. package/src/components/Chart/stories/args/cartesianSharedArgs.ts +1 -1
  47. package/src/components/Chart/stories/args/chartArgs.ts +1 -1
  48. package/src/components/Chart/stories/args/dotArgs.ts +1 -1
  49. package/src/components/Chart/stories/args/events.ts +1 -1
  50. package/src/components/Chart/stories/args/index.ts +1 -1
  51. package/src/components/Chart/stories/args/labelListArgs.ts +1 -1
  52. package/src/components/Chart/stories/args/legendArgs.ts +1 -1
  53. package/src/components/Chart/stories/args/lineArgs.ts +1 -1
  54. package/src/components/Chart/stories/args/lineChartArgs.ts +1 -1
  55. package/src/components/Chart/stories/args/pieArgs.ts +1 -1
  56. package/src/components/Chart/stories/args/pieChartArgs.ts +1 -1
  57. package/src/components/Chart/stories/args/polarChartArgs.ts +1 -1
  58. package/src/components/Chart/stories/args/polarSharedArgs.ts +1 -1
  59. package/src/components/Chart/stories/args/radarArgs.ts +1 -1
  60. package/src/components/Chart/stories/args/radarChartArgs.ts +1 -1
  61. package/src/components/Chart/stories/args/radialBarArgs.ts +1 -1
  62. package/src/components/Chart/stories/args/radialBarChartArgs.ts +1 -1
  63. package/src/components/Chart/stories/args/rectangleArgs.ts +1 -1
  64. package/src/components/Chart/stories/args/referenceSharedArgs.ts +1 -1
  65. package/src/components/Chart/stories/args/sectorArgs.ts +1 -1
  66. package/src/components/Chart/stories/args/sharedAxisArgs.ts +1 -1
  67. package/src/components/Chart/stories/args/stylesArgs.ts +1 -1
  68. package/src/components/Chart/stories/args/textArgs.ts +1 -1
  69. package/src/components/Chart/stories/args/tooltipArgs.ts +1 -1
  70. package/src/components/Chart/stories/args/xAxisArgs.ts +1 -1
  71. package/src/components/Chart/stories/args/yAxisArgs.ts +1 -1
  72. package/src/components/Chart/stories/helpers/index.tsx +1 -1
  73. package/src/components/DatePicker/DateRangePicker.tsx +2 -0
  74. package/src/components/DatePicker/types.ts +2 -1
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const activeShapeArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const animateNewValues: ArgTypes[0];
3
3
  export declare const animationBegin: ArgTypes[0];
4
4
  export declare const animationDuration: ArgTypes[0];
@@ -1,2 +1,2 @@
1
- import { Args } from '@storybook/react';
1
+ import { Args } from '@storybook/react-vite';
2
2
  export declare const areaArgs: Args;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const areaChartArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  /**
3
3
  * MultiSelect Docs: {@link: https://shadcn-extension.vercel.app/docs/multi-select}
4
4
  */
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const barChartArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const cartesianChartArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const dataKey: ArgTypes[0];
3
3
  export declare const nameKey: ArgTypes[0];
4
4
  export declare const activeShape: ArgTypes[0];
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const data: ArgTypes[0];
3
3
  export declare const chartSizeArgs: ArgTypes;
4
4
  export declare const margin: ArgTypes[0];
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const r: ArgTypes[0];
3
3
  export declare const cx: ArgTypes[0];
4
4
  export declare const cy: ArgTypes[0];
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const onAbort: {
3
3
  table: {
4
4
  category: string;
@@ -1,5 +1,5 @@
1
1
  import { AreaProps, BarProps, LineProps, PieProps, RadarProps, RadialBarProps, XAxisProps, YAxisProps } from 'recharts';
2
- import { ArgTypes } from '@storybook/react';
2
+ import { ArgTypes } from '@storybook/react-vite';
3
3
  import { CategoricalChartProps } from 'recharts/types/chart/generateCategoricalChart';
4
4
  import { Flatten, OmitSVGElement } from './types';
5
5
  type AxisProps = {
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const labelListArgs: ArgTypes;
@@ -1,3 +1,3 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const legendType: ArgTypes[0];
3
3
  export declare const legendArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { Args } from '@storybook/react';
1
+ import { Args } from '@storybook/react-vite';
2
2
  export declare const lineArgs: Args;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const lineChartArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { Args } from '@storybook/react';
1
+ import { Args } from '@storybook/react-vite';
2
2
  export declare const pieArgs: Args;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const pieChartArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const polarChartArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const polarSharedArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const radarArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const radarChartArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const radialBarArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const radialBarChartArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const radius: ArgTypes[0];
3
3
  export declare const isUpdateAnimationActive: ArgTypes[0];
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const referenceStyleArgs: ArgTypes;
3
3
  export declare const referenceGeneralArgs: ArgTypes;
4
4
  export declare const referenceInternalArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  /**
3
3
  * Caveat: If any prop is added here, it would falsely be add to the documentation of the component
4
4
  * where this group is used. If the group is to be extended, then only single props should be imported
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const sharedAxisArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { Args, ArgTypes } from '@storybook/react';
1
+ import { Args, ArgTypes } from '@storybook/react-vite';
2
2
  export declare const hide: ArgTypes[0];
3
3
  export declare const generalStyleArgs: ArgTypes;
4
4
  export declare const labelDescription = "If false set, labels will not be drawn. If true set, labels will be drawn which have\nthe props calculated internally. If object set, labels will be drawn which have the props merged\nby the internal calculated props and the option. If ReactElement set, the option can be the custom\nlabel element. If set a function, the function will be called to render customized label.";
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const textArgs: ArgTypes;
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const tooltipType: ArgTypes[0];
3
3
  export declare const activeDot: ArgTypes[0];
4
4
  export declare const tooltipArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const xAxisArgs: ArgTypes;
@@ -1,2 +1,2 @@
1
- import { ArgTypes } from '@storybook/react';
1
+ import { ArgTypes } from '@storybook/react-vite';
2
2
  export declare const yAxisArgs: ArgTypes;
@@ -1,6 +1,6 @@
1
- import { ArgTypes, StoryContext } from '@storybook/react';
1
+ import { ArgTypes, StoryContext } from '@storybook/react-vite';
2
2
  import { ElementType } from 'react';
3
- export declare const categorizeArgs: (args: ArgTypes, category: string) => ArgTypes<import('@storybook/react').Args>;
3
+ export declare const categorizeArgs: (args: ArgTypes, category: string) => ArgTypes<import('@storybook/react-vite').Args>;
4
4
  export declare const withArgs: <T extends object>(Component: React.FC, context: StoryContext<T>) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const getArgsFromArgTypes: <T extends ArgTypes>(argsTypes: T) => Record<keyof T, unknown>;
6
6
  export declare const renderer: <T extends ElementType>(Component: T) => {
@@ -1,2 +1,2 @@
1
1
  import { DateRangePickerProps } from './types';
2
- export declare const DateRangePicker: ({ name, size, wide, label, outline, variant, disabled, defaultRange, getRangeValue, getRangeLabel, triggerClassName, ...props }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DateRangePicker: ({ name, size, wide, label, outline, variant, disabled, disabledDates, defaultRange, getRangeValue, getRangeLabel, triggerClassName, ...props }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,8 +13,9 @@ export type DatePickerProps = BaseDatePickerProps & Omit<PropsSingle, "mode"> &
13
13
  getDateLabel?: (date: Date | undefined) => string | undefined;
14
14
  getDateValue?: (date: Date | undefined) => string | undefined;
15
15
  };
16
- export type DateRangePickerProps = BaseDatePickerProps & Omit<PropsRange, "mode"> & {
16
+ export type DateRangePickerProps = BaseDatePickerProps & Omit<PropsRange, "mode" | "disabled"> & {
17
17
  defaultRange?: DateRange;
18
+ disabledDates?: PropsRange["disabled"];
18
19
  getRangeValue?: (range: DateRange | undefined) => {
19
20
  from: string | undefined;
20
21
  to: string | undefined;
@@ -46,6 +46,7 @@ export declare const DatetimeInput: import('react').ForwardRefExoticComponent<{
46
46
  hideNavigation?: boolean | undefined;
47
47
  disableNavigation?: boolean | undefined;
48
48
  captionLayout?: "label" | "dropdown" | "dropdown-months" | "dropdown-years" | undefined;
49
+ navLayout?: "around" | "after" | undefined | undefined;
49
50
  fixedWeeks?: boolean | undefined;
50
51
  hideWeekdays?: boolean | undefined;
51
52
  showWeekNumber?: boolean | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mbao01/common",
3
3
  "private": false,
4
- "version": "0.3.0",
4
+ "version": "0.4.1",
5
5
  "type": "module",
6
6
  "author": "Ayomide Bakare",
7
7
  "license": "MIT",
@@ -69,103 +69,97 @@
69
69
  "@dnd-kit/modifiers": "^9.0.0",
70
70
  "@dnd-kit/sortable": "^10.0.0",
71
71
  "@dnd-kit/utilities": "^3.2.2",
72
- "@radix-ui/react-accordion": "^1.2.8",
73
- "@radix-ui/react-alert-dialog": "^1.1.11",
74
- "@radix-ui/react-avatar": "^1.1.7",
75
- "@radix-ui/react-checkbox": "^1.2.3",
76
- "@radix-ui/react-collapsible": "^1.1.8",
77
- "@radix-ui/react-context-menu": "^2.2.12",
78
- "@radix-ui/react-dialog": "^1.1.11",
79
- "@radix-ui/react-dropdown-menu": "^2.1.12",
80
- "@radix-ui/react-hover-card": "^1.1.11",
81
- "@radix-ui/react-label": "^2.1.4",
82
- "@radix-ui/react-menubar": "^1.1.12",
83
- "@radix-ui/react-navigation-menu": "^1.2.10",
84
- "@radix-ui/react-popover": "^1.1.11",
85
- "@radix-ui/react-progress": "^1.1.4",
86
- "@radix-ui/react-scroll-area": "^1.2.6",
87
- "@radix-ui/react-select": "^2.2.2",
88
- "@radix-ui/react-separator": "^1.1.4",
89
- "@radix-ui/react-slider": "^1.3.2",
90
- "@radix-ui/react-slot": "^1.2.0",
91
- "@radix-ui/react-tabs": "^1.1.9",
92
- "@radix-ui/react-toggle": "^1.1.6",
93
- "@radix-ui/react-toggle-group": "^1.1.7",
94
- "@radix-ui/react-tooltip": "^1.2.4",
72
+ "@radix-ui/react-accordion": "^1.2.11",
73
+ "@radix-ui/react-alert-dialog": "^1.1.14",
74
+ "@radix-ui/react-avatar": "^1.1.10",
75
+ "@radix-ui/react-checkbox": "^1.3.2",
76
+ "@radix-ui/react-collapsible": "^1.1.11",
77
+ "@radix-ui/react-context-menu": "^2.2.15",
78
+ "@radix-ui/react-dialog": "^1.1.14",
79
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
80
+ "@radix-ui/react-hover-card": "^1.1.14",
81
+ "@radix-ui/react-label": "^2.1.7",
82
+ "@radix-ui/react-menubar": "^1.1.15",
83
+ "@radix-ui/react-navigation-menu": "^1.2.13",
84
+ "@radix-ui/react-popover": "^1.1.14",
85
+ "@radix-ui/react-progress": "^1.1.7",
86
+ "@radix-ui/react-scroll-area": "^1.2.9",
87
+ "@radix-ui/react-select": "^2.2.5",
88
+ "@radix-ui/react-separator": "^1.1.7",
89
+ "@radix-ui/react-slider": "^1.3.5",
90
+ "@radix-ui/react-slot": "^1.2.3",
91
+ "@radix-ui/react-tabs": "^1.1.12",
92
+ "@radix-ui/react-toggle": "^1.1.9",
93
+ "@radix-ui/react-toggle-group": "^1.1.10",
94
+ "@radix-ui/react-tooltip": "^1.2.7",
95
95
  "@tailwindcss/typography": "^0.5.16",
96
- "chrono-node": "^2.8.0",
96
+ "chrono-node": "^2.8.3",
97
97
  "class-variance-authority": "^0.7.1",
98
98
  "clsx": "^2.1.1",
99
99
  "cmdk": "^1.1.1",
100
100
  "date-fns": "^4.1.0",
101
101
  "embla-carousel-react": "^8.6.0",
102
- "lucide-react": "^0.507.0",
103
- "react-day-picker": "^9.6.7",
102
+ "lucide-react": "^0.522.0",
103
+ "react-day-picker": "^9.7.0",
104
104
  "react-dropzone": "^14.3.8",
105
105
  "react-international-phone": "^4.5.0",
106
106
  "react-otp-input": "^3.1.1",
107
- "react-resizable-panels": "^3.0.0",
108
- "sonner": "^2.0.3",
109
- "tailwind-merge": "^3.2.0",
107
+ "react-resizable-panels": "^3.0.3",
108
+ "sonner": "^2.0.5",
109
+ "tailwind-merge": "^3.3.1",
110
110
  "timescape": "^0.7.1",
111
111
  "universal-cookie": "^8.0.1",
112
112
  "vaul": "^1.1.2"
113
113
  },
114
114
  "devDependencies": {
115
- "@eslint/js": "^9.26.0",
116
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
117
- "@storybook/addon-a11y": "^8.6.12",
118
- "@storybook/addon-coverage": "^1.0.5",
119
- "@storybook/addon-essentials": "^8.6.12",
120
- "@storybook/addon-interactions": "^8.6.12",
121
- "@storybook/addon-links": "^8.6.12",
122
- "@storybook/addon-onboarding": "^8.6.12",
123
- "@storybook/addon-storysource": "^8.6.12",
124
- "@storybook/addon-themes": "^8.6.12",
125
- "@storybook/addon-viewport": "^8.6.12",
126
- "@storybook/blocks": "^8.6.12",
127
- "@storybook/react": "^8.6.12",
128
- "@storybook/react-vite": "^8.6.12",
129
- "@storybook/test": "^8.6.12",
130
- "@storybook/test-runner": "^0.22.0",
131
- "@tailwindcss/postcss": "^4.1.5",
132
- "@tailwindcss/vite": "^4.1.5",
115
+ "@eslint/js": "^9.29.0",
116
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
117
+ "@storybook/addon-a11y": "^9.0.12",
118
+ "@storybook/addon-coverage": "^2.0.0",
119
+ "@storybook/addon-docs": "^9.0.12",
120
+ "@storybook/addon-links": "^9.0.12",
121
+ "@storybook/addon-onboarding": "^9.0.12",
122
+ "@storybook/addon-themes": "^9.0.12",
123
+ "@storybook/react-vite": "^9.0.12",
124
+ "@storybook/test-runner": "^0.23.0",
125
+ "@tailwindcss/postcss": "^4.1.10",
126
+ "@tailwindcss/vite": "^4.1.10",
133
127
  "@testing-library/jest-dom": "^6.6.3",
134
128
  "@testing-library/react": "^16.3.0",
135
129
  "@testing-library/user-event": "^14.6.1",
136
130
  "@types/jest-image-snapshot": "^6.4.0",
137
- "@types/node": "^22.15.3",
138
- "@types/react": "^19.1.2",
139
- "@types/react-dom": "^19.1.3",
140
- "@typescript-eslint/eslint-plugin": "^8.31.1",
141
- "@typescript-eslint/parser": "^8.31.1",
142
- "@vitejs/plugin-react": "^4.4.1",
143
- "@vitest/coverage-v8": "^3.1.2",
144
- "@vitest/ui": "^3.1.2",
131
+ "@types/node": "^24.0.3",
132
+ "@types/react": "^19.1.8",
133
+ "@types/react-dom": "^19.1.6",
134
+ "@typescript-eslint/eslint-plugin": "^8.34.1",
135
+ "@typescript-eslint/parser": "^8.34.1",
136
+ "@vitejs/plugin-react": "^4.5.2",
137
+ "@vitest/coverage-v8": "^3.2.4",
138
+ "@vitest/ui": "^3.2.4",
145
139
  "axe-playwright": "^2.1.0",
146
- "daisyui": "^5.0.35",
147
- "eslint": "^9.26.0",
140
+ "daisyui": "^5.0.43",
141
+ "eslint": "^9.29.0",
148
142
  "eslint-plugin-react": "^7.37.5",
149
143
  "eslint-plugin-react-hooks": "^5.2.0",
150
144
  "eslint-plugin-react-refresh": "^0.4.20",
151
- "eslint-plugin-storybook": "^0.12.0",
152
- "globals": "^16.0.0",
153
- "jest-image-snapshot": "^6.4.0",
145
+ "eslint-plugin-storybook": "^9.0.12",
146
+ "globals": "^16.2.0",
147
+ "jest-image-snapshot": "^6.5.1",
154
148
  "jsdom": "^26.1.0",
155
149
  "path": "^0.12.7",
156
- "postcss": "^8.5.3",
150
+ "postcss": "^8.5.6",
157
151
  "prettier": "^3.5.3",
158
152
  "react": "^19.1.0",
159
153
  "react-dom": "^19.1.0",
160
- "react-router-dom": "^7.5.3",
161
- "recharts": "^2.15.3",
162
- "storybook": "^8.6.12",
163
- "tailwindcss": "^4.1.5",
154
+ "react-router-dom": "^7.6.2",
155
+ "recharts": "^2.15.4",
156
+ "storybook": "^9.0.12",
157
+ "tailwindcss": "^4.1.10",
164
158
  "typescript": "^5.8.3",
165
- "typescript-eslint": "^8.31.1",
166
- "vite": "^6.3.4",
167
- "vite-plugin-dts": "^4.5.3",
168
- "vitest": "^3.1.2"
159
+ "typescript-eslint": "^8.34.1",
160
+ "vite": "^6.3.5",
161
+ "vite-plugin-dts": "^4.5.4",
162
+ "vitest": "^3.2.4"
169
163
  },
170
164
  "peerDependencies": {
171
165
  "daisyui": "5",
@@ -174,5 +168,5 @@
174
168
  "recharts": "2",
175
169
  "typescript": "5"
176
170
  },
177
- "gitHead": "3a70cd973761d6167bd9076eb43a9618469d5b21"
171
+ "gitHead": "dbd7ef70a813c7ebfde498a82a6646a907370555"
178
172
  }
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const activeShapeArgs: ArgTypes = {
4
4
  activeIndex: {
@@ -3,7 +3,7 @@
3
3
  * are documented, as well as grouped in case a whole group is needed.
4
4
  */
5
5
 
6
- import { type ArgTypes } from "@storybook/react";
6
+ import { type ArgTypes } from "@storybook/react-vite";
7
7
 
8
8
  export const animateNewValues: ArgTypes[0] = { table: { category: "Animation" } };
9
9
  export const animationBegin: ArgTypes[0] = {
@@ -1,4 +1,4 @@
1
- import { type Args } from "@storybook/react";
1
+ import { type Args } from "@storybook/react-vite";
2
2
  import { lineArgs } from "./lineArgs";
3
3
 
4
4
  export const areaArgs: Args = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { cartesianChartArgs } from "./cartesianChartArgs";
3
3
 
4
4
  export const areaChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from "@storybook/react";
1
+ import { ArgTypes } from "@storybook/react-vite";
2
2
  import { animationArgs } from "./animationArgs";
3
3
  import { cartesianSharedArgs, data } from "./cartesianSharedArgs";
4
4
  import { legendType } from "./legendArgs";
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { categoricalChartArgs } from "./chartArgs";
3
3
 
4
4
  export const barChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { categoricalChartArgs } from "./chartArgs";
3
3
 
4
4
  export const cartesianChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const dataKey: ArgTypes[0] = {
4
4
  description: `The key or getter of a group of data.
@@ -1,4 +1,4 @@
1
- import { ArgTypes } from "@storybook/react";
1
+ import { ArgTypes } from "@storybook/react-vite";
2
2
  import { onClick, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp } from "./events";
3
3
 
4
4
  export const data: ArgTypes[0] = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const r: ArgTypes[0] = {
4
4
  description: "The radius of the dot.",
@@ -3,7 +3,7 @@
3
3
  * are documented, as well as grouped in case a whole group is needed.
4
4
  */
5
5
 
6
- import { type ArgTypes } from "@storybook/react";
6
+ import { type ArgTypes } from "@storybook/react-vite";
7
7
 
8
8
  export const onAbort = { table: { category: "EventHandlers" } };
9
9
  export const onAbortCapture = { table: { category: "EventHandlers" } };
@@ -8,7 +8,7 @@ import type {
8
8
  XAxisProps,
9
9
  YAxisProps,
10
10
  } from "recharts";
11
- import { type ArgTypes } from "@storybook/react";
11
+ import { type ArgTypes } from "@storybook/react-vite";
12
12
  import { type CategoricalChartProps } from "recharts/types/chart/generateCategoricalChart";
13
13
  import type { Flatten } from "./types";
14
14
  import { categorizeArgs } from "../helpers";
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const labelListArgs: ArgTypes = {
4
4
  dataKey: {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const legendType: ArgTypes[0] = {
4
4
  description: "The type of icon in legend. If set to 'none', no legend item will be rendered.",
@@ -1,4 +1,4 @@
1
- import { type Args } from "@storybook/react";
1
+ import { type Args } from "@storybook/react-vite";
2
2
  import { dataKey } from "./chartArgs";
3
3
  import { generalStyleArgs, hide, labelDescription, labelSummary } from "./stylesArgs";
4
4
 
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { categoricalChartArgs } from "./chartArgs";
3
3
 
4
4
  export const lineChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type Args } from "@storybook/react";
1
+ import { type Args } from "@storybook/react-vite";
2
2
  import { polarChartArgs } from "./polarChartArgs";
3
3
  import { polarSharedArgs } from "./polarSharedArgs";
4
4
 
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { chartSizeArgs, margin } from "./chartArgs";
3
3
 
4
4
  export const pieChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { categoricalChartArgs } from "./chartArgs";
3
3
 
4
4
  export const polarChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { dataKey } from "./cartesianSharedArgs";
3
3
 
4
4
  export const polarSharedArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { sharedAxisArgs } from "./sharedAxisArgs";
3
3
 
4
4
  export const radarArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { categoricalChartArgs } from "./chartArgs";
3
3
 
4
4
  export const radarChartArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { animationArgs } from "./animationArgs";
3
3
  import { dataKey } from "./chartArgs";
4
4
  import { eventArgs } from "./events";
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { barChartArgs } from "./barChartArgs";
3
3
  import { polarChartArgs } from "./polarChartArgs";
4
4
 
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const radius: ArgTypes[0] = {
4
4
  description:
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const referenceStyleArgs: ArgTypes = {
4
4
  ifOverflow: {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  /**
4
4
  * Caveat: If any prop is added here, it would falsely be add to the documentation of the component
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const sharedAxisArgs: ArgTypes = {
4
4
  hide: {
@@ -1,4 +1,4 @@
1
- import type { Args, ArgTypes } from "@storybook/react";
1
+ import type { Args, ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const hide: ArgTypes[0] = {
4
4
  description: "Hides the component when true, useful when toggling visibility state via legend",
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const textArgs: ArgTypes = {
4
4
  content: {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
 
3
3
  export const tooltipType: ArgTypes[0] = {
4
4
  description: `If set to be 'none', no series data is shown in tooltip.`,
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { sharedAxisArgs } from "./sharedAxisArgs";
3
3
 
4
4
  export const xAxisArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import { type ArgTypes } from "@storybook/react";
1
+ import { type ArgTypes } from "@storybook/react-vite";
2
2
  import { sharedAxisArgs } from "./sharedAxisArgs";
3
3
 
4
4
  export const yAxisArgs: ArgTypes = {
@@ -1,4 +1,4 @@
1
- import type { ArgTypes, StoryContext } from "@storybook/react";
1
+ import type { ArgTypes, StoryContext } from "@storybook/react-vite";
2
2
  import type { ComponentProps, ElementType } from "react";
3
3
 
4
4
  export const categorizeArgs = (args: ArgTypes, category: string) => {
@@ -18,6 +18,7 @@ export const DateRangePicker = ({
18
18
  outline,
19
19
  variant,
20
20
  disabled,
21
+ disabledDates,
21
22
  defaultRange,
22
23
  getRangeValue = (range) => ({
23
24
  from: range?.from?.toUTCString(),
@@ -82,6 +83,7 @@ export const DateRangePicker = ({
82
83
  autoFocus
83
84
  mode="range"
84
85
  selected={range}
86
+ disabled={disabledDates}
85
87
  onSelect={setRange}
86
88
  captionLayout="label"
87
89
  {...props}
@@ -22,8 +22,9 @@ export type DatePickerProps = BaseDatePickerProps &
22
22
  };
23
23
 
24
24
  export type DateRangePickerProps = BaseDatePickerProps &
25
- Omit<PropsRange, "mode"> & {
25
+ Omit<PropsRange, "mode" | "disabled"> & {
26
26
  defaultRange?: DateRange;
27
+ disabledDates?: PropsRange["disabled"];
27
28
  getRangeValue?: (range: DateRange | undefined) => {
28
29
  from: string | undefined;
29
30
  to: string | undefined;