-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make states drop down pickers for US and Canada (#1395)
* Make US and Canada have dropdowns for states * Make dropdown hide after autofill * Fix default value in playground * update test * Add StringDataElement * update address ui test * fix UI tests * update test again * Update StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSpec.swift Co-authored-by: Yuki <[email protected]> * Clean up function for state dropdown * StringDataElement -> RawDataElement * Rename to TextOrDropdownElement Co-authored-by: Yuki <[email protected]>
- Loading branch information
1 parent
d10d8fb
commit 784a787
Showing
14 changed files
with
267 additions
and
26 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
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
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
36E1894A26FBAFC700A57EF4 /* InputFormColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36E1894926FBAFC700A57EF4 /* InputFormColors.swift */; }; | ||
36E1894C26FBD60200A57EF4 /* PhoneNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36E1894B26FBD60200A57EF4 /* PhoneNumber.swift */; }; | ||
36E1895027067A8700A57EF4 /* String+CountryEmoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36E1894F27067A8700A57EF4 /* String+CountryEmoji.swift */; }; | ||
61078DA628C28D2D007C7001 /* TextOrDropdownElement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61078DA528C28D2D007C7001 /* TextOrDropdownElement.swift */; }; | ||
614E0763284FDCE100FB70F4 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 614E0762284FDCE100FB70F4 /* [email protected] */; }; | ||
61A6294527E401C900C8DF08 /* CALayer+StripeUICore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61A6294427E401C900C8DF08 /* CALayer+StripeUICore.swift */; }; | ||
6B573C9727C5BEF00082C0B3 /* TextFieldElement+AccountFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B573C9627C5BEF00082C0B3 /* TextFieldElement+AccountFactory.swift */; }; | ||
|
@@ -132,6 +133,7 @@ | |
36E1894926FBAFC700A57EF4 /* InputFormColors.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InputFormColors.swift; sourceTree = "<group>"; }; | ||
36E1894B26FBD60200A57EF4 /* PhoneNumber.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhoneNumber.swift; sourceTree = "<group>"; }; | ||
36E1894F27067A8700A57EF4 /* String+CountryEmoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+CountryEmoji.swift"; sourceTree = "<group>"; }; | ||
61078DA528C28D2D007C7001 /* TextOrDropdownElement.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextOrDropdownElement.swift; sourceTree = "<group>"; }; | ||
614E0762284FDCE100FB70F4 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
61A6294427E401C900C8DF08 /* CALayer+StripeUICore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CALayer+StripeUICore.swift"; sourceTree = "<group>"; }; | ||
6B573C9627C5BEF00082C0B3 /* TextFieldElement+AccountFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TextFieldElement+AccountFactory.swift"; sourceTree = "<group>"; }; | ||
|
@@ -452,6 +454,7 @@ | |
E6752D8D26F420F70062B821 /* Section */, | ||
E6752D9326F420F70062B821 /* StaticElement.swift */, | ||
E6752D9426F420F70062B821 /* TextField */, | ||
61078DA528C28D2D007C7001 /* TextOrDropdownElement.swift */, | ||
); | ||
path = Elements; | ||
sourceTree = "<group>"; | ||
|
@@ -808,6 +811,7 @@ | |
files = ( | ||
E61ADAC5270E4916004ED998 /* AddressSpecProvider.swift in Sources */, | ||
D0CF912A273B104A00EE2E60 /* Button.swift in Sources */, | ||
61078DA628C28D2D007C7001 /* TextOrDropdownElement.swift in Sources */, | ||
D08FD70B270BD28D009FE060 /* UIBarButtonItem+StripeUICore.swift in Sources */, | ||
D0BEB3FC273CA7C60031D677 /* UIFont+StripeUICore.swift in Sources */, | ||
367199DC280756C800773613 /* UIStackView+StripeUICore.swift in Sources */, | ||
|
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.