@shophost/react 2.0.65 → 2.0.68
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/README.md +1 -7
- package/admin/dashboard/components/overview/dashboard-chart-card.d.ts +1 -1
- package/admin/dashboard/components/overview/dashboard-types.d.ts +2 -2
- package/admin/data/schema.d.ts +6 -6
- package/admin/manufacturer/components/manufacturers-list/columns.d.ts +1 -1
- package/admin/order/components/orders-list/actions-cell.d.ts +1 -1
- package/admin/product/components/product-form/basic-info-section.d.ts +1 -1
- package/admin/product/components/product-form/metadata-section.d.ts +1 -1
- package/admin/product/components/product-form/modifiers-section.d.ts +1 -1
- package/admin/product/components/product-form/price-section.d.ts +1 -1
- package/admin/product-category/components/product-categories-list/columns.d.ts +1 -1
- package/admin/settings/components/organization-configuration-form.d.ts +2 -4
- package/admin/settings/shipping-method/components/shipping-methods-list/columns.d.ts +1 -1
- package/admin-client.cjs +1 -1
- package/admin-client.js +1195 -1192
- package/lib/chartUtils.d.ts +1 -1
- package/package.json +3 -3
- package/providers/organization-provider.d.ts +1 -1
- package/storefront/components/cart/cart-drawer.d.ts +1 -1
- package/storefront/components/ui/badge.d.ts +1 -1
- package/storefront/components/ui/command-bar.d.ts +2 -2
- package/storefront/components/ui/command.d.ts +1 -1
- package/storefront/components/ui/popover.d.ts +2 -2
- package/storefront/providers/cart-provider.d.ts +1 -0
- package/storefront/translations/en.d.ts +47 -0
- package/storefront/translations/pl.d.ts +47 -0
- package/ui/badge.d.ts +1 -1
- package/ui/calendar.d.ts +6 -6
- package/ui/checkbox.d.ts +1 -1
- package/ui/command-bar.d.ts +2 -2
- package/ui/command.d.ts +1 -1
- package/ui/data-table/data-table-filter.d.ts +1 -1
- package/ui/data-table/data-table-pagination.d.ts +1 -1
- package/ui/data-table/data-table.d.ts +1 -1
- package/ui/date-picker.d.ts +5 -5
- package/ui/drawer.d.ts +2 -2
- package/ui/dropdown.d.ts +2 -2
- package/ui/input/email-input.d.ts +1 -1
- package/ui/input/image-upload-input.d.ts +1 -1
- package/ui/input-group.d.ts +1 -1
- package/ui/line-chart.d.ts +2 -2
- package/ui/logo.d.ts +1 -4
- package/ui/multiple-select.d.ts +2 -2
- package/ui/popover.d.ts +2 -2
- package/ui/progress-circle.d.ts +1 -1
- package/ui/radio-card.d.ts +2 -2
- package/ui/search-bar.d.ts +1 -1
- package/ui/select.d.ts +1 -1
- package/ui/switch.d.ts +2 -2
- package/ui/tab-navigation.d.ts +1 -1
- package/ui/tooltip.d.ts +3 -3
package/lib/chartUtils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shophost/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@react-aria/datepicker": "^3.16.1",
|
|
83
83
|
"@react-stately/datepicker": "^3.16.1",
|
|
84
84
|
"@remixicon/react": "^4.6.0",
|
|
85
|
-
"@shophost/client": "^2.0.
|
|
86
|
-
"@shophost/rest-api": "^2.0.
|
|
85
|
+
"@shophost/client": "^2.0.68",
|
|
86
|
+
"@shophost/rest-api": "^2.0.68",
|
|
87
87
|
"@tanstack/react-query": "^5.67.2",
|
|
88
88
|
"@tanstack/react-table": "^8.21.3",
|
|
89
89
|
"@vercel/blob": "^0.27.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { CartPanelFooterRenderProps } from './cart-panel';
|
|
3
2
|
import { CartDrawerItemProps } from './cart-drawer-item';
|
|
3
|
+
import { CartPanelFooterRenderProps } from './cart-panel';
|
|
4
4
|
export interface CartDrawerProps {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
@@ -25,7 +25,7 @@ declare const badgeVariants: import('tailwind-variants').TVReturnType<{
|
|
|
25
25
|
warning: string[];
|
|
26
26
|
};
|
|
27
27
|
}, undefined, string, unknown, unknown, undefined>>;
|
|
28
|
-
interface BadgeProps extends React.ComponentPropsWithoutRef<
|
|
28
|
+
interface BadgeProps extends React.ComponentPropsWithoutRef<"span">, VariantProps<typeof badgeVariants> {
|
|
29
29
|
}
|
|
30
30
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
31
|
export { Badge, badgeVariants, type BadgeProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface CommandBarProps extends React.PropsWithChildren {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -12,7 +12,7 @@ declare const CommandBar: {
|
|
|
12
12
|
declare const CommandBarValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
declare const CommandBarBar: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const CommandBarSeperator: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
interface CommandProps extends Omit<React.ComponentPropsWithoutRef<
|
|
15
|
+
interface CommandProps extends Omit<React.ComponentPropsWithoutRef<"button">, "children" | "onClick"> {
|
|
16
16
|
action: () => void | Promise<void>;
|
|
17
17
|
label: string;
|
|
18
18
|
shortcut: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as PopoverPrimitives from
|
|
2
|
-
import * as React from
|
|
1
|
+
import * as PopoverPrimitives from "@radix-ui/react-popover";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Popover: {
|
|
4
4
|
(props: React.ComponentPropsWithoutRef<typeof PopoverPrimitives.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -26,6 +26,7 @@ export declare const enTranslations: {
|
|
|
26
26
|
termsAndConditions: string;
|
|
27
27
|
orderNow: string;
|
|
28
28
|
makeReservation: string;
|
|
29
|
+
poweredBy: string;
|
|
29
30
|
};
|
|
30
31
|
product: {
|
|
31
32
|
addToCart: string;
|
|
@@ -50,6 +51,52 @@ export declare const enTranslations: {
|
|
|
50
51
|
placeOrder: string;
|
|
51
52
|
subtotal: string;
|
|
52
53
|
total: string;
|
|
54
|
+
shippingDetailsTitle: string;
|
|
55
|
+
shippingDetailsDescription: string;
|
|
56
|
+
shippingMethodTitle: string;
|
|
57
|
+
shippingMethodDescription: string;
|
|
58
|
+
paymentMethodDescription: string;
|
|
59
|
+
shippingFee: string;
|
|
60
|
+
eta: string;
|
|
61
|
+
notAvailable: string;
|
|
62
|
+
addressTooFar: string;
|
|
63
|
+
agreementPrefix: string;
|
|
64
|
+
and: string;
|
|
65
|
+
payAndConfirm: string;
|
|
66
|
+
saveAndContinue: string;
|
|
67
|
+
saving: string;
|
|
68
|
+
failedToLoadShippingAddressTitle: string;
|
|
69
|
+
failedToLoadShippingAddressDescription: string;
|
|
70
|
+
unableToLoadCheckoutOptionsTitle: string;
|
|
71
|
+
organizationNotFound: string;
|
|
72
|
+
notAcceptingOrders: string;
|
|
73
|
+
currentlyClosed: string;
|
|
74
|
+
contactDirectly: string;
|
|
75
|
+
backToHomepage: string;
|
|
76
|
+
firstName: string;
|
|
77
|
+
lastName: string;
|
|
78
|
+
phone: string;
|
|
79
|
+
streetAddress: string;
|
|
80
|
+
doorNumber: string;
|
|
81
|
+
postalCode: string;
|
|
82
|
+
city: string;
|
|
83
|
+
country: string;
|
|
84
|
+
notesInstructions: string;
|
|
85
|
+
firstNamePlaceholder: string;
|
|
86
|
+
lastNamePlaceholder: string;
|
|
87
|
+
phonePlaceholder: string;
|
|
88
|
+
doorNumberPlaceholder: string;
|
|
89
|
+
postalCodePlaceholder: string;
|
|
90
|
+
cityPlaceholder: string;
|
|
91
|
+
notesInstructionsPlaceholder: string;
|
|
92
|
+
};
|
|
93
|
+
cart: {
|
|
94
|
+
empty: string;
|
|
95
|
+
summaryEmpty: string;
|
|
96
|
+
viewProducts: string;
|
|
97
|
+
noImage: string;
|
|
98
|
+
shipping: string;
|
|
99
|
+
discount: string;
|
|
53
100
|
};
|
|
54
101
|
ourStory: {
|
|
55
102
|
title: string;
|
|
@@ -26,6 +26,7 @@ export declare const plTranslations: {
|
|
|
26
26
|
termsAndConditions: string;
|
|
27
27
|
orderNow: string;
|
|
28
28
|
makeReservation: string;
|
|
29
|
+
poweredBy: string;
|
|
29
30
|
};
|
|
30
31
|
product: {
|
|
31
32
|
addToCart: string;
|
|
@@ -50,6 +51,52 @@ export declare const plTranslations: {
|
|
|
50
51
|
placeOrder: string;
|
|
51
52
|
subtotal: string;
|
|
52
53
|
total: string;
|
|
54
|
+
shippingDetailsTitle: string;
|
|
55
|
+
shippingDetailsDescription: string;
|
|
56
|
+
shippingMethodTitle: string;
|
|
57
|
+
shippingMethodDescription: string;
|
|
58
|
+
paymentMethodDescription: string;
|
|
59
|
+
shippingFee: string;
|
|
60
|
+
eta: string;
|
|
61
|
+
notAvailable: string;
|
|
62
|
+
addressTooFar: string;
|
|
63
|
+
agreementPrefix: string;
|
|
64
|
+
and: string;
|
|
65
|
+
payAndConfirm: string;
|
|
66
|
+
saveAndContinue: string;
|
|
67
|
+
saving: string;
|
|
68
|
+
failedToLoadShippingAddressTitle: string;
|
|
69
|
+
failedToLoadShippingAddressDescription: string;
|
|
70
|
+
unableToLoadCheckoutOptionsTitle: string;
|
|
71
|
+
organizationNotFound: string;
|
|
72
|
+
notAcceptingOrders: string;
|
|
73
|
+
currentlyClosed: string;
|
|
74
|
+
contactDirectly: string;
|
|
75
|
+
backToHomepage: string;
|
|
76
|
+
firstName: string;
|
|
77
|
+
lastName: string;
|
|
78
|
+
phone: string;
|
|
79
|
+
streetAddress: string;
|
|
80
|
+
doorNumber: string;
|
|
81
|
+
postalCode: string;
|
|
82
|
+
city: string;
|
|
83
|
+
country: string;
|
|
84
|
+
notesInstructions: string;
|
|
85
|
+
firstNamePlaceholder: string;
|
|
86
|
+
lastNamePlaceholder: string;
|
|
87
|
+
phonePlaceholder: string;
|
|
88
|
+
doorNumberPlaceholder: string;
|
|
89
|
+
postalCodePlaceholder: string;
|
|
90
|
+
cityPlaceholder: string;
|
|
91
|
+
notesInstructionsPlaceholder: string;
|
|
92
|
+
};
|
|
93
|
+
cart: {
|
|
94
|
+
empty: string;
|
|
95
|
+
summaryEmpty: string;
|
|
96
|
+
viewProducts: string;
|
|
97
|
+
noImage: string;
|
|
98
|
+
shipping: string;
|
|
99
|
+
discount: string;
|
|
53
100
|
};
|
|
54
101
|
ourStory: {
|
|
55
102
|
title: string;
|
package/ui/badge.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare const badgeVariants: import('tailwind-variants').TVReturnType<{
|
|
|
25
25
|
warning: string[];
|
|
26
26
|
};
|
|
27
27
|
}, undefined, string, unknown, unknown, undefined>>;
|
|
28
|
-
interface BadgeProps extends React.ComponentPropsWithoutRef<
|
|
28
|
+
interface BadgeProps extends React.ComponentPropsWithoutRef<"span">, VariantProps<typeof badgeVariants> {
|
|
29
29
|
}
|
|
30
30
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
31
|
export { Badge, badgeVariants, type BadgeProps };
|
package/ui/calendar.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DateRange, DayPickerDefaultProps, DayPickerMultipleProps, DayPickerProps, DayPickerRangeProps, DayPickerSingleProps, Matcher } from 'react-day-picker';
|
|
2
2
|
type CalendarBaseProps = {
|
|
3
3
|
className?: string;
|
|
4
|
-
classNames?: DayPickerProps[
|
|
5
|
-
components?: DayPickerProps[
|
|
4
|
+
classNames?: DayPickerProps["classNames"];
|
|
5
|
+
components?: DayPickerProps["components"];
|
|
6
6
|
disableNavigation?: boolean;
|
|
7
7
|
enableYearNavigation?: boolean;
|
|
8
8
|
fromMonth?: Date;
|
|
@@ -12,11 +12,11 @@ type CalendarBaseProps = {
|
|
|
12
12
|
toYear?: number;
|
|
13
13
|
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
14
|
} & Record<string, unknown>;
|
|
15
|
-
type CalendarDefaultProps = Omit<DayPickerDefaultProps, keyof CalendarBaseProps |
|
|
16
|
-
mode?:
|
|
15
|
+
type CalendarDefaultProps = Omit<DayPickerDefaultProps, keyof CalendarBaseProps | "mode"> & CalendarBaseProps & {
|
|
16
|
+
mode?: "default";
|
|
17
17
|
};
|
|
18
|
-
type CalendarSingleProps = Omit<DayPickerSingleProps,
|
|
19
|
-
mode?:
|
|
18
|
+
type CalendarSingleProps = Omit<DayPickerSingleProps, "mode"> & CalendarBaseProps & {
|
|
19
|
+
mode?: "single";
|
|
20
20
|
};
|
|
21
21
|
type CalendarMultipleProps = Omit<DayPickerMultipleProps, keyof CalendarBaseProps> & CalendarBaseProps;
|
|
22
22
|
type CalendarRangeProps = Omit<DayPickerRangeProps, keyof CalendarBaseProps> & CalendarBaseProps;
|
package/ui/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import * as CheckboxPrimitives from
|
|
2
|
+
import * as CheckboxPrimitives from "@radix-ui/react-checkbox";
|
|
3
3
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitives.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export { Checkbox };
|
package/ui/command-bar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface CommandBarProps extends React.PropsWithChildren {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -12,7 +12,7 @@ declare const CommandBar: {
|
|
|
12
12
|
declare const CommandBarValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
declare const CommandBarBar: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const CommandBarSeperator: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
interface CommandProps extends Omit<React.ComponentPropsWithoutRef<
|
|
15
|
+
interface CommandProps extends Omit<React.ComponentPropsWithoutRef<"button">, "children" | "onClick"> {
|
|
16
16
|
action: () => void | Promise<void>;
|
|
17
17
|
label: string;
|
|
18
18
|
shortcut: {
|
package/ui/command.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -3,7 +3,7 @@ export type ConditionFilter = {
|
|
|
3
3
|
condition: string;
|
|
4
4
|
value: [number | string, number | string];
|
|
5
5
|
};
|
|
6
|
-
type FilterType =
|
|
6
|
+
type FilterType = "select" | "checkbox" | "number";
|
|
7
7
|
interface DataTableFilterProps<TData, TValue> {
|
|
8
8
|
column: Column<TData, TValue> | undefined;
|
|
9
9
|
title?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
1
|
import { PaginationMeta } from '../../../../client/src/index.ts';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
3
|
interface DataTableProps<TData> {
|
|
4
4
|
meta?: PaginationMeta & Record<string, unknown>;
|
|
5
5
|
columns: ColumnDef<TData>[];
|
package/ui/date-picker.d.ts
CHANGED
|
@@ -43,11 +43,11 @@ interface PickerProps extends CalendarProps {
|
|
|
43
43
|
hasError?: boolean;
|
|
44
44
|
id?: string;
|
|
45
45
|
translations?: Translations;
|
|
46
|
-
align?:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
align?: "center" | "end" | "start";
|
|
47
|
+
"aria-invalid"?: boolean;
|
|
48
|
+
"aria-label"?: string;
|
|
49
|
+
"aria-labelledby"?: string;
|
|
50
|
+
"aria-required"?: boolean;
|
|
51
51
|
}
|
|
52
52
|
type SingleDatePickerProps = {
|
|
53
53
|
presets?: DatePreset[];
|
package/ui/drawer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as DrawerPrimitives from
|
|
2
|
-
import * as React from
|
|
1
|
+
import * as DrawerPrimitives from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Drawer: {
|
|
4
4
|
(props: React.ComponentPropsWithoutRef<typeof DrawerPrimitives.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
package/ui/dropdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as DropdownMenuPrimitives from
|
|
2
|
-
import * as React from
|
|
1
|
+
import * as DropdownMenuPrimitives from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitives.DropdownMenuProps>;
|
|
4
4
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitives.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitives.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { InputProps } from './text-input';
|
|
3
|
-
interface EmailInputProps extends Omit<InputProps,
|
|
3
|
+
interface EmailInputProps extends Omit<InputProps, "type"> {
|
|
4
4
|
id?: string;
|
|
5
5
|
}
|
|
6
6
|
declare const EmailInput: React.FC<EmailInputProps>;
|
package/ui/input-group.d.ts
CHANGED
package/ui/line-chart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AvailableChartColorsKeys } from '../lib/chartUtils';
|
|
3
3
|
type BaseEventProps = {
|
|
4
|
-
eventType:
|
|
4
|
+
eventType: "dot" | "category";
|
|
5
5
|
categoryClicked: string;
|
|
6
6
|
[key: string]: number | string;
|
|
7
7
|
};
|
|
@@ -17,7 +17,7 @@ interface LineChartProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
showYAxis?: boolean;
|
|
18
18
|
showGridLines?: boolean;
|
|
19
19
|
yAxisWidth?: number;
|
|
20
|
-
intervalType?:
|
|
20
|
+
intervalType?: "preserveStartEnd" | "equidistantPreserveStart";
|
|
21
21
|
showTooltip?: boolean;
|
|
22
22
|
showLegend?: boolean;
|
|
23
23
|
autoMinValue?: boolean;
|
package/ui/logo.d.ts
CHANGED
package/ui/multiple-select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
2
|
import { Command } from './command';
|
|
3
|
-
import * as React from
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
export interface Option {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
@@ -58,7 +58,7 @@ interface MultipleSelectorProps {
|
|
|
58
58
|
/** Props of `Command` */
|
|
59
59
|
commandProps?: React.ComponentPropsWithoutRef<typeof Command>;
|
|
60
60
|
/** Props of `CommandInput` */
|
|
61
|
-
inputProps?: Omit<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>,
|
|
61
|
+
inputProps?: Omit<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>, "value" | "placeholder" | "disabled">;
|
|
62
62
|
/** hide the clear all button. */
|
|
63
63
|
hideClearAllButton?: boolean;
|
|
64
64
|
}
|
package/ui/popover.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as PopoverPrimitives from
|
|
2
|
-
import * as React from
|
|
1
|
+
import * as PopoverPrimitives from "@radix-ui/react-popover";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Popover: {
|
|
4
4
|
(props: React.ComponentPropsWithoutRef<typeof PopoverPrimitives.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
package/ui/progress-circle.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare const progressCircleVariants: import('tailwind-variants').TVReturnType<{
|
|
|
79
79
|
background: string;
|
|
80
80
|
circle: string;
|
|
81
81
|
}, undefined, unknown, unknown, undefined>>;
|
|
82
|
-
interface ProgressCircleProps extends Omit<React.SVGProps<SVGSVGElement>,
|
|
82
|
+
interface ProgressCircleProps extends Omit<React.SVGProps<SVGSVGElement>, "value">, VariantProps<typeof progressCircleVariants> {
|
|
83
83
|
value?: number;
|
|
84
84
|
max?: number;
|
|
85
85
|
showAnimation?: boolean;
|
package/ui/radio-card.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as RadioGroupPrimitives from
|
|
2
|
-
import * as React from
|
|
1
|
+
import * as RadioGroupPrimitives from "@radix-ui/react-radio-group";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const RadioCardGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitives.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const RadioCardGroupIndicator: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitives.RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
declare const RadioCardItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitives.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
package/ui/search-bar.d.ts
CHANGED
package/ui/select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DateRange } from 'react-day-picker';
|
|
3
|
-
import * as SelectPrimitives from
|
|
3
|
+
import * as SelectPrimitives from "@radix-ui/react-select";
|
|
4
4
|
declare const Select: React.FC<SelectPrimitives.SelectProps>;
|
|
5
5
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitives.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitives.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
package/ui/switch.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import * as SwitchPrimitives from
|
|
3
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
4
4
|
declare const switchVariants: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
default: {
|
|
@@ -44,7 +44,7 @@ declare const switchVariants: import('tailwind-variants').TVReturnType<{
|
|
|
44
44
|
root: (string | string[])[];
|
|
45
45
|
thumb: string[];
|
|
46
46
|
}, undefined, unknown, unknown, undefined>>;
|
|
47
|
-
interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>,
|
|
47
|
+
interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, "asChild">, VariantProps<typeof switchVariants> {
|
|
48
48
|
}
|
|
49
49
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
50
50
|
export { Switch };
|
package/ui/tab-navigation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import * as NavigationMenuPrimitives from
|
|
2
|
+
import * as NavigationMenuPrimitives from "@radix-ui/react-navigation-menu";
|
|
3
3
|
declare const TabNavigation: React.ForwardRefExoticComponent<Omit<Omit<NavigationMenuPrimitives.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref">, "defaultValue" | "dir" | "orientation"> & React.RefAttributes<HTMLElement>>;
|
|
4
4
|
declare const TabNavigationLink: React.ForwardRefExoticComponent<Omit<Omit<NavigationMenuPrimitives.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref">, "onSelect"> & {
|
|
5
5
|
disabled?: boolean;
|
package/ui/tooltip.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import * as TooltipPrimitives from
|
|
3
|
-
interface TooltipProps extends Omit<TooltipPrimitives.TooltipContentProps,
|
|
2
|
+
import * as TooltipPrimitives from "@radix-ui/react-tooltip";
|
|
3
|
+
interface TooltipProps extends Omit<TooltipPrimitives.TooltipContentProps, "content" | "onClick">, Pick<TooltipPrimitives.TooltipProps, "open" | "defaultOpen" | "onOpenChange" | "delayDuration"> {
|
|
4
4
|
content: React.ReactNode;
|
|
5
5
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
|
-
side?:
|
|
6
|
+
side?: "bottom" | "left" | "top" | "right";
|
|
7
7
|
showArrow?: boolean;
|
|
8
8
|
triggerAsChild?: boolean;
|
|
9
9
|
}
|