Browse Source

Remove androidx copyrights that actually are irrelevant to the codebase ported

pull/685/head
Shagen Ogandzhanian 3 years ago
parent
commit
8a35ada373
  1. 15
      web/core/src/commonMain/kotlin/withWeb/Alignment.kt
  2. 17
      web/core/src/commonMain/kotlin/withWeb/Arrangement.kt
  3. 17
      web/core/src/commonMain/kotlin/withWeb/Color.kt
  4. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/box.kt
  5. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/button.kt
  6. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/column.kt
  7. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt
  8. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt
  9. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt
  10. 15
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt
  11. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt
  12. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt
  13. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt
  14. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/row.kt
  15. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt
  16. 15
      web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt
  17. 17
      web/core/src/commonMain/kotlin/withWeb/layouts/text.kt
  18. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt
  19. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt
  20. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt
  21. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt
  22. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt
  23. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt
  24. 15
      web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt
  25. 15
      web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt
  26. 17
      web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt
  27. 17
      web/core/src/commonMain/kotlin/withWeb/units/Dp.kt
  28. 33
      web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt
  29. 17
      web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt
  30. 16
      web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt
  31. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt
  32. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt
  33. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt
  34. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt
  35. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt
  36. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt
  37. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt
  38. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt
  39. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt
  40. 15
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt
  41. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt
  42. 17
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt
  43. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt
  44. 15
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt
  45. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt
  46. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt
  47. 15
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt
  48. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt
  49. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt
  50. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt
  51. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt
  52. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt
  53. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt
  54. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt
  55. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt
  56. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt
  57. 16
      web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt
  58. 17
      web/core/src/jsMain/kotlin/withWeb/Styles.kt
  59. 17
      web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt
  60. 16
      web/core/src/jsMain/kotlin/withWeb/layouts/box.kt
  61. 15
      web/core/src/jsMain/kotlin/withWeb/layouts/button.kt
  62. 16
      web/core/src/jsMain/kotlin/withWeb/layouts/column.kt
  63. 16
      web/core/src/jsMain/kotlin/withWeb/layouts/row.kt
  64. 17
      web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt
  65. 15
      web/core/src/jsMain/kotlin/withWeb/layouts/text.kt
  66. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt
  67. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt
  68. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt
  69. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt
  70. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt
  71. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt
  72. 15
      web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt
  73. 17
      web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt
  74. 18
      web/core/src/jsMain/resources/index.html
  75. 16
      web/core/src/jsTest/kotlin/DomSideEffectTests.kt
  76. 16
      web/core/src/jsTest/kotlin/InlineStyleTests.kt
  77. 16
      web/core/src/jsTest/kotlin/StaticComposableTests.kt
  78. 16
      web/core/src/jsTest/kotlin/TestUtils.kt
  79. 16
      web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt
  80. 16
      web/core/src/jsTest/kotlin/elements/AttributesTests.kt
  81. 16
      web/core/src/jsTest/kotlin/elements/EventTests.kt
  82. 16
      web/core/src/jsTest/kotlin/elements/TableTests.kt
  83. 17
      web/core/src/jvmMain/kotlin/withWeb/Alignment.kt
  84. 17
      web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt
  85. 17
      web/core/src/jvmMain/kotlin/withWeb/Color.kt
  86. 17
      web/core/src/jvmMain/kotlin/withWeb/Modifier.kt
  87. 15
      web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt
  88. 16
      web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt
  89. 17
      web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt
  90. 16
      web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt
  91. 16
      web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt
  92. 17
      web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt
  93. 15
      web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt
  94. 17
      web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt
  95. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt
  96. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt
  97. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt
  98. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt
  99. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt
  100. 17
      web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt
  101. Some files were not shown because too many files have changed in this diff Show More

