@andreyshpigunov/x 0.3.87 → 0.3.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  "functionName": "headerAnimation"
22
22
  }'>
23
23
  <header class="header flex aic sticky px5 m:px6 l:px8 unselectable">
24
- <div class="header-version nowrap">0.3.86</div>
24
+ <div class="header-version nowrap">0.3.88</div>
25
25
  <div class="header-logo mxa">
26
26
  <a role="button" x-scrollto="#top">
27
27
  <img src="./logo.png" alt="x" />
@@ -31,7 +31,7 @@
31
31
  <a href="https://github.com/andreyshpigunov/x" target="_blank"></a>
32
32
  </div>
33
33
  </header>
34
-
34
+
35
35
  <div class="element3" x-animate='{
36
36
  "start": "50vh",
37
37
  "end": "-100px",
@@ -44,7 +44,7 @@
44
44
 
45
45
  <section class="section-header mt8 px5 m:px6 l:px8" x-appear>
46
46
  <h1 class="mxa ac max800">Small and simple CSS & JavaScript library with interesting features</h1>
47
-
47
+
48
48
  <div class="flex">
49
49
  <div class="mt4">
50
50
  <button x-dropdown-open class="button button--dropdown" tabindex="1">Menu left</button>
@@ -87,8 +87,8 @@
87
87
  }'>
88
88
  <div class="element2-figure"></div>
89
89
  </div>
90
-
91
-
90
+
91
+
92
92
  <section class="section-header mt6 px5 m:px6 l:px8">
93
93
  <h2 class="ac">JS plugins</h2>
94
94
  </section>
@@ -155,7 +155,7 @@
155
155
  <script>
156
156
  document.addEventListener('DOMContentLoaded', () => {
157
157
  if (x.device) {
158
-
158
+
159
159
  function renderDevice() {
160
160
  setTimeout(() => {
161
161
  let content = '';
@@ -171,14 +171,14 @@
171
171
  x.lib.render('.jsDeviceExample', content)
172
172
  }, 200)
173
173
  }
174
-
174
+
175
175
  renderDevice(x.device);
176
-
176
+
177
177
  const debouncedRenderDevice = x.lib.debounce(renderDevice, 200);
178
178
  window.addEventListener('resize', debouncedRenderDevice)
179
179
  }
180
180
  })
181
-
181
+
182
182
  </script>
183
183
  </div>
184
184
 
@@ -653,8 +653,8 @@
653
653
  <div class="mt3">
654
654
  <div x-sheet="sheetA">Once I saw a little bird outside my window. It was chirping happily and looking for food. I put some seeds on the windowsill, and it ate them right away.</div>
655
655
  <div x-sheet="sheetB">Once I saw a ship on the sea. It was sailing smoothly and leaving a trail in the water. The sun was setting, making the scene even more beautiful.
656
-
657
-
656
+
657
+
658
658
  <div x-sheets class="sheets-example mt3">
659
659
  <div class="button--tabs">
660
660
  <a class="button" x-sheet-open="sheetA1">Bird</a>
@@ -752,7 +752,7 @@
752
752
  </div>
753
753
  </div>
754
754
  </section>
755
-
755
+
756
756
  <section class="section-header mt8 px5 m:px6 l:px8">
757
757
  <h2 class="ac">Start usage</h2>
758
758
  </section>
@@ -817,8 +817,8 @@
817
817
  <hr class="my7" />
818
818
  </div>
819
819
  </section>
820
-
821
-
820
+
821
+
822
822
  <div x-modal="modalBreakpoints" class="modal--hash" data-window-class="max1000">
823
823
  <h2>Breakpoints</h2>
824
824
  <p>Mobile first breakpoints</p>
@@ -831,17 +831,17 @@
831
831
  ---------------------------
832
832
  | 0 | 600 | 1000 | 1400 |
833
833
  ---------------------------</pre>
834
-
834
+
835
835
  <p>
836
836
  <code>s</code> - default size, not using prefix <code>s:</code><br>
837
837
  <code>m</code> - medium size<br>
838
838
  <code>l</code> - large size<br>
839
839
  <code>xl</code> - xlarge size
