@shophost/react 0.1.3

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 (233) hide show
  1. package/admin-client.cjs +2 -0
  2. package/admin-client.js +21796 -0
  3. package/components/admin/forms/manufacturer-form.d.ts +7 -0
  4. package/components/admin/forms/organization-configuration-form.d.ts +10 -0
  5. package/components/admin/forms/organization-form.d.ts +8 -0
  6. package/components/admin/forms/organization-schedule-form.d.ts +10 -0
  7. package/components/admin/forms/product-category.form.d.ts +7 -0
  8. package/components/admin/forms/product-form/basic-info-section.d.ts +8 -0
  9. package/components/admin/forms/product-form/index.d.ts +7 -0
  10. package/components/admin/forms/product-form/metadata-section.d.ts +8 -0
  11. package/components/admin/forms/product-form/modifier-group-dialog.d.ts +9 -0
  12. package/components/admin/forms/product-form/modifiers-list.d.ts +7 -0
  13. package/components/admin/forms/product-form/modifiers-section.d.ts +8 -0
  14. package/components/admin/forms/product-form/price-section.d.ts +9 -0
  15. package/components/admin/forms/shipping-method-form.d.ts +7 -0
  16. package/components/admin/forms/sign-in-form.d.ts +2 -0
  17. package/components/admin/forms/sign-up-form.d.ts +2 -0
  18. package/components/admin/partials/manufacturers-list/columns.d.ts +3 -0
  19. package/components/admin/partials/manufacturers-list/index.d.ts +2 -0
  20. package/components/admin/partials/orders-list/actions-cell.d.ts +10 -0
  21. package/components/admin/partials/orders-list/columns.d.ts +3 -0
  22. package/components/admin/partials/orders-list/index.d.ts +2 -0
  23. package/components/admin/partials/orders-list/order-details-modal.d.ts +9 -0
  24. package/components/admin/partials/organization-list/index.d.ts +2 -0
  25. package/components/admin/partials/product-categories-list/columns.d.ts +14 -0
  26. package/components/admin/partials/product-categories-list/index.d.ts +2 -0
  27. package/components/admin/partials/products-list/columns.d.ts +14 -0
  28. package/components/admin/partials/products-list/index.d.ts +2 -0
  29. package/components/admin/partials/reservations-list/actions-cell.d.ts +10 -0
  30. package/components/admin/partials/reservations-list/columns.d.ts +3 -0
  31. package/components/admin/partials/reservations-list/index.d.ts +2 -0
  32. package/components/admin/partials/reservations-list/reservation-details-modal.d.ts +8 -0
  33. package/components/admin/partials/shipping-methods-list/columns.d.ts +3 -0
  34. package/components/admin/partials/shipping-methods-list/index.d.ts +2 -0
  35. package/components/ui/badge.d.ts +31 -0
  36. package/components/ui/button.d.ts +35 -0
  37. package/components/ui/calendar.d.ts +21 -0
  38. package/components/ui/card.d.ts +6 -0
  39. package/components/ui/checkbox.d.ts +4 -0
  40. package/components/ui/command-bar.d.ts +24 -0
  41. package/components/ui/command.d.ts +80 -0
  42. package/components/ui/data-table/DataTable.d.ts +13 -0
  43. package/components/ui/data-table/DataTableBulkEditor.d.ts +7 -0
  44. package/components/ui/data-table/DataTableColumnHeader.d.ts +7 -0
  45. package/components/ui/data-table/DataTableFilter.d.ts +18 -0
  46. package/components/ui/data-table/DataTablePagination.d.ts +8 -0
  47. package/components/ui/data-table/DataTableViewOptions.d.ts +6 -0
  48. package/components/ui/data-table/tanstack-table.d.ts +7 -0
  49. package/components/ui/date-picker.d.ts +72 -0
  50. package/components/ui/dialog.d.ts +20 -0
  51. package/components/ui/divider.d.ts +5 -0
  52. package/components/ui/drawer.d.ts +18 -0
  53. package/components/ui/dropdown.d.ts +30 -0
  54. package/components/ui/form-generator.d.ts +29 -0
  55. package/components/ui/header.d.ts +2 -0
  56. package/components/ui/icons/ArrowAnimated.d.ts +1 -0
  57. package/components/ui/icons/spinner-icon.d.ts +5 -0
  58. package/components/ui/input/country-input.d.ts +7 -0
  59. package/components/ui/input/email-input.d.ts +7 -0
  60. package/components/ui/input/image-upload-input.d.ts +19 -0
  61. package/components/ui/input/phone-number-input.d.ts +8 -0
  62. package/components/ui/input/select-input.d.ts +14 -0
  63. package/components/ui/input/text-input.d.ts +87 -0
  64. package/components/ui/input-array-group.d.ts +10 -0
  65. package/components/ui/input-group.d.ts +19 -0
  66. package/components/ui/input-object-group.d.ts +8 -0
  67. package/components/ui/input.d.ts +13 -0
  68. package/components/ui/label.d.ts +7 -0
  69. package/components/ui/line-chart.d.ts +35 -0
  70. package/components/ui/logo.d.ts +5 -0
  71. package/components/ui/multiple-select.d.ts +73 -0
  72. package/components/ui/navigation/DropdownUserProfile.d.ts +6 -0
  73. package/components/ui/navigation/MobileSidebar.d.ts +1 -0
  74. package/components/ui/navigation/Sidebar.d.ts +1 -0
  75. package/components/ui/navigation/SidebarWorkspacesDropdown.d.ts +2 -0
  76. package/components/ui/navigation/UserProfile.d.ts +2 -0
  77. package/components/ui/overview/DashboardCategoryBarCard.d.ts +13 -0
  78. package/components/ui/overview/DashboardChartCard.d.ts +12 -0
  79. package/components/ui/overview/DashboardFilterbar.d.ts +16 -0
  80. package/components/ui/overview/DashboardProgressBarCard.d.ts +12 -0
  81. package/components/ui/overview/dashboard-types.d.ts +12 -0
  82. package/components/ui/popover.d.ts +13 -0
  83. package/components/ui/progress-bar.d.ts +89 -0
  84. package/components/ui/progress-circle.d.ts +91 -0
  85. package/components/ui/radio-card.d.ts +6 -0
  86. package/components/ui/search-bar.d.ts +29 -0
  87. package/components/ui/select.d.ts +17 -0
  88. package/components/ui/settings/ModalAddUser.d.ts +4 -0
  89. package/components/ui/switch.d.ts +50 -0
  90. package/components/ui/tab-navigation.d.ts +7 -0
  91. package/components/ui/table.d.ts +11 -0
  92. package/components/ui/tooltip.d.ts +11 -0
  93. package/config/countries.d.ts +8 -0
  94. package/data/data.d.ts +31 -0
  95. package/data/overview-data.d.ts +2 -0
  96. package/data/schema.d.ts +19 -0
  97. package/index.cjs +1 -0
  98. package/index.d.ts +7 -0
  99. package/index.mjs +14 -0
  100. package/index.react-server.cjs +1 -0
  101. package/index.react-server.d.ts +8 -0
  102. package/index.react-server.mjs +37 -0
  103. package/lib/auth-redirect.d.ts +4 -0
  104. package/lib/auth.d.ts +23 -0
  105. package/lib/chartUtils.d.ts +63 -0
  106. package/lib/query-client.d.ts +2 -0
  107. package/lib/useOnWindowResize.d.ts +3 -0
  108. package/lib/utils.d.ts +11 -0
  109. package/next/server.cjs +1 -0
  110. package/next/server.d.ts +43 -0
  111. package/next/server.mjs +21 -0
  112. package/next/views.cjs +2 -0
  113. package/next/views.d.ts +7 -0
  114. package/next/views.mjs +5 -0
  115. package/package.json +119 -0
  116. package/providers/admin-provider.d.ts +13 -0
  117. package/providers/flyout-provider.d.ts +10 -0
  118. package/providers/organization-provider.d.ts +22 -0
  119. package/react.css +1 -0
  120. package/router/AdminRouter.d.ts +5 -0
  121. package/router/resolve.d.ts +67 -0
  122. package/router/routes.d.ts +25 -0
  123. package/storefront/components/cart/cart-items.d.ts +20 -0
  124. package/storefront/components/cart-summary/index.d.ts +13 -0
  125. package/storefront/components/cart-summary/schimmer.d.ts +3 -0
  126. package/storefront/components/header/index.d.ts +11 -0
  127. package/storefront/components/header/shimmer.d.ts +2 -0
  128. package/storefront/components/header/user-profile.d.ts +1 -0
  129. package/storefront/components/index.d.ts +1 -0
  130. package/storefront/components/modifiers/index.d.ts +5 -0
  131. package/storefront/components/modifiers/modifier-dialog-container.d.ts +21 -0
  132. package/storefront/components/modifiers/modifiers-group.d.ts +37 -0
  133. package/storefront/components/modifiers/modifiers-modal.d.ts +12 -0
  134. package/storefront/components/modifiers/modifiers-option.d.ts +37 -0
  135. package/storefront/components/modifiers/quantity-control.d.ts +29 -0
  136. package/storefront/components/pages/account-pages/index.d.ts +2 -0
  137. package/storefront/components/pages/account-pages/layouts.d.ts +10 -0
  138. package/storefront/components/pages/account-pages/order-details-page/index.d.ts +5 -0
  139. package/storefront/components/pages/account-pages/order-details-page/shimmer.d.ts +2 -0
  140. package/storefront/components/pages/account-pages/order-details-page/tracking-icons.d.ts +13 -0
  141. package/storefront/components/pages/account-pages/order-details-page/tracking-step.d.ts +10 -0
  142. package/storefront/components/pages/account-pages/orders-list-page/index.d.ts +2 -0
  143. package/storefront/components/pages/account-pages/sign-in-page/index.d.ts +1 -0
  144. package/storefront/components/pages/account-pages/sign-in-page/sign-in-form.d.ts +2 -0
  145. package/storefront/components/pages/account-pages/sign-up-page/index.d.ts +1 -0
  146. package/storefront/components/pages/account-pages/sign-up-page/sign-up-form.d.ts +2 -0
  147. package/storefront/components/pages/checkout-pages/customer-details-page/customer-details-form.d.ts +9 -0
  148. package/storefront/components/pages/checkout-pages/customer-details-page/index.d.ts +6 -0
  149. package/storefront/components/pages/checkout-pages/customer-details-page/shimmer.d.ts +2 -0
  150. package/storefront/components/pages/checkout-pages/index.d.ts +2 -0
  151. package/storefront/components/pages/checkout-pages/reservation-page/index.d.ts +2 -0
  152. package/storefront/components/pages/checkout-pages/reservation-page/reservation-form.d.ts +10 -0
  153. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/index.d.ts +6 -0
  154. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shimmer.d.ts +2 -0
  155. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shipping-and-payment-form.d.ts +9 -0
  156. package/storefront/components/ui/badge.d.ts +31 -0
  157. package/storefront/components/ui/button.d.ts +35 -0
  158. package/storefront/components/ui/command-bar.d.ts +24 -0
  159. package/storefront/components/ui/command.d.ts +80 -0
  160. package/storefront/components/ui/datefield-rac.d.ts +12 -0
  161. package/storefront/components/ui/dialog.d.ts +20 -0
  162. package/storefront/components/ui/divider.d.ts +5 -0
  163. package/storefront/components/ui/index.d.ts +12 -0
  164. package/storefront/components/ui/input/country-input.d.ts +8 -0
  165. package/storefront/components/ui/input/email-input.d.ts +7 -0
  166. package/storefront/components/ui/input/image-upload-input.d.ts +19 -0
  167. package/storefront/components/ui/input/index.d.ts +22 -0
  168. package/storefront/components/ui/input/location-input.d.ts +9 -0
  169. package/storefront/components/ui/input/phone-number-input.d.ts +8 -0
  170. package/storefront/components/ui/input/select-input.d.ts +14 -0
  171. package/storefront/components/ui/input/switch.d.ts +50 -0
  172. package/storefront/components/ui/input/text-input.d.ts +87 -0
  173. package/storefront/components/ui/input/time-input.d.ts +4 -0
  174. package/storefront/components/ui/input/week-time-input.d.ts +8 -0
  175. package/storefront/components/ui/input-group.d.ts +20 -0
  176. package/storefront/components/ui/label.d.ts +7 -0
  177. package/storefront/components/ui/popover.d.ts +13 -0
  178. package/storefront/components/ui/radio-card.d.ts +6 -0
  179. package/storefront/components/ui/slideover.d.ts +8 -0
  180. package/storefront/components/ui/text-input.d.ts +3 -0
  181. package/storefront/config/countries.d.ts +8 -0
  182. package/storefront/constants/cart.constants.d.ts +3 -0
  183. package/storefront/exports.d.ts +21 -0
  184. package/storefront/hooks/useLocalization.d.ts +12 -0
  185. package/storefront/hooks/useModifierSelection.d.ts +21 -0
  186. package/storefront/hooks/useProductDetails.d.ts +11 -0
  187. package/storefront/index.d.ts +1 -0
  188. package/storefront/lib/better-auth.d.ts +2642 -0
  189. package/storefront/lib/react-query.lib.d.ts +2 -0
  190. package/storefront/lib/utils.d.ts +11 -0
  191. package/storefront/mock/products.d.ts +48 -0
  192. package/storefront/providers/api-provider.d.ts +11 -0
  193. package/storefront/providers/auth-provider.d.ts +9 -0
  194. package/storefront/providers/cart-provider.d.ts +39 -0
  195. package/storefront/providers/modifiers-provider.d.ts +27 -0
  196. package/storefront/providers/organization-provider.d.ts +15 -0
  197. package/storefront/providers/shophost-provider.d.ts +29 -0
  198. package/storefront/providers/translation-provider.d.ts +16 -0
  199. package/storefront/reducers/cart.reducer.d.ts +13 -0
  200. package/storefront/schemas/cart.schema.d.ts +13 -0
  201. package/storefront/translations/en.d.ts +150 -0
  202. package/storefront/translations/index.d.ts +4 -0
  203. package/storefront/translations/pl.d.ts +150 -0
  204. package/storefront/types/cart.types.d.ts +109 -0
  205. package/storefront/utils/cart-item.util.d.ts +3 -0
  206. package/storefront/utils/cart.util.d.ts +53 -0
  207. package/storefront.cjs +2 -0
  208. package/storefront.mjs +81 -0
  209. package/utils/object.util.d.ts +11 -0
  210. package/views/AdminShell.d.ts +4 -0
  211. package/views/DashboardView.d.ts +3 -0
  212. package/views/ErrorView.d.ts +3 -0
  213. package/views/OrdersView.d.ts +1 -0
  214. package/views/OrganizationsView.d.ts +1 -0
  215. package/views/ReservationsView.d.ts +1 -0
  216. package/views/auth/SignInView.d.ts +1 -0
  217. package/views/auth/SignUpView.d.ts +1 -0
  218. package/views/auth/auth-layout.d.ts +4 -0
  219. package/views/manufacturers/ManufacturerCreateView.d.ts +1 -0
  220. package/views/manufacturers/ManufacturerEditView.d.ts +1 -0
  221. package/views/manufacturers/ManufacturersListView.d.ts +1 -0
  222. package/views/product-categories/ProductCategoriesListView.d.ts +1 -0
  223. package/views/product-categories/ProductCategoryCreateView.d.ts +1 -0
  224. package/views/product-categories/ProductCategoryEditView.d.ts +1 -0
  225. package/views/products/ProductCreateView.d.ts +1 -0
  226. package/views/products/ProductEditView.d.ts +1 -0
  227. package/views/products/ProductsListView.d.ts +1 -0
  228. package/views/settings/OpeningTimesView.d.ts +1 -0
  229. package/views/settings/SettingsLayout.d.ts +4 -0
  230. package/views/settings/SettingsView.d.ts +1 -0
  231. package/views/settings/shipping-methods/ShippingMethodCreateView.d.ts +1 -0
  232. package/views/settings/shipping-methods/ShippingMethodEditView.d.ts +1 -0
  233. package/views/settings/shipping-methods/ShippingMethodsListView.d.ts +1 -0
