@shophost/react 2.0.65 → 2.0.67

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 (61) hide show
  1. package/README.md +1 -7
  2. package/admin/dashboard/components/overview/dashboard-chart-card.d.ts +1 -1
  3. package/admin/dashboard/components/overview/dashboard-types.d.ts +2 -2
  4. package/admin/data/schema.d.ts +6 -6
  5. package/admin/manufacturer/components/manufacturers-list/columns.d.ts +1 -1
  6. package/admin/order/components/orders-list/actions-cell.d.ts +1 -1
  7. package/admin/product/components/product-form/basic-info-section.d.ts +1 -1
  8. package/admin/product/components/product-form/metadata-section.d.ts +1 -1
  9. package/admin/product/components/product-form/modifiers-section.d.ts +1 -1
  10. package/admin/product/components/product-form/price-section.d.ts +1 -1
  11. package/admin/product-category/components/product-categories-list/columns.d.ts +1 -1
  12. package/admin/settings/components/organization-configuration-form.d.ts +2 -4
  13. package/admin/settings/shipping-method/components/shipping-methods-list/columns.d.ts +1 -1
  14. package/admin-client.cjs +1 -1
  15. package/admin-client.js +1 -3265
  16. package/index.cjs +1 -1
  17. package/index.mjs +1 -11
  18. package/index.react-server.cjs +1 -1
  19. package/index.react-server.mjs +1 -11
  20. package/lib/chartUtils.d.ts +1 -1
  21. package/next/server.cjs +1 -1
  22. package/next/server.mjs +1 -16
  23. package/next/views.cjs +1 -1
  24. package/next/views.mjs +1 -4
  25. package/package.json +3 -3
  26. package/providers/organization-provider.d.ts +1 -1
  27. package/storefront/components/cart/cart-drawer.d.ts +1 -1
  28. package/storefront/components/ui/badge.d.ts +1 -1
  29. package/storefront/components/ui/command-bar.d.ts +2 -2
  30. package/storefront/components/ui/command.d.ts +1 -1
  31. package/storefront/components/ui/popover.d.ts +2 -2
  32. package/storefront/providers/cart-provider.d.ts +1 -0
  33. package/storefront/translations/en.d.ts +47 -0
  34. package/storefront/translations/pl.d.ts +47 -0
  35. package/storefront.cjs +1 -1
  36. package/storefront.mjs +1 -85
  37. package/ui/badge.d.ts +1 -1
  38. package/ui/calendar.d.ts +6 -6
  39. package/ui/checkbox.d.ts +1 -1
  40. package/ui/command-bar.d.ts +2 -2
  41. package/ui/command.d.ts +1 -1
  42. package/ui/data-table/data-table-filter.d.ts +1 -1
  43. package/ui/data-table/data-table-pagination.d.ts +1 -1
  44. package/ui/data-table/data-table.d.ts +1 -1
  45. package/ui/date-picker.d.ts +5 -5
  46. package/ui/drawer.d.ts +2 -2
  47. package/ui/dropdown.d.ts +2 -2
  48. package/ui/input/email-input.d.ts +1 -1
  49. package/ui/input/image-upload-input.d.ts +1 -1
  50. package/ui/input-group.d.ts +1 -1
  51. package/ui/line-chart.d.ts +2 -2
  52. package/ui/logo.d.ts +1 -4
  53. package/ui/multiple-select.d.ts +2 -2
  54. package/ui/popover.d.ts +2 -2
  55. package/ui/progress-circle.d.ts +1 -1
  56. package/ui/radio-card.d.ts +2 -2
  57. package/ui/search-bar.d.ts +1 -1
  58. package/ui/select.d.ts +1 -1
  59. package/ui/switch.d.ts +2 -2
  60. package/ui/tab-navigation.d.ts +1 -1
  61. package/ui/tooltip.d.ts +3 -3
