Skip to content

Commit 8693129

Browse files
committed
Rename all kebab-case methods to camelCase
Closes #751
1 parent 53bb5b8 commit 8693129

File tree

4 files changed

+149
-77
lines changed

4 files changed

+149
-77
lines changed

coreGeneric/src/main/scala/japgolly/scalajs/react/vdom/HtmlStyles.scala

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,14 @@ trait HtmlStyles {
241241
* The background extends to the outside edge of the border (but underneath
242242
* the border in z-ordering).
243243
*/
244-
final def `border-box` = this := "border-box"
244+
final def borderBox = this := "border-box"
245245
/**
246246
* No background is drawn below the border (background extends to the
247247
* outside edge of the padding).
248248
*/
249-
final def `padding-box` = this := "border-box"
249+
final def paddingBox = this := "border-box"
250250
/** The background is painted within (clipped to) the content box. */
251-
final def `content-box` = this := "content-box"
251+
final def contentBox = this := "content-box"
252252
}
253253

254254
/**
@@ -264,14 +264,14 @@ trait HtmlStyles {
264264
* The background extends to the outside edge of the border (but underneath
265265
* the border in z-ordering).
266266
*/
267-
final def `border-box` = this := "border-box"
267+
final def borderBox = this := "border-box"
268268
/**
269269
* No background is drawn below the border (background extends to the
270270
* outside edge of the padding).
271271
*/
272-
final def `padding-box` = this := "padding-box"
272+
final def paddingBox = this := "padding-box"
273273
/** The background is painted within (clipped to) the content box. */
274-
final def `content-box` = this := "content-box"
274+
final def contentBox = this := "content-box"
275275
}
276276
/**
277277
* The background-size CSS property specifies the size of the background
@@ -506,13 +506,13 @@ trait HtmlStyles {
506506
* height properties are measured including only the content, but not the
507507
* border, margin, or padding.
508508
*/
509-
final def `content-box` = this := "content-box"
509+
final def contentBox = this := "content-box"
510510
/**
511511
* The width and height properties include the padding and border, but not
512512
* the margin. This is the box model used by Internet Explorer when the
513513
* document is in Quirks mode.
514514
*/
515-
final def `border-box` = this := "border-box"
515+
final def borderBox = this := "border-box"
516516
}
517517

