@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.
- package/dist/types/components/Chart/stories/args/activeShapeArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/animationArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/areaArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/areaChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/barArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/barChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/cartesianChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/cartesianSharedArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/chartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/dotArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/events.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/index.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/labelListArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/legendArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/lineArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/lineChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/pieArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/pieChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/polarChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/polarSharedArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/radarArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/radarChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/radialBarArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/radialBarChartArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/rectangleArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/referenceSharedArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/sectorArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/sharedAxisArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/stylesArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/textArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/tooltipArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/xAxisArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/args/yAxisArgs.d.ts +1 -1
- package/dist/types/components/Chart/stories/helpers/index.d.ts +2 -2
- package/dist/types/components/DatePicker/DateRangePicker.d.ts +1 -1
- package/dist/types/components/DatePicker/types.d.ts +2 -1
- package/dist/types/components/Form/DatetimeInput/DatetimeInput.d.ts +1 -0
- package/package.json +65 -71
- package/src/components/Chart/stories/args/activeShapeArgs.ts +1 -1
- package/src/components/Chart/stories/args/animationArgs.ts +1 -1
- package/src/components/Chart/stories/args/areaArgs.ts +1 -1
- package/src/components/Chart/stories/args/areaChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/barArgs.ts +1 -1
- package/src/components/Chart/stories/args/barChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/cartesianChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/cartesianSharedArgs.ts +1 -1
- package/src/components/Chart/stories/args/chartArgs.ts +1 -1
- package/src/components/Chart/stories/args/dotArgs.ts +1 -1
- package/src/components/Chart/stories/args/events.ts +1 -1
- package/src/components/Chart/stories/args/index.ts +1 -1
- package/src/components/Chart/stories/args/labelListArgs.ts +1 -1
- package/src/components/Chart/stories/args/legendArgs.ts +1 -1
- package/src/components/Chart/stories/args/lineArgs.ts +1 -1
- package/src/components/Chart/stories/args/lineChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/pieArgs.ts +1 -1
- package/src/components/Chart/stories/args/pieChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/polarChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/polarSharedArgs.ts +1 -1
- package/src/components/Chart/stories/args/radarArgs.ts +1 -1
- package/src/components/Chart/stories/args/radarChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/radialBarArgs.ts +1 -1
- package/src/components/Chart/stories/args/radialBarChartArgs.ts +1 -1
- package/src/components/Chart/stories/args/rectangleArgs.ts +1 -1
- package/src/components/Chart/stories/args/referenceSharedArgs.ts +1 -1
- package/src/components/Chart/stories/args/sectorArgs.ts +1 -1
- package/src/components/Chart/stories/args/sharedAxisArgs.ts +1 -1
- package/src/components/Chart/stories/args/stylesArgs.ts +1 -1
- package/src/components/Chart/stories/args/textArgs.ts +1 -1
- package/src/components/Chart/stories/args/tooltipArgs.ts +1 -1
- package/src/components/Chart/stories/args/xAxisArgs.ts +1 -1
- package/src/components/Chart/stories/args/yAxisArgs.ts +1 -1
- package/src/components/Chart/stories/helpers/index.tsx +1 -1
- package/src/components/DatePicker/DateRangePicker.tsx +2 -0
- 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,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,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,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,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
|
/**
|
|
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,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.
|
|
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.
|
|
73
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
74
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
75
|
-
"@radix-ui/react-checkbox": "^1.2
|
|
76
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
77
|
-
"@radix-ui/react-context-menu": "^2.2.
|
|
78
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
79
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
80
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
81
|
-
"@radix-ui/react-label": "^2.1.
|
|
82
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
83
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
84
|
-
"@radix-ui/react-popover": "^1.1.
|
|
85
|
-
"@radix-ui/react-progress": "^1.1.
|
|
86
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
87
|
-
"@radix-ui/react-select": "^2.2.
|
|
88
|
-
"@radix-ui/react-separator": "^1.1.
|
|
89
|
-
"@radix-ui/react-slider": "^1.3.
|
|
90
|
-
"@radix-ui/react-slot": "^1.2.
|
|
91
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
92
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
93
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
|
94
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
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.
|
|
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.
|
|
103
|
-
"react-day-picker": "^9.
|
|
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.
|
|
108
|
-
"sonner": "^2.0.
|
|
109
|
-
"tailwind-merge": "^3.
|
|
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.
|
|
116
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.
|
|
117
|
-
"@storybook/addon-a11y": "^
|
|
118
|
-
"@storybook/addon-coverage": "^
|
|
119
|
-
"@storybook/addon-
|
|
120
|
-
"@storybook/addon-
|
|
121
|
-
"@storybook/addon-
|
|
122
|
-
"@storybook/addon-
|
|
123
|
-
"@storybook/
|
|
124
|
-
"@storybook/
|
|
125
|
-
"@
|
|
126
|
-
"@
|
|
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": "^
|
|
138
|
-
"@types/react": "^19.1.
|
|
139
|
-
"@types/react-dom": "^19.1.
|
|
140
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
141
|
-
"@typescript-eslint/parser": "^8.
|
|
142
|
-
"@vitejs/plugin-react": "^4.
|
|
143
|
-
"@vitest/coverage-v8": "^3.
|
|
144
|
-
"@vitest/ui": "^3.
|
|
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.
|
|
147
|
-
"eslint": "^9.
|
|
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
|
|
152
|
-
"globals": "^16.
|
|
153
|
-
"jest-image-snapshot": "^6.
|
|
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.
|
|
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.
|
|
161
|
-
"recharts": "^2.15.
|
|
162
|
-
"storybook": "^
|
|
163
|
-
"tailwindcss": "^4.1.
|
|
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.
|
|
166
|
-
"vite": "^6.3.
|
|
167
|
-
"vite-plugin-dts": "^4.5.
|
|
168
|
-
"vitest": "^3.
|
|
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": "
|
|
171
|
+
"gitHead": "dbd7ef70a813c7ebfde498a82a6646a907370555"
|
|
178
172
|
}
|
|
@@ -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] = {
|
|
@@ -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";
|
|
@@ -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;
|