@ -66,7 +66,7 @@ fun NiaCatalog() {
LazyColumn (
LazyColumn (
modifier = Modifier . fillMaxSize ( ) ,
modifier = Modifier . fillMaxSize ( ) ,
contentPadding = contentPadding ,
contentPadding = contentPadding ,
verticalArrangement = Arrangement . spacedBy ( 16. dp )
verticalArrangement = Arrangement . spacedBy ( 16. dp ) ,
) {
) {
item {
item {
Text (
Text (
@ -93,19 +93,19 @@ fun NiaCatalog() {
FlowRow ( mainAxisSpacing = 16. dp ) {
FlowRow ( mainAxisSpacing = 16. dp ) {
NiaButton (
NiaButton (
onClick = { } ,
onClick = { } ,
enabled = false
enabled = false ,
) {
) {
Text ( text = " Disabled " )
Text ( text = " Disabled " )
}
}
NiaOutlinedButton (
NiaOutlinedButton (
onClick = { } ,
onClick = { } ,
enabled = false
enabled = false ,
) {
) {
Text ( text = " Disabled " )
Text ( text = " Disabled " )
}
}
NiaTextButton (
NiaTextButton (
onClick = { } ,
onClick = { } ,
enabled = false
enabled = false ,
) {
) {
Text ( text = " Disabled " )
Text ( text = " Disabled " )
}
}
@ -119,21 +119,21 @@ fun NiaCatalog() {
text = { Text ( text = " Enabled " ) } ,
text = { Text ( text = " Enabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
NiaOutlinedButton (
NiaOutlinedButton (
onClick = { } ,
onClick = { } ,
text = { Text ( text = " Enabled " ) } ,
text = { Text ( text = " Enabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
NiaTextButton (
NiaTextButton (
onClick = { } ,
onClick = { } ,
text = { Text ( text = " Enabled " ) } ,
text = { Text ( text = " Enabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
}
}
}
}
@ -146,7 +146,7 @@ fun NiaCatalog() {
text = { Text ( text = " Disabled " ) } ,
text = { Text ( text = " Disabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
NiaOutlinedButton (
NiaOutlinedButton (
onClick = { } ,
onClick = { } ,
@ -154,7 +154,7 @@ fun NiaCatalog() {
text = { Text ( text = " Disabled " ) } ,
text = { Text ( text = " Disabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
NiaTextButton (
NiaTextButton (
onClick = { } ,
onClick = { } ,
@ -162,7 +162,7 @@ fun NiaCatalog() {
text = { Text ( text = " Disabled " ) } ,
text = { Text ( text = " Disabled " ) } ,
leadingIcon = {
leadingIcon = {
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
Icon ( imageVector = NiaIcons . Add , contentDescription = null )
}
} ,
)
)
}
}
}
}
@ -173,14 +173,14 @@ fun NiaCatalog() {
text = { Text ( " Enabled " ) } ,
text = { Text ( " Enabled " ) } ,
items = listOf ( " Item 1 " , " Item 2 " , " Item 3 " ) ,
items = listOf ( " Item 1 " , " Item 2 " , " Item 3 " ) ,
onItemClick = { } ,
onItemClick = { } ,
itemText = { item -> Text ( item ) }
itemText = { item -> Text ( item ) } ,
)
)
NiaDropdownMenuButton (
NiaDropdownMenuButton (
text = { Text ( " Disabled " ) } ,
text = { Text ( " Disabled " ) } ,
items = listOf ( " Item 1 " , " Item 2 " , " Item 3 " ) ,
items = listOf ( " Item 1 " , " Item 2 " , " Item 3 " ) ,
onItemClick = { } ,
onItemClick = { } ,
itemText = { item -> Text ( item ) } ,
itemText = { item -> Text ( item ) } ,
enabled = false
enabled = false ,
)
)
}
}
}
}
@ -191,25 +191,25 @@ fun NiaCatalog() {
NiaFilterChip (
NiaFilterChip (
selected = firstChecked ,
selected = firstChecked ,
onSelectedChange = { checked -> firstChecked = checked } ,
onSelectedChange = { checked -> firstChecked = checked } ,
label = { Text ( text = " Enabled " ) }
label = { Text ( text = " Enabled " ) } ,
)
)
var secondChecked by remember { mutableStateOf ( true ) }
var secondChecked by remember { mutableStateOf ( true ) }
NiaFilterChip (
NiaFilterChip (
selected = secondChecked ,
selected = secondChecked ,
onSelectedChange = { checked -> secondChecked = checked } ,
onSelectedChange = { checked -> secondChecked = checked } ,
label = { Text ( text = " Enabled " ) }
label = { Text ( text = " Enabled " ) } ,
)
)
NiaFilterChip (
NiaFilterChip (
selected = false ,
selected = false ,
onSelectedChange = { } ,
onSelectedChange = { } ,
enabled = false ,
enabled = false ,
label = { Text ( text = " Disabled " ) }
label = { Text ( text = " Disabled " ) } ,
)
)
NiaFilterChip (
NiaFilterChip (
selected = true ,
selected = true ,
onSelectedChange = { } ,
onSelectedChange = { } ,
enabled = false ,
enabled = false ,
label = { Text ( text = " Disabled " ) }
label = { Text ( text = " Disabled " ) } ,
)
)
}
}
}
}
@ -223,15 +223,15 @@ fun NiaCatalog() {
icon = {
icon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
checkedIcon = {
checkedIcon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . Bookmark ) ,
painter = painterResource ( id = NiaIcons . Bookmark ) ,
contentDescription = null
contentDescription = null ,
)
)
}
} ,
)
)
var secondChecked by remember { mutableStateOf ( true ) }
var secondChecked by remember { mutableStateOf ( true ) }
NiaIconToggleButton (
NiaIconToggleButton (
@ -240,15 +240,15 @@ fun NiaCatalog() {
icon = {
icon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
checkedIcon = {
checkedIcon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . Bookmark ) ,
painter = painterResource ( id = NiaIcons . Bookmark ) ,
contentDescription = null
contentDescription = null ,
)
)
}
} ,
)
)
NiaIconToggleButton (
NiaIconToggleButton (
checked = false ,
checked = false ,
@ -256,16 +256,16 @@ fun NiaCatalog() {
icon = {
icon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
checkedIcon = {
checkedIcon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . Bookmark ) ,
painter = painterResource ( id = NiaIcons . Bookmark ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
enabled = false
enabled = false ,
)
)
NiaIconToggleButton (
NiaIconToggleButton (
checked = true ,
checked = true ,
@ -273,16 +273,16 @@ fun NiaCatalog() {
icon = {
icon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
painter = painterResource ( id = NiaIcons . BookmarkBorder ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
checkedIcon = {
checkedIcon = {
Icon (
Icon (
painter = painterResource ( id = NiaIcons . Bookmark ) ,
painter = painterResource ( id = NiaIcons . Bookmark ) ,
contentDescription = null
contentDescription = null ,
)
)
} ,
} ,
enabled = false
enabled = false ,
)
)
}
}
}
}
@ -294,21 +294,21 @@ fun NiaCatalog() {
expanded = firstExpanded ,
expanded = firstExpanded ,
onExpandedChange = { expanded -> firstExpanded = expanded } ,
onExpandedChange = { expanded -> firstExpanded = expanded } ,
compactText = { Text ( text = " Compact view " ) } ,
compactText = { Text ( text = " Compact view " ) } ,
expandedText = { Text ( text = " Expanded view " ) }
expandedText = { Text ( text = " Expanded view " ) } ,
)
)
var secondExpanded by remember { mutableStateOf ( true ) }
var secondExpanded by remember { mutableStateOf ( true ) }
NiaViewToggleButton (
NiaViewToggleButton (
expanded = secondExpanded ,
expanded = secondExpanded ,
onExpandedChange = { expanded -> secondExpanded = expanded } ,
onExpandedChange = { expanded -> secondExpanded = expanded } ,
compactText = { Text ( text = " Compact view " ) } ,
compactText = { Text ( text = " Compact view " ) } ,
expandedText = { Text ( text = " Expanded view " ) }
expandedText = { Text ( text = " Expanded view " ) } ,
)
)
NiaViewToggleButton (
NiaViewToggleButton (
expanded = false ,
expanded = false ,
onExpandedChange = { } ,
onExpandedChange = { } ,
compactText = { Text ( text = " Disabled " ) } ,
compactText = { Text ( text = " Disabled " ) } ,
expandedText = { Text ( text = " Disabled " ) } ,
expandedText = { Text ( text = " Disabled " ) } ,
enabled = false
enabled = false ,
)
)
}
}
}
}
@ -330,7 +330,7 @@ fun NiaCatalog() {
text = { Text ( text = " Topic 1 " . uppercase ( ) ) } ,
text = { Text ( text = " Topic 1 " . uppercase ( ) ) } ,
followText = { Text ( text = " Follow " ) } ,
followText = { Text ( text = " Follow " ) } ,
unFollowText = { Text ( text = " Unfollow " ) } ,
unFollowText = { Text ( text = " Unfollow " ) } ,
browseText = { Text ( text = " Browse topic " ) }
browseText = { Text ( text = " Browse topic " ) } ,
)
)
var secondFollowed by remember { mutableStateOf ( true ) }
var secondFollowed by remember { mutableStateOf ( true ) }
NiaTopicTag (
NiaTopicTag (
@ -345,7 +345,7 @@ fun NiaCatalog() {
text = { Text ( text = " Topic 2 " . uppercase ( ) ) } ,
text = { Text ( text = " Topic 2 " . uppercase ( ) ) } ,
followText = { Text ( text = " Follow " ) } ,
followText = { Text ( text = " Follow " ) } ,
unFollowText = { Text ( text = " Unfollow " ) } ,
unFollowText = { Text ( text = " Unfollow " ) } ,
browseText = { Text ( text = " Browse topic " ) }
browseText = { Text ( text = " Browse topic " ) } ,
)
)
NiaTopicTag (
NiaTopicTag (
expanded = false ,
expanded = false ,
@ -355,7 +355,7 @@ fun NiaCatalog() {
onUnfollowClick = { } ,
onUnfollowClick = { } ,
onBrowseClick = { } ,
onBrowseClick = { } ,
text = { Text ( text = " Disabled " . uppercase ( ) ) } ,
text = { Text ( text = " Disabled " . uppercase ( ) ) } ,
enabled = false
enabled = false ,
)
)
}
}
}
}
@ -368,7 +368,7 @@ fun NiaCatalog() {
NiaTab (
NiaTab (
selected = selectedTabIndex == index ,
selected = selectedTabIndex == index ,
onClick = { selectedTabIndex = index } ,
onClick = { selectedTabIndex = index } ,
text = { Text ( text = title ) }
text = { Text ( text = title ) } ,
)
)
}
}
}
}
@ -380,12 +380,12 @@ fun NiaCatalog() {
val icons = listOf (
val icons = listOf (
NiaIcons . UpcomingBorder ,
NiaIcons . UpcomingBorder ,
NiaIcons . MenuBookBorder ,
NiaIcons . MenuBookBorder ,
NiaIcons . BookmarksBorder
NiaIcons . BookmarksBorder ,
)
)
val selectedIcons = listOf (
val selectedIcons = listOf (
NiaIcons . Upcoming ,
NiaIcons . Upcoming ,
NiaIcons . MenuBook ,
NiaIcons . MenuBook ,
NiaIcons . Bookmarks
NiaIcons . Bookmarks ,
)
)
val tagIcon = NiaIcons . Tag
val tagIcon = NiaIcons . Tag
NiaNavigationBar {
NiaNavigationBar {
@ -397,7 +397,7 @@ fun NiaCatalog() {
} else {
} else {
Icon (
Icon (
painter = painterResource ( id = icons [ index ] ) ,
painter = painterResource ( id = icons [ index ] ) ,
contentDescription = item
contentDescription = item ,
)
)
}
}
} ,
} ,
@ -407,13 +407,13 @@ fun NiaCatalog() {
} else {
} else {
Icon (
Icon (
painter = painterResource ( id = selectedIcons [ index ] ) ,
painter = painterResource ( id = selectedIcons [ index ] ) ,
contentDescription = item
contentDescription = item ,
)
)
}
}
} ,
} ,
label = { Text ( item ) } ,
label = { Text ( item ) } ,
selected = selectedItem == index ,
selected = selectedItem == index ,
onClick = { selectedItem = index }
onClick = { selectedItem = index } ,
)
)
}
}
}
}