@faststore/core 2.0.151-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 (70) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +32 -32
  3. package/.next/cache/config.json +3 -3
  4. package/.next/cache/eslint/.cache_1gneedd +1 -1
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.json +1 -1
  10. package/.next/react-loadable-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/chunks/104.js +1 -1
  13. package/.next/server/middleware-build-manifest.js +1 -1
  14. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  15. package/.next/server/pages/404.js.nft.json +1 -1
  16. package/.next/server/pages/500.js.nft.json +1 -1
  17. package/.next/server/pages/[...slug].js.nft.json +1 -1
  18. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  19. package/.next/server/pages/_app.js.nft.json +1 -1
  20. package/.next/server/pages/account.js.nft.json +1 -1
  21. package/.next/server/pages/checkout.js.nft.json +1 -1
  22. package/.next/server/pages/en-US/404.html +2 -2
  23. package/.next/server/pages/en-US/500.html +2 -2
  24. package/.next/server/pages/en-US/account.html +2 -2
  25. package/.next/server/pages/en-US/checkout.html +2 -2
  26. package/.next/server/pages/en-US/login.html +2 -2
  27. package/.next/server/pages/en-US/s.html +2 -2
  28. package/.next/server/pages/en-US/s.json +1 -1
  29. package/.next/server/pages/en-US.html +2 -2
  30. package/.next/server/pages/index.js.nft.json +1 -1
  31. package/.next/server/pages/login.js.nft.json +1 -1
  32. package/.next/server/pages/s.js.nft.json +1 -1
  33. package/.next/server/pages-manifest.json +2 -2
  34. package/.next/static/chunks/{366-4a0572a47e2225d9.js → 366-c0bfd9890048babf.js} +1 -1
  35. package/.next/static/chunks/pages/{[...slug]-3c749c7d8561eb90.js → [...slug]-a351612e92518155.js} +1 -1
  36. package/.next/static/chunks/webpack-976c8f7df8e3dea3.js +1 -0
  37. package/.next/static/css/{2e9de35e0cb999e0.css → 1323734429a8aa40.css} +1 -1
  38. package/.next/static/css/7d822a137c54a781.css +1 -0
  39. package/.next/static/css/a0feab89b7648c5c.css +1 -0
  40. package/.next/static/css/a13a9f9cd349d906.css +1 -0
  41. package/.next/static/css/a45618030b16a245.css +1 -0
  42. package/.next/static/css/bde408cc006e64f8.css +1 -0
  43. package/.next/static/css/d462d9478ce00021.css +1 -0
  44. package/.next/static/d4K49oW-EfaWNefvNv5AZ/_buildManifest.js +1 -0
  45. package/.next/trace +69 -69
  46. package/.turbo/turbo-build.log +5 -5
  47. package/CHANGELOG.md +6 -0
  48. package/package.json +4 -4
  49. package/.next/static/SPkTG9-gxU2UejLG7FvOw/_buildManifest.js +0 -1
  50. package/.next/static/chunks/webpack-5051dce9659282f3.js +0 -1
  51. package/.next/static/css/1de3e7b6ba8daaac.css +0 -1
  52. package/.next/static/css/43b1b3821e21630c.css +0 -1
  53. package/.next/static/css/48af598df5fe042d.css +0 -1
  54. package/.next/static/css/923c4a942e57bc91.css +0 -1
  55. package/.next/static/css/e434797816e17065.css +0 -1
  56. package/.next/static/css/e7a6f3559cf45c62.css +0 -1
  57. package/src/stories/brandless.stories.mdx +0 -87
  58. package/src/stories/changelog-template.stories.mdx +0 -10
  59. package/src/stories/colors.stories.mdx +0 -306
  60. package/src/stories/customizing.stories.mdx +0 -113
  61. package/src/stories/getting-started.stories.mdx +0 -68
  62. package/src/stories/grid-layout.stories.mdx +0 -53
  63. package/src/stories/icons.stories.mdx +0 -237
  64. package/src/stories/interactive-controls.stories.mdx +0 -50
  65. package/src/stories/midnight.stories.mdx +0 -56
  66. package/src/stories/refinements.stories.mdx +0 -96
  67. package/src/stories/soft-blue.stories.mdx +0 -56
  68. package/src/stories/spacing.stories.mdx +0 -38
  69. package/src/stories/typography.stories.mdx +0 -224
  70. /package/.next/static/{SPkTG9-gxU2UejLG7FvOw → d4K49oW-EfaWNefvNv5AZ}/_ssgManifest.js +0 -0
