Skip to content

Commit

Permalink
MUI. Fix and unify all "classes" declarations #5
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed May 5, 2024
1 parent ccd1d92 commit ee82aa2
Show file tree
Hide file tree
Showing 127 changed files with 2 additions and 128 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/karakum/mui/Converter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ internal fun convertClasses(
return "typealias $classesName = mui.system.$classesName"
}

return "sealed external interface $classesName {\n${getClassesContent(source)}\n}\n\n" +
optionalJsNameDefaultAnnotation(content) +
return "sealed external interface $classesName {\n${getClassesContent(source)}\n}\n" +
"\n" +
"external val ${classesName.replaceFirstChar(Char::lowercase)}: $classesName\n"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ sealed external interface LoadingButtonClasses {
val startIconLoadingStart: ClassName
}

@JsName("default")
external val loadingButtonClasses: LoadingButtonClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/lab/Masonry.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface MasonryClasses {
val root: ClassName
}

@JsName("default")
external val masonryClasses: MasonryClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/lab/TabPanel.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface TabPanelClasses {
val root: ClassName
}

@JsName("default")
external val tabPanelClasses: TabPanelClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface TimelineConnectorClasses {
val root: ClassName
}

@JsName("default")
external val timelineConnectorClasses: TimelineConnectorClasses
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ sealed external interface TimelineContentClasses {
val positionAlternateReverse: ClassName
}

@JsName("default")
external val timelineContentClasses: TimelineContentClasses
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ sealed external interface TimelineDotClasses {
val outlinedSecondary: ClassName
}

@JsName("default")
external val timelineDotClasses: TimelineDotClasses
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface TimelineItemClasses {
val missingOppositeContent: ClassName
}

@JsName("default")
external val timelineItemClasses: TimelineItemClasses
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ sealed external interface TimelineOppositeContentClasses {
val positionAlternateReverse: ClassName
}

@JsName("default")
external val timelineOppositeContentClasses: TimelineOppositeContentClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface TimelineSeparatorClasses {
val root: ClassName
}

@JsName("default")
external val timelineSeparatorClasses: TimelineSeparatorClasses
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface AccordionClasses {
val region: ClassName
}

@JsName("default")
external val accordionClasses: AccordionClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface AccordionActionsClasses {
val spacing: ClassName
}

@JsName("default")
external val accordionActionsClasses: AccordionActionsClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface AccordionDetailsClasses {
val root: ClassName
}

@JsName("default")
external val accordionDetailsClasses: AccordionDetailsClasses
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ sealed external interface AccordionSummaryClasses {
val expandIconWrapper: ClassName
}

@JsName("default")
external val accordionSummaryClasses: AccordionSummaryClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Alert.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,4 @@ sealed external interface AlertClasses {
val action: ClassName
}

@JsName("default")
external val alertClasses: AlertClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface AlertTitleClasses {
val root: ClassName
}

@JsName("default")
external val alertTitleClasses: AlertTitleClasses
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ sealed external interface AppBarClasses {
val colorWarning: ClassName
}

@JsName("default")
external val appBarClasses: AppBarClasses
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@ sealed external interface AutocompleteClasses {
val groupUl: ClassName
}

@JsName("default")
external val autocompleteClasses: AutocompleteClasses
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ sealed external interface AvatarClasses {
val fallback: ClassName
}

@JsName("default")
external val avatarClasses: AvatarClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface AvatarGroupClasses {
val avatar: ClassName
}

@JsName("default")
external val avatarGroupClasses: AvatarGroupClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface BackdropClasses {
val invisible: ClassName
}

@JsName("default")
external val backdropClasses: BackdropClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Badge.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ sealed external interface BadgeClasses {
val overlapCircular: ClassName
}

@JsName("default")
external val badgeClasses: BadgeClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface BottomNavigationClasses {
val root: ClassName
}

@JsName("default")
external val bottomNavigationClasses: BottomNavigationClasses
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ sealed external interface BottomNavigationActionClasses {
val label: ClassName
}

@JsName("default")
external val bottomNavigationActionClasses: BottomNavigationActionClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Box.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface BoxClasses {
val root: ClassName
}

@JsName("default")
external val boxClasses: BoxClasses
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ sealed external interface BreadcrumbsClasses {
val separator: ClassName
}

@JsName("default")
external val breadcrumbsClasses: BreadcrumbsClasses
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,4 @@ sealed external interface ButtonClasses {
val colorWarning: ClassName
}

@JsName("default")
external val buttonClasses: ButtonClasses
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ sealed external interface ButtonBaseClasses {
val focusVisible: ClassName
}

@JsName("default")
external val buttonBaseClasses: ButtonBaseClasses
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,4 @@ sealed external interface ButtonGroupClasses {
val middleButton: ClassName
}

@JsName("default")
external val buttonGroupClasses: ButtonGroupClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Card.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface CardClasses {
val root: ClassName
}

@JsName("default")
external val cardClasses: CardClasses
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ sealed external interface CardActionAreaClasses {
val focusHighlight: ClassName
}