15
web/core/src/commonMain/kotlin/withWeb/Alignment.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui
interface Alignment {

17
web/core/src/commonMain/kotlin/withWeb/Arrangement.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
object Arrangement {
@ -23,4 +8,4 @@ object Arrangement {
val Start = object : Horizontal {}
val Top = object : Vertical {}
val Bottom = object : Vertical {}
}
}

17
web/core/src/commonMain/kotlin/withWeb/Color.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.core.graphics
public data class Color(val red: Int, val green: Int, val blue: Int) {
@ -30,4 +15,4 @@ public data class Color(val red: Int, val green: Int, val blue: Int) {
val Cyan = Color(0, 0xFF, 0xFF)
val Magenta = Color(0xFF, 0, 0xFF)
}
}
}

17
web/core/src/commonMain/kotlin/withWeb/layouts/box.kt

@ -1,22 +1,7 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
import androidx.compose.runtime.Composable
@Composable
internal expect fun BoxActual(modifier: Modifier, content: @Composable () -> Unit)
internal expect fun BoxActual(modifier: Modifier, content: @Composable () -> Unit)

17
web/core/src/commonMain/kotlin/withWeb/layouts/button.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import org.jetbrains.compose.common.ui.Modifier
@ -23,4 +8,4 @@ expect fun ButtonActual(
modifier: Modifier,
onClick: () -> Unit,
content: @Composable () -> Unit
)
)

17
web/core/src/commonMain/kotlin/withWeb/layouts/column.kt

@ -1,22 +1,7 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
import androidx.compose.runtime.Composable
@Composable
internal expect fun ColumnActual(modifier: Modifier, content: @Composable () -> Unit)
internal expect fun ColumnActual(modifier: Modifier, content: @Composable () -> Unit)

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -22,4 +7,4 @@ import androidx.compose.runtime.Composable
fun Box(
modifier: Modifier = Modifier.Companion,
content: @Composable () -> Unit
) { BoxActual(modifier, content) }
) { BoxActual(modifier, content) }

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import org.jetbrains.compose.common.ui.Modifier
@ -25,4 +10,4 @@ fun Button(
content: @Composable () -> Unit
) {
ButtonActual(modifier, onClick, content)
}
}

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -22,4 +7,4 @@ import androidx.compose.runtime.Composable
fun Column(
modifier: Modifier = Modifier.Companion,
content: @Composable () -> Unit
) { ColumnActual(modifier, content) }
) { ColumnActual(modifier, content) }

15
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui
import org.jetbrains.compose.common.ui.unit.Dp

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -25,4 +10,4 @@ fun Row(
horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
verticalAlignment: Alignment.Vertical = Alignment.Top,
content: @Composable () -> Unit
) { RowActual(modifier, horizontalArrangement, verticalAlignment, content) }
) { RowActual(modifier, horizontalArrangement, verticalAlignment, content) }

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable
@ -33,4 +18,4 @@ fun Slider(
steps,
modifier
)
}
}

17
web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable
@ -28,4 +13,4 @@ fun Text(
size: TextUnit = TextUnit.Unspecified
) {
TextActual(text, modifier, color, size)
}
}

17
web/core/src/commonMain/kotlin/withWeb/layouts/row.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -25,4 +10,4 @@ internal expect fun RowActual(
horizontalArrangement: Arrangement.Horizontal,
verticalAlignment: Alignment.Vertical,
content: @Composable () -> Unit
)
)

17
web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt

@ -1,20 +1,5 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.compose.common.shapes
interface Shape
object CircleShape : Shape
object CircleShape : Shape

15
web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable

17
web/core/src/commonMain/kotlin/withWeb/layouts/text.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable
@ -26,4 +11,4 @@ expect fun TextActual(
modifier: Modifier,
color: Color,
size: TextUnit
)
)

17
web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt

@ -1,22 +1,7 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.unit.Dp
import org.jetbrains.compose.common.core.graphics.Color
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.border(size: Dp, color: Color): Modifier
expect fun Modifier.border(size: Dp, color: Color): Modifier

17
web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt

