-
Notifications
You must be signed in to change notification settings - Fork 0
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 #114 from salute-developers/release/01-11-2024
Release 01-11-2024
- Loading branch information
Showing
83 changed files
with
3,334 additions
and
236 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
SDDSComponents/Assets.xcassets/textFieldChipIcon.imageset/Contents.json
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 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon-24×24.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.44 KB
SDDSComponents/Assets.xcassets/textFieldChipIcon.imageset/icon-24×24.pdf
Binary file not shown.
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
102 changes: 68 additions & 34 deletions
102
SDDSComponents/SDDSComponents.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nts/SDDSComponentsPreview/Assets.xcassets/checkboxOff.imageset/CheckBoxDark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ts/SDDSComponentsPreview/Assets.xcassets/checkboxOff.imageset/CheckBoxOff 1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
3 changes: 3 additions & 0 deletions
3
...s/SDDSComponentsPreview/Assets.xcassets/radioboxOff.imageset/RadioBoxDark 1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nts/SDDSComponentsPreview/Assets.xcassets/radioboxOff.imageset/RadioBoxDark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
87 changes: 87 additions & 0 deletions
87
SDDSComponents/SDDSComponentsPreview/Components/SDDSTextArea/SDDSTextArea+Preview.swift
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,87 @@ | ||
import Foundation | ||
import SDDSComponents | ||
import SwiftUI | ||
import SDDSServTheme | ||
|
||
// MARK: - Preview | ||
|
||
struct SDDSTextAreaPreview: PreviewProvider { | ||
static var previews: some View { | ||
let chips = (1...12).map { index in | ||
ChipData( | ||
title: "Label", | ||
isEnabled: true, | ||
iconImage: nil, | ||
buttonImage: Image.image("textFieldChipIcon"), | ||
appearance: .textArea, | ||
size: TextAreaChipSize.medium, | ||
accessibility: ChipAccessibility(), | ||
removeAction: {} | ||
) | ||
} | ||
|
||
return Group { | ||
SDDSTextArea( | ||
value: .constant(.single("")), | ||
title: "Title", | ||
optionalTitle: "optional", | ||
placeholder: "Placeholder", | ||
caption: "caption", | ||
counter: "counter", | ||
disabled: false, | ||
readOnly: false, | ||
style: .default, | ||
labelPlacement: .none, | ||
required: true, | ||
requiredPlacement: .left, | ||
appearance: .defaultAppearance, | ||
size: SDDSTextAreaSize.medium, | ||
chipGroupSize: SDDSTextAreaSize.large.chipGroupSize, | ||
layout: .default, | ||
iconActionViewProvider: ViewProvider(iconActionView) | ||
) | ||
.previewDisplayName("Outer Label") | ||
.previewLayout(.sizeThatFits) | ||
.padding() | ||
|
||
SDDSTextArea( | ||
value: .constant(.multiple("", chips)), | ||
title: "Title", | ||
optionalTitle: "optional", | ||
placeholder: "Placeholder", | ||
caption: "caption", | ||
counter: "counter", | ||
disabled: false, | ||
style: .default, | ||
labelPlacement: .none, | ||
required: true, | ||
requiredPlacement: .left, | ||
appearance: .defaultAppearance, | ||
size: SDDSTextAreaSize.large, | ||
chipGroupSize: SDDSTextAreaSize.large.chipGroupSize, | ||
layout: .default, | ||
iconActionViewProvider: ViewProvider(iconActionView) | ||
) | ||
.previewDisplayName("Multiple – Default Label") | ||
.previewLayout(.sizeThatFits) | ||
.padding() | ||
} | ||
} | ||
|
||
@ViewBuilder | ||
private static var iconView: some View { | ||
Image.image("textFieldIcon") | ||
.renderingMode(.template) | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
} | ||
|
||
@ViewBuilder | ||
private static var iconActionView: some View { | ||
Image.image("textFieldIconAction") | ||
.renderingMode(.template) | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
|
||
} | ||
} |
Oops, something went wrong.