Merge branch 'feature/font_renaming' into 'develop'
Font Declaration Renaming See merge request BPHV_MIPS/mvm_core_ui!433
This commit is contained in:
commit
9c643b7cc5
@ -71,7 +71,7 @@ open class CaretLink: Button, MVMCoreUIViewConstrainingProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override func updateView(_ size: CGFloat) {
|
public override func updateView(_ size: CGFloat) {
|
||||||
titleLabel?.font = MFStyler.fontB1()
|
titleLabel?.font = MFStyler.fontBoldBodySmall()
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
|
|||||||
@ -6,9 +6,9 @@
|
|||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
|
||||||
open class RadioSwatch: Control {
|
open class RadioSwatch: Control {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
|
|||||||
@ -16,7 +16,7 @@ open class NumericIndicatorView: CarouselIndicator {
|
|||||||
|
|
||||||
/// Text to display the current count of total pages for viewing.
|
/// Text to display the current count of total pages for viewing.
|
||||||
open var pageCount: Label = {
|
open var pageCount: Label = {
|
||||||
let label = Label.commonLabelB2(true)
|
let label = Label.createLabelRegularBodySmall(true)
|
||||||
label.isAccessibilityElement = false
|
label.isAccessibilityElement = false
|
||||||
label.setContentCompressionResistancePriority(.required, for: .vertical)
|
label.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
label.textAlignment = .center
|
label.textAlignment = .center
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public let checkbox = Checkbox()
|
public let checkbox = Checkbox()
|
||||||
public let label = Label.commonLabelB2(true)
|
public let label = Label.createLabelRegularBodySmall(true)
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import Foundation
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
let headlineBody = HeadlineBody(frame: .zero)
|
let headlineBody = HeadlineBody(frame: .zero)
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|||||||
@ -14,10 +14,10 @@ import Foundation
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
let label1 = Label.commonLabelB2(true)
|
let label1 = Label.createLabelRegularBodySmall(true)
|
||||||
let label2 = Label.commonLabelB2(true)
|
let label2 = Label.createLabelRegularBodySmall(true)
|
||||||
let label3 = Label.commonLabelB2(true)
|
let label3 = Label.createLabelRegularBodySmall(true)
|
||||||
let label4 = Label.commonLabelB2(true)
|
let label4 = Label.createLabelRegularBodySmall(true)
|
||||||
let arrow = Arrow(frame: .zero)
|
let arrow = Arrow(frame: .zero)
|
||||||
let arrowAndLabel2Stack: Stack<StackModel>
|
let arrowAndLabel2Stack: Stack<StackModel>
|
||||||
|
|
||||||
@ -69,9 +69,9 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
label1.styleB2(true)
|
label1.styleRegularBodySmall(true)
|
||||||
label2.styleB2(true)
|
label2.styleRegularBodySmall(true)
|
||||||
label3.styleB2(true)
|
label3.styleRegularBodySmall(true)
|
||||||
label4.styleB2(true)
|
label4.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
@objcMembers open class ListLeftVariableIconWithRightCaret: TableViewCell {
|
@objcMembers open class ListLeftVariableIconWithRightCaret: TableViewCell {
|
||||||
@ -15,8 +14,8 @@ import UIKit
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
let leftImage = LoadImageView(pinnedEdges: .all)
|
let leftImage = LoadImageView(pinnedEdges: .all)
|
||||||
let leftLabel = Label.commonLabelB2(true)
|
let leftLabel = Label.createLabelRegularBodySmall(true)
|
||||||
let rightLabel = Label.commonLabelB2(true)
|
let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
@ -64,7 +63,7 @@ import UIKit
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.styleB2(true)
|
leftLabel.styleRegularBodySmall(true)
|
||||||
rightLabel.styleB2(true)
|
rightLabel.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,10 @@ import Foundation
|
|||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
|
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
let eyebrow = Label.commonLabelB3(true)
|
let eyebrow = Label.createLabelRegularMicro(true)
|
||||||
let headline = Label.commonLabelH3(true)
|
let headline = Label.createLabelBoldTitleMedium(true)
|
||||||
let subHeadline = Label.commonLabelB1(true)
|
let subHeadline = Label.createLabelBoldBodySmall(true)
|
||||||
let body = Label.commonLabelB2(true)
|
let body = Label.createLabelRegularBodySmall(true)
|
||||||
let link = Link()
|
let link = Link()
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
@ -62,9 +62,9 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
eyebrow.styleB3(true)
|
eyebrow.styleRegularMicro(true)
|
||||||
headline.styleH3(true)
|
headline.styleBoldTitleMedium(true)
|
||||||
subHeadline.styleB1(true)
|
subHeadline.styleBoldBodySmall(true)
|
||||||
body.styleB2(true)
|
body.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
@objcMembers open class ListRVWheel: TableViewCell {
|
@objcMembers open class ListRVWheel: TableViewCell {
|
||||||
let wheel = Wheel(frame: .zero)
|
let wheel = Wheel(frame: .zero)
|
||||||
let leftLabel = Label.commonLabelB1(true)
|
let leftLabel = Label.createLabelBoldBodySmall(true)
|
||||||
let rightLabel = Label.commonLabelB2(true)
|
let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
@ -54,8 +54,8 @@ import Foundation
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.styleB1(true)
|
leftLabel.styleBoldBodySmall(true)
|
||||||
rightLabel.styleB2(true)
|
rightLabel.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
public override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
public override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import Foundation
|
|||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
let leftLabel = Label.commonLabelB1(true)
|
let leftLabel = Label.createLabelBoldBodySmall(true)
|
||||||
let rightImage = LoadImageView(pinnedEdges: .all)
|
let rightImage = LoadImageView(pinnedEdges: .all)
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
|
|
||||||
@ -57,6 +57,6 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.styleB1(true)
|
leftLabel.styleBoldBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import Foundation
|
|||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
public let eyebrowHeadlineBodyLink = EyebrowHeadlineBodyLink(frame: .zero)
|
public let eyebrowHeadlineBodyLink = EyebrowHeadlineBodyLink(frame: .zero)
|
||||||
public let arrow = Arrow(frame: .zero)
|
public let arrow = Arrow(frame: .zero)
|
||||||
public let rightLabel = Label.commonLabelB2(true)
|
public let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
private let stack: Stack<StackModel>
|
private let stack: Stack<StackModel>
|
||||||
private let arrowStackItem: StackItem
|
private let arrowStackItem: StackItem
|
||||||
private let rightLabelStackItem: StackItem
|
private let rightLabelStackItem: StackItem
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import Foundation
|
|||||||
private let stack: Stack<StackModel>
|
private let stack: Stack<StackModel>
|
||||||
public let headlineBody = HeadlineBody(frame: .zero)
|
public let headlineBody = HeadlineBody(frame: .zero)
|
||||||
public let arrow = Arrow(frame: .zero)
|
public let arrow = Arrow(frame: .zero)
|
||||||
public let rightLabel = Label.commonLabelB2(true)
|
public let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
let arrowAndRightLabelStack: Stack<StackModel>
|
let arrowAndRightLabelStack: Stack<StackModel>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,8 +14,8 @@ import Foundation
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
public var stack: Stack<StackModel>
|
public var stack: Stack<StackModel>
|
||||||
public let leftLabel = Label.commonLabelB1(true)
|
public let leftLabel = Label.createLabelBoldBodySmall(true)
|
||||||
public let rightLabel = Label.commonLabelB2(true)
|
public let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
public let bar = Line()
|
public let bar = Line()
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
@ -61,8 +61,8 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.styleB1(true)
|
leftLabel.styleBoldBodySmall(true)
|
||||||
rightLabel.styleB2(true)
|
rightLabel.styleRegularBodySmall(true)
|
||||||
bar.setStyle(.heavy)
|
bar.setStyle(.heavy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,15 +13,15 @@ import Foundation
|
|||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
let leftHeadline1 = Label.commonLabelB1(true)
|
let leftHeadline1 = Label.createLabelBoldBodySmall(true)
|
||||||
let leftHeadline2 = Label.commonLabelB1(true)
|
let leftHeadline2 = Label.createLabelBoldBodySmall(true)
|
||||||
let leftHeadline3 = Label.commonLabelB1(true)
|
let leftHeadline3 = Label.createLabelBoldBodySmall(true)
|
||||||
let leftBody = Label.commonLabelB2(true)
|
let leftBody = Label.createLabelRegularBodySmall(true)
|
||||||
let leftLink = Link()
|
let leftLink = Link()
|
||||||
let rightHeadline1 = Label.commonLabelB1(true)
|
let rightHeadline1 = Label.createLabelBoldBodySmall(true)
|
||||||
let rightHeadline2 = Label.commonLabelB1(true)
|
let rightHeadline2 = Label.createLabelBoldBodySmall(true)
|
||||||
let rightHeadline3 = Label.commonLabelB1(true)
|
let rightHeadline3 = Label.createLabelBoldBodySmall(true)
|
||||||
let rightBody = Label.commonLabelB2(true)
|
let rightBody = Label.createLabelRegularBodySmall(true)
|
||||||
let rightLink = Link()
|
let rightLink = Link()
|
||||||
let containingStack: Stack<StackModel>
|
let containingStack: Stack<StackModel>
|
||||||
|
|
||||||
@ -97,14 +97,14 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
leftHeadline1.styleB1(true)
|
leftHeadline1.styleBoldBodySmall(true)
|
||||||
leftHeadline2.styleB1(true)
|
leftHeadline2.styleBoldBodySmall(true)
|
||||||
leftHeadline3.styleB1(true)
|
leftHeadline3.styleBoldBodySmall(true)
|
||||||
leftBody.styleB2(true)
|
leftBody.styleRegularBodySmall(true)
|
||||||
rightHeadline1.styleB1(true)
|
rightHeadline1.styleBoldBodySmall(true)
|
||||||
rightHeadline2.styleB1(true)
|
rightHeadline2.styleBoldBodySmall(true)
|
||||||
rightHeadline3.styleB1(true)
|
rightHeadline3.styleBoldBodySmall(true)
|
||||||
rightBody.styleB2(true)
|
rightBody.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
public override class func estimatedHeight(with molecule: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
public override class func estimatedHeight(with molecule: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||||
|
|||||||
@ -13,10 +13,10 @@ import Foundation
|
|||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
public let leftHeadline = Label.commonLabelB1(true)
|
public let leftHeadline = Label.createLabelBoldBodySmall(true)
|
||||||
public let leftBody = Label.commonLabelB2(true)
|
public let leftBody = Label.createLabelRegularBodySmall(true)
|
||||||
public let rightLabel = Label.commonLabelB2(true)
|
public let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
public let rightSubLabel = Label.commonLabelB2(true)
|
public let rightSubLabel = Label.createLabelRegularBodySmall(true)
|
||||||
|
|
||||||
public let view = MVMCoreUICommonViewsUtility.commonView()
|
public let view = MVMCoreUICommonViewsUtility.commonView()
|
||||||
public let leftVerticalStack: UIStackView
|
public let leftVerticalStack: UIStackView
|
||||||
@ -86,9 +86,9 @@ import Foundation
|
|||||||
super.reset()
|
super.reset()
|
||||||
leftVerticalStack.reset()
|
leftVerticalStack.reset()
|
||||||
rightVerticalStack.reset()
|
rightVerticalStack.reset()
|
||||||
leftHeadline.styleB1(true)
|
leftHeadline.styleBoldBodySmall(true)
|
||||||
leftBody.styleB2(true)
|
leftBody.styleRegularBodySmall(true)
|
||||||
rightLabel.styleB2(true)
|
rightLabel.styleRegularBodySmall(true)
|
||||||
rightSubLabel.styleB2(true)
|
rightSubLabel.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,8 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers open class ListTwoColumnPriceDetails: TableViewCell {
|
@objcMembers open class ListTwoColumnPriceDetails: TableViewCell {
|
||||||
|
|
||||||
let leftLabel = Label.commonLabelB2(true)
|
let leftLabel = Label.createLabelRegularBodySmall(true)
|
||||||
let rightLabel = Label.commonLabelB2(true)
|
let rightLabel = Label.createLabelRegularBodySmall(true)
|
||||||
let view = MVMCoreUICommonViewsUtility.commonView()
|
let view = MVMCoreUICommonViewsUtility.commonView()
|
||||||
|
|
||||||
// MARK: - MFViewProtocol
|
// MARK: - MFViewProtocol
|
||||||
@ -44,8 +44,8 @@ import UIKit
|
|||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.reset()
|
leftLabel.reset()
|
||||||
rightLabel.reset()
|
rightLabel.reset()
|
||||||
leftLabel.styleB2(true)
|
leftLabel.styleRegularBodySmall(true)
|
||||||
rightLabel.styleB2(true)
|
rightLabel.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||||
|
|||||||
@ -13,8 +13,8 @@ import Foundation
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
public var stack: Stack<StackModel>
|
public var stack: Stack<StackModel>
|
||||||
public let headline = Label.commonLabelB1(true)
|
public let headline = Label.createLabelBoldBodySmall(true)
|
||||||
public let body = Label.commonLabelB2(true)
|
public let body = Label.createLabelRegularBodySmall(true)
|
||||||
|
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||||
@ -50,7 +50,7 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
headline.styleB1(true)
|
headline.styleBoldBodySmall(true)
|
||||||
body.styleB2(true)
|
body.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,8 +13,8 @@ import Foundation
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
public var stack: Stack<StackModel>
|
public var stack: Stack<StackModel>
|
||||||
public let headline = Label.commonLabelH3(true)
|
public let headline = Label.createLabelBoldTitleMedium(true)
|
||||||
public let body = Label.commonLabelB2(true)
|
public let body = Label.createLabelRegularBodySmall(true)
|
||||||
|
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||||
@ -50,7 +50,7 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
headline.styleH3(true)
|
headline.styleBoldTitleMedium(true)
|
||||||
body.styleB2(true)
|
body.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,8 +13,8 @@ import Foundation
|
|||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
public var stack: Stack<StackModel>
|
public var stack: Stack<StackModel>
|
||||||
public let headline = Label.commonLabelH3(true)
|
public let headline = Label.createLabelBoldTitleMedium(true)
|
||||||
public let body = Label.commonLabelB2(true)
|
public let body = Label.createLabelRegularBodySmall(true)
|
||||||
|
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||||
@ -50,7 +50,7 @@ import Foundation
|
|||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
headline.styleH3(true)
|
headline.styleBoldTitleMedium(true)
|
||||||
body.styleB2(true)
|
body.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import UIKit
|
|||||||
|
|
||||||
open override func setupView() {
|
open override func setupView() {
|
||||||
super.setupView()
|
super.setupView()
|
||||||
headlineBody.headlineLabel.styleB1(true)
|
headlineBody.headlineLabel.styleBoldBodySmall(true)
|
||||||
headlineBody.spaceBetweenLabelsConstant = 0
|
headlineBody.spaceBetweenLabelsConstant = 0
|
||||||
imageView.addSizeConstraintsForAspectRatio = true
|
imageView.addSizeConstraintsForAspectRatio = true
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ import UIKit
|
|||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
headlineBody.reset()
|
headlineBody.reset()
|
||||||
headlineBody.headlineLabel.styleB1(true)
|
headlineBody.headlineLabel.styleBoldBodySmall(true)
|
||||||
headlineBody.spaceBetweenLabelsConstant = 0
|
headlineBody.spaceBetweenLabelsConstant = 0
|
||||||
imageView.reset()
|
imageView.reset()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,8 +92,8 @@ import UIKit
|
|||||||
|
|
||||||
private func setDefaultState() {
|
private func setDefaultState() {
|
||||||
|
|
||||||
headlineBodyButton.headlineBody.headlineLabel.font = MFStyler.fontH3()
|
headlineBodyButton.headlineBody.headlineLabel.font = MFStyler.fontBoldTitleMedium()
|
||||||
headlineBodyButton.headlineBody.messageLabel.font = MFStyler.fontB3()
|
headlineBodyButton.headlineBody.messageLabel.font = MFStyler.fontRegularMicro()
|
||||||
imageLoader.imageView.contentMode = .scaleAspectFit
|
imageLoader.imageView.contentMode = .scaleAspectFit
|
||||||
imageLoader.addSizeConstraintsForAspectRatio = true
|
imageLoader.addSizeConstraintsForAspectRatio = true
|
||||||
buttonHeaderPadding = PaddingTwo
|
buttonHeaderPadding = PaddingTwo
|
||||||
|
|||||||
@ -10,10 +10,10 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers public class CornerLabels: View {
|
@objcMembers public class CornerLabels: View {
|
||||||
var middleView: UIView?
|
var middleView: UIView?
|
||||||
let topLeftLabel = Label.commonLabelB1(true)
|
let topLeftLabel = Label.createLabelBoldBodySmall(true)
|
||||||
let topRightLabel = Label.commonLabelB1(true)
|
let topRightLabel = Label.createLabelBoldBodySmall(true)
|
||||||
let bottomLeftLabel = Label.commonLabelB3(true)
|
let bottomLeftLabel = Label.createLabelRegularMicro(true)
|
||||||
let bottomRightLabel = Label.commonLabelB3(true)
|
let bottomRightLabel = Label.createLabelRegularMicro(true)
|
||||||
let topLabelsView = MVMCoreUICommonViewsUtility.commonView()
|
let topLabelsView = MVMCoreUICommonViewsUtility.commonView()
|
||||||
let bottomLabelsView = MVMCoreUICommonViewsUtility.commonView()
|
let bottomLabelsView = MVMCoreUICommonViewsUtility.commonView()
|
||||||
|
|
||||||
@ -151,10 +151,10 @@ import UIKit
|
|||||||
}
|
}
|
||||||
|
|
||||||
func styleDefault() {
|
func styleDefault() {
|
||||||
topLeftLabel.styleB1(true)
|
topLeftLabel.styleBoldBodySmall(true)
|
||||||
topRightLabel.styleB1(true)
|
topRightLabel.styleBoldBodySmall(true)
|
||||||
bottomLeftLabel.styleB3(true)
|
bottomLeftLabel.styleRegularMicro(true)
|
||||||
bottomRightLabel.styleB3(true)
|
bottomRightLabel.styleRegularMicro(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
public class func estimatedHeight(forRow json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
public class func estimatedHeight(forRow json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
public class BGImageHeadlineBodyButtonModel: ContainerModel, MoleculeModelProtocol {
|
public class BGImageHeadlineBodyButtonModel: ContainerModel, MoleculeModelProtocol {
|
||||||
|
|||||||
@ -14,9 +14,9 @@ import UIKit
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public let stack = Stack<StackModel>(frame: .zero)
|
public let stack = Stack<StackModel>(frame: .zero)
|
||||||
public let eyebrow = Label.commonLabelB3(true)
|
public let eyebrow = Label.createLabelRegularMicro(true)
|
||||||
public let headline = Label.commonLabelB1(true)
|
public let headline = Label.createLabelBoldBodySmall(true)
|
||||||
public let body = Label.commonLabelB2(true)
|
public let body = Label.createLabelRegularBodySmall(true)
|
||||||
public let link = Link()
|
public let link = Link()
|
||||||
|
|
||||||
var castModel: EyebrowHeadlineBodyLinkModel? {
|
var castModel: EyebrowHeadlineBodyLinkModel? {
|
||||||
@ -48,9 +48,9 @@ import UIKit
|
|||||||
open override func reset() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
stack.reset()
|
stack.reset()
|
||||||
eyebrow.styleB3(true)
|
eyebrow.styleRegularMicro(true)
|
||||||
headline.styleB1(true)
|
headline.styleBoldBodySmall(true)
|
||||||
body.styleB2(true)
|
body.styleRegularBodySmall(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -10,8 +10,8 @@ import UIKit
|
|||||||
|
|
||||||
open class HeadlineBody: View {
|
open class HeadlineBody: View {
|
||||||
|
|
||||||
let headlineLabel = Label.commonLabelH2(true)
|
let headlineLabel = Label.createLabelBoldTitleLarge(true)
|
||||||
let messageLabel = Label.commonLabelB2(true)
|
let messageLabel = Label.createLabelRegularBodySmall(true)
|
||||||
var spaceBetweenLabelsConstant = PaddingOne
|
var spaceBetweenLabelsConstant = PaddingOne
|
||||||
var spaceBetweenLabels: NSLayoutConstraint?
|
var spaceBetweenLabels: NSLayoutConstraint?
|
||||||
var leftConstraintTitle: NSLayoutConstraint?
|
var leftConstraintTitle: NSLayoutConstraint?
|
||||||
@ -39,26 +39,26 @@ open class HeadlineBody: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func styleLandingPageHeader() {
|
func styleLandingPageHeader() {
|
||||||
headlineLabel.styleH1(true)
|
headlineLabel.styleTitle2XLarge(true)
|
||||||
messageLabel.styleB2(true)
|
messageLabel.styleRegularBodySmall(true)
|
||||||
spaceBetweenLabelsConstant = PaddingTwo
|
spaceBetweenLabelsConstant = PaddingTwo
|
||||||
}
|
}
|
||||||
|
|
||||||
func stylePageHeader() {
|
func stylePageHeader() {
|
||||||
headlineLabel.styleH2(true)
|
headlineLabel.styleBoldTitleLarge(true)
|
||||||
messageLabel.styleB2(true)
|
messageLabel.styleRegularBodySmall(true)
|
||||||
spaceBetweenLabelsConstant = PaddingOne
|
spaceBetweenLabelsConstant = PaddingOne
|
||||||
}
|
}
|
||||||
|
|
||||||
func styleListItem() {
|
func styleListItem() {
|
||||||
headlineLabel.styleB1(true)
|
headlineLabel.styleBoldBodySmall(true)
|
||||||
messageLabel.styleB2(true)
|
messageLabel.styleRegularBodySmall(true)
|
||||||
spaceBetweenLabelsConstant = 0
|
spaceBetweenLabelsConstant = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func styleListItemDivider() {
|
func styleListItemDivider() {
|
||||||
headlineLabel.styleH3(true)
|
headlineLabel.styleBoldTitleMedium(true)
|
||||||
messageLabel.styleB2(true)
|
messageLabel.styleRegularBodySmall(true)
|
||||||
spaceBetweenLabelsConstant = 0
|
spaceBetweenLabelsConstant = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -82,8 +82,8 @@ import UIKit
|
|||||||
|
|
||||||
private func defaultState() {
|
private func defaultState() {
|
||||||
|
|
||||||
headlineBody.headlineLabel.font = MFStyler.fontH3()
|
headlineBody.headlineLabel.font = MFStyler.fontBoldTitleMedium()
|
||||||
headlineBody.messageLabel.font = MFStyler.fontB3()
|
headlineBody.messageLabel.font = MFStyler.fontRegularMicro()
|
||||||
button.styleSecondary()
|
button.styleSecondary()
|
||||||
button.isHidden = false
|
button.isHidden = false
|
||||||
buttonHeadlinePadding = PaddingTwo
|
buttonHeadlinePadding = PaddingTwo
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
open class StringAndMoleculeView: View {
|
open class StringAndMoleculeView: View {
|
||||||
var label = Label.commonLabelB2(true)
|
var label = Label.createLabelRegularBodySmall(true)
|
||||||
var molecule: MoleculeViewProtocol
|
var molecule: MoleculeViewProtocol
|
||||||
|
|
||||||
var leftWidthConstraint: NSLayoutConstraint?
|
var leftWidthConstraint: NSLayoutConstraint?
|
||||||
|
|||||||
@ -6,8 +6,6 @@
|
|||||||
// Copyright © 2019 Verizon Wireless. All rights reserved.
|
// Copyright © 2019 Verizon Wireless. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
import MVMCore.MVMCoreViewProtocol
|
import MVMCore.MVMCoreViewProtocol
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user