Skip to content

Commit af332e8

Browse files
committed
Fix the import of the Options in the documentation
1 parent 5a8ce8f commit af332e8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ The mode option has been explained in the [Output using the combined mode](#outp
319319
```javascript
320320
import postcss from 'postcss';
321321
import postcssRTLCSS from 'postcss-rtlcss';
322-
import { Mode } from 'postcss-rtlcss/options';
322+
import Options from 'postcss-rtlcss/options';
323323
324324
const input = '... css code ...';
325-
const optionsCombined = { mode: Mode.combined }; // This is the default value
326-
const optionsOverride = { mode: Mode.override };
325+
const optionsCombined = { mode: Options.Mode.combined }; // This is the default value
326+
const optionsOverride = { mode: Options.Mode.override };
327327
328328
const outputCombined = postcss([
329329
postcssRTLCSS(optionsCombined)
@@ -587,11 +587,11 @@ This option manages if the conversion will be from `LTR` to `RTL` or vice versa.
587587
##### Using Source.ltr in combined mode
588588
589589
```javascript
590-
import { Mode, Source } from 'postcss-rtlcss/options';
590+
import Options from 'postcss-rtlcss/options';
591591
592592
const options = {
593-
mode: Mode.combined,
594-
source: Source.ltr // This is the default value
593+
mode: Options.Mode.combined,
594+
source: Options.Source.ltr // This is the default value
595595
};
596596
```
597597
@@ -610,11 +610,11 @@ const options = {
610610
##### Using Source.rtl in override mode
611611
612612
```javascript
613-
import { Mode, Source } from 'postcss-rtlcss/options';
613+
import Options from 'postcss-rtlcss/options';
614614
615615
const options = {
616-
mode: Mode.override,
617-
source: Source.rtl
616+
mode: Options.Mode.override,
617+
source: Options.Source.rtl
618618
};
619619
```
620620
@@ -930,10 +930,10 @@ Flip or not the selectors names of the rules without directional properties usin
930930
##### Using Autorename.flexible
931931
932932
```javascript
933-
import { Autorename } from 'postcss-rtlcss/options';
933+
import Options from 'postcss-rtlcss/options';
934934
935935
const options = {
936-
autoRename: Autorename.flexible
936+
autoRename: Options.Autorename.flexible
937937
};
938938
```
939939
@@ -956,10 +956,10 @@ const options = {
956956
##### Using Autorename.strict
957957
958958
```javascript
959-
import { Autorename } from 'postcss-rtlcss/options';
959+
import Options from 'postcss-rtlcss/options';
960960
961961
const options = {
962-
autoRename: Autorename.strict
962+
autoRename: Options.Autorename.strict
963963
};
964964
```
965965
@@ -1008,10 +1008,10 @@ When `autoRename` is enabled and greedy is `true`, the strings replacements will
10081008
##### greedy false
10091009
10101010
```javascript
1011-
import { Autorename } from 'postcss-rtlcss/options';
1011+
import Options from 'postcss-rtlcss/options';
10121012
10131013
const options = {
1014-
autoRename: Autorename.flexible,
1014+
autoRename: Options.Autorename.flexible,
10151015
greedy: false // This is the default value
10161016
};
10171017
```
@@ -1031,10 +1031,10 @@ const options = {
10311031
##### greedy true
10321032
10331033
```javascript
1034-
import { Autorename } from 'postcss-rtlcss/options';
1034+
import Options from 'postcss-rtlcss/options';
10351035
10361036
const options = {
1037-
autoRename: Autorename.flexible,
1037+
autoRename: Options.Autorename.flexible,
10381038
greedy: true
10391039
};
10401040
```

0 commit comments

Comments
 (0)