840
840
  </p>
841
-
841
+
842
842
  <h3>Custom media</h3>
843
843
  <p>X use <a href="https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media" target="_blank">PostCSS custom media plugin</a> for compiling styles.</p>
844
-
844
+
845
845
  <pre class="fs14 mono">
846
846
  <span class="op4">/* Setting for PostCSS custom media plugin */</span>
847
847
  @custom-media --small (min-width: 0px);
@@ -855,7 +855,7 @@
855
855
  <div x-modal="modalReset" class="modal--hash" data-window-class="max1000">
856
856
  <h2>Reset</h2>
857
857
  <p>Global styles reset and base variables.</p>
858
-
858
+
859
859
  <h3>Variables</h3>
860
860
  <pre class="fs14 mono">
861
861
  --line-height: 1.5;
@@ -866,8 +866,8 @@
866
866
  --font-family-mono: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
867
867
  --background-color: #fff;</pre>
868
868
  </div>
869
-
870
-
869
+
870
+
871
871
  <div x-modal="modalSpaces" class="modal--hash" data-window-class="max1000">
872
872
  <h2>Spaces</h2>
873
873
  <p>Global spaces.</p>
@@ -875,7 +875,7 @@
875
875
  1rem = 10px by default (16px * var(--font-size-coeff)<br>
876
876
  16px - default font size in most browsers
877
877
  </p>
878
-
878
+
879
879
  <h3>Variables</h3>
880
880
  <pre class="fs14 mono">
881
881
  --space-0: 0;
@@ -895,7 +895,7 @@
895
895
  <div x-modal="modalLinks" class="modal--hash" data-window-class="max1000">
896
896
  <h2>Links</h2>
897
897
  <p>Links styling.</p>
898
-
898
+
899
899
  <h3>Elements</h3>
900
900
  <pre class="fs14 mono">
901
901
  a
@@ -916,7 +916,7 @@ a.link--wavy</pre>
916
916
  <a class="link link--dotted">dotted</a>
917
917
  <a class="link link--wavy">wavy</a>
918
918
  </div>
919
-
919
+
920
920
  <h3>Variables</h3>
921
921
  <pre class="fs14 mono">
922
922
  --link-color: #0060bb;
@@ -935,8 +935,8 @@ a.link--wavy</pre>
935
935
  --link-underline-offset: .25em;
936
936
  --link-transition: all .1s ease-out;</pre>
937
937
  </div>
938
-
939
-
938
+
939
+
940
940
  <div x-modal="modalIcons" class="modal--hash" data-window-class="max1000">
941
941
  <h2>Icons</h2>
942
942
  <div class="mt6">
@@ -944,8 +944,8 @@ a.link--wavy</pre>
944
944
  .icon--[10-60] step 2 (m,l) - modifier with size in px</pre>
945
945
  </div>
946
946
  </div>
947
-
948
-
947
+
948
+
949
949
  <div x-modal="modalColors" class="modal--hash" data-window-class="max1000">
950
950
  <h2>Colors</h2>
951
951
  <div class="mt6">
@@ -970,7 +970,7 @@ a.link--wavy</pre>
970
970
 
971
971
  <div x-modal="modalTypo" class="modal--hash" data-window-class="max1000">
972
972
  <h2>Typo</h2>
973
-
973
+
974
974
  <h3>Elements</h3>
975
975
  <pre class="fs14 mono">
976
976
  .h[1-6]
@@ -982,7 +982,7 @@ a.link--wavy</pre>
982
982
  .fw[100-900] step 100 (m,l,xl)
983
983
  .ls[0-4] (m,l,xl)
984
984
  .lh[0-9] (m,l,xl) - values: 1.0-1.9</pre>
985
-
985
+
986
986
  <h3>Variables</h3>
987
987
  <pre class="fs14 mono">
988
988
  --headers-margin-top: 1em;
@@ -1021,11 +1021,11 @@ a.link--wavy</pre>
1021
1021
  <div x-modal="modalForms" class="modal--hash" data-window-class="max1000">
1022
1022
  <h2>Forms</h2>
1023
1023
  <p>Form elements.</p>
1024
-
1024
+
1025
1025
  <h3>Modifiers</h3>
1026
1026
  <pre class="fs14 mono">
1027
1027
  .error</pre>
1028
-
1028
+
1029
1029
  <h3>Variables</h3>
1030
1030
  <pre class="fs14 mono">
1031
1031
  --forms-width: 400px;
@@ -1054,7 +1054,7 @@ a.link--wavy</pre>
1054
1054
 
1055
1055
  <div x-modal="modalButtons" class="modal--hash" data-window-class="max1000">
1056
1056
  <h2>Buttons</h2>
1057
-
1057
+
1058
1058
  <div class="flow s4">
1059
1059
  <div class="flex fw gap4">
1060
1060
  <button class="button button--label">Label</button>
@@ -1107,7 +1107,7 @@ a.link--wavy</pre>
1107
1107
  <button class="button fs24 button--clear">Button</button>
1108
1108
  </div>
1109
1109
  </div>
1110
-
1110
+
1111
1111
  <h3>Elements</h3>
1112
1112
  <pre class="fs14 mono">
1113
1113
  .button
@@ -1120,7 +1120,7 @@ a.link--wavy</pre>
1120
1120
  .button--white
1121
1121
  .button--black
1122
1122
  .button--clear</pre>
1123
-
1123
+
1124
1124
  <h3>Variables</h3>
1125
1125
  <pre class="fs14 mono"><span class="op4">/* Required variables */</span>
1126
1126
  --button-height-coeff: 2.5;
@@ -1152,7 +1152,7 @@ a.link--wavy</pre>
1152
1152
  <div x-modal="modalFlex" class="modal--hash" data-window-class="max1000">
1153
1153
  <h2>Flex</h2>
1154
1154
  <p>Flexbox.</p>
1155
-
1155
+
1156
1156
  <h3>Elements</h3>
1157
1157
  <pre class="fs14 mono">
1158
1158
  .flex
@@ -1183,7 +1183,7 @@ a.link--wavy</pre>
1183
1183
  <div x-modal="modalGrid" class="modal--hash" data-window-class="max1000">
1184
1184
  <h2>Grid</h2>
1185
1185
  <p>Multicolumn adaptive grid (1–12 columns).</p>
1186
-
1186
+
1187
1187
  <h3>Elements</h3>
1188
1188
  <pre class="fs14 mono">
1189
1189
  .grid
@@ -1196,7 +1196,7 @@ a.link--wavy</pre>
1196
1196
  <div x-modal="modalFlow" class="modal--hash" data-window-class="max1000">
1197
1197
  <h2>Flow</h2>
1198
1198
  <p>Vertical flow of elements with equal spaces between them.</p>
1199
-
1199
+
1200
1200
  <h3>Elements</h3>
1201
1201
  <pre class="fs14 mono">
1202
1202
  .flow
@@ -1209,7 +1209,7 @@ a.link--wavy</pre>
1209
1209
  <div x-modal="modalHelpers" class="modal--hash" data-window-class="max1000">
1210
1210
  <h2>Helpers</h2>
1211
1211
  <p>Helper classes.</p>
1212
-
1212
+
1213
1213
  <h3>Elements</h3>
1214
1214
  <pre class="fs14 mono">
1215
1215
  .container
@@ -1322,7 +1322,7 @@ a.link--wavy</pre>
1322
1322
 
1323
1323
  .o[0-12] (m,l,xl) | order
1324
1324
  .noPrint</pre>
1325
-
1325
+
1326
1326
  <h3>Variables</h3>
1327
1327
  <pre class="fs14 mono">
1328
1328
  --container-max-width: 1600px;
@@ -1337,7 +1337,7 @@ a.link--wavy</pre>
1337
1337
  --shadow-8: 0 16px 32px #00000018;
1338
1338
  --shadow-9: 0 18px 36px #00000018;
1339
1339
  --shadow-10: 0 20px 40px #00000018;</pre>
1340
-
1340
+
1341
1341
  <h3>Shadows</h3>
1342
1342
  <div class="grid g1 m:g2 l:g3 gap6">
1343
1343
  <div class="c1 p6 r4 sh1">
@@ -1372,9 +1372,9 @@ a.link--wavy</pre>
1372
1372
  </div>
1373
1373
  </div>
1374
1374
  </div>
1375
-
1376
-
1377
-
1375
+
1376
+
1377
+
1378
1378
  <div x-modal="modalModal" class="modal--hash" data-window-class="max1000">
1379
1379
  <h2>Modals</h2>
1380
1380
 
@@ -2015,7 +2015,7 @@ a.link--wavy</pre>
2015
2015
 
2016
2016
 
2017
2017
  <div x-modal="modalLib" class="modal--hash" data-window-class="max1000">
2018
-
2018
+
2019
2019
  <h2>Lib</h2>
2020
2020
 
2021
2021
  <p>Набор полезных методов.</p>
@@ -2158,12 +2158,12 @@ a.link--wavy</pre>
2158
2158
  <h4><code class="fs16">async render(selector, data, placement = null)</code></h4>
2159
2159
  <h4><code class="fs16">[x-render] | Render JavaScript in 'x-render' attribute</code></h4>
2160
2160
  </div>
2161
-
2161
+
2162
2162
  <footer class="p6 ac fs14">
2163
2163
  <a href="mailto:andrey@shpigunov.ru">andrey@shpigunov.ru</a>
2164
2164
  <div class="mt1" x-render="new Date().getFullYear()"></div>
2165
2165
  </footer>
2166
-
2166
+
2167
2167
  <div class="flex aic jcse m4">
2168
2168
  <div>
2169
2169
  <button x-dropdown-open class="button button--dropdown" tabindex="4">Bottom menu</button>
package/index.html CHANGED
@@ -19,7 +19,7 @@
19
19
  "functionName": "headerAnimation"
20
20
  }'>
