@faststore/core 2.0.74-alpha.0 → 2.0.75-alpha.0
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +15 -15
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +2 -3
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/312.js +127 -121
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +17 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/static/chunks/909.ea3532bde0943808.js +1 -0
- package/.next/static/chunks/pages/{_app-286bcfa03a5e17a7.js → _app-9cc7312632f19e94.js} +1 -1
- package/.next/static/chunks/webpack-fc7c18f8a868734c.js +1 -0
- package/.next/static/css/{d78f4c5305f398ac.css → 14ebc84fc6d6c80c.css} +1 -1
- package/.next/static/{M7OQ7A7JAyTrgvf0m1Ztu → xmQIY_XtSwwYX1xvtcDOJ}/_buildManifest.js +1 -1
- package/.next/trace +64 -64
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/src/components/common/Navbar/navbar.module.scss +0 -1
- package/src/components/search/SearchInput/SearchInput.tsx +7 -3
- package/src/components/search/SearchInput/search-input.module.scss +0 -8
- package/src/components/search/{SearchProductCard/SearchProductCard.tsx → SearchProductItem/SearchProductItem.tsx} +25 -22
- package/src/components/search/SearchProductItem/index.ts +1 -0
- package/src/components/search/SearchSuggestions/SearchSuggestions.tsx +27 -79
- package/src/components/search/search.module.scss +9 -80
- package/.next/static/chunks/791.e9be2b77d132c1b1.js +0 -1
- package/.next/static/chunks/webpack-8f397ae160440a8e.js +0 -1
- package/.next/static/css/e1c24beb73906eed.css +0 -1
- package/src/components/search/SearchHistory/SearchHistory.stories.mdx +0 -54
- package/src/components/search/SearchProductCard/SearchProductCard.stories.mdx +0 -95
- package/src/components/search/SearchProductCard/index.ts +0 -1
- package/src/components/search/SearchSuggestions/SearchSuggestions.stories.mdx +0 -58
- package/src/components/search/SearchTop/SearchTop.stories.mdx +0 -57
- /package/.next/static/{M7OQ7A7JAyTrgvf0m1Ztu → xmQIY_XtSwwYX1xvtcDOJ}/_ssgManifest.js +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
import {
|
|
3
|
-
TokenTable,
|
|
4
|
-
TokenRow,
|
|
5
|
-
TokenDivider,
|
|
6
|
-
} from 'src/../.storybook/components'
|
|
7
|
-
import { SearchInputProvider } from 'src/sdk/search/useSearchInput'
|
|
8
|
-
import { productGridItems, searchTerms } from 'src/../.storybook/mocks'
|
|
9
|
-
import { products } from '../searchMock'
|
|
10
|
-
|
|
11
|
-
import SearchSuggestions from '.'
|
|
12
|
-
|
|
13
|
-
<Meta component={SearchSuggestions} title="Features/Search/SearchSuggestions" />
|
|
14
|
-
|
|
15
|
-
export const Template = (args) => (
|
|
16
|
-
<div
|
|
17
|
-
style={{
|
|
18
|
-
maxWidth: '600px',
|
|
19
|
-
margin: '0 auto',
|
|
20
|
-
padding: '0 16px',
|
|
21
|
-
background: 'white',
|
|
22
|
-
}}
|
|
23
|
-
>
|
|
24
|
-
<SearchInputProvider>
|
|
25
|
-
<SearchSuggestions {...args} />
|
|
26
|
-
</SearchInputProvider>
|
|
27
|
-
</div>
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
<header>
|
|
31
|
-
|
|
32
|
-
# SearchSuggestions
|
|
33
|
-
|
|
34
|
-
Displays a set of navigation links that self-adapts on mobile or desktop screens.
|
|
35
|
-
|
|
36
|
-
</header>
|
|
37
|
-
|
|
38
|
-
## Usage
|
|
39
|
-
|
|
40
|
-
`import SearchSuggestions from 'src/components/search/SearchSuggestions'`
|
|
41
|
-
|
|
42
|
-
<Canvas>
|
|
43
|
-
<Story
|
|
44
|
-
name="default"
|
|
45
|
-
parameters={{
|
|
46
|
-
backgrounds: { default: 'dark' },
|
|
47
|
-
}}
|
|
48
|
-
args={{
|
|
49
|
-
term: 'Ste',
|
|
50
|
-
terms: searchTerms,
|
|
51
|
-
products,
|
|
52
|
-
}}
|
|
53
|
-
>
|
|
54
|
-
{Template.bind({})}
|
|
55
|
-
</Story>
|
|
56
|
-
</Canvas>
|
|
57
|
-
|
|
58
|
-
<ArgsTable story="default" />
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import { SearchInputProvider } from 'src/sdk/search/useSearchInput'
|
|
4
|
-
import { searchTerms } from 'src/../.storybook/mocks'
|
|
5
|
-
|
|
6
|
-
import SearchTop from './SearchTop'
|
|
7
|
-
import { msw } from '../searchMock'
|
|
8
|
-
|
|
9
|
-
<Meta component={SearchTop} title="Features/Search/SearchTop" />
|
|
10
|
-
|
|
11
|
-
export const Template = (args) => (
|
|
12
|
-
<div
|
|
13
|
-
style={{
|
|
14
|
-
maxWidth: '600px',
|
|
15
|
-
margin: '0 auto',
|
|
16
|
-
padding: '0 16px',
|
|
17
|
-
background: 'white',
|
|
18
|
-
}}
|
|
19
|
-
>
|
|
20
|
-
<SearchInputProvider>
|
|
21
|
-
<SearchTop {...args} />
|
|
22
|
-
</SearchInputProvider>
|
|
23
|
-
</div>
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
<header>
|
|
27
|
-
|
|
28
|
-
# Search Top
|
|
29
|
-
|
|
30
|
-
This section displays the most searched terms by customers.
|
|
31
|
-
|
|
32
|
-
</header>
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
`import SearchTop from 'src/components/search/SearchTop'`
|
|
37
|
-
|
|
38
|
-
<Canvas>
|
|
39
|
-
<Story
|
|
40
|
-
name="default"
|
|
41
|
-
parameters={{
|
|
42
|
-
backgrounds: { default: 'dark' },
|
|
43
|
-
msw,
|
|
44
|
-
}}
|
|
45
|
-
argTypes={{
|
|
46
|
-
testId: {
|
|
47
|
-
table: {
|
|
48
|
-
disable: true,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
}}
|
|
52
|
-
>
|
|
53
|
-
{Template.bind({})}
|
|
54
|
-
</Story>
|
|
55
|
-
</Canvas>
|
|
56
|
-
|
|
57
|
-
<ArgsTable story="default" />
|
|
File without changes
|