@@ -0,0 +1,7 @@
1
+ import { Manufacturer } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface ManufacturerFormProps {
4
+ initialData?: Manufacturer;
5
+ }
6
+ declare const ManufacturerForm: React.FC<ManufacturerFormProps>;
7
+ export { ManufacturerForm };
@@ -0,0 +1,10 @@
1
+ import { UpdateOrganization } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface OrganizationConfigurationFormProps {
4
+ initialData: UpdateOrganization & {
5
+ id: string;
6
+ };
7
+ onClose?: () => void;
8
+ }
9
+ declare const OrganizationConfigurationForm: React.FC<OrganizationConfigurationFormProps>;
10
+ export { OrganizationConfigurationForm };
@@ -0,0 +1,8 @@
1
+ import { Organization } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface OrganizationFormProps {
4
+ initialData?: Organization;
5
+ onClose?: () => void;
6
+ }
7
+ declare const OrganizationForm: React.FC<OrganizationFormProps>;
8
+ export { OrganizationForm };
@@ -0,0 +1,10 @@
1
+ import { UpdateOrganization } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface OrganizationScheduleFormProps {
4
+ initialData: UpdateOrganization & {
5
+ id: string;
6
+ };
7
+ onClose?: () => void;
8
+ }
9
+ declare const OrganizationScheduleForm: React.FC<OrganizationScheduleFormProps>;
10
+ export { OrganizationScheduleForm };
@@ -0,0 +1,7 @@
1
+ import { ProductCategory } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface ProductCategoryFormProps {
4
+ initialData?: ProductCategory;
5
+ }
6
+ declare const ProductCategoryForm: React.FC<ProductCategoryFormProps>;
7
+ export { ProductCategoryForm };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
4
+ interface BasicInfoSectionProps {
5
+ form: UseFormReturn<CreateProduct | UpdateProduct>;
6
+ }
7
+ declare const BasicInfoSection: React.FC<BasicInfoSectionProps>;
8
+ export { BasicInfoSection };
@@ -0,0 +1,7 @@
1
+ import { Product } from '../../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface ProductFormProps {
4
+ initialData?: Product;
5
+ }
6
+ declare const ProductForm: React.FC<ProductFormProps>;
7
+ export { ProductForm };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
4
+ interface MetadataSectionProps {
5
+ form: UseFormReturn<CreateProduct | UpdateProduct>;
6
+ }
7
+ declare const MetadataSection: React.FC<MetadataSectionProps>;
8
+ export { MetadataSection };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface ModifierGroupProps {
3
+ open: boolean;
4
+ initialData?: any;
5
+ onClose: () => void;
6
+ onSubmit: (data: any) => void;
7
+ }
8
+ declare const ModifierGroupDialog: React.FC<ModifierGroupProps>;
9
+ export { ModifierGroupDialog };
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface ModifiersListProps {
3
+ nestIndex: number;
4
+ control: any;
5
+ }
6
+ export declare const ModifiersList: React.FC<ModifiersListProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
4
+ interface ModifiersSectionProps {
5
+ form: UseFormReturn<CreateProduct | UpdateProduct>;
6
+ }
7
+ declare const ModifiersSection: React.FC<ModifiersSectionProps>;
8
+ export { ModifiersSection };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
4
+ interface PriceSectionProps {
5
+ form: UseFormReturn<CreateProduct | UpdateProduct>;
6
+ loading?: boolean;
7
+ }
8
+ declare const PriceSection: React.FC<PriceSectionProps>;
9
+ export { PriceSection };
@@ -0,0 +1,7 @@
1
+ import { ShippingMethod } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface ShippingMethodFormProps {
4
+ initialData?: ShippingMethod;
5
+ }
6
+ declare const ShippingMethodForm: React.FC<ShippingMethodFormProps>;
7
+ export { ShippingMethodForm };
@@ -0,0 +1,2 @@
1
+ declare const SignInForm: () => import("react/jsx-runtime").JSX.Element;
2
+ export { SignInForm };
@@ -0,0 +1,2 @@
1
+ declare const SignUpForm: () => import("react/jsx-runtime").JSX.Element;
2
+ export { SignUpForm };
@@ -0,0 +1,3 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { Manufacturer } from '../../../../../../client/src/index.ts';
3
+ export declare const columns: ColumnDef<Manufacturer>[];
@@ -0,0 +1,2 @@
1
+ declare const ManufacturersList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { ManufacturersList };
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { Order } from '../../../../../../client/src/index.ts';
3
+ interface StatusCellProps {
4
+ organizationId: string;
5
+ id: string;
6
+ status: Order["status"];
7
+ refetch: () => void;
8
+ }
9
+ export declare const ActionsCell: React.FC<StatusCellProps>;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { Order } from '../../../../../../client/src/index.ts';
3
+ export declare const columns: ColumnDef<Order>[];
@@ -0,0 +1,2 @@
1
+ declare const OrdersList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { OrdersList };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Order } from '../../../../../../client/src/index.ts';
3
+ interface OrderDetailsModalProps {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ order: Order | null;
7
+ }
8
+ declare const OrderDetailsModal: React.FC<OrderDetailsModalProps>;
9
+ export { OrderDetailsModal };
@@ -0,0 +1,2 @@
1
+ declare const OrganizationList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { OrganizationList };
@@ -0,0 +1,14 @@
1
+ import { ColumnDef, Row } from '@tanstack/react-table';
2
+ import { LocalizedProductCategory } from '../../../../../../client/src/index.ts';
3
+ interface PublishStatusCellProps {
4
+ row: Row<LocalizedProductCategory>;
5
+ table: any;
6
+ }
7
+ export declare const PublishStatusCell: ({ row, table }: PublishStatusCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ interface DeleteActionCellProps {
9
+ row: Row<LocalizedProductCategory>;
10
+ table: any;
11
+ }
12
+ export declare const DeleteActionCell: ({ row, table }: DeleteActionCellProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const columns: ColumnDef<LocalizedProductCategory>[];
14
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const ProductCategoriesList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { ProductCategoriesList };
@@ -0,0 +1,14 @@
1
+ import { ColumnDef, Row } from '@tanstack/react-table';
2
+ import { LocalizedProduct } from '../../../../../../client/src/index.ts';
3
+ interface PublishStatusCellProps {
4
+ row: Row<LocalizedProduct>;
5
+ table: any;
6
+ }
7
+ export declare const PublishStatusCell: ({ row, table }: PublishStatusCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ interface DeleteActionCellProps {
9
+ row: Row<LocalizedProduct>;
10
+ table: any;
11
+ }
12
+ export declare const DeleteActionCell: ({ row, table }: DeleteActionCellProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const columns: ColumnDef<LocalizedProduct>[];
14
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const ProductsList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { ProductsList };
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface StatusCellProps {
3
+ organizationId: string;
4
+ id: string;
5
+ acceptedAt: string | Date | null | undefined;
6
+ cancelledAt: string | Date | null | undefined;
7
+ refetch: () => void;
8
+ }
9
+ export declare const ActionsCell: React.FC<StatusCellProps>;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { Reservation } from '../../../../../../client/src/index.ts';
3
+ export declare const columns: ColumnDef<Reservation>[];
@@ -0,0 +1,2 @@
1
+ declare const ReservationsList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { ReservationsList };
@@ -0,0 +1,8 @@
1
+ import { Reservation } from '../../../../../../client/src/index.ts';
2
+ interface ReservationDetailsModalProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ reservation: Reservation;
6
+ }
7
+ export declare const ReservationDetailsModal: React.FC<ReservationDetailsModalProps>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { ShippingMethod } from '../../../../../../client/src/index.ts';
3
+ export declare const columns: ColumnDef<ShippingMethod>[];
@@ -0,0 +1,2 @@
1
+ declare const ShippingMethodsList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { ShippingMethodsList };
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ declare const badgeVariants: import('tailwind-variants').TVReturnType<{
4
+ variant: {
5
+ default: string[];
6
+ neutral: string[];
7
+ success: string[];
8
+ error: string[];
9
+ warning: string[];
10
+ };
11
+ }, undefined, string, {
12
+ variant: {
13
+ default: string[];
14
+ neutral: string[];
15
+ success: string[];
16
+ error: string[];
17
+ warning: string[];
18
+ };
19
+ }, undefined, import('tailwind-variants').TVReturnType<{
20
+ variant: {
21
+ default: string[];
22
+ neutral: string[];
23
+ success: string[];
24
+ error: string[];
25
+ warning: string[];
26
+ };
27
+ }, undefined, string, unknown, unknown, undefined>>;
28
+ interface BadgeProps extends React.ComponentPropsWithoutRef<'span'>, VariantProps<typeof badgeVariants> {
29
+ }
30
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
31
+ export { Badge, badgeVariants, type BadgeProps };
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ declare const buttonVariants: import('tailwind-variants').TVReturnType<{
4
+ variant: {
5
+ primary: string[];
6
+ secondary: string[];
7
+ light: string[];
8
+ ghost: string[];
9
+ destructive: string[];
10
+ };
11
+ }, undefined, (string | string[])[], {
12
+ variant: {
13
+ primary: string[];
14
+ secondary: string[];
15
+ light: string[];
16
+ ghost: string[];
17
+ destructive: string[];
18
+ };
19
+ }, undefined, import('tailwind-variants').TVReturnType<{
20
+ variant: {
21
+ primary: string[];
22
+ secondary: string[];
23
+ light: string[];
24
+ ghost: string[];
25
+ destructive: string[];
26
+ };
27
+ }, undefined, (string | string[])[], unknown, unknown, undefined>>;
28
+ interface ButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof buttonVariants> {
29
+ asChild?: boolean;
30
+ isLoading?: boolean;
31
+ loadingText?: string;
32
+ disableShadows?: boolean;
33
+ }
34
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
35
+ export { Button, buttonVariants, type ButtonProps };
@@ -0,0 +1,21 @@
1
+ import { DayPickerRangeProps, DayPickerSingleProps, Matcher } from 'react-day-picker';
2
+ type OmitKeys<T, K extends keyof T> = {
3
+ [P in keyof T as P extends K ? never : P]: T[P];
4
+ };
5
+ type KeysToOmit = 'showWeekNumber' | 'captionLayout' | 'mode';
6
+ type SingleProps = OmitKeys<DayPickerSingleProps, KeysToOmit>;
7
+ type RangeProps = OmitKeys<DayPickerRangeProps, KeysToOmit>;
8
+ type CalendarProps = ({
9
+ mode: 'single';
10
+ } & SingleProps) | ({
11
+ mode?: undefined;
12
+ } & SingleProps) | ({
13
+ mode: 'range';
14
+ } & RangeProps);
15
+ declare const Calendar: {
16
+ ({ mode, weekStartsOn, numberOfMonths, enableYearNavigation, disableNavigation, locale, className, classNames, ...props }: CalendarProps & {
17
+ enableYearNavigation?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export { Calendar, type Matcher };
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface CardProps extends React.ComponentPropsWithoutRef<'div'> {
3
+ asChild?: boolean;
4
+ }
5
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { Card, type CardProps };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import * as CheckboxPrimitives from '@radix-ui/react-checkbox';
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitives.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ interface CommandBarProps extends React.PropsWithChildren {
3
+ open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
5
+ defaultOpen?: boolean;
6
+ disableAutoFocus?: boolean;
7
+ }
8
+ declare const CommandBar: {
9
+ ({ open, onOpenChange, defaultOpen, disableAutoFocus, children, }: CommandBarProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const CommandBarValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const CommandBarBar: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
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<'button'>, 'children' | 'onClick'> {
16
+ action: () => void | Promise<void>;
17
+ label: string;
18
+ shortcut: {
19
+ shortcut: string;
20
+ label?: string;
21
+ };
22
+ }
23
+ declare const CommandBarCommand: React.ForwardRefExoticComponent<CommandProps & React.RefAttributes<HTMLButtonElement>>;
24
+ export { CommandBar, CommandBarBar, CommandBarCommand, CommandBarSeperator, CommandBarValue, };
@@ -0,0 +1,80 @@
1
+ import { DialogProps } from '@radix-ui/react-dialog';
2
+ import * as React from 'react';
3
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
21
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
22
+ ref?: React.Ref<HTMLInputElement>;
23
+ } & {
24
+ asChild?: boolean;
25
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
26
+ value?: string;
27
+ onValueChange?: (search: string) => void;
28
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
30
+ children?: React.ReactNode;
31
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
32
+ ref?: React.Ref<HTMLDivElement>;
33
+ } & {
34
+ asChild?: boolean;
35
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
36
+ label?: string;
37
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
39
+ children?: React.ReactNode;
40
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
41
+ ref?: React.Ref<HTMLDivElement>;
42
+ } & {
43
+ asChild?: boolean;
44
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
+ children?: React.ReactNode;
47
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
+ ref?: React.Ref<HTMLDivElement>;
49
+ } & {
50
+ asChild?: boolean;
51
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
52
+ heading?: React.ReactNode;
53
+ value?: string;
54
+ forceMount?: boolean;
55
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
57
+ ref?: React.Ref<HTMLDivElement>;
58
+ } & {
59
+ asChild?: boolean;
60
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
61
+ alwaysRender?: boolean;
62
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
64
+ children?: React.ReactNode;
65
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
66
+ ref?: React.Ref<HTMLDivElement>;
67
+ } & {
68
+ asChild?: boolean;
69
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
70
+ disabled?: boolean;
71
+ onSelect?: (value: string) => void;
72
+ value?: string;
73
+ keywords?: string[];
74
+ forceMount?: boolean;
75
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
+ declare const CommandShortcut: {
77
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
78
+ displayName: string;
79
+ };
80
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,13 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { PaginationMeta } from '../../../../../client/src/index.ts';
3
+ interface DataTableProps<TData> {
4
+ meta?: PaginationMeta;
5
+ columns: ColumnDef<TData>[];
6
+ data: TData[];
7
+ error?: boolean;
8
+ loading?: boolean;
9
+ className?: string;
10
+ refetch?: () => void;
11
+ }
12
+ export declare function DataTable<TData>({ meta, columns, error, data, loading, className, refetch, }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { RowSelectionState, Table } from '@tanstack/react-table';
2
+ type DataTableBulkEditorProps<TData> = {
3
+ table: Table<TData>;
4
+ rowSelection: RowSelectionState;
5
+ };
6
+ declare function DataTableBulkEditor<TData>({ table, rowSelection, }: DataTableBulkEditorProps<TData>): import("react/jsx-runtime").JSX.Element;
7
+ export { DataTableBulkEditor };
@@ -0,0 +1,7 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
3
+ column: Column<TData, TValue>;
4
+ title: string;
5
+ }
6
+ export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ export type ConditionFilter = {
3
+ condition: string;
4
+ value: [number | string, number | string];
5
+ };
6
+ type FilterType = 'select' | 'checkbox' | 'number';
7
+ interface DataTableFilterProps<TData, TValue> {
8
+ column: Column<TData, TValue> | undefined;
9
+ title?: string;
10
+ options?: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ type?: FilterType;
15
+ formatter?: (value: any) => string;
16
+ }
17
+ export declare function DataTableFilter<TData, TValue>({ column, title, options, type, formatter, }: DataTableFilterProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ import { PaginationMeta } from '../../../../../client/src/index.ts';
3
+ interface DataTablePaginationProps<TData> {
4
+ table: Table<TData>;
5
+ meta: PaginationMeta;
6
+ }
7
+ export declare function DataTablePagination<TData>({ meta, table, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ interface DataTableViewOptionsProps<TData> {
3
+ table: Table<TData>;
4
+ }
5
+ declare function ViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
+ export { ViewOptions };
@@ -0,0 +1,7 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ declare module "@tanstack/react-table" {
3
+ interface ColumnMeta<TData extends RowData, TValue> {
4
+ className?: string;
5
+ displayName?: string;
6
+ }
7
+ }
@@ -0,0 +1,72 @@
1
+ import { Locale } from 'date-fns';
2
+ import { Matcher } from './calendar';
3
+ type DateRange = {
4
+ from: Date | undefined;
5
+ to?: Date | undefined;
6
+ };
7
+ interface Preset {
8
+ label: string;
9
+ }
10
+ interface DatePreset extends Preset {
11
+ date: Date;
12
+ }
13
+ interface DateRangePreset extends Preset {
14
+ dateRange: DateRange;
15
+ }
16
+ type CalendarProps = {
17
+ fromYear?: number;
18
+ toYear?: number;
19
+ fromMonth?: Date;
20
+ toMonth?: Date;
21
+ fromDay?: Date;
22
+ toDay?: Date;
23
+ fromDate?: Date;
24
+ toDate?: Date;
25
+ locale?: Locale;
26
+ };
27
+ type Translations = {
28
+ cancel?: string;
29
+ apply?: string;
30
+ start?: string;
31
+ end?: string;
32
+ range?: string;
33
+ };
34
+ interface PickerProps extends CalendarProps {
35
+ className?: string;
36
+ disabled?: boolean;
37
+ disabledDays?: Matcher | Matcher[] | undefined;
38
+ required?: boolean;
39
+ showTimePicker?: boolean;
40
+ placeholder?: string;
41
+ enableYearNavigation?: boolean;
42
+ disableNavigation?: boolean;
43
+ hasError?: boolean;
44
+ id?: string;
45
+ translations?: Translations;
46
+ align?: 'center' | 'end' | 'start';
47
+ 'aria-invalid'?: boolean;
48
+ 'aria-label'?: string;
49
+ 'aria-labelledby'?: string;
50
+ 'aria-required'?: boolean;
51
+ }
52
+ type SingleDatePickerProps = {
53
+ presets?: DatePreset[];
54
+ defaultValue?: Date;
55
+ value?: Date;
56
+ onChange?: (date: Date | undefined) => void;
57
+ } & PickerProps;
58
+ declare const DatePicker: {
59
+ ({ presets, ...props }: SingleDatePickerProps): import("react/jsx-runtime").JSX.Element;
60
+ displayName: string;
61
+ };
62
+ type RangeDatePickerProps = {
63
+ presets?: DateRangePreset[];
64
+ defaultValue?: DateRange;
65
+ value?: DateRange;
66
+ onChange?: (dateRange: DateRange | undefined) => void;
67
+ } & PickerProps;
68
+ declare const DateRangePicker: {
69
+ ({ presets, ...props }: RangeDatePickerProps): import("react/jsx-runtime").JSX.Element;
70
+ displayName: string;
71
+ };
72
+ export { DatePicker, DateRangePicker, type DatePreset, type DateRange, type DateRangePreset, };