21
21
  <header class="header flex aic sticky px5 m:px6 l:px8 unselectable">
22
- <div class="header-version nowrap">0.3.86</div>
22
+ <div class="header-version nowrap">0.3.89</div>
23
23
  <div class="header-logo mxa">
24
24
  <a role="button" x-scrollto="#top">
25
25
  <img src="assets/logo.png" alt="x" />
@@ -29,7 +29,7 @@
29
29
  <a href="https://github.com/andreyshpigunov/x" target="_blank"></a>
30
30
  </div>
31
31
  </header>
32
-
32
+
33
33
  <div class="element3" x-animate='{
34
34
  "start": "50vh",
35
35
  "end": "-100px",
@@ -42,7 +42,7 @@
42
42
 
43
43
  <section class="section-header mt8 px5 m:px6 l:px8" x-appear>
44
44
  <h1 class="mxa ac max800">Small and simple CSS & JavaScript library with interesting features</h1>
45
-
45
+
46
46
  <div class="flex">
47
47
  <div class="mt4">
48
48
  <button x-dropdown-open class="button button--dropdown" tabindex="1">Menu left</button>
@@ -85,8 +85,8 @@
85
85
  }'>
86
86
  <div class="element2-figure"></div>
87
87
  </div>
88
-
89
-
88
+
89
+
90
90
  <section class="section-header mt6 px5 m:px6 l:px8">