@@ -1,224 +0,0 @@
1
- import { Canvas, Meta, Typeset } from '@storybook/addon-docs'
2
-
3
- import {
4
- TokenTable,
5
- TokenRow,
6
- TokenDivider,
7
- } from 'src/../.storybook/components'
8
-
9
- <Meta
10
- title="Global Tokens/Typography"
11
- parameters={{ options: { showToolbar: false } }}
12
- />
13
-
14
- export const typography = {
15
- type: {
16
- primary: '-apple-system, system-ui, BlinkMacSystemFont, sans-serif',
17
- },
18
- weight: {
19
- regular: '400',
20
- bold: '700',
21
- extrabold: '800',
22
- black: '900',
23
- },
24
- sizeMob: {
25
- s1: 12,
26
- s2: 14,
27
- s3: 16,
28
- m1: 18,
29
- m2: 20,
30
- m3: 23,
31
- l1: 26,
32
- l2: 29,
33
- l3: 33,
34
- },
35
- sizeDesk: {
36
- s1: 12,
37
- s2: 14,
38
- s3: 16,
39
- m1: 20,
40
- m2: 25,
41
- m3: 31,
42
- l1: 39,
43
- l2: 48,
44
- l3: 61,
45
- },
46
- }
47
-
48
- export const SampleText =
49
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
50
-
51
- <header className="sbdocs-typography">
52
-
53
- # Typography
54
-
55
- A standard scale and basic definitions for your text: `font family`,`weight` and `sizes`.
56
-
57
- </header>
58
-
59
- ## Add a custom font
60
-
61
- To set up a new font, follow the steps:
62
-
63
- 1. Go to `src/fonts/WebFonts` and replace its content with the `<link>` of your font-family of choice
64
-
65
- ```tsx
66
- function WebFonts() {
67
- return (
68
- <link
69
- rel="stylesheet"
70
- href="https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap"
71
- />
72
- )
73
- }
74
- ```
75
-
76
- 2. Overwrite the token `--fs-text-face-body` on your `new-theme.scss` theme file
77
-
78
- ```scss
79
- --fs-text-face-body: 'Raleway', sans-serif;
80
- ```
81
-
82
- We recommend the usage of [GoogleFonts](https://fonts.google.com/).
83
-
84
- ---
85
-
86
- ## Font Family
87
-
88
- <TokenTable title="Global Token" description="Value">
89
- <TokenRow
90
- token="--fs-text-face-body"
91
- value="-apple-system, system-ui, BlinkMacSystemFont, sans-serif"
92
- />
93
- <TokenRow token="--fs-text-face-title" value="var(--fs-text-face-body)" />
94
- </TokenTable>
95
-
96
- ---
97
-
98
- ## Weights
99
-
100
- <TokenTable title="Global Token" description="Value">
101
- <TokenRow token="--fs-text-weight-light" value="300" />
102
- <TokenRow token="--fs-text-weight-regular" value="400" />
103
- <TokenRow token="--fs-text-weight-bold" value="700" />
104
- <TokenRow token="--fs-text-weight-black" value="900" />
105
- </TokenTable>
106
-
107
- ---
108
-
109
- ## Typography Scale
110
-
111
- Use a type scale to add rhythm to your typography and ensure consistency throughout the project.
112
-
113
- Access https://type-scale.com and pick a scale that suits the store's branding.
114
-
115
- <section className="sbdocs-section-text-scale">
116
- <div>
117
- <h3 className="sbdocs sbdocs-h3">Desktop Scale</h3>
118
- <Typeset
119
- fontSizes={[
120
- Number(typography.sizeDesk.s1),
121
- Number(typography.sizeDesk.s2),
122
- Number(typography.sizeDesk.s3),
123
- Number(typography.sizeDesk.m1),
124
- Number(typography.sizeDesk.m2),
125
- Number(typography.sizeDesk.m3),
126
- Number(typography.sizeDesk.l1),
127
- Number(typography.sizeDesk.l2),
128
- Number(typography.sizeDesk.l3),
129
- ]}
130
- fontWeight={typography.weight.regular}
131
- sampleText={SampleText}
132
- fontFamily={typography.type.primary}
133
- />
134
- </div>
135
- <div>
136
- <h3 className="sbdocs sbdocs-h3">Mobile Scale</h3>
137
- <Typeset
138
- fontSizes={[
139
- Number(typography.sizeMob.s1),
140
- Number(typography.sizeMob.s2),
141
- Number(typography.sizeMob.s3),
142
- Number(typography.sizeMob.m1),
143
- Number(typography.sizeMob.m2),
144
- Number(typography.sizeMob.m3),
145
- Number(typography.sizeMob.l1),
146
- Number(typography.sizeMob.l2),
147
- Number(typography.sizeMob.l3),
148
- ]}
149
- fontWeight={typography.weight.regular}
150
- sampleText={SampleText}
151
- fontFamily={typography.type.primary}
152
- />
153
- </div>
154
- </section>
155
-
156
- <TokenTable title="Global Token" description="Value">
157
- <TokenRow token="--fs-text-size-base" value="16px" />
158
- <TokenRow token="--fs-text-scale-desktop" value="1.25" />
159
- <TokenRow token="--fs-text-scale-mobile" value="1.13" />
160
- <TokenDivider />
161
- <TokenRow token="--fs-text-size-0" value="12px" />
162
- <TokenRow token="--fs-text-size-1" value="14px" />
163
- <TokenRow token="--fs-text-size-2" value="var(--fs-text-size-base)" />
164
- <TokenRow
165
- token="--fs-text-size-3"
166
- value="calc(var(--fs-text-size-2) * var(--fs-scale))"
167
- />
168
- <TokenRow
169
- token="--fs-text-size-4"
170
- value="calc(var(--fs-text-size-3) * var(--fs-scale))"
171
- />
172
- <TokenRow
173
- token="--fs-text-size-5"
174
- value="calc(var(--fs-text-size-4) * var(--fs-scale))"
175
- />
176
- <TokenRow
177
- token="--fs-text-size-6"
178
- value="calc(var(--fs-text-size-5) * var(--fs-scale))"
179
- />
180
- <TokenRow
181
- token="--fs-text-size-7"
182
- value="calc(var(--fs-text-size-6) * var(--fs-scale))"
183
- />
184
- <TokenRow
185
- token="--fs-text-size-8"
186
- value="calc(var(--fs-text-size-7) * var(--fs-scale))"
187
- />
188
- </TokenTable>
189
-
190
- ---
191
-
192
- ## Semantical tokens
193
-
194
- ### Sizes
195
-
196
- <TokenTable title="Global Token" description="Value">
197
- <TokenRow token="--fs-text-size-title-huge" value="var(--fs-text-size-7)" />
198
- <TokenRow token="--fs-text-size-title-page" value="var(--fs-text-size-6)" />
199
- <TokenRow
200
- token="--fs-text-size-title-product"
201
- value="var(--fs-text-size-4)"
202
- />
203
- <TokenRow
204
- token="--fs-text-size-title-section"
205
- value="var(--fs-text-size-4)"
206
- />
207
- <TokenRow
208
- token="--fs-text-size-title-subsection"
209
- value="var(--fs-text-size-4)"
210
- />
211
- <TokenRow token="--fs-text-size-title-mini" value="var(--fs-text-size-4)" />
212
- <TokenDivider />
213
- <TokenRow token="--fs-text-size-lead" value="var(--fs-text-size-3)" />
214
- <TokenRow token="--fs-text-size-menu" value="var(--fs-text-size-base)" />
215
- <TokenRow token="--fs-text-size-body" value="var(--fs-text-size-base)" />
216
- <TokenRow token="--fs-text-size-legend" value="var(--fs-text-size-1)" />
217
- <TokenRow token="--fs-text-size-tiny" value="var(--fs-text-size-0)" />
218
- </TokenTable>
219
-
220
- ### Max Lines
221
-
222
- <TokenTable title="Global Token" description="Value">
223
- <TokenRow token="--fs-text-max-lines" value="2" />
224
- </TokenTable>