From 0158d2f5db51d57f944c118c8160098c6d6d1745 Mon Sep 17 00:00:00 2001 From: Vasavi Kanamarlapudi Date: Tue, 6 Aug 2024 11:05:35 +0530 Subject: [PATCH] Digital ACT-191 ONEAPP-9314 story: added new page --- VDS.xcodeproj/project.pbxproj | 16 ++++ VDS/Components/PriceLockup/PriceLockup.swift | 76 +++++++++++++++++++ .../PriceLockup/PriceLockupChangeLog.txt | 28 +++++++ VDS/VDS.docc/VDS.md | 1 + 4 files changed, 121 insertions(+) create mode 100644 VDS/Components/PriceLockup/PriceLockup.swift create mode 100644 VDS/Components/PriceLockup/PriceLockupChangeLog.txt diff --git a/VDS.xcodeproj/project.pbxproj b/VDS.xcodeproj/project.pbxproj index 230ce227..8a9cf9ed 100644 --- a/VDS.xcodeproj/project.pbxproj +++ b/VDS.xcodeproj/project.pbxproj @@ -9,6 +9,8 @@ /* Begin PBXBuildFile section */ 1808BEBC2BA41C3200129230 /* CarouselScrollbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1808BEBB2BA41C3200129230 /* CarouselScrollbar.swift */; }; 1832AC572BA0791D008AE476 /* BreadcrumbCellItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1832AC562BA0791D008AE476 /* BreadcrumbCellItem.swift */; }; + 184023452C61E7AD00A412C8 /* PriceLockup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 184023442C61E7AD00A412C8 /* PriceLockup.swift */; }; + 184023472C61E7EC00A412C8 /* PriceLockupChangeLog.txt in Resources */ = {isa = PBXBuildFile; fileRef = 184023462C61E7EC00A412C8 /* PriceLockupChangeLog.txt */; }; 1842B1DF2BECE28B0021AFCA /* CalendarDateViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1842B1DE2BECE28B0021AFCA /* CalendarDateViewCell.swift */; }; 1842B1E12BECE7B70021AFCA /* CalendarHeaderReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1842B1E02BECE7B70021AFCA /* CalendarHeaderReusableView.swift */; }; 1842B1E32BECF0A20021AFCA /* CalendarFooterReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1842B1E22BECF0A10021AFCA /* CalendarFooterReusableView.swift */; }; @@ -210,6 +212,8 @@ 1808BEBB2BA41C3200129230 /* CarouselScrollbar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarouselScrollbar.swift; sourceTree = ""; }; 1808BEBF2BA456B700129230 /* CarouselScrollbarChangeLog.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = CarouselScrollbarChangeLog.txt; sourceTree = ""; }; 1832AC562BA0791D008AE476 /* BreadcrumbCellItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BreadcrumbCellItem.swift; sourceTree = ""; }; + 184023442C61E7AD00A412C8 /* PriceLockup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PriceLockup.swift; sourceTree = ""; }; + 184023462C61E7EC00A412C8 /* PriceLockupChangeLog.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = PriceLockupChangeLog.txt; sourceTree = ""; }; 1842B1DE2BECE28B0021AFCA /* CalendarDateViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarDateViewCell.swift; sourceTree = ""; }; 1842B1E02BECE7B70021AFCA /* CalendarHeaderReusableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarHeaderReusableView.swift; sourceTree = ""; }; 1842B1E22BECF0A10021AFCA /* CalendarFooterReusableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarFooterReusableView.swift; sourceTree = ""; }; @@ -458,6 +462,15 @@ path = CarouselScrollbar; sourceTree = ""; }; + 184023432C61E78D00A412C8 /* PriceLockup */ = { + isa = PBXGroup; + children = ( + 184023442C61E7AD00A412C8 /* PriceLockup.swift */, + 184023462C61E7EC00A412C8 /* PriceLockupChangeLog.txt */, + ); + path = PriceLockup; + sourceTree = ""; + }; 186D13C92BBA8A3500986B53 /* DropdownSelect */ = { isa = PBXGroup; children = ( @@ -686,6 +699,7 @@ EAD0688C2A55F801002E3A2D /* Loader */, 445BA07629C07ABA0036A7C5 /* Notification */, 71B23C2B2B91FA510027F7D9 /* Pagination */, + 184023432C61E78D00A412C8 /* PriceLockup */, EA89200B28B530F0006B9984 /* RadioBox */, EAF7F11428A1470D00B287F5 /* RadioButton */, 440B84C82BD8E0CE004A732A /* Table */, @@ -1185,6 +1199,7 @@ buildActionMask = 2147483647; files = ( EA3362042891E14D0071C351 /* VerizonNHGeTX-Bold.otf in Resources */, + 184023472C61E7EC00A412C8 /* PriceLockupChangeLog.txt in Resources */, EA3362072891E14D0071C351 /* VerizonNHGeDS-Regular.otf in Resources */, EA3362062891E14D0071C351 /* VerizonNHGeTX-Regular.otf in Resources */, EA3362052891E14D0071C351 /* VerizonNHGeDS-Bold.otf in Resources */, @@ -1394,6 +1409,7 @@ EAC58C0E2BED021600BA39FA /* Password.swift in Sources */, EAF7F0AD289B142900B287F5 /* StrikeThroughLabelAttribute.swift in Sources */, EAB5FEF12927F4AA00998C17 /* SelfSizingCollectionView.swift in Sources */, + 184023452C61E7AD00A412C8 /* PriceLockup.swift in Sources */, EA3361B8288B2AAA0071C351 /* ViewProtocol.swift in Sources */, EA3361A8288B23300071C351 /* UIColor.swift in Sources */, EA2DC9B42BE2C6FE004F58C5 /* TextField.swift in Sources */, diff --git a/VDS/Components/PriceLockup/PriceLockup.swift b/VDS/Components/PriceLockup/PriceLockup.swift new file mode 100644 index 00000000..745dc3c0 --- /dev/null +++ b/VDS/Components/PriceLockup/PriceLockup.swift @@ -0,0 +1,76 @@ +// +// PriceLockup.swift +// VDS +// +// Created by Kanamarlapudi, Vasavi on 06/08/24. +// + +import Foundation +import UIKit +import VDSCoreTokens + +@objcMembers +@objc(VDSPriceLockup) +open class PriceLockup: View { + + //-------------------------------------------------- + // MARK: - Initializers + //-------------------------------------------------- + required public init() { + super.init(frame: .zero) + } + + public override init(frame: CGRect) { + super.init(frame: .zero) + } + + public required init?(coder: NSCoder) { + super.init(coder: coder) + } + + //-------------------------------------------------- + // MARK: - Enums + //-------------------------------------------------- + + //-------------------------------------------------- + // MARK: - Public Properties + //-------------------------------------------------- + + //-------------------------------------------------- + // MARK: - Private Properties + //-------------------------------------------------- + + //-------------------------------------------------- + // MARK: - Configuration Properties + //-------------------------------------------------- + + //-------------------------------------------------- + // MARK: - Overrides + //-------------------------------------------------- + /// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations. + open override func setup() { + super.setup() + } + + /// Used to make changes to the View based off a change events or from local properties. + open override func updateView() { + super.updateView() + + } + + /// Resets to default settings. + open override func reset() { + super.reset() + shouldUpdateView = false + + shouldUpdateView = true + setNeedsUpdate() + } + + open override var accessibilityElements: [Any]? { + get { + return nil + } + set {} + } +} diff --git a/VDS/Components/PriceLockup/PriceLockupChangeLog.txt b/VDS/Components/PriceLockup/PriceLockupChangeLog.txt new file mode 100644 index 00000000..e06ee9f8 --- /dev/null +++ b/VDS/Components/PriceLockup/PriceLockupChangeLog.txt @@ -0,0 +1,28 @@ +MM/DD/YYYY +---------------- + +11/16/2023 +---------------- +- Added leadingText and trailingText to anatomy +- Added leadingText and trailingText props to configurations +- Added term prop to configurations +- Removed Suspended orange color and corresponding color tokens + +11/27/2023 +---------------- +- Removed “Delimiter” from Anatomy as “Term” includes both delimiter and term +- Added “Figma only” badge to leadingText and trailingText in Configurations +- Added superscript to “none” under term in Configurations +- Added Overflow section to Layout and spacing +- Updated Spacing to allow for leading and trailing text + +12/18/23 +---------------- +- Updated all pages with spec template updates from Doc Utility Expansion Pack +- Added Content props section to Config page + +1/15/24 +---------------- +- Clarified strikethrough does not apply to leading or trailing text +- Clarified and added to text overflow examples +- Correct Success to Savings in the configuration seciton diff --git a/VDS/VDS.docc/VDS.md b/VDS/VDS.docc/VDS.md index 6582ce4a..aa583ada 100755 --- a/VDS/VDS.docc/VDS.md +++ b/VDS/VDS.docc/VDS.md @@ -39,6 +39,7 @@ Using the system allows designers and developers to collaborate more easily and - ``Loader`` - ``Notification`` - ``Pagination`` +- ``PriceLockup`` - ``RadioBoxItem`` - ``RadioBoxGroup`` - ``RadioButton``