@ -1,20 +1,5 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.clickable(onClick: () -> Unit): Modifier
expect fun Modifier.clickable(onClick: () -> Unit): Modifier

17
web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt

@ -1,21 +1,6 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.draw
import org.jetbrains.compose.common.ui.Modifier
import jetbrains.compose.common.shapes.Shape
expect fun Modifier.clip(shape: Shape): Modifier
expect fun Modifier.clip(shape: Shape): Modifier

17
web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt

@ -1,20 +1,5 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.fillMaxHeight(fraction: Float): Modifier
expect fun Modifier.fillMaxHeight(fraction: Float): Modifier

17
web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt

@ -1,20 +1,5 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.fillMaxWidth(): Modifier
expect fun Modifier.fillMaxWidth(): Modifier

17
web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt

@ -1,21 +1,6 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.offset(x: Dp, y: Dp): Modifier
expect fun Modifier.offset(x: Dp, y: Dp): Modifier

15
web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.layout
import org.jetbrains.compose.common.ui.Modifier

15
web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui
import org.jetbrains.compose.common.ui.unit.Dp

17
web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt

@ -1,21 +1,6 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
import org.jetbrains.compose.common.ui.Modifier
expect fun Modifier.width(size: Dp): Modifier
expect fun Modifier.width(size: Dp): Modifier

17
web/core/src/commonMain/kotlin/withWeb/units/Dp.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.unit
data class Dp(val value: Float)
data class Dp(val value: Float)

33
web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt

@ -1,34 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.unit
data class IntSize(val width: Int, val height: Int)
data class IntSize(val width: Int, val height: Int)

17
web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.unit
enum class TextUnitType {
@ -25,4 +10,4 @@ data class TextUnit(val value: Float, val unitType: TextUnitType) {
companion object {
val Unspecified = TextUnit(Float.NaN, TextUnitType.Unspecified)
}
}
}

16
web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.unit
// TODO: this have to be in a separate package otherwise there's an error for in cross-module usage (for JVM target)

16
web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web
import androidx.compose.runtime.AbstractApplier

16
web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web
import androidx.compose.runtime.snapshots.ObserverHandle

16
web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web
import kotlinx.coroutines.CoroutineDispatcher

16
web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web
import androidx.compose.runtime.Composable

16
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.attributes
import org.w3c.dom.HTMLInputElement

16
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.attributes
import androidx.compose.runtime.DisposableEffectResult

16
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.attributes
import androidx.compose.web.events.WrappedCheckBoxInputEvent