91
91
  <h2 class="ac">JS plugins</h2>
92
92
  </section>
@@ -169,7 +169,7 @@
169
169
  <script>
170
170
  document.addEventListener('DOMContentLoaded', () => {
171
171
  if (x.device) {
172
-
172
+
173
173
  function renderDevice() {
174
174
  setTimeout(() => {
175
175
  let content = '';
@@ -185,14 +185,14 @@
185
185
  x.lib.render('.jsDeviceExample', content)
186
186
  }, 200)
187
187
  }
188
-
188
+
189
189
  renderDevice(x.device);
190
-
190
+
191
191
  const debouncedRenderDevice = x.lib.debounce(renderDevice, 200);
192
192
  window.addEventListener('resize', debouncedRenderDevice)
193
193
  }
194
194
  })
195
-
195
+
196
196
  </script>
197
197
  </div>
198
198
 
@@ -667,8 +667,8 @@
667
667
  <div class="mt3">
668
668
  <div x-sheet="sheetA">Once I saw a little bird outside my window. It was chirping happily and looking for food. I put some seeds on the windowsill, and it ate them right away.</div>
669
669
  <div x-sheet="sheetB">Once I saw a ship on the sea. It was sailing smoothly and leaving a trail in the water. The sun was setting, making the scene even more beautiful.
