@itcase/ui 1.0.1 → 1.0.3

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.
@@ -302,6 +302,9 @@ function updateSwiper({
302
302
  updateParams.forEach(key => {
303
303
  if (isObject(currentParams[key]) && isObject(passedParams[key])) {
304
304
  extend(currentParams[key], passedParams[key]);
305
+ if ((key === 'navigation' || key === 'pagination' || key === 'scrollbar') && 'enabled' in passedParams[key] && !passedParams[key].enabled) {
306
+ destroyModule(key);
307
+ }
305
308
  } else {
306
309
  const newValue = passedParams[key];
307
310
  if ((newValue === true || newValue === false) && (key === 'navigation' || key === 'pagination' || key === 'scrollbar')) {
@@ -25,8 +25,17 @@
25
25
  background-color: #abe2fb;
26
26
  border-radius: 6px;
27
27
  }
28
+ .rc-slider-track-draggable {
29
+ z-index: 1;
30
+ box-sizing: content-box;
31
+ background-clip: content-box;
32
+ border-top: 5px solid rgba(0, 0, 0, 0);
33
+ border-bottom: 5px solid rgba(0, 0, 0, 0);
34
+ transform: translateY(-5px);
35
+ }
28
36
  .rc-slider-handle {
29
37
  position: absolute;
38
+ z-index: 1;
30
39
  width: 14px;
31
40
  height: 14px;
32
41
  margin-top: -5px;
@@ -87,7 +96,6 @@
87
96
  width: 100%;
88
97
  height: 4px;
89
98
  background: transparent;
90
- pointer-events: none;
91
99
  }
92
100
  .rc-slider-dot {
93
101
  position: absolute;
@@ -137,7 +145,16 @@
137
145
  left: 5px;
138
146
  width: 4px;
139
147
  }
148
+ .rc-slider-vertical .rc-slider-track-draggable {
149
+ border-top: 0;
150
+ border-bottom: 0;
151
+ border-right: 5px solid rgba(0, 0, 0, 0);
152
+ border-left: 5px solid rgba(0, 0, 0, 0);
153
+ transform: translateX(-5px);
154
+ }
140
155
  .rc-slider-vertical .rc-slider-handle {
156
+ position: absolute;
157
+ z-index: 1;
141
158
  margin-top: 0;
142
159
  margin-left: -5px;
143
160
  touch-action: pan-y;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 9.2.4
2
+ * Swiper 9.4.1
3
3
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4
4
  * https://swiperjs.com
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: April 21, 2023
10
+ * Released on: June 13, 2023
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -186,6 +186,14 @@ swiper-slide {
186
186
  scroll-snap-type: y mandatory;
187
187
  }
188
188
 
189
+ .swiper-css-mode.swiper-free-mode > .swiper-wrapper {
190
+ scroll-snap-type: none;
191
+ }
192
+
193
+ .swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {
194
+ scroll-snap-align: none;
195
+ }
196
+
189
197
  .swiper-centered > .swiper-wrapper::before {
190
198
  content: '';
191
199
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -40,13 +40,13 @@
40
40
  "registry": "https://registry.npmjs.org/"
41
41
  },
42
42
  "dependencies": {
43
- "@ruliad-engr/common": "^1.1.1",
43
+ "@itcase/common": "^1.1.2",
44
44
  "clsx": "^1.2.1",
45
45
  "html5-boilerplate": "^8.0.0",
46
46
  "js-cookie": "^3.0.5",
47
47
  "lodash": "^4.17.21",
48
48
  "prop-types": "^15.8.1",
49
- "rc-slider": "^10.1.1",
49
+ "rc-slider": "^10.2.1",
50
50
  "react": "^18.2.0",
51
51
  "react-dom": "^18.2.0",
52
52
  "react-inlinesvg": "^3.0.2",
@@ -54,42 +54,42 @@
54
54
  "react-responsive": "^9.0.2",
55
55
  "react-scrollbars-custom": "^4.1.1",
56
56
  "react-select": "^5.7.3",
57
- "swiper": "^9.2.4",
57
+ "swiper": "^9.4.1",
58
58
  "uuid": "^9.0.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "^7.21.8",
62
- "@babel/eslint-parser": "^7.21.8",
63
- "@babel/preset-env": "^7.21.5",
64
- "@babel/preset-react": "^7.18.6",
65
- "@commitlint/cli": "^17.6.3",
66
- "@commitlint/config-conventional": "^17.6.3",
61
+ "@babel/core": "^7.22.5",
62
+ "@babel/eslint-parser": "^7.22.5",
63
+ "@babel/preset-env": "^7.22.5",
64
+ "@babel/preset-react": "^7.22.5",
65
+ "@commitlint/cli": "^17.6.6",
66
+ "@commitlint/config-conventional": "^17.6.6",
67
67
  "@rollup/plugin-babel": "^6.0.3",
68
- "@rollup/plugin-commonjs": "^24.1.0",
68
+ "@rollup/plugin-commonjs": "^25.0.2",
69
69
  "@rollup/plugin-json": "^6.0.0",
70
- "@rollup/plugin-node-resolve": "^15.0.2",
71
- "@rollup/plugin-terser": "^0.4.1",
70
+ "@rollup/plugin-node-resolve": "^15.1.0",
71
+ "@rollup/plugin-terser": "^0.4.3",
72
72
  "@semantic-release/changelog": "^6.0.3",
73
73
  "@semantic-release/git": "^10.0.1",
74
- "@semantic-release/release-notes-generator": "^11.0.1",
74
+ "@semantic-release/release-notes-generator": "^11.0.3",
75
75
  "babel-loader": "^9.1.2",
76
76
  "babel-plugin-inline-react-svg": "^2.0.2",
77
77
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
78
- "eslint": "8.39.0",
78
+ "eslint": "8.43.0",
79
79
  "eslint-config-prettier": "^8.8.0",
80
- "eslint-config-standard": "^17.0.0",
80
+ "eslint-config-standard": "^17.1.0",
81
81
  "eslint-plugin-babel": "^5.3.1",
82
82
  "eslint-plugin-import": "^2.27.5",
83
- "eslint-plugin-n": "^15.7.0",
83
+ "eslint-plugin-n": "^16.0.1",
84
84
  "eslint-plugin-node": "^11.1.0",
85
85
  "eslint-plugin-prettier": "^4.2.1",
86
86
  "eslint-plugin-promise": "^6.1.1",
87
87
  "eslint-plugin-react": "^7.32.2",
88
88
  "eslint-plugin-standard": "^5.0.0",
89
89
  "husky": "^8.0.3",
90
- "lint-staged": "^13.2.2",
91
- "npm": "^9.6.6",
92
- "postcss": "^8.4.23",
90
+ "lint-staged": "^13.2.3",
91
+ "npm": "^9.7.2",
92
+ "postcss": "^8.4.24",
93
93
  "postcss-aspect-ratio-polyfill": "^2.0.0",
94
94
  "postcss-cli": "^10.1.0",
95
95
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -107,15 +107,15 @@
107
107
  "postcss-nested-ancestors": "^3.0.0",
108
108
  "postcss-normalize": "^10.0.1",
109
109
  "postcss-prepend-imports": "^1.0.1",
110
- "postcss-preset-env": "^8.3.2",
110
+ "postcss-preset-env": "^8.5.1",
111
111
  "postcss-pxtorem": "^6.0.0",
112
112
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
113
- "postcss-sort-media-queries": "^5.1.0",
113
+ "postcss-sort-media-queries": "^5.2.0",
114
114
  "prettier": "^2.8.8",
115
- "rollup": "^3.21.4",
115
+ "rollup": "^3.26.0",
116
116
  "rollup-plugin-peer-deps-external": "^2.2.4",
117
- "semantic-release": "^21.0.2",
118
- "stylelint": "^15.6.1",
117
+ "semantic-release": "^21.0.6",
118
+ "stylelint": "^15.9.0",
119
119
  "stylelint-config-standard": "^33.0.0",
120
120
  "stylelint-no-unsupported-browser-features": "^6.1.0",
121
121
  "stylelint-order": "^6.0.3"