16
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.attributes
sealed class InputType(val typeStr: String) {

16
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.attributes
import androidx.compose.web.events.GenericWrappedEvent

15
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("UNUSED")
package androidx.compose.web.css

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import androidx.compose.web.css.selectors.CSSSelector

17
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("UNUSED")
package androidx.compose.web.css
@ -40,4 +25,4 @@ enum class Direction {
override fun toString(): String = this.name
}
typealias LanguageCode = String
typealias LanguageCode = String

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
interface CSSMediaQuery {

15
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import org.w3c.dom.Window

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
fun StyleBuilder.opacity(value: Number) {

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import androidx.compose.web.css.selectors.CSSSelector

15
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("UNUSED")
package androidx.compose.web.css

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
abstract class Color : CustomStyleValue {

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import kotlin.properties.ReadOnlyProperty

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import androidx.compose.runtime.Composable

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css
import androidx.compose.web.css.selectors.CSSSelector

16
web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.css.selectors
import androidx.compose.web.css.LanguageCode

16
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.elements
import androidx.compose.runtime.Applier

16
web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.elements
import androidx.compose.runtime.Composable

16
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.elements
import androidx.compose.runtime.Composable

16
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.elements
import androidx.compose.runtime.Composable

16
web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.compose.web.events
import org.w3c.dom.DragEvent

17
web/core/src/jsMain/kotlin/withWeb/Styles.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.web.ui
import androidx.compose.web.css.justifyContent
@ -60,4 +45,4 @@ object Styles : StyleSheet() {
val composeWebAlignmentVerticalBottom by style {
alignItems(AlignItems.FlexEnd)
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.internal
import org.jetbrains.compose.common.ui.Modifier
@ -32,4 +17,4 @@ class ActualModifier : Modifier {
}
}
fun Modifier.castOrCreate(): ActualModifier = (this as? ActualModifier) ?: ActualModifier()
fun Modifier.castOrCreate(): ActualModifier = (this as? ActualModifier) ?: ActualModifier()

16
web/core/src/jsMain/kotlin/withWeb/layouts/box.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

15
web/core/src/jsMain/kotlin/withWeb/layouts/button.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import org.jetbrains.compose.common.ui.Modifier

16
web/core/src/jsMain/kotlin/withWeb/layouts/column.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

16
web/core/src/jsMain/kotlin/withWeb/layouts/row.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

17
web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable
@ -44,4 +29,4 @@ actual fun SliderActual(
}
}
) {}
}
}

15
web/core/src/jsMain/kotlin/withWeb/layouts/text.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable

17
web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.unit.Dp
@ -28,4 +13,4 @@ actual fun Modifier.border(size: Dp, color: Color): Modifier = castOrCreate().ap
add {
border(size.value.px, LineStyle.Solid, RGB(color.red, color.green, color.blue))
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.Modifier
@ -22,4 +7,4 @@ actual fun Modifier.clickable(onClick: () -> Unit): Modifier = castOrCreate().ap
addAttributeBuilder {
onClick { onClick() }
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.draw
import org.jetbrains.compose.common.ui.Modifier
@ -28,4 +13,4 @@ actual fun Modifier.clip(shape: Shape): Modifier = castOrCreate().apply {
borderRadius(50.percent)
}
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -24,4 +9,4 @@ actual fun Modifier.fillMaxHeight(fraction: Float): Modifier = castOrCreate().ap
add {
height((100 * fraction).percent)
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -24,4 +9,4 @@ actual fun Modifier.fillMaxWidth(): Modifier = castOrCreate().apply {
add {
width(100.percent)
}
}
}

17
web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
@ -27,4 +12,4 @@ actual fun Modifier.offset(x: Dp, y: Dp): Modifier = castOrCreate().apply {
marginLeft(x.value.px)
marginTop(y.value.px)
}
}
}

15
web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.layout
import org.jetbrains.compose.common.ui.Modifier

17
web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
@ -25,4 +10,4 @@ actual fun Modifier.width(size: Dp): Modifier = castOrCreate().apply {
add {
width(size.value.px)
}
}
}

18
web/core/src/jsMain/resources/index.html

@ -1,19 +1,3 @@
<!--
~ Copyright 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
@ -25,4 +9,4 @@
<div id="root"/>
<script src="web.js"></script>
</body>
</html>
</html>

16
web/core/src/jsTest/kotlin/DomSideEffectTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf

16
web/core/src/jsTest/kotlin/InlineStyleTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue

16
web/core/src/jsTest/kotlin/StaticComposableTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.compose.web.css.AlignContent
import androidx.compose.web.css.AlignItems
import androidx.compose.web.css.AlignSelf

16
web/core/src/jsTest/kotlin/TestUtils.kt

@ -12,22 +12,6 @@ import org.w3c.dom.MutationObserverInit
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
private val testScope = MainScope()
class TestScope : CoroutineScope by testScope {

16
web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.compose.web.renderComposable
import org.jetbrains.compose.common.core.graphics.Color
import org.jetbrains.compose.common.foundation.layout.Box

16
web/core/src/jsTest/kotlin/elements/AttributesTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package elements
import androidx.compose.runtime.mutableStateOf

16
web/core/src/jsTest/kotlin/elements/EventTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package elements
import androidx.compose.web.attributes.InputType

16
web/core/src/jsTest/kotlin/elements/TableTests.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package elements
import androidx.compose.web.attributes.Scope

17
web/core/src/jvmMain/kotlin/withWeb/Alignment.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui
import androidx.compose.ui.Alignment as JAlignment
@ -22,4 +7,4 @@ val Alignment.Vertical.implementation: JAlignment.Vertical
Alignment.Top -> JAlignment.Top
Alignment.CenterVertically -> JAlignment.CenterVertically
else -> JAlignment.Bottom
}
}

