-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,353 additions
and
349 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/ui-extensions': patch | ||
'@shopify/ui-extensions-react': patch | ||
--- | ||
|
||
Move customer account ui extension from main to unstable branch. |
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
14 changes: 14 additions & 0 deletions
14
...t/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.ts
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,14 @@ | ||
import {CustomerAccountAction as BaseCustomerAccountAction} from '@shopify/ui-extensions/customer-account'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
|
||
export type CustomerAccountActionProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseCustomerAccountAction | ||
>; | ||
|
||
export const CustomerAccountAction = createRemoteReactComponent( | ||
BaseCustomerAccountAction, | ||
{fragmentProps: ['primaryAction', 'secondaryAction']}, | ||
); |
2 changes: 2 additions & 0 deletions
2
...-extensions-react/src/surfaces/customer-account/components/CustomerAccountAction/index.ts
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,2 @@ | ||
export {CustomerAccountAction} from './CustomerAccountAction'; | ||
export type {CustomerAccountActionProps} from './CustomerAccountAction'; |
13 changes: 13 additions & 0 deletions
13
...react/src/surfaces/customer-account/components/CustomerAccountCard/CustomerAccountCard.ts
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,13 @@ | ||
import {CustomerAccountCard as BaseCustomerAccountCard} from '@shopify/ui-extensions/customer-account'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
|
||
export type CustomerAccountCardProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseCustomerAccountCard | ||
>; | ||
|
||
export const CustomerAccountCard = createRemoteReactComponent( | ||
BaseCustomerAccountCard, | ||
); |
2 changes: 2 additions & 0 deletions
2
...ui-extensions-react/src/surfaces/customer-account/components/CustomerAccountCard/index.ts
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,2 @@ | ||
export {CustomerAccountCard} from './CustomerAccountCard'; | ||
export type {CustomerAccountCardProps} from './CustomerAccountCard'; |
11 changes: 11 additions & 0 deletions
11
...s/ui-extensions-react/src/surfaces/customer-account/components/PaymentIcon/PaymentIcon.ts
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,11 @@ | ||
import {PaymentIcon as BasePaymentIcon} from '@shopify/ui-extensions/customer-account'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
|
||
export type PaymentIconProps = ReactPropsFromRemoteComponentType< | ||
typeof BasePaymentIcon | ||
>; | ||
|
||
export const PaymentIcon = createRemoteReactComponent(BasePaymentIcon); |
2 changes: 2 additions & 0 deletions
2
packages/ui-extensions-react/src/surfaces/customer-account/components/PaymentIcon/index.ts
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,2 @@ | ||
export {PaymentIcon} from './PaymentIcon'; | ||
export type {PaymentIconProps} from './PaymentIcon'; |
11 changes: 11 additions & 0 deletions
11
...s/ui-extensions-react/src/surfaces/customer-account/components/PolicyModal/PolicyModal.ts
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,11 @@ | ||
import {PolicyModal as BasePolicyModal} from '@shopify/ui-extensions/customer-account'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
|
||
export type PolicyModalProps = ReactPropsFromRemoteComponentType< | ||
typeof BasePolicyModal | ||
>; | ||
|
||
export const PolicyModal = createRemoteReactComponent(BasePolicyModal); |
2 changes: 2 additions & 0 deletions
2
packages/ui-extensions-react/src/surfaces/customer-account/components/PolicyModal/index.ts
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,2 @@ | ||
export {PolicyModal} from './PolicyModal'; | ||
export type {PolicyModalProps} from './PolicyModal'; |
11 changes: 11 additions & 0 deletions
11
packages/ui-extensions-react/src/surfaces/customer-account/components/Thumbnail/Thumbnail.ts
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,11 @@ | ||
import {Thumbnail as BaseThumbnail} from '@shopify/ui-extensions/customer-account'; | ||
import { | ||
createRemoteReactComponent, | ||
ReactPropsFromRemoteComponentType, | ||
} from '@remote-ui/react'; | ||
|
||
export type ThumbnailProps = ReactPropsFromRemoteComponentType< | ||
typeof BaseThumbnail | ||
>; | ||
|
||
export const Thumbnail = createRemoteReactComponent(BaseThumbnail); |
2 changes: 2 additions & 0 deletions
2
packages/ui-extensions-react/src/surfaces/customer-account/components/Thumbnail/index.ts
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,2 @@ | ||
export {Thumbnail} from './Thumbnail'; | ||
export type {ThumbnailProps} from './Thumbnail'; |
6 changes: 6 additions & 0 deletions
6
packages/ui-extensions-react/src/surfaces/customer-account/components/index.ts
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 @@ | ||
export * from './CustomerAccountCard'; | ||
export * from './CustomerAccountAction'; | ||
export * from './PaymentIcon'; | ||
export * from './PolicyModal'; | ||
export * from './Thumbnail'; | ||
export * from './shared-checkout-components'; |
101 changes: 101 additions & 0 deletions
101
...i-extensions-react/src/surfaces/customer-account/components/shared-checkout-components.ts
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,101 @@ | ||
export { | ||
Banner, | ||
BlockLayout, | ||
BlockSpacer, | ||
BlockStack, | ||
Button, | ||
Checkbox, | ||
Choice, | ||
ChoiceList, | ||
DateField, | ||
DatePicker, | ||
Divider, | ||
Form, | ||
Grid, | ||
GridItem, | ||
Heading, | ||
HeadingGroup, | ||
Icon, | ||
Image, | ||
InlineLayout, | ||
InlineStack, | ||
InlineSpacer, | ||
Link, | ||
List, | ||
ListItem, | ||
Pressable, | ||
Select, | ||
SkeletonImage, | ||
SkeletonText, | ||
SkeletonTextBlock, | ||
Spinner, | ||
Stepper, | ||
Tag, | ||
Text, | ||
TextBlock, | ||
TextField, | ||
View, | ||
Modal, | ||
Popover, | ||
ScrollView, | ||
Tooltip, | ||
} from '../../checkout/components'; | ||
|
||
export type { | ||
BannerProps, | ||
BlockLayoutProps, | ||
BlockSpacerProps, | ||
BlockStackProps, | ||
ButtonProps, | ||
CheckboxProps, | ||
ChoiceProps, | ||
ChoiceListProps, | ||
DatePickerProps, | ||
DateFieldProps, | ||
DividerProps, | ||
FormProps, | ||
GridProps, | ||
GridItemSize, | ||
GridItemProps, | ||
HeadingProps, | ||
HeadingGroupProps, | ||
IconProps, | ||
ImageProps, | ||
InlineLayoutProps, | ||
InlineStackProps, | ||
InlineSpacerProps, | ||
LinkProps, | ||
ListProps, | ||
ListItemProps, | ||
ModalProps, | ||
PopoverProps, | ||
PressableProps, | ||
SelectProps, | ||
SkeletonImageProps, | ||
SkeletonTextProps, | ||
SkeletonTextBlockProps, | ||
SpinnerProps, | ||
StepperProps, | ||
TagProps, | ||
TextProps, | ||
TextBlockProps, | ||
TextFieldProps, | ||
ViewProps, | ||
ViewPosition, | ||
ViewPositionType, | ||
ViewTranslate, | ||
ViewCoordinate, | ||
AccessibilityRole, | ||
ViewLikeAccessibilityRole, | ||
NonPresentationalAccessibilityRole, | ||
Autocomplete, | ||
AutocompleteField, | ||
AutocompleteGroup, | ||
Status, | ||
Size, | ||
Spacing, | ||
Alignment, | ||
Appearance, | ||
ScrollViewProps, | ||
TooltipProps, | ||
} from '../../checkout'; |
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
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
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
Oops, something went wrong.