@JsName("default")
external val cardActionAreaClasses: CardActionAreaClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface CardActionsClasses {
val spacing: ClassName
}

@JsName("default")
external val cardActionsClasses: CardActionsClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface CardContentClasses {
val root: ClassName
}

@JsName("default")
external val cardContentClasses: CardContentClasses
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface CardHeaderClasses {
val subheader: ClassName
}

@JsName("default")
external val cardHeaderClasses: CardHeaderClasses
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ sealed external interface CardMediaClasses {
val img: ClassName
}

@JsName("default")
external val cardMediaClasses: CardMediaClasses
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ sealed external interface CheckboxClasses {
val sizeMedium: ClassName
}

@JsName("default")
external val checkboxClasses: CheckboxClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Chip.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,4 @@ sealed external interface ChipClasses {
val focusVisible: ClassName
}

@JsName("default")
external val chipClasses: ChipClasses
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ sealed external interface CircularProgressClasses {
val circleDisableShrink: ClassName
}

@JsName("default")
external val circularProgressClasses: CircularProgressClasses
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface CollapseClasses {
val wrapperInner: ClassName
}

@JsName("default")
external val collapseClasses: CollapseClasses
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ sealed external interface DialogClasses {
val paperFullScreen: ClassName
}

@JsName("default")
external val dialogClasses: DialogClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface DialogActionsClasses {
val spacing: ClassName
}

@JsName("default")
external val dialogActionsClasses: DialogActionsClasses
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sealed external interface DialogContentClasses {
val dividers: ClassName
}

@JsName("default")
external val dialogContentClasses: DialogContentClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface DialogContentTextClasses {
val root: ClassName
}

@JsName("default")
external val dialogContentTextClasses: DialogContentTextClasses
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sealed external interface DialogTitleClasses {
val root: ClassName
}

@JsName("default")
external val dialogTitleClasses: DialogTitleClasses
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ sealed external interface DividerClasses {
val wrapperVertical: ClassName
}

@JsName("default")
external val dividerClasses: DividerClasses
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ sealed external interface DrawerClasses {
val modal: ClassName
}

@JsName("default")
external val drawerClasses: DrawerClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Fab.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ sealed external interface FabClasses {
val sizeMedium: ClassName
}

@JsName("default")
external val fabClasses: FabClasses
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ sealed external interface FilledInputClasses {
val inputTypeSearch: ClassName
}

@JsName("default")
external val filledInputClasses: FilledInputClasses
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ sealed external interface FormControlClasses {
val fullWidth: ClassName
}

@JsName("default")
external val formControlClasses: FormControlClasses
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ sealed external interface FormControlLabelClasses {
val asterisk: ClassName
}

@JsName("default")
external val formControlLabelClasses: FormControlLabelClasses
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ sealed external interface FormGroupClasses {
val error: ClassName
}

@JsName("default")
external val formGroupClasses: FormGroupClasses
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ sealed external interface FormHelperTextClasses {
val required: ClassName
}

@JsName("default")
external val formHelperTextClasses: FormHelperTextClasses
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ sealed external interface FormLabelClasses {
val asterisk: ClassName
}

@JsName("default")
external val formLabelClasses: FormLabelClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Grid.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ sealed external interface GridClasses {
// val 'grid-xs-12': ClassName
}

@JsName("default")
external val gridClasses: GridClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Icon.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ sealed external interface IconClasses {
val fontSizeLarge: ClassName
}

@JsName("default")
external val iconClasses: IconClasses
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ sealed external interface IconButtonClasses {
val sizeLarge: ClassName
}

@JsName("default")
external val iconButtonClasses: IconButtonClasses
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ sealed external interface ImageListClasses {
val woven: ClassName
}

@JsName("default")
external val imageListClasses: ImageListClasses
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface ImageListItemClasses {
val quilted: ClassName
}

@JsName("default")
external val imageListItemClasses: ImageListItemClasses
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ sealed external interface ImageListItemBarClasses {
val actionIconActionPosLeft: ClassName
}

@JsName("default")
external val imageListItemBarClasses: ImageListItemBarClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Input.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ sealed external interface InputClasses {
val inputTypeSearch: ClassName
}

@JsName("default")
external val inputClasses: InputClasses
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ sealed external interface InputAdornmentClasses {
val sizeSmall: ClassName
}

@JsName("default")
external val inputAdornmentClasses: InputAdornmentClasses
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ sealed external interface InputBaseClasses {
val inputHiddenLabel: ClassName
}

@JsName("default")
external val inputBaseClasses: InputBaseClasses
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ sealed external interface InputLabelClasses {
val standard: ClassName
}

@JsName("default")
external val inputLabelClasses: InputLabelClasses
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ sealed external interface LinearProgressClasses {
val bar2Buffer: ClassName
}

@JsName("default")
external val linearProgressClasses: LinearProgressClasses
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/Link.classes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ sealed external interface LinkClasses {
val focusVisible: ClassName
}

@JsName("default")
external val linkClasses: LinkClasses
Loading

0 comments on commit ee82aa2

Please sign in to comment.