@faststore/core 2.0.147-alpha.0 → 2.0.152-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.
Files changed (179) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/build-manifest.json +132 -0
  3. package/.next/cache/.tsbuildinfo +1 -0
  4. package/.next/cache/config.json +7 -0
  5. package/.next/cache/eslint/.cache_1gneedd +1 -0
  6. package/.next/cache/next-server.js.nft.json +1 -0
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/export-marker.json +1 -0
  12. package/.next/images-manifest.json +1 -0
  13. package/.next/next-server.js.nft.json +1 -0
  14. package/.next/package.json +1 -0
  15. package/.next/prerender-manifest.json +1 -0
  16. package/.next/react-loadable-manifest.json +48 -0
  17. package/.next/required-server-files.json +1 -0
  18. package/.next/routes-manifest.json +1 -0
  19. package/.next/server/chunks/104.js +703 -0
  20. package/.next/server/chunks/123.js +58 -0
  21. package/.next/server/chunks/143.js +106 -0
  22. package/.next/server/chunks/183.js +80 -0
  23. package/.next/server/chunks/247.js +61 -0
  24. package/.next/server/chunks/280.js +324 -0
  25. package/.next/server/chunks/287.js +58 -0
  26. package/.next/server/chunks/312.js +670 -0
  27. package/.next/server/chunks/336.js +821 -0
  28. package/.next/server/chunks/350.js +142 -0
  29. package/.next/server/chunks/368.js +253 -0
  30. package/.next/server/chunks/401.js +7241 -0
  31. package/.next/server/chunks/431.js +7241 -0
  32. package/.next/server/chunks/502.js +600 -0
  33. package/.next/server/chunks/557.js +132 -0
  34. package/.next/server/chunks/576.js +80 -0
  35. package/.next/server/chunks/597.js +169 -0
  36. package/.next/server/chunks/608.js +644 -0
  37. package/.next/server/chunks/644.js +235 -0
  38. package/.next/server/chunks/664.js +3401 -0
  39. package/.next/server/chunks/676.js +32 -0
  40. package/.next/server/chunks/701.js +87 -0
  41. package/.next/server/chunks/74.js +2674 -0
  42. package/.next/server/chunks/746.js +225 -0
  43. package/.next/server/chunks/82.js +371 -0
  44. package/.next/server/chunks/854.js +72 -0
  45. package/.next/server/chunks/859.js +959 -0
  46. package/.next/server/chunks/874.js +487 -0
  47. package/.next/server/chunks/886.js +120 -0
  48. package/.next/server/chunks/907.js +1723 -0
  49. package/.next/server/chunks/98.js +124 -0
  50. package/.next/server/chunks/font-manifest.json +1 -0
  51. package/.next/server/font-manifest.json +1 -0
  52. package/.next/server/middleware-build-manifest.js +1 -0
  53. package/.next/server/middleware-manifest.json +6 -0
  54. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  55. package/.next/server/pages/404.js +393 -0
  56. package/.next/server/pages/404.js.nft.json +1 -0
  57. package/.next/server/pages/500.js +395 -0
  58. package/.next/server/pages/500.js.nft.json +1 -0
  59. package/.next/server/pages/[...slug].js +718 -0
  60. package/.next/server/pages/[...slug].js.nft.json +1 -0
  61. package/.next/server/pages/[slug]/p.js +2458 -0
  62. package/.next/server/pages/[slug]/p.js.nft.json +1 -0
  63. package/.next/server/pages/_app.js +368 -0
  64. package/.next/server/pages/_app.js.nft.json +1 -0
  65. package/.next/server/pages/_document.js +304 -0
  66. package/.next/server/pages/_document.js.nft.json +1 -0
  67. package/.next/server/pages/_error.js +164 -0
  68. package/.next/server/pages/_error.js.nft.json +1 -0
  69. package/.next/server/pages/account.js +370 -0
  70. package/.next/server/pages/account.js.nft.json +1 -0
  71. package/.next/server/pages/api/graphql.js +315 -0
  72. package/.next/server/pages/api/graphql.js.nft.json +1 -0
  73. package/.next/server/pages/api/preview.js +118 -0
  74. package/.next/server/pages/api/preview.js.nft.json +1 -0
  75. package/.next/server/pages/checkout.js +370 -0
  76. package/.next/server/pages/checkout.js.nft.json +1 -0
  77. package/.next/server/pages/en-US/404.html +81 -0
  78. package/.next/server/pages/en-US/404.json +1 -0
  79. package/.next/server/pages/en-US/500.html +81 -0
  80. package/.next/server/pages/en-US/500.json +1 -0
  81. package/.next/server/pages/en-US/account.html +81 -0
  82. package/.next/server/pages/en-US/account.json +1 -0
  83. package/.next/server/pages/en-US/checkout.html +81 -0
  84. package/.next/server/pages/en-US/checkout.json +1 -0
  85. package/.next/server/pages/en-US/login.html +81 -0
  86. package/.next/server/pages/en-US/login.json +1 -0
  87. package/.next/server/pages/en-US/s.html +81 -0
  88. package/.next/server/pages/en-US/s.json +1 -0
  89. package/.next/server/pages/en-US.html +81 -0
  90. package/.next/server/pages/en-US.json +1 -0
  91. package/.next/server/pages/index.js +966 -0
  92. package/.next/server/pages/index.js.nft.json +1 -0
  93. package/.next/server/pages/login.js +375 -0
  94. package/.next/server/pages/login.js.nft.json +1 -0
  95. package/.next/server/pages/s.js +457 -0
  96. package/.next/server/pages/s.js.nft.json +1 -0
  97. package/.next/server/pages-manifest.json +16 -0
  98. package/.next/server/webpack-api-runtime.js +229 -0
  99. package/.next/server/webpack-runtime.js +229 -0
  100. package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
  101. package/.next/static/chunks/170.c17ce564bb568265.js +1 -0
  102. package/.next/static/chunks/226.b57e10ad9932f88c.js +1 -0
  103. package/.next/static/chunks/327-43715af4f3fffaf6.js +1 -0
  104. package/.next/static/chunks/336.0846f48eccce57e4.js +1 -0
  105. package/.next/static/chunks/366-c0bfd9890048babf.js +1 -0
  106. package/.next/static/chunks/377-61e89c711b136605.js +1 -0
  107. package/.next/static/chunks/391-47b923ef44945418.js +1 -0
  108. package/.next/static/chunks/495.8ffebac98e9475dc.js +1 -0
  109. package/.next/static/chunks/502.ae82de1669112b15.js +1 -0
  110. package/.next/static/chunks/545-1d3d08edfd2ee4c6.js +1 -0
  111. package/.next/static/chunks/597.c5cf3fbeae5ceb63.js +1 -0
  112. package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
  113. package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
  114. package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
  115. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
  116. package/.next/static/chunks/main-fd466221927468fd.js +1 -0
  117. package/.next/static/chunks/pages/404-459452495a0df278.js +1 -0
  118. package/.next/static/chunks/pages/500-008e30c48eceebed.js +1 -0
  119. package/.next/static/chunks/pages/[...slug]-a351612e92518155.js +1 -0
  120. package/.next/static/chunks/pages/[slug]/p-fa35dd93d53f75f6.js +1 -0
  121. package/.next/static/chunks/pages/_app-3e4e7e579cb0681a.js +1 -0
  122. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
  123. package/.next/static/chunks/pages/account-46263f0c100c3eae.js +1 -0
  124. package/.next/static/chunks/pages/checkout-20bb3710b24df3b6.js +1 -0
  125. package/.next/static/chunks/pages/index-49b7ee570f7cc4b7.js +1 -0
  126. package/.next/static/chunks/pages/login-f9d316d261fcc062.js +1 -0
  127. package/.next/static/chunks/pages/s-890c0c4b88484224.js +1 -0
  128. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
  129. package/.next/static/chunks/webpack-976c8f7df8e3dea3.js +1 -0
  130. package/.next/static/css/1323734429a8aa40.css +1 -0
  131. package/.next/static/css/13a4da555ff5e3be.css +1 -0
  132. package/.next/static/css/2e00f7ba49c754b3.css +1 -0
  133. package/.next/static/css/7d822a137c54a781.css +1 -0
  134. package/.next/static/css/a0feab89b7648c5c.css +1 -0
  135. package/.next/static/css/a13a9f9cd349d906.css +1 -0
  136. package/.next/static/css/a45618030b16a245.css +1 -0
  137. package/.next/static/css/bde408cc006e64f8.css +1 -0
  138. package/.next/static/css/d462d9478ce00021.css +1 -0
  139. package/.next/static/css/e02cdad8fc000339.css +1 -0
  140. package/.next/static/d4K49oW-EfaWNefvNv5AZ/_buildManifest.js +1 -0
  141. package/.next/static/d4K49oW-EfaWNefvNv5AZ/_ssgManifest.js +1 -0
  142. package/.next/trace +69 -0
  143. package/.turbo/turbo-build.log +6 -6
  144. package/CHANGELOG.md +12 -0
  145. package/cms/faststore/sections.json +26 -19
  146. package/package.json +4 -4
  147. package/public/~partytown/debug/partytown-atomics.js +556 -0
  148. package/public/~partytown/debug/partytown-media.js +374 -0
  149. package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
  150. package/public/~partytown/debug/partytown-sw.js +59 -0
  151. package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
  152. package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
  153. package/public/~partytown/debug/partytown.js +72 -0
  154. package/public/~partytown/partytown-atomics.js +2 -0
  155. package/public/~partytown/partytown-media.js +2 -0
  156. package/public/~partytown/partytown-sw.js +2 -0
  157. package/public/~partytown/partytown.js +2 -0
  158. package/src/components/sections/ProductDetails/ProductDetails.tsx +106 -165
  159. package/src/components/{sections/ProducDetailsContent/ProductDetailsContent.tsx → ui/ProductDescription/ProductDescription.tsx} +7 -7
  160. package/src/components/ui/ProductDescription/index.ts +1 -0
  161. package/src/components/ui/ProductDetails/AddToCartLoadingSkeleton.tsx +57 -0
  162. package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +125 -0
  163. package/src/components/ui/ProductDetails/index.ts +2 -0
  164. package/src/components/ui/ShippingSimulation/ShippingSimulation.tsx +18 -2
  165. package/src/components/sections/ProducDetailsContent/index.ts +0 -1
  166. package/src/stories/brandless.stories.mdx +0 -87
  167. package/src/stories/changelog-template.stories.mdx +0 -10
  168. package/src/stories/colors.stories.mdx +0 -306
  169. package/src/stories/customizing.stories.mdx +0 -113
  170. package/src/stories/getting-started.stories.mdx +0 -68
  171. package/src/stories/grid-layout.stories.mdx +0 -53
  172. package/src/stories/icons.stories.mdx +0 -237
  173. package/src/stories/interactive-controls.stories.mdx +0 -50
  174. package/src/stories/midnight.stories.mdx +0 -56
  175. package/src/stories/refinements.stories.mdx +0 -96
  176. package/src/stories/soft-blue.stories.mdx +0 -56
  177. package/src/stories/spacing.stories.mdx +0 -38
  178. package/src/stories/typography.stories.mdx +0 -224
  179. /package/src/components/{sections/ProducDetailsContent/ProductDetailsContent.stories.mdx → ui/ProductDescription/ProductDescription.stories.mdx} +0 -0
