-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2561 from Shopify/js-text-stack-docs
Updated the docs for POS Stack
- Loading branch information
Showing
31 changed files
with
140 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...s/ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/block-center-all.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<Stack | ||
direction="block" | ||
justifyContent="center" | ||
alignContent="center" | ||
alignItems="center" | ||
inlineSize="100%" | ||
paddingInline="450" | ||
blockSize="50%" | ||
gap="200" | ||
> | ||
<Button title="hello" /> | ||
<Button title="hello" /> | ||
</Stack> | ||
</Screen>; |
12 changes: 12 additions & 0 deletions
12
...i-extensions/docs/surfaces/point-of-sale/reference/examples/stack/block-space-between.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<Stack | ||
direction="block" | ||
justifyContent="space-between" | ||
paddingInline="450" | ||
blockSize="50%" | ||
gap="200" | ||
> | ||
<Button title="hello" /> | ||
<Button title="hello" /> | ||
</Stack> | ||
</Screen>; |
6 changes: 6 additions & 0 deletions
6
packages/ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/block.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<Stack direction="block" paddingInline="450" gap="200"> | ||
<Button title="hello" /> | ||
<Button title="hello" /> | ||
</Stack> | ||
</Screen>; |
10 changes: 0 additions & 10 deletions
10
...sions/docs/surfaces/point-of-sale/reference/examples/stack/horizontal-center-children.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/horizontal-default.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...tensions/docs/surfaces/point-of-sale/reference/examples/stack/horizontal-end-children.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ensions/docs/surfaces/point-of-sale/reference/examples/stack/horizontal-flex-children.tsx
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...nsions/docs/surfaces/point-of-sale/reference/examples/stack/inline-align-items-center.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<ScrollView> | ||
<Stack | ||
direction="inline" | ||
alignItems="center" | ||
alignContent="center" | ||
gap="200" | ||
> | ||
<Stack direction="block" gap="200"> | ||
<Button title="hello" /> | ||
<Button title="hello" /> | ||
</Stack> | ||
<Button title="hello" /> | ||
</Stack> | ||
</ScrollView> | ||
</Screen>; |
8 changes: 8 additions & 0 deletions
8
...xtensions/docs/surfaces/point-of-sale/reference/examples/stack/inline-center-children.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<ScrollView> | ||
<Stack direction="inline" gap="200" justifyContent="center"> | ||
<Button title="Hello" /> | ||
<Button title="Hello" /> | ||
</Stack> | ||
</ScrollView> | ||
</Screen>; |
8 changes: 8 additions & 0 deletions
8
...ges/ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/inline-default.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Screen name="Home" title="Home"> | ||
<ScrollView> | ||
<Stack direction="inline" gap="200"> | ||
<Button title="Hello" /> | ||
<Button title="Hello" /> | ||
</Stack> | ||
</ScrollView> | ||
</Screen>; |
8 changes: 8 additions & 0 deletions
8
...-extensions/docs/surfaces/point-of-sale/reference/examples/stack/inline-flex-children.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Screen name="Stack" title="Stack"> | ||
<ScrollView> | ||
<Stack direction="inline" gap="200" flexChildren> | ||
<Button title="Hello" /> | ||
<Button title="Hello" /> | ||
</Stack> | ||
</ScrollView> | ||
</Screen>; |
34 changes: 18 additions & 16 deletions
34
packages/ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/nested.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...ensions/docs/surfaces/point-of-sale/reference/examples/stack/vertical-bottom-children.tsx
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ensions/docs/surfaces/point-of-sale/reference/examples/stack/vertical-center-children.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/ui-extensions/docs/surfaces/point-of-sale/reference/examples/stack/vertical.tsx
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+62.5 KB
...ns/docs/surfaces/point-of-sale/screenshots/extension-stack-block-center-all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.1 KB
...docs/surfaces/point-of-sale/screenshots/extension-stack-block-space-between.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.8 KB
...ui-extensions/docs/surfaces/point-of-sale/screenshots/extension-stack-block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-83.7 KB
...docs/surfaces/point-of-sale/screenshots/extension-stack-horizontal-centered.png
Binary file not shown.
Binary file removed
BIN
-83.8 KB
...docs/surfaces/point-of-sale/screenshots/extension-stack-horizontal-flex-end.png
Binary file not shown.
Binary file removed
BIN
-83.5 KB
.../surfaces/point-of-sale/screenshots/extension-stack-horizontal-flexChildren.png
Binary file not shown.
Binary file removed
BIN
-83.1 KB
...tensions/docs/surfaces/point-of-sale/screenshots/extension-stack-horizontal.png
Binary file not shown.
Binary file added
BIN
+63.4 KB
...urfaces/point-of-sale/screenshots/extension-stack-inline-align-items-center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.4 KB
...ons/docs/surfaces/point-of-sale/screenshots/extension-stack-inline-centered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60 KB
...docs/surfaces/point-of-sale/screenshots/extension-stack-inline-flexChildren.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.3 KB
...i-extensions/docs/surfaces/point-of-sale/screenshots/extension-stack-inline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-21.2 KB
(78%)
...i-extensions/docs/surfaces/point-of-sale/screenshots/extension-stack-nested.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-86.8 KB
...ons/docs/surfaces/point-of-sale/screenshots/extension-stack-vertical-center.png
Binary file not shown.
Binary file removed
BIN
-85.6 KB
...s/docs/surfaces/point-of-sale/screenshots/extension-stack-vertical-flex-end.png
Binary file not shown.
Binary file removed
BIN
-85 KB
...extensions/docs/surfaces/point-of-sale/screenshots/extension-stack-vertical.png
Binary file not shown.