518518
/**
@@ -567,7 +567,7 @@ trait HtmlStyles {
567567
/** No cursor is rendered. */
568568
def none = this := "none"
569569
/** A context menu is available under the cursor. */
570-
def `context-menu` = this := "context-menu"
570+
def contextMenu = this := "context-menu"
571571
/** Indicating help is available. */
572572
def help = this := "help"
573573
/** E.g. used when hovering over links, typically a hand. */
@@ -586,55 +586,55 @@ trait HtmlStyles {
586586
/** Indicating text can be selected, typically an I-beam. */
587587
def text = this := "text"
588588
/** Indicating that vertical text can be selected, typically a sideways I-beam */
589-
def `vertical-text` = this := "vertical-text"
589+
def verticalText = this := "vertical-text"
590590
/** Indicating an alias or shortcut is to be created. */
591591
def alias = this := "alias"
592592
/** Indicating that something can be copied */
593593
def copy = this := "copy"
594594
/** The hoevered object may be moved. */
595595
def move = this := "move"
596596
/** Cursor showing that a drop is not allowed at the current location. */
597-
def `no-drop` = this := "no-drop"
597+
def noDrop = this := "no-drop"
598598
/** Cursor showing that something cannot be done. */
599-
def `not-allowed` = this := "not-allowed"
599+
def notAllowed = this := "not-allowed"
600600
/** Cursor showing that something can be scrolled in any direction (panned). */
601-
def `all-scroll` = this := "all-scroll"
601+
def allScroll = this := "all-scroll"
602602
/**
603603
* The item/column can be resized horizontally. Often rendered as arrows
604604
* pointing left and right with a vertical separating.
605605
*/
606-
def `col-resize` = this := "col-resize"
606+
def colResize = this := "col-resize"
607607
/**
608608
* The item/row can be resized vertically. Often rendered as arrows pointing
609609
* up and down with a horizontal bar separating them.
610610
*/
611-
def `row-resize` = this := "row-resize"
611+
def rowResize = this := "row-resize"
612612
/** The top edge is to be moved. */
613-
def `n-resize` = this := "n-resize"
613+
def nResize = this := "n-resize"
614614
/** The right edge is to be moved. */
615-
def `e-resize` = this := "e-resize"
615+
def eResize = this := "e-resize"
616616
/** The bottom edge is to be moved. */
617-
def `s-resize` = this := "s-resize"
617+
def sResize = this := "s-resize"
618618
/** The left edge is to be moved. */
619-
def `w-resize` = this := "w-resize"
619+
def wResize = this := "w-resize"
620620
/** The top-right corner is to be moved. */
621-
def `ne-resize` = this := "ne-resize"
621+
def neResize = this := "ne-resize"
622622
/** The top-left corner is to be moved. */
623-
def `nw-resize` = this := "nw-resize"
623+
def nwResize = this := "nw-resize"
624624
/** The bottom-right corner is to be moved. */
625-
def `se-resize` = this := "se-resize"
625+
def seResize = this := "se-resize"
626626
/** The bottom-left corner is to be moved. */
627-
def `sw-resize` = this := "sw-resize"
627+
def swResize = this := "sw-resize"
628628

629-
def `ew-resize` = this := "ew-resize"
630-
def `ns-resize` = this := "ns-resize"
631-
def `nesw-resize` = this := "nesw-resize"
632-
def `nwse-resize` = this := "nwse-resize"
629+
def ewResize = this := "ew-resize"
630+
def nsResize = this := "ns-resize"
631+
def neswResize = this := "nesw-resize"
632+
def nwseResize = this := "nwse-resize"
633633

634634
/** Indicates that something can be zoomed (magnified) in. */
635-
def `zoom-in` = this := "zoom-in"
635+
def zoomIn = this := "zoom-in"
636636
/** Indicates that something can be zoomed (magnified) out. */
637-
def `zoom-out` = this := "zoom-out"
637+
def zoomOut = this := "zoom-out"
638638
/** Indicates that something can be grabbed (dragged to be moved). */
639639
def grab = this := "grab"
640640
/** Indicates that something can be grabbed (dragged to be moved). */
@@ -722,36 +722,36 @@ trait HtmlStyles {
722722
* The element generates a block box for the content and a separate
723723
* list-item inline box.
724724
*/
725-
final def `list-item` = this := "list-item"
725+
final def listItem = this := "list-item"
726726
/**
727727
* The element generates a block element box that will be flowed with
728728
* surrounding content as if it were a single inline box.
729729
*/
730-
final def `inline-block` = this := "inline-block"
730+
final def inlineBlock = this := "inline-block"
731731
/**
732732
* The inline-table value does not have a direct mapping in HTML. It behaves
733733
* like a table HTML element, but as an inline box, rather than a
734734
* block-level box. Inside the table box is a block-level context
735735
*/
736-
final def `inline-table` = this := "inline-table"
736+
final def inlineTable = this := "inline-table"
737737
/** Behaves like the table HTML element. It defines a block-level box. */
738738
final def table = this := "table"
739739
/** Behaves like the caption HTML element. */
740-
final def `table-caption` = this := "table-caption"
740+
final def tableCaption = this := "table-caption"
741741
/** Behaves like the td HTML element */
742-
final def `table-cell` = this := "table-cell"
742+
final def tableCell = this := "table-cell"
743743
/** These elements behave like the corresponding col HTML elements. */
744-
final def `table-column` = this := "table-column"
744+
final def tableColumn = this := "table-column"
745745
/** These elements behave like the corresponding colgroup HTML elements. */
746-
final def `table-column-group` = this := "table-column-group"
746+
final def tableColumnGroup = this := "table-column-group"
747747
/** These elements behave like the corresponding tfoot HTML elements */
748-
final def `table-footer-group` = this := "table-footer-group"
748+
final def tableFooterGroup = this := "table-footer-group"
749749
/** These elements behave like the corresponding thead HTML elements */
750-
final def `table-header-group` = this := "table-header-group"
750+
final def tableHeaderGroup = this := "table-header-group"
751751
/** Behaves like the tr HTML element */
752-
final def `table-row` = this := "table-row"
752+
final def tableRow = this := "table-row"
753753
/** These elements behave like the corresponding tbody HTML elements */
754-
final def `table-row-group` = this := "table-row-group"
754+
final def tableRowGroup = this := "table-row-group"
755755
/**
756756
* The element behaves like a block element and lays out its content according
757757
* to the flexbox model.
@@ -761,7 +761,7 @@ trait HtmlStyles {
761761
* The element behaves like an inline element and lays out its content
762762
* according to the flexbox model.
763763
*/
764-
final def `inline-flex` = this := "inline-flex"
764+
final def inlineFlex = this := "inline-flex"
765765
/** Behaves like a grid layout container */
766766
final def grid = this := "grid"
767767
}
@@ -888,7 +888,7 @@ trait HtmlStyles {
888888
* Indicates that normally unbreakable words may be broken at arbitrary
889889
* points if there are no otherwise acceptable break points in the line.
890890
*/
891-
final def `break-word` = this := "break-word"
891+
final def breakWord = this := "break-word"
892892
}
893893

894894
object overflowWrap extends Style[String]("overflowWrap") {
@@ -951,12 +951,12 @@ trait HtmlStyles {
951951
*/
952952
final def `super` = this := "super"
953953
/** Aligns the top of the element with the top of the parent element's font. */
954-
final def `text-top` = this := "text-top"
954+
final def textTop = this := "text-top"
955955
/**
956956
* Aligns the bottom of the element with the bottom of the parent element's
957957
* font.
958958
*/
959-
final def `text-bottom` = this := "text-bottom"
959+
final def textBottom = this := "text-bottom"
960960
/**
961961
* Aligns the middle of the element with the middle of lowercase letters in
962962
* the parent.
@@ -1112,23 +1112,23 @@ trait HtmlStyles {
11121112
/** Decimal numbers begining with 1 */
11131113
final def decimal = this := "decimal"
11141114
/** Han decimal numbers */
1115-
final def `cjk-decimal` = this := "cjk-decimal"
1115+
final def cjkDecimal = this := "cjk-decimal"
11161116
/** Decimal numbers padded by initial zeros */
1117-
final def `decimal-leading-zero` = this := "decimal-leading-zero"
1117+
final def decimalLeadingZero = this := "decimal-leading-zero"
11181118
/** Lowercase roman numerals */
1119-
final def `lower-roman` = this := "lower-roman"
1119+
final def lowerRoman = this := "lower-roman"
11201120
/** Uppercase roman numerals */
1121-
final def `upper-roman` = this := "upper-roman"
1121+
final def upperRoman = this := "upper-roman"
11221122
/** Lowercase classical greek */
1123-
final def `lower-greek` = this := "lower-greek"
1123+
final def lowerGreek = this := "lower-greek"
11241124
/** Lowercase ASCII letters */
1125-
final def `lower-alpha` = this := "lower-alpha"
1125+
final def lowerAlpha = this := "lower-alpha"
11261126
/** Lowercase ASCII letters */
1127-
final def `lower-latin` = this := "lower-latin"
1127+
final def lowerLatin = this := "lower-latin"
11281128
/** Uppercase ASCII letters */
1129-
final def `upper-alpha` = this := "upper-alpha"
1129+
final def upperAlpha = this := "upper-alpha"
11301130
/** Uppercase ASCII letters */
1131-
final def `upper-latin` = this := "upper-latin"
1131+
final def upperLatin = this := "upper-latin"
11321132
/** Traditional Armenian numbering */
11331133
final def armenian = this := "armenian"
11341134
/** Traditional Georgian numbering */
@@ -1142,15 +1142,15 @@ trait HtmlStyles {
11421142
*
11431143
* Iroha is the old japanese ordering of syllabs
11441144
*/
1145-
final def `hiragana-iroha` = this := "hiragana-iroha"
1145+
final def hiraganaIroha = this := "hiragana-iroha"
11461146
/** Japanese Katakana */
11471147
final def katakana = this := "katakana"
11481148
/**
11491149
* Japanese Katakana
11501150
*
11511151
* Iroha is the old japanese ordering of syllabs
11521152
*/
1153-
final def `katakana-iroha` = this := "katakana-iroha"
1153+
final def katakanaIroha = this := "katakana-iroha"
11541154
}
11551155

11561156

@@ -1262,13 +1262,13 @@ trait HtmlStyles {
12621262
* of em and ex Length units.
12631263
*/
12641264
object fontSize extends Style[String]("fontSize") {
1265-
final def `xx-small` = this := "xx-small"
1266-
final def `x-small` = this := "x-small"
1265+
final def xxSmall = this := "xx-small"
1266+
final def xSmall = this := "x-small"
12671267
final def small = this := "small"
12681268
final def medium = this := "medium"
12691269
final def large = this := "large"
1270-
final def `x-large` = this := "x-large"
1271-
final def `xx-large` = this := "xx-large"
1270+
final def xLarge = this := "x-large"
1271+
final def xxLarge = this := "xx-large"
12721272
/**
12731273
* Larger than the parent element's font size, by roughly the ratio used to
12741274
* separate the absolute size keywords above.
@@ -1577,7 +1577,7 @@ trait HtmlStyles {
15771577
/** Each line of text has a line above it. */
15781578
final def overline = this := "overline"
15791579
/** Each line of text has a line through the middle. */
1580-
final def `line-through` = this := "line-through"
1580+
final def lineThrough = this := "line-through"
15811581
}
15821582

15831583
/**
@@ -1642,8 +1642,8 @@ trait HtmlStyles {
16421642
* of under.
16431643
*/
16441644
final def right = this := "right"
1645-
final def `under left` = this := "under left"
1646-
final def `under right` = this := "under right"
1645+
final def underLeft = this := "under left"
1646+
final def underRight = this := "under right"
16471647
}
16481648
/**
16491649
* The text-transform CSS property specifies how to capitalize an element's
@@ -1721,12 +1721,12 @@ trait HtmlStyles {
17211721
* Sequences of whitespace are preserved. Lines are broken at newline
17221722
* characters, at br, and as necessary to fill line boxes.
17231723
*/
1724-
final def `pre-wrap` = this := "pre-wrap"
1724+
final def preWrap = this := "pre-wrap"
17251725
/**
17261726
* Sequences of whitespace are collapsed. Lines are broken at newline
17271727
* characters, at br, and as necessary to fill line boxes.
17281728
*/
1729-
final def `pre-line` = this := "pre-line"
1729+
final def preLine = this := "pre-line"
17301730
}
17311731
/**
17321732
* The word-spacing CSS property specifies spacing behavior between tags and
@@ -2355,7 +2355,7 @@ trait HtmlStyles {
23552355
* Indicates that the children of the element should be positioned in the
23562356
* 3D-space.
23572357
*/
2358-
final def `preserve-3d` = this := "preserve-3d"
2358+
final def preserve3d = this := "preserve-3d"
23592359
/**
23602360
* Indicates that the children of the element are lying in the plane of the
23612361
* element itself.
@@ -2391,7 +2391,7 @@ trait HtmlStyles {
23912391
* is strictly in sequence according to the direction property; the implicit
23922392
* part of the bidirectional algorithm is ignored.
23932393
*/
2394-
final def `bidi-override` = this := "bidi-override"
2394+
final def bidiOverride = this := "bidi-override"
23952395
}
23962396

23972397
/**
@@ -2405,12 +2405,12 @@ trait HtmlStyles {
24052405
* Word breaks may be inserted between any character for non-CJK
24062406
* (Chinese/Japanese/Korean) text.
24072407
*/
2408-
final def `break-all` = this := "break-all"
2408+
final def breakAll = this := "break-all"
24092409
/**
24102410
* Don't allow word breaks for CJK text. Non-CJK text behavior is same
24112411
* as normal.
24122412
*/
2413-
final def `keep-all` = this := "keep-all"
2413+
final def keepAll = this := "keep-all"
24142414
}
24152415

24162416
/**

0 commit comments

Comments
 (0)