670
-
671
-
670
+
671
+
672
672
  <div x-sheets class="sheets-example mt3">
673
673
  <div class="button--tabs">
674
674
  <a class="button" x-sheet-open="sheetA1">Bird</a>
@@ -773,7 +773,7 @@
773
773
  </div>
774
774
  </div>
775
775
  </section>
776
-
776
+
777
777
  <section class="section-header mt8 px5 m:px6 l:px8">
778
778
  <h2 class="ac">Start usage</h2>
779
779
  </section>
@@ -838,8 +838,8 @@
838
838
  <hr class="my7" />
839
839
  </div>
840
840
  </section>
841
-
842
-
841
+
842
+
843
843
  <div x-modal="modalBreakpoints" class="modal--hash" data-window-class="max1000">
844
844
  <h2>Breakpoints</h2>
845
845
  <p>Mobile first breakpoints</p>
@@ -852,17 +852,17 @@
852
852
  ---------------------------
853
853
  | 0 | 600 | 1000 | 1400 |
854
854
  ---------------------------</pre>
855
-
855
+
856
856
  <p>
857
857
  <code>s</code> - default size, not using prefix <code>s:</code><br>
858
858
  <code>m</code> - medium size<br>
859
859
  <code>l</code> - large size<br>
860
860
  <code>xl</code> - xlarge size
861
861
  </p>
862
-
862
+
863
863
  <h3>Custom media</h3>
864
864
  <p>X use <a href="https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media" target="_blank">PostCSS custom media plugin</a> for compiling styles.</p>
865
-
865
+
866
866
  <pre class="fs14 mono">
867
867
  <span class="op4">/* Setting for PostCSS custom media plugin */</span>
868
868
  @custom-media --small (min-width: 0px);
@@ -876,7 +876,7 @@
876
876
  <div x-modal="modalReset" class="modal--hash" data-window-class="max1000">
877
877
  <h2>Reset</h2>
878
878
  <p>Global styles reset and base variables.</p>
879
-
879
+
880
880
  <h3>Variables</h3>
881
881
  <pre class="fs14 mono">
882
882
  --line-height: 1.5;
@@ -887,8 +887,8 @@
887
887
  --font-family-mono: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
888
888
  --background-color: #fff;</pre>
889
889
  </div>
890
-
891
-
890
+
891
+
892
892
  <div x-modal="modalSpaces" class="modal--hash" data-window-class="max1000">
893
893
  <h2>Spaces</h2>
894
894
  <p>Global spaces.</p>
