@storecraft/dashboard 1.0.35 → 1.0.36
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/lib/src/index.js +34424 -61880
- package/dist/lib/src/index.umd.cjs +459 -573
- package/dist/lib/src/src/apps/gallery/gallery-image-grid.d.ts +14 -0
- package/dist/lib/src/src/apps/gallery/gallery-page.d.ts +2 -0
- package/dist/lib/src/{apps → src/apps}/gallery/gallery-searchbar.d.ts +8 -7
- package/dist/lib/src/src/apps/gallery/gallery-select.d.ts +9 -0
- package/dist/lib/src/src/apps/gallery/gallery.d.ts +29 -0
- package/dist/lib/src/src/apps/gallery/image-header.d.ts +9 -0
- package/dist/lib/src/src/apps/gallery/image-page.d.ts +16 -0
- package/dist/lib/src/src/apps/gallery/utils.d.ts +2 -0
- package/dist/lib/src/src/apps/index.d.ts +2 -0
- package/dist/lib/src/src/comps/action-bar.d.ts +8 -0
- package/dist/lib/src/src/comps/air-date-picker.d.ts +6 -0
- package/dist/lib/src/src/comps/asset-favicon.d.ts +1 -0
- package/dist/lib/src/src/comps/attributes.d.ts +23 -0
- package/dist/lib/src/src/comps/base-chart-view.d.ts +31 -0
- package/dist/lib/src/src/comps/bulk-tag-products-in-collection.d.ts +9 -0
- package/dist/lib/src/src/comps/capsule.d.ts +8 -0
- package/dist/lib/src/src/comps/capsules-view.d.ts +10 -0
- package/dist/lib/src/src/comps/chart.demo.tsx.d.ts +2 -0
- package/dist/lib/src/src/comps/client-only.d.ts +3 -0
- package/dist/lib/src/src/comps/collection-actions.d.ts +21 -0
- package/dist/lib/src/src/comps/collection-products.d.ts +26 -0
- package/dist/lib/src/src/comps/common-button.d.ts +78 -0
- package/dist/lib/src/src/comps/common-fields.d.ts +83 -0
- package/dist/lib/src/src/comps/common-table-fields.d.ts +18 -0
- package/dist/lib/src/src/comps/common-ui.d.ts +97 -0
- package/dist/lib/src/{comps → src/comps}/copyable-view.d.ts +5 -2
- package/dist/lib/src/src/comps/customer-orders.d.ts +5 -0
- package/dist/lib/src/src/comps/dark-mode.d.ts +2 -0
- package/dist/lib/src/src/comps/discount-details.d.ts +54 -0
- package/dist/lib/src/src/comps/discount-filters.d.ts +60 -0
- package/dist/lib/src/src/comps/discount-performance.d.ts +5 -0
- package/dist/lib/src/src/comps/discounts-quick-search-actions.d.ts +2 -0
- package/dist/lib/src/src/comps/discounts-table-code.d.ts +8 -0
- package/dist/lib/src/src/comps/discounts-table-type.d.ts +6 -0
- package/dist/lib/src/src/comps/document-actions.d.ts +10 -0
- package/dist/lib/src/src/comps/document-details.d.ts +7 -0
- package/dist/lib/src/src/comps/document-title.d.ts +7 -0
- package/dist/lib/src/src/comps/drawer.d.ts +6 -0
- package/dist/lib/src/src/comps/error-message.d.ts +18 -0
- package/dist/lib/src/{comps → src/comps}/fields-view.d.ts +24 -27
- package/dist/lib/src/src/comps/gradient-text.d.ts +1 -0
- package/dist/lib/src/src/comps/home-header.d.ts +10 -0
- package/dist/lib/src/src/comps/home-invite-action-card.d.ts +7 -0
- package/dist/lib/src/src/comps/home-performace.d.ts +19 -0
- package/dist/lib/src/src/comps/home-sales-chart.d.ts +8 -0
- package/dist/lib/src/src/comps/home-stat-card.d.ts +10 -0
- package/dist/lib/src/src/comps/home-time-frame.d.ts +10 -0
- package/dist/lib/src/{comps → src/comps}/image-editor.d.ts +9 -42
- package/dist/lib/src/src/comps/img.d.ts +11 -0
- package/dist/lib/src/src/comps/json.d.ts +8 -0
- package/dist/lib/src/src/comps/lazy-carousel.d.ts +9 -0
- package/dist/lib/src/src/comps/loading-image.d.ts +3 -0
- package/dist/lib/src/src/comps/login-connect.d.ts +3 -0
- package/dist/lib/src/{comps → src/comps}/login-content.d.ts +1 -1
- package/dist/lib/src/src/comps/login-copyright.d.ts +3 -0
- package/dist/lib/src/src/comps/login-form.d.ts +16 -0
- package/dist/lib/src/{comps → src/comps}/login-latest-updates.d.ts +3 -6
- package/dist/lib/src/src/comps/login-marquee.d.ts +3 -0
- package/dist/lib/src/src/comps/logo-text.d.ts +4 -0
- package/dist/lib/src/src/comps/logo.d.ts +8 -0
- package/dist/lib/src/{comps → src/comps}/markdown-card.d.ts +2 -2
- package/dist/lib/src/src/comps/md-editor.d.ts +8 -0
- package/dist/lib/src/src/comps/md-view.d.ts +5 -0
- package/dist/lib/src/{comps → src/comps}/media.d.ts +13 -37
- package/dist/lib/src/{comps → src/comps}/modal.d.ts +4 -5
- package/dist/lib/src/src/comps/notifications-button.d.ts +11 -0
- package/dist/lib/src/{comps → src/comps}/notifications.d.ts +6 -5
- package/dist/lib/src/src/comps/order-coupon-info.d.ts +5 -0
- package/dist/lib/src/src/comps/order-delivery-method.d.ts +5 -0
- package/dist/lib/src/src/comps/order-line-items.d.ts +12 -0
- package/dist/lib/src/src/comps/order-payment-gateway.d.ts +16 -0
- package/dist/lib/src/src/comps/order-price.d.ts +12 -0
- package/dist/lib/src/src/comps/orders-quick-search-actions.d.ts +4 -0
- package/dist/lib/src/src/comps/overlay.d.ts +11 -0
- package/dist/lib/src/src/comps/portal-creator.d.ts +12 -0
- package/dist/lib/src/src/comps/product-discounts.d.ts +15 -0
- package/dist/lib/src/src/comps/product-related-products.d.ts +10 -0
- package/dist/lib/src/src/comps/products-variants.d.ts +26 -0
- package/dist/lib/src/src/comps/quick-search-browser.d.ts +26 -0
- package/dist/lib/src/src/comps/resource-browse.d.ts +30 -0
- package/dist/lib/src/src/comps/resource-onboard-svg.d.ts +2 -0
- package/dist/lib/src/src/comps/resource-title.d.ts +7 -0
- package/dist/lib/src/{comps → src/comps}/resource-view.d.ts +2 -2
- package/dist/lib/src/src/comps/secret-view.d.ts +4 -0
- package/dist/lib/src/src/comps/select-resource.d.ts +80 -0
- package/dist/lib/src/src/comps/settings-api-keys.d.ts +12 -0
- package/dist/lib/src/src/comps/settings-change-password.d.ts +1 -0
- package/dist/lib/src/src/comps/show-if.d.ts +14 -0
- package/dist/lib/src/src/comps/side-menu.d.ts +22 -0
- package/dist/lib/src/src/comps/splitter-view.d.ts +1 -0
- package/dist/lib/src/src/comps/storefront-products.d.ts +11 -0
- package/dist/lib/src/src/comps/symbols.d.ts +4 -0
- package/dist/lib/src/{comps → src/comps}/table-schema-view.d.ts +11 -10
- package/dist/lib/src/src/comps/tag-values.d.ts +5 -0
- package/dist/lib/src/src/comps/tags-edit.d.ts +12 -0
- package/dist/lib/src/src/comps/template-example-input.d.ts +5 -0
- package/dist/lib/src/src/comps/template-template.d.ts +18 -0
- package/dist/lib/src/src/comps/transition.d.ts +32 -0
- package/dist/lib/src/{hooks → src/hooks}/create-media-query-hook.d.ts +3 -3
- package/dist/lib/src/src/hooks/use-collections-actions.d.ts +48 -0
- package/dist/lib/src/src/hooks/use-document-actions.d.ts +64 -0
- package/dist/lib/src/src/hooks/use-interval.d.ts +8 -0
- package/dist/lib/src/src/hooks/use-keyboard-match.d.ts +5 -0
- package/dist/lib/src/src/hooks/use-media-query.d.ts +1 -0
- package/dist/lib/src/src/hooks/use-mounted.d.ts +1 -0
- package/dist/lib/src/src/hooks/use-navigate-with-state.d.ts +18 -0
- package/dist/lib/src/src/hooks/use-on-click-outside.d.ts +5 -0
- package/dist/lib/src/{hooks → src/hooks}/use-preferences.d.ts +4 -4
- package/dist/lib/src/src/hooks/use-scroll-delta.d.ts +13 -0
- package/dist/lib/src/src/hooks/use-toggle.d.ts +5 -0
- package/dist/lib/src/{hooks → src/hooks}/use-trigger.d.ts +2 -2
- package/dist/lib/src/src/hooks/utils.browser.d.ts +11 -0
- package/dist/lib/src/src/index.d.ts +13 -0
- package/dist/lib/src/src/layout.d.ts +9 -0
- package/dist/lib/src/src/login.d.ts +5 -0
- package/dist/lib/src/src/pages/collection.d.ts +17 -0
- package/dist/lib/src/src/pages/collections.d.ts +2 -0
- package/dist/lib/src/src/pages/customer.d.ts +17 -0
- package/dist/lib/src/src/pages/customers.d.ts +4 -0
- package/dist/lib/src/src/pages/discount.d.ts +18 -0
- package/dist/lib/src/src/pages/discounts.d.ts +2 -0
- package/dist/lib/src/src/pages/extension.d.ts +14 -0
- package/dist/lib/src/src/pages/extensions.d.ts +8 -0
- package/dist/lib/src/src/pages/home.d.ts +2 -0
- package/dist/lib/src/src/pages/index.d.ts +33 -0
- package/dist/lib/src/src/pages/order.d.ts +24 -0
- package/dist/lib/src/src/pages/orders.d.ts +2 -0
- package/dist/lib/src/src/pages/payment-gateway.d.ts +14 -0
- package/dist/lib/src/src/pages/payment-gateways.d.ts +8 -0
- package/dist/lib/src/src/pages/post.d.ts +18 -0
- package/dist/lib/src/src/pages/posts.d.ts +2 -0
- package/dist/lib/src/src/pages/product.d.ts +30 -0
- package/dist/lib/src/src/pages/products.d.ts +2 -0
- package/dist/lib/src/src/pages/settings.d.ts +2 -0
- package/dist/lib/src/src/pages/shipping-method.d.ts +18 -0
- package/dist/lib/src/src/pages/shipping-methods.d.ts +2 -0
- package/dist/lib/src/src/pages/storefront.d.ts +18 -0
- package/dist/lib/src/src/pages/storefronts.d.ts +2 -0
- package/dist/lib/src/src/pages/tag.d.ts +17 -0
- package/dist/lib/src/src/pages/tags.d.ts +2 -0
- package/dist/lib/src/src/pages/template.d.ts +13 -0
- package/dist/lib/src/src/pages/templates.d.ts +2 -0
- package/dist/lib/src/src/routes.d.ts +1 -0
- package/dist/lib/src/src/screens.d.ts +10 -0
- package/dist/lib/src/src/utils/index.d.ts +7 -0
- package/dist/lib/src/src/utils/time.d.ts +7 -0
- package/dist/website/assets/index-BjGWqHuK.js +685 -0
- package/dist/website/assets/style-BJD2VYZP.css +1 -0
- package/dist/website/index.html +2 -2
- package/package.json +29 -24
- package/dist/lib/src/apps/gallery/gallery-image-grid.d.ts +0 -30
- package/dist/lib/src/apps/gallery/gallery-page.d.ts +0 -2
- package/dist/lib/src/apps/gallery/gallery-select.d.ts +0 -7
- package/dist/lib/src/apps/gallery/gallery.d.ts +0 -56
- package/dist/lib/src/apps/gallery/image-header.d.ts +0 -18
- package/dist/lib/src/apps/gallery/image-page.d.ts +0 -16
- package/dist/lib/src/apps/gallery/index.d.ts +0 -1
- package/dist/lib/src/apps/gallery/utils.d.ts +0 -2
- package/dist/lib/src/apps/index.d.ts +0 -2
- package/dist/lib/src/comps/action-bar.d.ts +0 -25
- package/dist/lib/src/comps/asset-favicon.d.ts +0 -1
- package/dist/lib/src/comps/attributes.d.ts +0 -16
- package/dist/lib/src/comps/base-chart-view.d.ts +0 -20
- package/dist/lib/src/comps/bulk-tag-products-in-collection.d.ts +0 -5
- package/dist/lib/src/comps/capsule.d.ts +0 -8
- package/dist/lib/src/comps/capsules-view.d.ts +0 -27
- package/dist/lib/src/comps/client-only.d.ts +0 -11
- package/dist/lib/src/comps/collection-actions.d.ts +0 -35
- package/dist/lib/src/comps/collection-products.d.ts +0 -33
- package/dist/lib/src/comps/common-button.d.ts +0 -77
- package/dist/lib/src/comps/common-fields.d.ts +0 -61
- package/dist/lib/src/comps/common-table-fields.d.ts +0 -18
- package/dist/lib/src/comps/common-ui.d.ts +0 -101
- package/dist/lib/src/comps/customer-orders.d.ts +0 -13
- package/dist/lib/src/comps/dark-mode.d.ts +0 -5
- package/dist/lib/src/comps/discount-details.d.ts +0 -60
- package/dist/lib/src/comps/discount-filters.d.ts +0 -83
- package/dist/lib/src/comps/discount-performance.d.ts +0 -13
- package/dist/lib/src/comps/discounts-quick-search-actions.d.ts +0 -6
- package/dist/lib/src/comps/discounts-table-code.d.ts +0 -12
- package/dist/lib/src/comps/discounts-table-type.d.ts +0 -9
- package/dist/lib/src/comps/document-actions.d.ts +0 -11
- package/dist/lib/src/comps/document-details.d.ts +0 -20
- package/dist/lib/src/comps/document-title.d.ts +0 -20
- package/dist/lib/src/comps/drawer.d.ts +0 -18
- package/dist/lib/src/comps/error-message.d.ts +0 -29
- package/dist/lib/src/comps/gradient-text.d.ts +0 -1
- package/dist/lib/src/comps/home-header.d.ts +0 -24
- package/dist/lib/src/comps/home-invite-action-card.d.ts +0 -17
- package/dist/lib/src/comps/home-performace.d.ts +0 -33
- package/dist/lib/src/comps/home-sales-chart.d.ts +0 -20
- package/dist/lib/src/comps/home-stat-card.d.ts +0 -25
- package/dist/lib/src/comps/home-time-frame.d.ts +0 -21
- package/dist/lib/src/comps/img.d.ts +0 -11
- package/dist/lib/src/comps/json.d.ts +0 -14
- package/dist/lib/src/comps/lazy-carousel.d.ts +0 -20
- package/dist/lib/src/comps/login-connect.d.ts +0 -4
- package/dist/lib/src/comps/login-copyright.d.ts +0 -7
- package/dist/lib/src/comps/login-form.d.ts +0 -45
- package/dist/lib/src/comps/login-marquee.d.ts +0 -4
- package/dist/lib/src/comps/logo-text.d.ts +0 -2
- package/dist/lib/src/comps/logo.d.ts +0 -8
- package/dist/lib/src/comps/md-editor.d.ts +0 -20
- package/dist/lib/src/comps/md-view.d.ts +0 -16
- package/dist/lib/src/comps/notifications-button.d.ts +0 -28
- package/dist/lib/src/comps/order-coupon-info.d.ts +0 -12
- package/dist/lib/src/comps/order-delivery-method.d.ts +0 -11
- package/dist/lib/src/comps/order-line-items.d.ts +0 -19
- package/dist/lib/src/comps/order-payment-gateway.d.ts +0 -27
- package/dist/lib/src/comps/order-price.d.ts +0 -21
- package/dist/lib/src/comps/orders-quick-search-actions.d.ts +0 -9
- package/dist/lib/src/comps/overlay.d.ts +0 -19
- package/dist/lib/src/comps/portal-creator.d.ts +0 -6
- package/dist/lib/src/comps/product-discounts.d.ts +0 -22
- package/dist/lib/src/comps/product-related-products.d.ts +0 -10
- package/dist/lib/src/comps/products-variants-test.d.ts +0 -1
- package/dist/lib/src/comps/products-variants.d.ts +0 -38
- package/dist/lib/src/comps/quick-search-browser.d.ts +0 -32
- package/dist/lib/src/comps/resource-browse.d.ts +0 -51
- package/dist/lib/src/comps/resource-onboard-svg.d.ts +0 -2
- package/dist/lib/src/comps/resource-title.d.ts +0 -7
- package/dist/lib/src/comps/secret-view.d.ts +0 -9
- package/dist/lib/src/comps/select-resource.d.ts +0 -88
- package/dist/lib/src/comps/settings-api-keys.d.ts +0 -2
- package/dist/lib/src/comps/settings-change-password.d.ts +0 -2
- package/dist/lib/src/comps/settings-storage.d.ts +0 -15
- package/dist/lib/src/comps/show-if.d.ts +0 -25
- package/dist/lib/src/comps/side-menu.d.ts +0 -50
- package/dist/lib/src/comps/splitter-view.d.ts +0 -1
- package/dist/lib/src/comps/storefront-products.d.ts +0 -12
- package/dist/lib/src/comps/symbols.d.ts +0 -4
- package/dist/lib/src/comps/tag-values.d.ts +0 -9
- package/dist/lib/src/comps/tags-edit.d.ts +0 -13
- package/dist/lib/src/comps/template-example-input.d.ts +0 -3
- package/dist/lib/src/comps/template-template.d.ts +0 -15
- package/dist/lib/src/comps/transition.d.ts +0 -51
- package/dist/lib/src/hooks/use-collections-actions.d.ts +0 -43
- package/dist/lib/src/hooks/use-document-actions.d.ts +0 -37
- package/dist/lib/src/hooks/use-interval.d.ts +0 -13
- package/dist/lib/src/hooks/use-keyboard-match.d.ts +0 -6
- package/dist/lib/src/hooks/use-media-query.d.ts +0 -3
- package/dist/lib/src/hooks/use-mounted.d.ts +0 -1
- package/dist/lib/src/hooks/use-navigate-with-state.d.ts +0 -26
- package/dist/lib/src/hooks/use-on-click-outside.d.ts +0 -7
- package/dist/lib/src/hooks/use-scroll-delta.d.ts +0 -4
- package/dist/lib/src/hooks/use-toggle.d.ts +0 -7
- package/dist/lib/src/hooks/utils.browser.d.ts +0 -7
- package/dist/lib/src/index.cjs +0 -800
- package/dist/lib/src/index.d.ts +0 -6
- package/dist/lib/src/layout.d.ts +0 -18
- package/dist/lib/src/login.d.ts +0 -17
- package/dist/lib/src/pages/collection.d.ts +0 -15
- package/dist/lib/src/pages/collections.d.ts +0 -2
- package/dist/lib/src/pages/customer.d.ts +0 -15
- package/dist/lib/src/pages/customers.d.ts +0 -3
- package/dist/lib/src/pages/discount.d.ts +0 -15
- package/dist/lib/src/pages/discounts.d.ts +0 -2
- package/dist/lib/src/pages/extension.d.ts +0 -13
- package/dist/lib/src/pages/extensions.d.ts +0 -16
- package/dist/lib/src/pages/home.d.ts +0 -2
- package/dist/lib/src/pages/index.d.ts +0 -36
- package/dist/lib/src/pages/order.d.ts +0 -21
- package/dist/lib/src/pages/orders.d.ts +0 -2
- package/dist/lib/src/pages/payment-gateway.d.ts +0 -13
- package/dist/lib/src/pages/payment-gateways.d.ts +0 -16
- package/dist/lib/src/pages/post.d.ts +0 -15
- package/dist/lib/src/pages/posts.d.ts +0 -2
- package/dist/lib/src/pages/product.d.ts +0 -22
- package/dist/lib/src/pages/products.d.ts +0 -2
- package/dist/lib/src/pages/settings.d.ts +0 -4
- package/dist/lib/src/pages/shipping-method.d.ts +0 -15
- package/dist/lib/src/pages/shipping-methods.d.ts +0 -2
- package/dist/lib/src/pages/storefront.d.ts +0 -15
- package/dist/lib/src/pages/storefronts.d.ts +0 -2
- package/dist/lib/src/pages/tag.d.ts +0 -15
- package/dist/lib/src/pages/tags.d.ts +0 -2
- package/dist/lib/src/pages/template.d.ts +0 -15
- package/dist/lib/src/pages/templates.d.ts +0 -2
- package/dist/lib/src/routes.d.ts +0 -1
- package/dist/lib/src/utils/index.d.ts +0 -7
- package/dist/lib/src/utils/time.d.ts +0 -7
- package/dist/website/assets/index-CKdUTkr6.js +0 -813
- package/dist/website/assets/style-DkU0t4eA.css +0 -1
- /package/dist/lib/src/{auto-mount.d.ts → src/auto-mount.d.ts} +0 -0
- /package/dist/lib/src/{hooks → src/hooks}/use-dark-mode.d.ts +0 -0
@@ -1,8 +0,0 @@
|
|
1
|
-
export function LabelCapsule({ value, className, label, bgColor, ...rest }: CapsuleParams): import("react").JSX.Element;
|
2
|
-
export type InternalCapsuleParams = {
|
3
|
-
className?: string;
|
4
|
-
bgColor?: string | ((v: string) => string);
|
5
|
-
value: string;
|
6
|
-
label?: string | ((v: string) => string);
|
7
|
-
};
|
8
|
-
export type CapsuleParams = InternalCapsuleParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
export default CapsulesView;
|
2
|
-
export type CapsulesViewParams<T = any> = {
|
3
|
-
tags: T[];
|
4
|
-
name_fn?: (x: T) => string;
|
5
|
-
clsCapsule?: string;
|
6
|
-
className?: string;
|
7
|
-
onRemove?: (v: T) => void;
|
8
|
-
onClick: (v: T) => void;
|
9
|
-
};
|
10
|
-
/**
|
11
|
-
* @template [T=any]
|
12
|
-
*
|
13
|
-
* @typedef {object} CapsulesViewParams
|
14
|
-
* @property {T[]} tags
|
15
|
-
* @property {(x: T) => string} [name_fn]
|
16
|
-
* @property {string} [clsCapsule]
|
17
|
-
* @property {string} [className]
|
18
|
-
* @property {(v: T) => void} [onRemove]
|
19
|
-
* @property {(v: T) => void} onClick
|
20
|
-
*
|
21
|
-
*/
|
22
|
-
/**
|
23
|
-
* @template [T=any]
|
24
|
-
*
|
25
|
-
* @param {CapsulesViewParams<T>} params
|
26
|
-
*/
|
27
|
-
declare function CapsulesView<T = any>({ tags, name_fn, className, clsCapsule, onRemove, onClick }: CapsulesViewParams<T>): import("react").JSX.Element;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
*
|
3
|
-
* @param {React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
4
|
-
* } params
|
5
|
-
*/
|
6
|
-
export default function ClientOnly({ ...rest }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
|
7
|
-
/**
|
8
|
-
*
|
9
|
-
* @param {React.FC} Component
|
10
|
-
*/
|
11
|
-
export function withClient(Component: React.FC): (props: any) => import("react").JSX.Element;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @typedef {object} ImperativeInterface
|
3
|
-
* @prop {() => string} getSearch
|
4
|
-
* @prop {(value: string) => void} setSearch
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* @typedef {object} TopActionsParams
|
8
|
-
* @prop {() => void} reload
|
9
|
-
* @prop {string} searchTitle
|
10
|
-
* @prop {boolean} isLoading
|
11
|
-
* @prop {string} [createLink]
|
12
|
-
* @prop {string} [className]
|
13
|
-
* @prop {boolean} [isCollectionEmpty=false]
|
14
|
-
*/
|
15
|
-
export const TopActions: import('react').ForwardRefExoticComponent<TopActionsParams & import('react').RefAttributes<any>>;
|
16
|
-
export function BottomActions({ next, prev, limit, onLimitChange, className }: BottomActionsParams): import("react").JSX.Element;
|
17
|
-
export type ImperativeInterface = {
|
18
|
-
getSearch: () => string;
|
19
|
-
setSearch: (value: string) => void;
|
20
|
-
};
|
21
|
-
export type TopActionsParams = {
|
22
|
-
reload: () => void;
|
23
|
-
searchTitle: string;
|
24
|
-
isLoading: boolean;
|
25
|
-
createLink?: string;
|
26
|
-
className?: string;
|
27
|
-
isCollectionEmpty?: boolean;
|
28
|
-
};
|
29
|
-
export type BottomActionsParams = {
|
30
|
-
next: () => Promise<any>;
|
31
|
-
prev: () => Promise<any>;
|
32
|
-
limit?: number;
|
33
|
-
onLimitChange: (v: number) => void;
|
34
|
-
className?: string;
|
35
|
-
};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
export default CollectionProducts;
|
2
|
-
export type ImpInterface = {
|
3
|
-
refresh: () => Promise<void>;
|
4
|
-
};
|
5
|
-
export type CollectionBaseParams = {
|
6
|
-
/**
|
7
|
-
* `handle` or `id`
|
8
|
-
*/
|
9
|
-
collection_handle_or_id: string;
|
10
|
-
/**
|
11
|
-
* `limit` of query
|
12
|
-
*/
|
13
|
-
limit?: number;
|
14
|
-
/**
|
15
|
-
* when loaded reports query count
|
16
|
-
*/
|
17
|
-
onLoaded: (count: number) => void;
|
18
|
-
/**
|
19
|
-
* context
|
20
|
-
*/
|
21
|
-
context: import('./fields-view.jsx').FieldContextData<import('@storecraft/core/api').CollectionType> & import('../pages/collection.jsx').Context;
|
22
|
-
};
|
23
|
-
/**
|
24
|
-
* `CollectionProducts` wraps and show the `products` of a given
|
25
|
-
* collection with pagination.
|
26
|
-
*
|
27
|
-
* @param {import('./fields-view.jsx').FieldLeafViewParams<
|
28
|
-
* import('@storecraft/core/api').CollectionType,
|
29
|
-
* import('../pages/collection.jsx').Context,
|
30
|
-
* import('@storecraft/core/api').CollectionType
|
31
|
-
* >} param
|
32
|
-
*/
|
33
|
-
declare function CollectionProducts({ value, context }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').CollectionType, import('../pages/collection.jsx').Context, import('@storecraft/core/api').CollectionType>): import("react").JSX.Element;
|
@@ -1,77 +0,0 @@
|
|
1
|
-
export function Button({ text, icon, className, classNameSpan, children, rightView, ...rest }: ButtonParams): import("react").JSX.Element;
|
2
|
-
export function Button2({ text, icon, className, classNameSpan, children, ...rest }: Button2params): import("react").JSX.Element;
|
3
|
-
export function LoadingButton({ Icon, show, text, keep_text_on_load, className, classNameLoading, classNameLeft, loading, ...rest }: LoadingButtonParams): import("react").JSX.Element;
|
4
|
-
/**
|
5
|
-
* A loading button which expects a promise for onClick
|
6
|
-
*/
|
7
|
-
export type PromisableLoadingButton = InternalPromisableLoadingButton & Omit<LoadingButtonParams, "onClick">;
|
8
|
-
export function PromisableLoadingButton({ onClick, loading: $loading, ...rest }: PromisableLoadingButton): import("react").JSX.Element;
|
9
|
-
export function PromisableLoadingBlingButton({ onClick, show, className, loading: $loading, stroke, rounded, from, to, ...rest }: PromisableLoadingBlingButtonParams): import("react").JSX.Element;
|
10
|
-
export function BlingButton({ from, to, rounded, stroke, children, text, className, btnClassName, ...rest }: import('./common-ui.jsx').InternalBlingParams & {
|
11
|
-
btnClassName?: string;
|
12
|
-
text?: string;
|
13
|
-
} & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>): import("react").JSX.Element;
|
14
|
-
export function BlingButton2({ from, to, rounded, stroke, ...rest }: Button2params & import('./common-ui.jsx').InternalBlingParams): import("react").JSX.Element;
|
15
|
-
export function GradientFillIcon({ Icon, from, to, ...rest }: GradientFillIconParams): import("react").JSX.Element;
|
16
|
-
export function GradientStrokeIcon({ Icon, from, to, ...rest }: GradientStrokeIconParams): import("react").JSX.Element;
|
17
|
-
export type InternalButtonparams = {
|
18
|
-
text?: string;
|
19
|
-
icon?: React.ReactElement;
|
20
|
-
className?: string;
|
21
|
-
classNameSpan?: string;
|
22
|
-
children?: any;
|
23
|
-
rightView?: any;
|
24
|
-
};
|
25
|
-
export type ButtonParams = InternalButtonparams & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
26
|
-
export type InternalButton2params = {
|
27
|
-
text?: string;
|
28
|
-
icon?: React.ReactElement;
|
29
|
-
className?: string;
|
30
|
-
classNameSpan?: string;
|
31
|
-
children: any;
|
32
|
-
};
|
33
|
-
export type Button2params = InternalButton2params & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
34
|
-
export type InternalLoadingButtonParams = {
|
35
|
-
Icon?: React.ReactNode | JSX.Element;
|
36
|
-
text?: string;
|
37
|
-
keep_text_on_load?: boolean;
|
38
|
-
className?: string;
|
39
|
-
classNameLoading?: string;
|
40
|
-
classNameLeft?: string;
|
41
|
-
loading?: boolean;
|
42
|
-
show?: boolean;
|
43
|
-
};
|
44
|
-
export type LoadingButtonParams = InternalLoadingButtonParams & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
45
|
-
/**
|
46
|
-
* A loading button which expects a promise for onClick
|
47
|
-
*/
|
48
|
-
export type InternalPromisableLoadingButton = {
|
49
|
-
onClick: () => Promise<any>;
|
50
|
-
loading?: boolean;
|
51
|
-
};
|
52
|
-
export type InternalPromisableLoadingBlingButtonParams = {
|
53
|
-
onClick: () => Promise<any>;
|
54
|
-
show?: boolean;
|
55
|
-
loading?: boolean;
|
56
|
-
stroke?: string;
|
57
|
-
rounded?: string;
|
58
|
-
from?: string;
|
59
|
-
to?: string;
|
60
|
-
};
|
61
|
-
export type PromisableLoadingBlingButtonParams = InternalPromisableLoadingBlingButtonParams & Omit<LoadingButtonParams, "onClick">;
|
62
|
-
export type InternalGradientFillIconParams = {
|
63
|
-
from?: string;
|
64
|
-
to?: string;
|
65
|
-
Icon?: React.FC;
|
66
|
-
};
|
67
|
-
export type GradientFillIconParams = InternalGradientFillIconParams & {
|
68
|
-
[x: string]: any;
|
69
|
-
};
|
70
|
-
export type InternalGradientStrokeIconParams = {
|
71
|
-
from?: string;
|
72
|
-
to?: string;
|
73
|
-
Icon?: React.FC;
|
74
|
-
};
|
75
|
-
export type GradientStrokeIconParams = InternalGradientFillIconParams & {
|
76
|
-
[x: string]: any;
|
77
|
-
};
|
@@ -1,61 +0,0 @@
|
|
1
|
-
export function create_select_view(options: {
|
2
|
-
id: string | number;
|
3
|
-
name: string;
|
4
|
-
}[], defaultIndex?: number): ({ field, value, onChange }: import('./fields-view.jsx').FieldLeafViewParams<{
|
5
|
-
id: string;
|
6
|
-
}>) => import("react").JSX.Element;
|
7
|
-
export function TextArea({ field, value, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<string>): import("react").JSX.Element;
|
8
|
-
export function Span<T>({ value, children, className, extra, ...rest }: SpanParams<T>): import("react").JSX.Element;
|
9
|
-
export function SpanArray({ field, value, className, name_fn, classNameDelimiter, delimiter, ...rest }: SpanArrayParams): import("react").JSX.Element;
|
10
|
-
export function TimeStampView({ field, value, ...rest }: import('./table-schema-view.jsx').TableSchemaViewComponentParams<string>): import("react").JSX.Element;
|
11
|
-
export function MInput({ field, value, onChange, type, ...rest }: MInputParams): import("react").JSX.Element;
|
12
|
-
export function InputWithClipboard({ value, field, onChange, setError, ...rest }: InputWithClipboardParams): import("react").JSX.Element;
|
13
|
-
export function Handle({ value, field, onChange, context, setError, ...rest }: HandleParams): import("react").JSX.Element;
|
14
|
-
export function Switch({ field, value, onChange, ...rest }: SwitchParams): import("react").JSX.Element;
|
15
|
-
export function ClipBoardCopy({ value, config, process_before_copy }: ClipBoardCopyButtonParams): import("react").JSX.Element;
|
16
|
-
export function withCard<P>(Comp: React.FC<P>, comp_params_inner?: P, border?: boolean, copy?: boolean): ({ field, value, disabled, onChange, children, error, setError, context, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<any> & {
|
17
|
-
children: React.ReactNode;
|
18
|
-
}) => import("react").JSX.Element;
|
19
|
-
export function RecordActions<T>({ context, field, value, ...rest }: import('./table-schema-view.jsx').TableSchemaViewComponentParams<any, T>): import("react").JSX.Element;
|
20
|
-
/**
|
21
|
-
* This is used in `TableSchemaView`
|
22
|
-
*/
|
23
|
-
export type InternalSpanParams = {
|
24
|
-
className?: string;
|
25
|
-
extra?: string;
|
26
|
-
children?: React.ReactNode;
|
27
|
-
};
|
28
|
-
export type SpanParams<T> = import('./table-schema-view.jsx').TableSchemaViewComponentParams<string, T> & InternalSpanParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
|
29
|
-
/**
|
30
|
-
* This is used in `TableSchemaView`
|
31
|
-
*/
|
32
|
-
export type InternalSpanArrayParams = {
|
33
|
-
className?: string;
|
34
|
-
classNameDelimiter?: string;
|
35
|
-
delimiter?: string;
|
36
|
-
name_fn?: (value: any) => string;
|
37
|
-
};
|
38
|
-
/**
|
39
|
-
* This is used in `TableSchemaView`
|
40
|
-
*/
|
41
|
-
export type SpanArrayParams = import('./table-schema-view.jsx').TableSchemaViewComponentParams<any[]> & InternalSpanArrayParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
|
42
|
-
export type InternalMInputParams = import('./fields-view.jsx').FieldLeafViewParams<string>;
|
43
|
-
export type MInputParams = InternalMInputParams & import('./common-ui.jsx').InputParams;
|
44
|
-
export type InternalInputWithClipboardParams = import('./fields-view.jsx').FieldLeafViewParams<string>;
|
45
|
-
export type InputWithClipboardParams = InternalInputWithClipboardParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
46
|
-
export type InternalHandleParams = import('./fields-view.jsx').FieldLeafViewParams<string>;
|
47
|
-
export type HandleParams = InternalHandleParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
48
|
-
export type InternalSwitchParams = import('./fields-view.jsx').FieldLeafViewParams<boolean>;
|
49
|
-
export type SwitchParams = InternalSwitchParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
50
|
-
/**
|
51
|
-
* A `copy` to clipboard button
|
52
|
-
*/
|
53
|
-
export type ClipBoardCopyButtonParams = {
|
54
|
-
value: string;
|
55
|
-
config?: 0 | 1;
|
56
|
-
/**
|
57
|
-
* process the value
|
58
|
-
* before copying
|
59
|
-
*/
|
60
|
-
process_before_copy?: (value: string) => string;
|
61
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export function SimpleLink({ context, value, children, className, extra, url_fn, get_state, ...rest }: SpanParams): import("react").JSX.Element;
|
2
|
-
/**
|
3
|
-
* This is used in `TableSchemaView`
|
4
|
-
*/
|
5
|
-
export type InternalSpanParams<T extends unknown> = {
|
6
|
-
className?: string;
|
7
|
-
extra?: string;
|
8
|
-
/**
|
9
|
-
* create a `url`
|
10
|
-
*/
|
11
|
-
url_fn: (item: T) => string;
|
12
|
-
/**
|
13
|
-
* get current navigatio `state`
|
14
|
-
*/
|
15
|
-
get_state: () => any;
|
16
|
-
children?: React.ReactNode;
|
17
|
-
};
|
18
|
-
export type SpanParams<T extends unknown = any> = import('./table-schema-view.jsx').TableSchemaViewComponentParams<string, T> & InternalSpanParams<T> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
|
@@ -1,101 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @typedef {object} InternalCreateDateParams
|
3
|
-
* @prop {string} time
|
4
|
-
* @prop {boolean} [changes_made=false]
|
5
|
-
* @prop {string} [rightText] override
|
6
|
-
* @prop {string} className
|
7
|
-
*
|
8
|
-
* @typedef {InternalCreateDateParams &
|
9
|
-
* React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
10
|
-
* } CreateDateParams
|
11
|
-
*
|
12
|
-
* @typedef {object} CreateDateImperativeInterface
|
13
|
-
* @prop {() => boolean} get
|
14
|
-
* @prop {(value?: boolean) => void} set
|
15
|
-
*/
|
16
|
-
export const CreateDate: import('react').ForwardRefExoticComponent<Omit<CreateDateParams, "ref"> & import('react').RefAttributes<any>>;
|
17
|
-
export function CreateDate2({ time, className, ...rest }: {
|
18
|
-
time: number;
|
19
|
-
className: string;
|
20
|
-
}): import("react").JSX.Element;
|
21
|
-
export function HR({ dashed, ...rest }: React.InputHTMLAttributes<HTMLInputElement> & {
|
22
|
-
dashed?: boolean;
|
23
|
-
}): import("react").JSX.Element;
|
24
|
-
export function Title({ className, ...rest }: React.InputHTMLAttributes<HTMLInputElement> & {
|
25
|
-
className?: string;
|
26
|
-
}): import("react").JSX.Element;
|
27
|
-
export function Label({ ...rest }: {
|
28
|
-
[x: string]: any;
|
29
|
-
}): import("react").JSX.Element;
|
30
|
-
export const Input: import('react').ForwardRefExoticComponent<Omit<InputParams, "ref"> & import('react').RefAttributes<any>>;
|
31
|
-
export const BlingInput: import('react').ForwardRefExoticComponent<Omit<BlingInputParams, "ref"> & import('react').RefAttributes<any>>;
|
32
|
-
export function border_bling_style(color_stops?: string[]): {
|
33
|
-
style: {
|
34
|
-
'background-image': string;
|
35
|
-
'background-clip': string;
|
36
|
-
'border-color': string;
|
37
|
-
'background-origin': string;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
export function Bling({ className, rounded, children, stroke, from, to, ...rest }: BlingParams): import("react").JSX.Element;
|
41
|
-
export function withBling(Comp: any, params?: {}): ({ ...rest }: {
|
42
|
-
[x: string]: any;
|
43
|
-
}) => import("react").JSX.Element;
|
44
|
-
export function withBling2(Comp: any): ({ ...rest }: {
|
45
|
-
[x: string]: any;
|
46
|
-
}) => import("react").JSX.Element;
|
47
|
-
export function Div({ setError, ...rest }: {
|
48
|
-
[x: string]: any;
|
49
|
-
setError: any;
|
50
|
-
}): import("react").JSX.Element;
|
51
|
-
export function Card({ name, setError, error, children, border, desc, rightView, cardClass, ...rest }: CardParams): import("react").JSX.Element;
|
52
|
-
export type InternalCreateDateParams = {
|
53
|
-
time: string;
|
54
|
-
changes_made?: boolean;
|
55
|
-
/**
|
56
|
-
* override
|
57
|
-
*/
|
58
|
-
rightText?: string;
|
59
|
-
className: string;
|
60
|
-
};
|
61
|
-
export type CreateDateParams = InternalCreateDateParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
62
|
-
export type CreateDateImperativeInterface = {
|
63
|
-
get: () => boolean;
|
64
|
-
set: (value?: boolean) => void;
|
65
|
-
};
|
66
|
-
export type InputInternalParams = {
|
67
|
-
overrideClass?: boolean;
|
68
|
-
className?: string;
|
69
|
-
};
|
70
|
-
export type InputParams = InputInternalParams & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
71
|
-
export type BlingInputInternalParams = {
|
72
|
-
inputClsName?: string;
|
73
|
-
};
|
74
|
-
export type BlingInputParams = BlingInputInternalParams & InternalBlingParams & InputParams;
|
75
|
-
/**
|
76
|
-
* Background container with gradient
|
77
|
-
*/
|
78
|
-
export type InternalBlingParams = {
|
79
|
-
className?: string;
|
80
|
-
rounded?: string;
|
81
|
-
children?: any;
|
82
|
-
stroke?: string;
|
83
|
-
from?: string;
|
84
|
-
to?: string;
|
85
|
-
};
|
86
|
-
/**
|
87
|
-
* Background container with gradient
|
88
|
-
*/
|
89
|
-
export type BlingParams = InternalBlingParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
90
|
-
export type InternalCardParams = {
|
91
|
-
name?: React.ReactNode;
|
92
|
-
setError?: (e: any) => void;
|
93
|
-
error?: string;
|
94
|
-
children: React.ReactNode;
|
95
|
-
border?: boolean;
|
96
|
-
desc?: string;
|
97
|
-
rightView?: React.ReactElement;
|
98
|
-
cardClass?: string;
|
99
|
-
rest?: any[];
|
100
|
-
};
|
101
|
-
export type CardParams = InternalCardParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export default CustomerOrders;
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @param {import('./fields-view.jsx').FieldLeafViewParams<
|
5
|
-
* import('@storecraft/core/api').CustomerType,
|
6
|
-
* import('../pages/customer.jsx').Context,
|
7
|
-
* import('@storecraft/core/api').CustomerType
|
8
|
-
* > &
|
9
|
-
* React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
10
|
-
* } params
|
11
|
-
*
|
12
|
-
*/
|
13
|
-
declare function CustomerOrders({ value, field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').CustomerType, import('../pages/customer.jsx').Context, import('@storecraft/core/api').CustomerType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
|
@@ -1,60 +0,0 @@
|
|
1
|
-
export function discount_details_validator(v: any): (string | boolean)[];
|
2
|
-
export const discount_types: {
|
3
|
-
id: number;
|
4
|
-
type: string;
|
5
|
-
name: string;
|
6
|
-
desc: string;
|
7
|
-
}[];
|
8
|
-
export default DiscountDetailsView;
|
9
|
-
export type DiscountTypesParams = {
|
10
|
-
selectedType: import('@storecraft/core/api').DiscountDetails["meta"];
|
11
|
-
onChange: (meta: import('@storecraft/core/api').DiscountDetails["meta"]) => void;
|
12
|
-
};
|
13
|
-
export type BulkDiscountParams = {
|
14
|
-
type: "bulk";
|
15
|
-
value: import('@storecraft/core/api').BulkDiscountExtra;
|
16
|
-
onChange: (extra: import('@storecraft/core/api').BulkDiscountExtra) => void;
|
17
|
-
};
|
18
|
-
export type BundleDiscountParams = {
|
19
|
-
meta: "bundle";
|
20
|
-
value: import('@storecraft/core/api').BundleDiscountExtra;
|
21
|
-
context: import('./fields-view.jsx').FieldContextData;
|
22
|
-
onChange: (extra: import('@storecraft/core/api').BundleDiscountExtra) => void;
|
23
|
-
};
|
24
|
-
export type ExplainPriceParams = {
|
25
|
-
prefix: string;
|
26
|
-
percent: number;
|
27
|
-
fixed: number;
|
28
|
-
};
|
29
|
-
export type RegularDiscountParams = {
|
30
|
-
type: "regular";
|
31
|
-
value: import('@storecraft/core/api').RegularDiscountExtra;
|
32
|
-
onChange: (extra: import('@storecraft/core/api').RegularDiscountExtra) => void;
|
33
|
-
};
|
34
|
-
export type BuyXGetYDiscountParams = {
|
35
|
-
type: "buy_x_get_y";
|
36
|
-
value: import('@storecraft/core/api').BuyXGetYDiscountExtra;
|
37
|
-
onChange: (extra: import('@storecraft/core/api').BuyXGetYDiscountExtra) => void;
|
38
|
-
context: import('../pages/discount.jsx').Context;
|
39
|
-
};
|
40
|
-
export type OrderDiscountParams = {
|
41
|
-
type: "order";
|
42
|
-
value: import('@storecraft/core/api').OrderDiscountExtra;
|
43
|
-
onChange: (extra: import('@storecraft/core/api').OrderDiscountExtra) => void;
|
44
|
-
};
|
45
|
-
export type Type2CompParams = {
|
46
|
-
meta: import('@storecraft/core/api').DiscountDetails["meta"];
|
47
|
-
context: Parameters<({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType>) => import("react").JSX.Element>["0"]["context"];
|
48
|
-
onChange: (extra: import('@storecraft/core/api').DiscountDetails["extra"]) => void;
|
49
|
-
value: import('@storecraft/core/api').DiscountDetails["extra"];
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
*
|
53
|
-
* @param {import('./fields-view.jsx').FieldLeafViewParams<
|
54
|
-
* import('@storecraft/core/api').DiscountDetails,
|
55
|
-
* import('../pages/discount.jsx').Context,
|
56
|
-
* import('@storecraft/core/api').DiscountType
|
57
|
-
* >
|
58
|
-
* } params
|
59
|
-
*/
|
60
|
-
declare function DiscountDetailsView({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType>): import("react").JSX.Element;
|
@@ -1,83 +0,0 @@
|
|
1
|
-
export function discount_filters_validator(v: import('@storecraft/core/api').Filter["meta"][]): (string | boolean)[];
|
2
|
-
export default DiscountFilters;
|
3
|
-
export type Filter_ProductInCollectionsParams = {
|
4
|
-
value: import('@storecraft/core/api').FilterValue_p_in_collections;
|
5
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_collections) => void;
|
6
|
-
context: import('../pages/discount.jsx').Context;
|
7
|
-
};
|
8
|
-
export type Filter_ProductHasTagsParams = {
|
9
|
-
value: import('@storecraft/core/api').FilterValue_p_in_tags;
|
10
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_tags) => void;
|
11
|
-
context: import('../pages/discount.jsx').Context;
|
12
|
-
};
|
13
|
-
export type Filter_ProductHasHandleParams = {
|
14
|
-
value: import('@storecraft/core/api').FilterValue_p_in_products;
|
15
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_products) => void;
|
16
|
-
context: import('../pages/discount.jsx').Context;
|
17
|
-
};
|
18
|
-
export type Filter_ProductPriceInRangeParams = {
|
19
|
-
value: import('@storecraft/core/api').FilterValue_p_in_price_range;
|
20
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_price_range) => void;
|
21
|
-
};
|
22
|
-
export type Filter_OrderSubTotalParams = {
|
23
|
-
value: import('@storecraft/core/api').FilterValue_o_subtotal_in_range;
|
24
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_o_subtotal_in_range) => void;
|
25
|
-
};
|
26
|
-
export type Filter_OrderItemCountParams = {
|
27
|
-
value?: import('@storecraft/core/api').FilterValue_o_items_count_in_range;
|
28
|
-
onChange: (filter_value: import('@storecraft/core/api').FilterValue_o_items_count_in_range) => void;
|
29
|
-
};
|
30
|
-
export type Filter_OrderDateParams = {
|
31
|
-
onChange: (value: import('@storecraft/core/api').FilterValue_o_date_in_range) => void;
|
32
|
-
value?: import('@storecraft/core/api').FilterValue_o_date_in_range;
|
33
|
-
};
|
34
|
-
export type Filter_OrderHasCustomersParams = {
|
35
|
-
onChange: (value: import('@storecraft/core/api').CustomerType[]) => void;
|
36
|
-
value: import('@storecraft/core/api').CustomerType[];
|
37
|
-
context: import('../pages/discount.jsx').Context;
|
38
|
-
};
|
39
|
-
export type ProductFilterContainerParams = {
|
40
|
-
name: string;
|
41
|
-
value: import('@storecraft/core/api').Filter["value"];
|
42
|
-
Comp: any;
|
43
|
-
CompParams: any;
|
44
|
-
type: import('@storecraft/core/api').Filter["meta"]["type"];
|
45
|
-
onChange: (value: import('@storecraft/core/api').Filter["value"]) => void;
|
46
|
-
onRemove: () => void;
|
47
|
-
ix: number;
|
48
|
-
context: import('../pages/order.jsx').Context;
|
49
|
-
};
|
50
|
-
export type AddFilterParams = {
|
51
|
-
type: string;
|
52
|
-
onAdd: (filter_id: string | number) => void;
|
53
|
-
};
|
54
|
-
export type DiscountFiltersParams = {
|
55
|
-
/**
|
56
|
-
* bunch of filters
|
57
|
-
*/
|
58
|
-
value: import('@storecraft/core/api').Filter[];
|
59
|
-
/**
|
60
|
-
* bunch of filters
|
61
|
-
*/
|
62
|
-
types: ("product" | "order")[];
|
63
|
-
/**
|
64
|
-
* bunch of filters
|
65
|
-
*/
|
66
|
-
onChange: (filters: import('@storecraft/core/api').Filter[]) => void;
|
67
|
-
context: import('../pages/discount.jsx').Context;
|
68
|
-
};
|
69
|
-
/**
|
70
|
-
*
|
71
|
-
* @typedef {object} DiscountFiltersParams
|
72
|
-
* @prop {import('@storecraft/core/api').Filter[]} value bunch of filters
|
73
|
-
* @prop {('product' | 'order')[]} types bunch of filters
|
74
|
-
* @prop {(filters:
|
75
|
-
* import('@storecraft/core/api').Filter[]) => void
|
76
|
-
* } onChange bunch of filters
|
77
|
-
* @prop {import('../pages/discount.jsx').Context} context
|
78
|
-
*
|
79
|
-
*
|
80
|
-
* @param {DiscountFiltersParams} params
|
81
|
-
*
|
82
|
-
*/
|
83
|
-
declare function DiscountFilters({ value, onChange, types, context, ...rest }: DiscountFiltersParams): import("react").JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export default DiscountPerformance;
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @param {import('./fields-view.jsx').FieldLeafViewParams<
|
5
|
-
* undefined,
|
6
|
-
* import('../pages/discount.jsx').Context,
|
7
|
-
* import('@storecraft/core/api').DiscountType
|
8
|
-
* > &
|
9
|
-
* React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
10
|
-
* } params
|
11
|
-
*
|
12
|
-
*/
|
13
|
-
declare function DiscountPerformance({ field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<undefined, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export default DiscountsQuickSearchActions;
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @param {React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>} param
|
5
|
-
*/
|
6
|
-
declare function DiscountsQuickSearchActions({ ...rest }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export default Code;
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @param {object} param
|
5
|
-
* @param {string} param.value
|
6
|
-
* @param {import("./table-schema-view.jsx").TableSchemaViewContext<
|
7
|
-
* import("@storecraft/core/api").DiscountType>} param.context
|
8
|
-
*/
|
9
|
-
declare function Code({ value, context, ...rest }: {
|
10
|
-
value: string;
|
11
|
-
context: import('./table-schema-view.jsx').TableSchemaViewContext<import('@storecraft/core/api').DiscountType>;
|
12
|
-
}): import("react").JSX.Element;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
export function discount_types_to_color(type: import('@storecraft/core/api').DiscountDetails["meta"]["type"]): "bg-kf-400 dark:bg-kf-400/40" | "bg-red-400 dark:bg-red-400/40" | "bg-teal-600 dark:bg-teal-600/40" | "bg-cyan-500 dark:bg-cyan-500/40" | "bg-sky-500 dark:bg-sky-400/40" | "bg-slate-400 dark:bg-slate-400/20";
|
2
|
-
export default DiscountType;
|
3
|
-
/**
|
4
|
-
*
|
5
|
-
* @param {import('./table-schema-view.jsx').TableSchemaViewComponentParams<
|
6
|
-
* import('@storecraft/core/api').DiscountDetails["meta"]>} param0
|
7
|
-
* @returns
|
8
|
-
*/
|
9
|
-
declare function DiscountType({ value, ...rest }: import('./table-schema-view.jsx').TableSchemaViewComponentParams<import('@storecraft/core/api').DiscountDetails["meta"]>): import("react").JSX.Element;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export function RegularDocumentActions({ onClickSave, onClickCreate, onClickDelete, onClickDuplicate, onClickReload, id, children, ...rest }: RegularDocumentActionsParams): import("react").JSX.Element;
|
2
|
-
export type InternalRegularDocumentActionsParams = {
|
3
|
-
onClickSave?: () => Promise<any>;
|
4
|
-
onClickCreate?: () => Promise<any>;
|
5
|
-
onClickDuplicate?: () => Promise<any>;
|
6
|
-
onClickDelete?: (id: string) => Promise<any>;
|
7
|
-
onClickReload?: () => Promise<any>;
|
8
|
-
children?: React.ReactNode;
|
9
|
-
id?: string;
|
10
|
-
};
|
11
|
-
export type RegularDocumentActionsParams = InternalRegularDocumentActionsParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export default DocumentDetails;
|
2
|
-
export type InternalDocumentDetailsParams = {
|
3
|
-
doc: import('@storecraft/core/api').BaseType;
|
4
|
-
collectionId: string;
|
5
|
-
className?: string;
|
6
|
-
};
|
7
|
-
export type DocumentDetailsParams = InternalDocumentDetailsParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
8
|
-
/**
|
9
|
-
* @typedef {object} InternalDocumentDetailsParams
|
10
|
-
* @prop {import('@storecraft/core/api').BaseType} doc
|
11
|
-
* @prop {string} collectionId
|
12
|
-
* @prop {string} [className]
|
13
|
-
*
|
14
|
-
* @typedef {InternalDocumentDetailsParams &
|
15
|
-
* React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
16
|
-
* } DocumentDetailsParams
|
17
|
-
*
|
18
|
-
* @param {DocumentDetailsParams} param
|
19
|
-
*/
|
20
|
-
declare function DocumentDetails({ doc, collectionId, className, ...rest }: DocumentDetailsParams): import("react").JSX.Element;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export default DocumentTitle;
|
2
|
-
export type InternalDocumentTitleParams = {
|
3
|
-
major?: string[];
|
4
|
-
delimiter?: string;
|
5
|
-
className?: string;
|
6
|
-
};
|
7
|
-
export type DocumentTitleParams = InternalDocumentTitleParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
8
|
-
/**
|
9
|
-
* @typedef {object} InternalDocumentTitleParams
|
10
|
-
* @prop {string[]} [major]
|
11
|
-
* @prop {string} [delimiter]
|
12
|
-
* @prop {string} [className]
|
13
|
-
*
|
14
|
-
* @typedef {InternalDocumentTitleParams &
|
15
|
-
* React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
16
|
-
* } DocumentTitleParams
|
17
|
-
*
|
18
|
-
* @param {DocumentTitleParams} param
|
19
|
-
*/
|
20
|
-
declare function DocumentTitle({ major, delimiter, className, ...rest }: DocumentTitleParams): import("react").JSX.Element;
|