17
web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import androidx.compose.foundation.layout.Arrangement as JArrangement
@ -21,4 +6,4 @@ val Arrangement.Horizontal.implementation: JArrangement.Horizontal
get() = when (this) {
Arrangement.End -> JArrangement.End
else -> JArrangement.Start
}
}

17
web/core/src/jvmMain/kotlin/withWeb/Color.kt

@ -1,21 +1,6 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.core.graphics
import androidx.compose.ui.graphics.Color as JColor
val Color.implementation
get() = JColor(red, green, blue)
get() = JColor(red, green, blue)

17
web/core/src/jvmMain/kotlin/withWeb/Modifier.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui
import org.jetbrains.compose.common.ui.unit.Dp
@ -32,4 +17,4 @@ actual fun Modifier.padding(all: Dp): Modifier = castOrCreate().apply {
}
val Modifier.implementation
get() = castOrCreate().modifier
get() = castOrCreate().modifier

15
web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.internal
import androidx.compose.ui.Modifier as JModifier

16
web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

17
web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import org.jetbrains.compose.common.ui.Modifier
@ -29,4 +14,4 @@ actual fun ButtonActual(
JButton(onClick, modifier.implementation) {
content()
}
}
}

16
web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

16
web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt

@ -1,19 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier

17
web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.compose.common.shapes
import androidx.compose.ui.graphics.Shape as JShape
@ -22,4 +7,4 @@ val Shape.implementation: JShape
get() = when (this) {
CircleShape -> JCircleShape
else -> throw ClassCastException("Currently supporting only circle shape")
}
}

15
web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable

17
web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.material
import androidx.compose.runtime.Composable
@ -37,4 +22,4 @@ actual fun TextActual(
color = color.implementation,
fontSize = size.implementation
)
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.unit.Dp
@ -25,4 +10,4 @@ import androidx.compose.foundation.border
actual fun Modifier.border(size: Dp, color: Color): Modifier = castOrCreate().apply {
modifier = modifier.border(size.implementation, color.implementation)
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation
import org.jetbrains.compose.common.ui.Modifier
@ -21,4 +6,4 @@ import androidx.compose.foundation.clickable
actual fun Modifier.clickable(onClick: () -> Unit): Modifier = castOrCreate().apply {
modifier = modifier.clickable(onClick = onClick)
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.ui.draw
import org.jetbrains.compose.common.ui.Modifier
@ -23,4 +8,4 @@ import androidx.compose.ui.draw.clip
actual fun Modifier.clip(shape: Shape): Modifier = castOrCreate().apply {
modifier = modifier.clip(shape.implementation)
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -21,4 +6,4 @@ import androidx.compose.foundation.layout.fillMaxHeight
actual fun Modifier.fillMaxHeight(fraction: Float): Modifier = castOrCreate().apply {
modifier = modifier.fillMaxHeight(fraction)
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
@ -21,4 +6,4 @@ import androidx.compose.foundation.layout.fillMaxWidth
actual fun Modifier.fillMaxWidth(): Modifier = castOrCreate().apply {
modifier = modifier.fillMaxWidth()
}
}

17
web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt

@ -1,18 +1,3 @@
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
@ -23,4 +8,4 @@ import org.jetbrains.compose.common.ui.unit.implementation
actual fun Modifier.offset(x: Dp, y: Dp): Modifier = castOrCreate().apply {
modifier = modifier.offset(x.implementation, y.implementation)
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save