@@ -1,306 +0,0 @@
1
- import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs'
2
- import '/.storybook/storybook.css'
3
-
4
- import {
5
- TokenTable,
6
- TokenRow,
7
- TokenDivider,
8
- } from 'src/../.storybook/components'
9
-
10
- <Meta
11
- title="Global Tokens/Colors"
12
- parameters={{ options: { showToolbar: false } }}
13
- />
14
-
15
- <header>
16
-
17
- # Colors
18
-
19
- The store palette with all the tones needed.
20
-
21
- </header>
22
-
23
- <ColorPalette>
24
- <ColorItem
25
- title="Main"
26
- colors={{
27
- '--fs-color-main-0': '#f1f2f3',
28
- '--fs-color-main-1': '#e3e6e8',
29
- '--fs-color-main-2': '#00419e',
30
- '--fs-color-main-3': '#002c71',
31
- '--fs-color-main-4': '#002155',
32
- }}
33
- />
34
- <ColorItem
35
- title="Accent"
36
- colors={{
37
- '--fs-color-accent-0': '#f1f2f3',
38
- '--fs-color-accent-1': '#e3e6e8',
39
- '--fs-color-accent-2': '#74808b',
40
- '--fs-color-accent-3': '#5d666f',
41
- '--fs-color-accent-4': '#171a1c',
42
- }}
43
- />
44
- <ColorItem
45
- title="Neutral"
46
- colors={{
47
- '--fs-color-neutral-0': '#ffffff',
48
- '--fs-color-neutral-1': '#f1f2f3',
49
- '--fs-color-neutral-2': '#e3e6e8',
50
- '--fs-color-neutral-3': '#c7ccd1',
51
- '--fs-color-neutral-4': '#9099a2',
52
- '--fs-color-neutral-5': '#74808b',
53
- '--fs-color-neutral-6': '#5d666f',
54
- '--fs-color-neutral-7': '#171a1c',
55
- }}
56
- />
57
- </ColorPalette>
58
-
59
- ---
60
-
61
- ## Semantical tokens
62
-
63
- ### Hierarchy
64
-
65
- <TokenTable title="Global Token" description="Value">
66
- <TokenRow
67
- token="--fs-color-primary-text"
68
- value="var(--fs-color-text-inverse)"
69
- isColor
70
- />
71
- <TokenRow
72
- token="--fs-color-primary-bkg"
73
- value="var(--fs-color-main-2)"
74
- isColor
75
- />
76
- <TokenRow
77
- token="--fs-color-primary-bkg-hover"
78
- value="var(--fs-color-main-3)"
79
- isColor
80
- />
81
- <TokenRow
82
- token="--fs-color-primary-bkg-active"
83
- value="var(--fs-color-main-4)"
84
- isColor
85
- />
86
- <TokenRow
87
- token="--fs-color-primary-bkg-light"
88
- value="var(--fs-color-main-0)"
89
- isColor
90
- />
91
- <TokenRow
92
- token="--fs-color-primary-bkg-light-active"
93
- value="var(--fs-color-main-1)"
94
- isColor
95
- />
96
- <TokenDivider />
97
- <TokenRow
98
- token="--fs-color-secondary-text"
99
- value="var(--fs-color-primary-bkg)"
100
- isColor
101
- />
102
- <TokenRow token="--fs-color-secondary-bkg" value="transparent" isColor />
103
- <TokenRow
104
- token="--fs-color-secondary-bkg-hover"
105
- value="var(--fs-color-primary-bkg)"
106
- isColor
107
- />
108
- <TokenRow
109
- token="--fs-color-secondary-bkg-active"
110
- value="var(--fs-color-main-3)"
111
- isColor
112
- />
113
- <TokenRow
114
- token="--fs-color-secondary-bkg-light"
115
- value="var(--fs-color-main-0)"
116
- isColor
117
- />
118
- <TokenRow
119
- token="--fs-color-secondary-bkg-light-active"
120
- value="var(--fs-color-secondary-bkg-light)"
121
- isColor
122
- />
123
- <TokenDivider />
124
- <TokenRow
125
- token="--fs-color-tertiary-text"
126
- value="var(--fs-color-link)"
127
- isColor
128
- />
129
- <TokenRow token="--fs-color-tertiary-bkg" value="transparent" isColor />
130
- <TokenRow
131
- token="--fs-color-tertiary-bkg-hover"
132
- value="var(--fs-color-main-0)"
133
- isColor
134
- />
135
- <TokenRow
136
- token="--fs-color-tertiary-bkg-active"
137
- value="var(--fs-color-main-1)"
138
- isColor
139
- />
140
- <TokenRow
141
- token="--fs-color-tertiary-bkg-light"
142
- value="var(--fs-color-neutral-0)"
143
- isColor
144
- />
145
- <TokenRow
146
- token="--fs-color-tertiary-bkg-light-active"
147
- value="var(--fs-color-tertiary-bkg-light)"
148
- isColor
149
- />
150
- </TokenTable>
151
-
152
- ### Components & States
153
-
154
- <TokenTable title="Global Token" description="Value">
155
- <TokenRow
156
- token="--fs-color-body-bkg"
157
- value="var(--fs-color-neutral-0)"
158
- isColor
159
- />
160
- <TokenDivider />
161
- <TokenRow
162
- token="--fs-color-action-text"
163
- value="var(--fs-color-text-inverse)"
164
- isColor
165
- />
166
- <TokenRow
167
- token="--fs-color-action-bkg"
168
- value="var(--fs-color-accent-4)"
169
- isColor
170
- />
171
- <TokenRow
172
- token="--fs-color-action-bkg-hover"
173
- value="var(--fs-color-accent-3)"
174
- isColor
175
- />
176
- <TokenRow
177
- token="--fs-color-action-bkg-active"
178
- value="var(--fs-color-accent-2)"
179
- isColor
180
- />
181
- <TokenRow
182
- token="--fs-color-action-bkg-light"
183
- value="var(--fs-color-neutral-0)"
184
- isColor
185
- />
186
- <TokenRow
187
- token="--fs-color-action-bkg-light-active"
188
- value="var(--fs-color-tertiary-bkg-light)"
189
- isColor
190
- />
191
- <TokenDivider />
192
- <TokenRow token="--fs-color-link" value="var(--fs-color-main-2)" isColor />
193
- <TokenRow
194
- token="--fs-color-link-hover"
195
- value="var(--fs-color-main-2)"
196
- isColor
197
- />
198
- <TokenRow
199
- token="--fs-color-link-active"
200
- value="var(--fs-color-main-4)"
201
- isColor
202
- />
203
- <TokenRow token="--fs-color-link-visited" value="#6058ba" isColor />
204
- <TokenRow
205
- token="--fs-color-link-inverse"
206
- value="var(--fs-color-neutral-0)"
207
- isColor
208
- />
209
- <TokenDivider />
210
- <TokenRow token="--fs-color-text" value="var(--fs-color-neutral-7)" isColor />
211
- <TokenRow
212
- token="--fs-color-text-light"
213
- value="var(--fs-color-neutral-6)"
214
- isColor
215
- />
216
- <TokenRow
217
- token="--fs-color-text-inverse"
218
- value="var(--fs-color-neutral-0)"
219
- isColor
220
- />
221
- <TokenRow
222
- token="--fs-color-text-display"
223
- value="var(--fs-color-neutral-7)"
224
- isColor
225
- />
226
- <TokenDivider />
227
- <TokenRow token="--fs-color-focus-ring" value="#8db6fa" isColor />
228
- <TokenRow token="--fs-color-focus-ring-outline" value="#8db6fa80" isColor />
229
- <TokenRow token="--fs-color-focus-ring-danger" value="#e1adad" isColor />
230
- </TokenTable>
231
-
232
- ### Situations
233
-
234
- <TokenTable title="Global Token" description="Value">
235
- <TokenRow token="--fs-color-success-text" value="#1e493b" isColor />
236
- <TokenRow token="--fs-color-success-bkg" value="#b3ebd5" isColor />
237
- <TokenRow
238
- token="--fs-color-success-border"
239
- value="var(--fs-color-success-text)"
240
- isColor
241
- />
242
- <TokenDivider />
243
- <TokenRow
244
- token="--fs-color-warning-text"
245
- value="var(--fs-color-text)"
246
- isColor
247
- />
248
- <TokenRow token="--fs-color-warning-bkg" value="#fdec8d" isColor />
249
- <TokenRow
250
- token="--fs-color-warning-border"
251
- value="var(--fs-color-warning-text)"
252
- isColor
253
- />
254
- <TokenDivider />
255
- <TokenRow token="--fs-color-danger-text" value="#cb4242" isColor />
256
- <TokenRow
257
- token="--fs-color-danger-bkg"
258
- value="var(--fs-color-focus-ring-danger)"
259
- isColor
260
- />
261
- <TokenRow
262
- token="--fs-color-danger-border"
263
- value="var(--fs-color-danger-text)"
264
- isColor
265
- />
266
- <TokenDivider />
267
- <TokenRow token="--fs-color-info-text" value="var(--fs-color-text)" isColor />
268
- <TokenRow
269
- token="--fs-color-info-bkg"
270
- value="var(--fs-color-main-1)"
271
- isColor
272
- />
273
- <TokenDivider />
274
- <TokenRow
275
- token="--fs-color-highlighted-text"
276
- value="var(--fs-color-text-display)"
277
- isColor
278
- />
279
- <TokenRow
280
- token="--fs-color-highlighted-bkg"
281
- value="var(--fs-color-accent-0)"
282
- isColor
283
- />
284
- <TokenDivider />
285
- <TokenRow
286
- token="--fs-color-neutral-text"
287
- value="var(--fs-color-text)"
288
- isColor
289
- />
290
- <TokenRow
291
- token="--fs-color-neutral-bkg"
292
- value="var(--fs-color-neutral-1)"
293
- isColor
294
- />
295
- <TokenDivider />
296
- <TokenRow
297
- token="--fs-color-disabled-text"
298
- value="var(--fs-color-neutral-6)"
299
- isColor
300
- />
301
- <TokenRow
302
- token="--fs-color-disabled-bkg"
303
- value="var(--fs-color-neutral-2)"
304
- isColor
305
- />
306
- </TokenTable>
@@ -1,113 +0,0 @@
1
- import { Description, Meta } from '@storybook/addon-docs'
2
-
3
- import { SectionList, SectionItem } from 'src/../.storybook/components'
4
-
5
- <Meta
6
- title="Theming/Customizing"
7
- parameters={{ options: { showToolbar: false } }}
8
- />
9
-
10
- <header className="sbdocs-hero">
11
-
12
- # Customizing
13
-
14
- **Design tokens** are parameters that affect all UI look 'n' feel and they are the **main configuration** file of a Theme. Component-specific tokens often inherit from global tokens but are named specifically to apply those tokens in component development.
15
-
16
- </header>
17
-
18
- ## Global Tokens
19
-
20
- FastStore uses a default theme called `Brandless`, which provides structural styles for your components and pages. Please read <a href="../?path=/docs/theming-brandless--page">Brandless's page</a> to further information about our themeable architecture.
21
-
22
- Its presets are defined on `src/styles/global/tokens.scss` and it's separated in these main areas:
23
-
24
- <SectionList grid="grid" classes="sbdocs-tokens-links">
25
- <SectionItem
26
- title="Colors"
27
- actionPath="../?path=/docs/global-tokens-colors--page"
28
- description={<>The store palette with all the tones needed.</>}
29
- >
30
- <FooterLinks />
31
- </SectionItem>
32
- <SectionItem
33
- title="Typography"
34
- actionPath="../?path=/docs/global-tokens-typography--page"
35
- description={
36
- <>
37
- A standard scale and basic definitions for your text:{' '}
38
- <code>font family</code>,<code>weight</code> and <code>sizes</code>.
39
- </>
40
- }
41
- >
42
- <IncentivesFooter />
43
- </SectionItem>
44
- <SectionItem
45
- title="Spacing"
46
- actionPath="../?path=/docs/global-tokens-spacing--page"
47
- description={
48
- <>
49
- All tokens used for spacings on the store: <code>padding</code>,{' '}
50
- <code>margins</code> and <code>sizes</code>. It's also used as base for
51
- grid tokens.
52
- </>
53
- }
54
- >
55
- <FooterLinks />
56
- </SectionItem>
57
- <SectionItem
58
- title="Grid & Layout"
59
- actionPath="../?path=/docs/global-tokens-grid-layout--page"
60
- description={
61
- <>
62
- <code>Padding</code>, <code>Container</code>, <code>Gaps</code> and{' '}
63
- <code>Breakpoints</code> definitions.
64
- </>
65
- }
66
- >
67
- <IncentivesFooter />
68
- </SectionItem>
69
- <SectionItem
70
- title="Interactive Controls"
71
- actionPath="../?path=/docs/global-tokens-interactive-controls--page"
72
- description={
73
- <>
74
- <code>Tap</code>, <code>States</code> and <code>Sizing</code>{' '}
75
- definitions.
76
- </>
77
- }
78
- >
79
- <FooterLinks />
80
- </SectionItem>
81
- <SectionItem
82
- title="Refinements"
83
- actionPath="../?path=/docs/global-tokens-refinements--page"
84
- description={
85
- <>
86
- <code>Transition</code>, <code>Borders</code> and <code>Shadow</code>{' '}
87
- definitions.
88
- </>
89
- }
90
- >
91
- <IncentivesFooter />
92
- </SectionItem>
93
- </SectionList>
94
-
95
- ---
96
-
97
- ## Build your new theme
98
-
99
- 1. Create a new `.scss` file on `src/styles/themes` and overwrite the tokens you want: e.g. `my-theme.scss`
100
- 2. Import `my-theme.scss` file on `src/pages/_app.tsx`
101
-
102
- ```jsx
103
- import '../styles/themes/my-theme.scss'
104
- ```
105
-
106
- 3. Go to `faststore.config.js` and change the `theme` to your file's name:
107
-
108
- ```js
109
- // Theming
110
- theme: 'my-theme',
111
- ```
112
-
113
- If you want, you can work on `custom-theme.scss` file that's ready to use. Also, we provide two themes as examples: [soft-blue](?path=/docs/theming-themes-soft-blue--page) and [midnight](?path=/docs/theming-themes-midnight--page).
@@ -1,68 +0,0 @@
1
- import { Description, Meta } from '@storybook/addon-docs'
2
- import { Callout } from 'src/../.storybook/components'
3
-
4
- import { LinkButton } from '@faststore/ui'
5
-
6
- import Icon from '../components/ui/Icon'
7
-
8
- <Meta
9
- title="Getting Started"
10
- parameters={{ options: { showToolbar: false } }}
11
- />
12
-
13
- <header className="sbdocs-hero">
14
-
15
- # Getting Started
16
-
17
- FastStore NextJS Starter's components library is an ecommerce-focused library **created by VTEX** that provides best-of-breed components, blazing-fast performance, and a frictionless development experience to create storefronts using FastStore UI library as base.
18
-
19
- <LinkButton
20
- size="small"
21
- variant="tertiary"
22
- href="https://nextjs.vtex.app/"
23
- icon={<Icon name="ArrowRight" width="18" height="18" weight="bold" />}
24
- iconPosition="right"
25
- >
26
- NextJS Store Starter
27
- </LinkButton>
28
-
29
- <LinkButton
30
- size="small"
31
- variant="tertiary"
32
- href="https://www.faststore.dev/reference/ui/faststore-ui"
33
- icon={<Icon name="ArrowRight" width="18" height="18" weight="bold" />}
34
- iconPosition="right"
35
- >
36
- FastStore UI library
37
- </LinkButton>
38
-
39
- </header>
40
-
41
- <Callout>
42
- When trying to switch between
43
- <code>Sandbox</code> and <code>Docs</code> tabs, the <code>Sandbox</code> tab might
44
- not be working properly, try to refresh the page after switching tabs. It seems
45
- to be a <a href="https://github.com/storybookjs/storybook/issues/17625">
46
- bug in the Storybook
47
- </a>.
48
- </Callout>
49
-
50
- ## Sections
51
-
52
- This product is designed and built following the **Atomic Design pattern**. Atomic Design breaks user interfaces hierarchically into smaller and simpler components. In this Storybook, we organized our components in the following groups:
53
-
54
- - Atoms
55
- - Molecules
56
- - Organisms
57
- - Features: group of components related to a specific feature, such as `Regionalization`.
58
-
59
- ---
60
-
61
- ## Subsections
62
-
63
- Also, on the component's pages we use the following terms:
64
-
65
- - `Compound Components`: list components that compound it.
66
- - `Related Components`: list components that are related.
67
- - `Use Cases/Examples`: list examples of where the components are applied.
68
- - `Components`: list components that are part of a Feature.
@@ -1,53 +0,0 @@
1
- import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs'
2
- import '/.storybook/storybook.css'
3
-
4
- import {
5
- TokenTable,
6
- TokenRow,
7
- TokenDivider,
8
- } from 'src/../.storybook/components'
9
-
10
- <Meta
11
- title="Global Tokens/Grid & Layout"
12
- parameters={{ options: { showToolbar: false } }}
13
- />
14
-
15
- <header>
16
-
17
- # Grid & Layout
18
-
19
- `Padding`, `Container`, `Gaps` and `Breakpoints` definitions.
20
-
21
- </header>
22
-
23
- ## Padding
24
-
25
- <TokenTable title="Global Token" description="Value">
26
- <TokenRow token="--fs-grid-padding" value="var(--fs-spacing-3)" />
27
- </TokenTable>
28
-
29
- ## Container
30
-
31
- <TokenTable title="Global Token" description="Value">
32
- <TokenRow token="--fs-grid-max-width" value="var(--fs-spacing-3)" />
33
- </TokenTable>
34
-
35
- ## Gaps
36
-
37
- <TokenTable title="Global Token" description="Value">
38
- <TokenRow token="--fs-grid-gap-0" value="var(--fs-spacing-1)" />
39
- <TokenRow token="--fs-grid-gap-1" value="var(--fs-spacing-2)" />
40
- <TokenRow token="--fs-grid-gap-2" value="var(--fs-spacing-3)" />
41
- <TokenRow token="--fs-grid-gap-3" value="var(--fs-spacing-4)" />
42
- <TokenRow token="--fs-grid-gap-4" value="var(--fs-spacing-5)" />
43
- </TokenTable>
44
-
45
- ## Breakpoints
46
-
47
- <TokenTable title="Global Token" description="Value">
48
- <TokenRow token="--fs-grid-breakpoint-phone" value="320px" />
49
- <TokenRow token="--fs-grid-breakpoint-phonemid" value="375px" />
50
- <TokenRow token="--fs-grid-breakpoint-tablet" value="768px" />
51
- <TokenRow token="--fs-grid-breakpoint-notebook" value="1280px" />
52
- <TokenRow token="--fs-grid-breakpoint-desktop" value="1440px" />
53
- </TokenTable>