@@ -896,7 +896,7 @@
896
896
  1rem = 10px by default (16px * var(--font-size-coeff)<br>
897
897
  16px - default font size in most browsers
898
898
  </p>
899
-
899
+
900
900
  <h3>Variables</h3>
901
901
  <pre class="fs14 mono">
902
902
  --space-0: 0;
@@ -916,7 +916,7 @@
916
916
  <div x-modal="modalLinks" class="modal--hash" data-window-class="max1000">
917
917
  <h2>Links</h2>
918
918
  <p>Links styling.</p>
919
-
919
+
920
920
  <h3>Elements</h3>
921
921
  <pre class="fs14 mono">
922
922
  a
@@ -937,7 +937,7 @@ a.link--wavy</pre>
937
937
  <a class="link link--dotted">dotted</a>
938
938
  <a class="link link--wavy">wavy</a>
939
939
  </div>
940
-
940
+
941
941
  <h3>Variables</h3>
942
942
  <pre class="fs14 mono">
943
943
  --link-color: #0060bb;
@@ -956,8 +956,8 @@ a.link--wavy</pre>
956
956
  --link-underline-offset: .25em;
957
957
  --link-transition: all .1s ease-out;</pre>
958
958
  </div>
959
-
960
-
959
+
960
+
961
961
  <div x-modal="modalIcons" class="modal--hash" data-window-class="max1000">
962
962
  <h2>Icons</h2>
963
963
  <div class="mt6">
@@ -965,8 +965,8 @@ a.link--wavy</pre>
965
965
  .icon--[10-60] step 2 (m,l) - modifier with size in px</pre>
966
966
  </div>
967
967
  </div>
968
-
969
-
968
+
969
+
970
970
  <div x-modal="modalColors" class="modal--hash" data-window-class="max1000">
971
971
  <h2>Colors</h2>
972
972
  <div class="mt6">
@@ -991,7 +991,7 @@ a.link--wavy</pre>
991
991
 
992
992
  <div x-modal="modalTypo" class="modal--hash" data-window-class="max1000">
993
993
  <h2>Typo</h2>
994
-
994
+
995
995
  <h3>Elements</h3>
996
996
  <pre class="fs14 mono">
997
997
  .h[1-6]
@@ -1003,7 +1003,7 @@ a.link--wavy</pre>
1003
1003
  .fw[100-900] step 100 (m,l,xl)
1004
1004
  .ls[0-4] (m,l,xl)
1005
1005
  .lh[0-9] (m,l,xl) - values: 1.0-1.9</pre>
1006
-
1006
+
1007
1007
  <h3>Variables</h3>
1008
1008
  <pre class="fs14 mono">
1009
1009
  --headers-margin-top: 1em;
@@ -1042,11 +1042,11 @@ a.link--wavy</pre>
1042
1042
  <div x-modal="modalForms" class="modal--hash" data-window-class="max1000">
1043
1043
  <h2>Forms</h2>
1044
1044
  <p>Form elements.</p>
1045
-
1045
+
1046
1046
  <h3>Modifiers</h3>
1047
1047
  <pre class="fs14 mono">
1048
1048
  .error</pre>
1049
-
1049
+
1050
1050
  <h3>Variables</h3>
1051
1051
  <pre class="fs14 mono">
1052
1052
  --forms-width: 400px;
@@ -1075,7 +1075,7 @@ a.link--wavy</pre>
1075
1075
 
1076
1076
  <div x-modal="modalButtons" class="modal--hash" data-window-class="max1000">
1077
1077
  <h2>Buttons</h2>
1078
-
1078
+
1079
1079
  <div class="flow s4">
1080
1080
  <div class="flex fw gap4">
1081
1081
  <button class="button button--label">Label</button>
@@ -1128,7 +1128,7 @@ a.link--wavy</pre>
1128
1128
  <button class="button fs24 button--clear">Button</button>
1129
1129
  </div>
1130
1130
  </div>
1131
-
1131
+
1132
1132
  <h3>Elements</h3>
1133
1133
  <pre class="fs14 mono">
1134
1134
  .button
@@ -1141,7 +1141,7 @@ a.link--wavy</pre>
1141
1141
  .button--white
1142
1142
  .button--black
1143
1143
  .button--clear</pre>
1144
-
1144
+
1145
1145
  <h3>Variables</h3>
1146
1146
  <pre class="fs14 mono"><span class="op4">/* Required variables */</span>
1147
1147
  --button-height-coeff: 2.5;
@@ -1173,7 +1173,7 @@ a.link--wavy</pre>
1173
1173
  <div x-modal="modalFlex" class="modal--hash" data-window-class="max1000">
1174
1174
  <h2>Flex</h2>
1175
1175
  <p>Flexbox.</p>
1176
-
1176
+
1177
1177
  <h3>Elements</h3>
1178
1178
  <pre class="fs14 mono">
1179
1179
  .flex
@@ -1204,7 +1204,7 @@ a.link--wavy</pre>
1204
1204
  <div x-modal="modalGrid" class="modal--hash" data-window-class="max1000">
1205
1205
  <h2>Grid</h2>
1206
1206
  <p>Multicolumn adaptive grid (1–12 columns).</p>
1207
-
1207
+
1208
1208
  <h3>Elements</h3>
1209
1209
  <pre class="fs14 mono">
1210
1210
  .grid
@@ -1217,7 +1217,7 @@ a.link--wavy</pre>
1217
1217
  <div x-modal="modalFlow" class="modal--hash" data-window-class="max1000">
1218
1218
  <h2>Flow</h2>
1219
1219
  <p>Vertical flow of elements with equal spaces between them.</p>
1220
-
1220
+
1221
1221
  <h3>Elements</h3>
1222
1222
  <pre class="fs14 mono">
1223
1223
  .flow
@@ -1230,7 +1230,7 @@ a.link--wavy</pre>
1230
1230
  <div x-modal="modalHelpers" class="modal--hash" data-window-class="max1000">
1231
1231
  <h2>Helpers</h2>
1232
1232
  <p>Helper classes.</p>
1233
-
1233
+
1234
1234
  <h3>Elements</h3>
1235
1235
  <pre class="fs14 mono">
1236
1236
  .container
@@ -1343,7 +1343,7 @@ a.link--wavy</pre>
1343
1343
 
1344
1344
  .o[0-12] (m,l,xl) | order
1345
1345
  .noPrint</pre>
1346
-
1346
+
1347
1347
  <h3>Variables</h3>
1348
1348
  <pre class="fs14 mono">
1349
1349
  --container-max-width: 1600px;
@@ -1358,7 +1358,7 @@ a.link--wavy</pre>
1358
1358
  --shadow-8: 0 16px 32px #00000018;
1359
1359
  --shadow-9: 0 18px 36px #00000018;
1360
1360
  --shadow-10: 0 20px 40px #00000018;</pre>
1361
-
1361
+
1362
1362
  <h3>Shadows</h3>
1363
1363
  <div class="grid g1 m:g2 l:g3 gap6">
1364
1364
  <div class="c1 p6 r4 sh1">
@@ -1393,9 +1393,9 @@ a.link--wavy</pre>
1393
1393
  </div>
1394
1394
  </div>
1395
1395
  </div>
1396
-
1397
-
1398
-
1396
+
1397
+
1398
+
1399
1399
  <div x-modal="modalModal" class="modal--hash" data-window-class="max1000">
1400
1400
  <h2>Modals</h2>
1401
1401
 
@@ -2036,7 +2036,7 @@ a.link--wavy</pre>
2036
2036
 
2037
2037
 
2038
2038
  <div x-modal="modalLib" class="modal--hash" data-window-class="max1000">
2039
-
2039
+
2040
2040
  <h2>Lib</h2>
2041
2041
 
2042
2042
  <p>Набор полезных методов.</p>
@@ -2179,12 +2179,12 @@ a.link--wavy</pre>
2179
2179
  <h4><code class="fs16">async render(selector, data, placement = null)</code></h4>
2180
2180
  <h4><code class="fs16">[x-render] | Render JavaScript in 'x-render' attribute</code></h4>
2181
2181
  </div>
2182
-
2182
+
2183
2183
  <footer class="p6 ac fs14">
2184
2184
  <a href="mailto:andrey@shpigunov.ru">andrey@shpigunov.ru</a>
2185
2185
  <div class="mt1" x-render="new Date().getFullYear()"></div>
2186
2186
  </footer>
2187
-
2187
+
2188
2188
  <div class="flex aic jcse m4">
2189
2189
  <div>
2190
2190
  <button x-dropdown-open class="button button--dropdown" tabindex="4">Bottom menu</button>
package/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import './dist/x.js';
2
-
3
1
  export { modal } from './src/components/x/modal';
4
2
  export { animate } from './src/components/x/animate';
5
3
  export { appear } from './src/components/x/appear';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andreyshpigunov/x",
3
- "version": "0.3.87",
3
+ "version": "0.3.89",
4
4
  "devDependencies": {
5
5
  "@babel/preset-env": "^7.26.9",
6
6
  "@jest/globals": "^29.7.0",
@@ -40,5 +40,9 @@
40
40
  "homepage": "https://andreyshpigunov.github.io/x/",
41
41
  "browserslist": [
42
42
  "defaults"
43
- ]
43
+ ],
44
+ "exports": {
45
+ ".": "./index.js",
46
+ "./x.css": "./dist/x.css"
47
+ }
44
48
  }