-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
1 parent
57d281d
commit 2942ffe
Showing
6 changed files
with
295 additions
and
12 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
28 changes: 28 additions & 0 deletions
28
...rc/commonMain/kotlin/com/mohamedrejeb/richeditor/paragraph/type/UnorderedListStyleType.kt
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,28 @@ | ||
package com.mohamedrejeb.richeditor.paragraph.type | ||
|
||
@ConsistentCopyVisibility | ||
public data class UnorderedListStyleType private constructor( | ||
internal val prefixes: List<String>, | ||
) { | ||
public companion object { | ||
public fun from(vararg prefix: String): UnorderedListStyleType { | ||
return UnorderedListStyleType(prefix.toList()) | ||
} | ||
|
||
public fun from(prefixes: List<String>): UnorderedListStyleType { | ||
return UnorderedListStyleType(prefixes) | ||
} | ||
|
||
public val Disc: UnorderedListStyleType = UnorderedListStyleType( | ||
prefixes = listOf("•") | ||
) | ||
|
||
public val Circle: UnorderedListStyleType = UnorderedListStyleType( | ||
prefixes = listOf("◦") | ||
) | ||
|
||
public val Square: UnorderedListStyleType = UnorderedListStyleType( | ||
prefixes = listOf("▪") | ||
) | ||
} | ||
} |
Oops, something went wrong.