1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
"use strict";(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[6628],{"../../packages/js/product-editor/src/products-app/products-view.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),_wordpress_dataviews__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.function.bind.js"),__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../node_modules/.pnpm/@wordpress+dataviews@4.3.0_@emotion+is-prop-valid@1.2.1_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@wordpress/dataviews/build-module/components/dataviews/index.js")),_utilites_product_data_view_data__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../packages/js/product-editor/src/products-app/utilites/product-data-view-data.tsx"),ProductsView=function ProductsView(_ref){var fields=_ref.fields,view=_ref.view,productsData=_ref.productsData,paginationInfo=_ref.paginationInfo,defaultLayouts=_ref.defaultLayouts,onChangeView=_ref.onChangeView;return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.createElement)(_wordpress_dataviews__WEBPACK_IMPORTED_MODULE_5__.A,{data:productsData,fields,view,onChangeView,paginationInfo,defaultLayouts,getItemId:function getItemId(item){return item.name}})};const __WEBPACK_DEFAULT_EXPORT__={title:"Product App/Products View",component:ProductsView};var Default=function Template(args){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.createElement)(ProductsView,args)}.bind({});Default.args={productsData:_utilites_product_data_view_data__WEBPACK_IMPORTED_MODULE_6__.O$,fields:_utilites_product_data_view_data__WEBPACK_IMPORTED_MODULE_6__.QH,view:{type:"list",fields:_utilites_product_data_view_data__WEBPACK_IMPORTED_MODULE_6__.jz.filter((function(field){return"downloads"!==field&&"categories"!==field&&"images"!==field}))},defaultLayouts:{list:{type:"list"}},paginationInfo:{totalPages:1,totalItems:10},onChangeView:function onChangeView(){}},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"(args: unknown) => <ProductsView {...args} />",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"];try{Default.displayName="Default",Default.__docgenInfo={description:"",displayName:"Default",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../packages/js/product-editor/src/products-app/products-view.stories.tsx#Default"]={docgenInfo:Default.__docgenInfo,name:"Default",path:"../../packages/js/product-editor/src/products-app/products-view.stories.tsx#Default"})}catch(__react_docgen_typescript_loader_error){}}}]); |