diff --git a/src/styles/utilities/textUnderline/index.js b/src/styles/utilities/textUnderline/index.js deleted file mode 100644 index 3ec9ce507765..000000000000 --- a/src/styles/utilities/textUnderline/index.js +++ /dev/null @@ -1,9 +0,0 @@ -const textUnderlinePositionUnder = { - textUnderlinePosition: 'under', -}; - -const textDecorationSkipInkNone = { - textDecorationSkipInk: 'none', -}; - -export default {textUnderlinePositionUnder, textDecorationSkipInkNone}; diff --git a/src/styles/utilities/textUnderline/index.native.js b/src/styles/utilities/textUnderline/index.native.js deleted file mode 100644 index ce2e2e7d6c20..000000000000 --- a/src/styles/utilities/textUnderline/index.native.js +++ /dev/null @@ -1,4 +0,0 @@ -// following styles are not supported -const textUnderlinePositionUnder = {}; -const textDecorationSkipInkNone = {}; -export default {textUnderlinePositionUnder, textDecorationSkipInkNone}; diff --git a/src/styles/utilities/textUnderline/index.native.ts b/src/styles/utilities/textUnderline/index.native.ts new file mode 100644 index 000000000000..b3acbb48d01c --- /dev/null +++ b/src/styles/utilities/textUnderline/index.native.ts @@ -0,0 +1,9 @@ +import TextUnderlineStyles from './types'; + +// following styles are not supported +const textUnderline: TextUnderlineStyles = { + textUnderlinePositionUnder: {}, + textDecorationSkipInkNone: {}, +}; + +export default textUnderline; diff --git a/src/styles/utilities/textUnderline/index.ts b/src/styles/utilities/textUnderline/index.ts new file mode 100644 index 000000000000..2fbf6e0e354c --- /dev/null +++ b/src/styles/utilities/textUnderline/index.ts @@ -0,0 +1,12 @@ +import TextUnderlineStyles from './types'; + +const textUnderline: TextUnderlineStyles = { + textUnderlinePositionUnder: { + textUnderlinePosition: 'under', + }, + textDecorationSkipInkNone: { + textDecorationSkipInk: 'none', + }, +}; + +export default textUnderline; diff --git a/src/styles/utilities/textUnderline/types.ts b/src/styles/utilities/textUnderline/types.ts new file mode 100644 index 000000000000..ecc09ed0fe09 --- /dev/null +++ b/src/styles/utilities/textUnderline/types.ts @@ -0,0 +1,8 @@ +import {CSSProperties} from 'react'; + +type TextUnderlineStyles = { + textUnderlinePositionUnder: Pick; + textDecorationSkipInkNone: Pick; +}; + +export default TextUnderlineStyles;