@@ -1,5 +1,5 @@
1
- import { Table } from '@tanstack/react-table';
2
1
  import { PaginationMeta } from '../../../../client/src/index.ts';
2
+ import { Table } from '@tanstack/react-table';
3
3
  interface DataTablePaginationProps<TData> {
4
4
  table: Table<TData>;
5
5
  meta: PaginationMeta;
@@ -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>[];
@@ -43,11 +43,11 @@ interface PickerProps extends CalendarProps {
43
43
  hasError?: boolean;
44
44
  id?: string;
45
45
  translations?: Translations;
46
- align?: 'center' | 'end' | 'start';
47
- 'aria-invalid'?: boolean;
48
- 'aria-label'?: string;
49
- 'aria-labelledby'?: string;
50
- 'aria-required'?: boolean;
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 '@radix-ui/react-dialog';
2
- import * as React from 'react';
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 '@radix-ui/react-dropdown-menu';
2
- import * as React from 'react';
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, 'type'> {
3
+ interface EmailInputProps extends Omit<InputProps, "type"> {
4
4
  id?: string;
5
5
  }
6
6
  declare const EmailInput: React.FC<EmailInputProps>;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { UploadedFile } from '../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
3
  interface ImageUploadBaseProps {
4
4
  pathPrefix?: string;
5
5
  organizationId?: string;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Locale } from '../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
3
  import { InputType } from './input';
4
4
  import { Option } from './input/select-input';
5
5
  interface InputGroupProps {
@@ -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: 'dot' | 'category';
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?: 'preserveStartEnd' | 'equidistantPreserveStart';
20
+ intervalType?: "preserveStartEnd" | "equidistantPreserveStart";
21
21
  showTooltip?: boolean;
22
22
  showLegend?: boolean;
23
23
  autoMinValue?: boolean;
package/ui/logo.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- import * as React from 'react';
2
- interface LogoProps {
3
- }
4
- declare const Logo: React.FC<LogoProps>;
1
+ declare const Logo: () => import("react/jsx-runtime").JSX.Element;
5
2
  export { Logo };
@@ -1,6 +1,6 @@
1
1
  import { Command as CommandPrimitive } from 'cmdk';
2
2
  import { Command } from './command';
3
- import * as React from 'react';
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>, 'value' | 'placeholder' | 'disabled'>;
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 '@radix-ui/react-popover';
2
- import * as React from 'react';
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;
@@ -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>, 'value'>, VariantProps<typeof progressCircleVariants> {
82
+ interface ProgressCircleProps extends Omit<React.SVGProps<SVGSVGElement>, "value">, VariantProps<typeof progressCircleVariants> {
83
83
  value?: number;
84
84
  max?: number;
85
85
  showAnimation?: boolean;
@@ -1,5 +1,5 @@
1
- import * as RadioGroupPrimitives from '@radix-ui/react-radio-group';
2
- import * as React from 'react';
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>>;
@@ -1,5 +1,5 @@
1
1
  import { VariantProps } from 'tailwind-variants';
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
  declare const inputStyles: import('tailwind-variants').TVReturnType<{
4
4
  hasError: {
5
5
  true: string[];
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 '@radix-ui/react-select';
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 '@radix-ui/react-switch';
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>, 'asChild'>, VariantProps<typeof switchVariants> {
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 };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import * as NavigationMenuPrimitives from '@radix-ui/react-navigation-menu';
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 '@radix-ui/react-tooltip';
3
- interface TooltipProps extends Omit<TooltipPrimitives.TooltipContentProps, 'content' | 'onClick'>, Pick<TooltipPrimitives.TooltipProps, 'open' | 'defaultOpen' | 'onOpenChange' | 'delayDuration'> {
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?: 'bottom' | 'left' | 'top' | 'right';
6
+ side?: "bottom" | "left" | "top" | "right";
7
7
  showArrow?: boolean;
8
8
  triggerAsChild?: boolean;
9
9
  }